2023-03-28 22:48:58 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-03-28 22:48:58 +00:00
|
|
|
|
2021-11-16 18:04:01 +00:00
|
|
|
//go:build !consulent
|
2020-10-21 20:08:33 +00:00
|
|
|
|
|
|
|
package pbcommon
|
|
|
|
|
2022-04-05 21:10:06 +00:00
|
|
|
import "github.com/hashicorp/consul/acl"
|
2022-03-16 16:12:29 +00:00
|
|
|
|
2022-03-23 16:10:03 +00:00
|
|
|
var DefaultEnterpriseMeta = &EnterpriseMeta{}
|
2022-03-16 16:12:29 +00:00
|
|
|
|
2022-04-05 21:10:06 +00:00
|
|
|
func NewEnterpriseMetaFromStructs(_ acl.EnterpriseMeta) *EnterpriseMeta {
|
2022-03-16 16:12:29 +00:00
|
|
|
return &EnterpriseMeta{}
|
|
|
|
}
|
2022-04-05 21:10:06 +00:00
|
|
|
func EnterpriseMetaToStructs(s *EnterpriseMeta, t *acl.EnterpriseMeta) {
|
2022-03-22 20:30:00 +00:00
|
|
|
if s == nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
2022-04-05 21:10:06 +00:00
|
|
|
func EnterpriseMetaFromStructs(t *acl.EnterpriseMeta, s *EnterpriseMeta) {
|
2022-03-22 20:30:00 +00:00
|
|
|
if s == nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|