5cb24b9bf8
* mogify needed pbcommon structs * mogify needed pbconnect structs * fix compilation errors and make config_translate_test pass * add missing file * remove redundant oss func declaration * fix EnterpriseMeta to copy the right data for enterprise * rename pbcommon package to pbcommongogo * regenerate proto and mog files * add missing mog files * add pbcommon package * pbcommon no mog * fix enterprise meta code generation * fix enterprise meta code generation (pbcommongogo) * fix mog generation for gogo * use `protoc-go-inject-tag` to inject tags * rename proto package * pbcommon no mog * use `protoc-go-inject-tag` to inject tags * add non gogo proto to make file * fix proto get
25 lines
485 B
Go
25 lines
485 B
Go
//go:build !consulent
|
|
// +build !consulent
|
|
|
|
package pbcommon
|
|
|
|
import (
|
|
"github.com/hashicorp/consul/agent/structs"
|
|
)
|
|
|
|
var DefaultEnterpriseMeta = EnterpriseMeta{}
|
|
|
|
func NewEnterpriseMetaFromStructs(_ structs.EnterpriseMeta) *EnterpriseMeta {
|
|
return &EnterpriseMeta{}
|
|
}
|
|
func EnterpriseMetaToStructs(s *EnterpriseMeta, t *structs.EnterpriseMeta) {
|
|
if s == nil {
|
|
return
|
|
}
|
|
}
|
|
func EnterpriseMetaFromStructs(t *structs.EnterpriseMeta, s *EnterpriseMeta) {
|
|
if s == nil {
|
|
return
|
|
}
|
|
}
|