2019-10-24 18:38:09 +00:00
|
|
|
// +build !consulent
|
|
|
|
|
|
|
|
package structs
|
|
|
|
|
|
|
|
import (
|
|
|
|
"hash"
|
|
|
|
|
|
|
|
"github.com/hashicorp/consul/acl"
|
|
|
|
)
|
|
|
|
|
2019-12-06 19:01:34 +00:00
|
|
|
var emptyEnterpriseMeta = EnterpriseMeta{}
|
|
|
|
|
2019-10-24 18:38:09 +00:00
|
|
|
// EnterpriseMeta stub
|
|
|
|
type EnterpriseMeta struct{}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) estimateSize() int {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-12-06 19:01:34 +00:00
|
|
|
func (m *EnterpriseMeta) addToHash(_ hash.Hash, _ bool) {
|
2019-10-24 18:38:09 +00:00
|
|
|
// do nothing
|
|
|
|
}
|
|
|
|
|
2019-12-18 18:46:53 +00:00
|
|
|
func (m *EnterpriseMeta) Merge(_ *EnterpriseMeta) {
|
|
|
|
// do nothing
|
|
|
|
}
|
|
|
|
|
2019-12-10 02:26:41 +00:00
|
|
|
func (m *EnterpriseMeta) Matches(_ *EnterpriseMeta) bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) IsSame(_ *EnterpriseMeta) bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) LessThan(_ *EnterpriseMeta) bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2019-10-24 18:38:09 +00:00
|
|
|
// ReplicationEnterpriseMeta stub
|
|
|
|
func ReplicationEnterpriseMeta() *EnterpriseMeta {
|
2019-12-06 19:01:34 +00:00
|
|
|
return &emptyEnterpriseMeta
|
2019-10-24 18:38:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// DefaultEnterpriseMeta stub
|
|
|
|
func DefaultEnterpriseMeta() *EnterpriseMeta {
|
2019-12-06 19:01:34 +00:00
|
|
|
return &emptyEnterpriseMeta
|
2019-10-24 18:38:09 +00:00
|
|
|
}
|
|
|
|
|
2019-12-06 19:01:34 +00:00
|
|
|
// WildcardEnterpriseMeta stub
|
|
|
|
func WildcardEnterpriseMeta() *EnterpriseMeta {
|
|
|
|
return &emptyEnterpriseMeta
|
|
|
|
}
|
2019-10-24 18:38:09 +00:00
|
|
|
|
|
|
|
// FillAuthzContext stub
|
2019-12-18 18:43:24 +00:00
|
|
|
func (_ *EnterpriseMeta) FillAuthzContext(_ *acl.AuthorizerContext) {}
|
2019-11-01 20:48:44 +00:00
|
|
|
|
2019-12-10 02:26:41 +00:00
|
|
|
func (_ *EnterpriseMeta) Normalize() {}
|
|
|
|
|
|
|
|
// FillAuthzContext stub
|
2019-12-18 18:43:24 +00:00
|
|
|
func (_ *DirEntry) FillAuthzContext(_ *acl.AuthorizerContext) {}
|
2019-12-10 02:26:41 +00:00
|
|
|
|
2019-11-01 20:48:44 +00:00
|
|
|
// FillAuthzContext stub
|
2019-12-18 18:43:24 +00:00
|
|
|
func (_ *RegisterRequest) FillAuthzContext(_ *acl.AuthorizerContext) {}
|
2019-12-10 02:26:41 +00:00
|
|
|
|
|
|
|
func (_ *RegisterRequest) GetEnterpriseMeta() *EnterpriseMeta {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// OSS Stub
|
2019-12-18 18:43:24 +00:00
|
|
|
func (op *TxnNodeOp) FillAuthzContext(ctx *acl.AuthorizerContext) {}
|
2019-12-10 02:26:41 +00:00
|
|
|
|
|
|
|
// OSS Stub
|
2019-12-18 18:43:24 +00:00
|
|
|
func (_ *TxnServiceOp) FillAuthzContext(_ *acl.AuthorizerContext) {}
|
2019-12-10 02:26:41 +00:00
|
|
|
|
|
|
|
// OSS Stub
|
2019-12-18 18:43:24 +00:00
|
|
|
func (_ *TxnCheckOp) FillAuthzContext(_ *acl.AuthorizerContext) {}
|
2019-12-10 02:26:41 +00:00
|
|
|
|
|
|
|
func ServiceIDString(id string, _ *EnterpriseMeta) string {
|
|
|
|
return id
|
|
|
|
}
|
|
|
|
|
|
|
|
func (sid *ServiceID) String() string {
|
|
|
|
return sid.ID
|
|
|
|
}
|
|
|
|
|
|
|
|
func (cid *CheckID) String() string {
|
|
|
|
return string(cid.ID)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (_ *HealthCheck) Validate() error {
|
|
|
|
return nil
|
|
|
|
}
|