2022-03-12 03:51:24 +00:00
|
|
|
//go:build !consulent
|
|
|
|
// +build !consulent
|
|
|
|
|
|
|
|
package acl
|
|
|
|
|
|
|
|
import "hash"
|
|
|
|
|
|
|
|
var emptyEnterpriseMeta = EnterpriseMeta{}
|
|
|
|
|
|
|
|
// EnterpriseMeta stub
|
|
|
|
type EnterpriseMeta struct{}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) ToEnterprisePolicyMeta() *EnterprisePolicyMeta {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func DefaultEnterpriseMeta() *EnterpriseMeta {
|
|
|
|
return &EnterpriseMeta{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func WildcardEnterpriseMeta() *EnterpriseMeta {
|
|
|
|
return &EnterpriseMeta{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) EstimateSize() int {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) AddToHash(_ hash.Hash, _ bool) {
|
|
|
|
// do nothing
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) PartitionOrDefault() string {
|
|
|
|
return "default"
|
|
|
|
}
|
|
|
|
|
|
|
|
func EqualPartitions(_, _ string) bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
func IsDefaultPartition(partition string) bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
func PartitionOrDefault(_ string) string {
|
|
|
|
return "default"
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) PartitionOrEmpty() string {
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) InDefaultPartition() bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) NamespaceOrDefault() string {
|
|
|
|
return DefaultNamespaceName
|
|
|
|
}
|
|
|
|
|
|
|
|
func NamespaceOrDefault(_ string) string {
|
|
|
|
return DefaultNamespaceName
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) NamespaceOrEmpty() string {
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) InDefaultNamespace() bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) Merge(_ *EnterpriseMeta) {
|
|
|
|
// do nothing
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) MergeNoWildcard(_ *EnterpriseMeta) {
|
|
|
|
// do nothing
|
|
|
|
}
|
|
|
|
|
|
|
|
func (_ *EnterpriseMeta) Normalize() {}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) Matches(_ *EnterpriseMeta) bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) IsSame(_ *EnterpriseMeta) bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) LessThan(_ *EnterpriseMeta) bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) WithWildcardNamespace() *EnterpriseMeta {
|
|
|
|
return &emptyEnterpriseMeta
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EnterpriseMeta) UnsetPartition() {
|
|
|
|
// do nothing
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewEnterpriseMetaWithPartition(_, _ string) EnterpriseMeta {
|
|
|
|
return emptyEnterpriseMeta
|
|
|
|
}
|
|
|
|
|
|
|
|
// FillAuthzContext stub
|
|
|
|
func (_ *EnterpriseMeta) FillAuthzContext(_ *AuthorizerContext) {}
|
peering: initial sync (#12842)
- Add endpoints related to peering: read, list, generate token, initiate peering
- Update node/service/check table indexing to account for peers
- Foundational changes for pushing service updates to a peer
- Plumb peer name through Health.ServiceNodes path
see: ENT-1765, ENT-1280, ENT-1283, ENT-1283, ENT-1756, ENT-1739, ENT-1750, ENT-1679,
ENT-1709, ENT-1704, ENT-1690, ENT-1689, ENT-1702, ENT-1701, ENT-1683, ENT-1663,
ENT-1650, ENT-1678, ENT-1628, ENT-1658, ENT-1640, ENT-1637, ENT-1597, ENT-1634,
ENT-1613, ENT-1616, ENT-1617, ENT-1591, ENT-1588, ENT-1596, ENT-1572, ENT-1555
Co-authored-by: R.B. Boyer <rb@hashicorp.com>
Co-authored-by: freddygv <freddy@hashicorp.com>
Co-authored-by: Chris S. Kim <ckim@hashicorp.com>
Co-authored-by: Evan Culver <eculver@hashicorp.com>
Co-authored-by: Nitya Dhanushkodi <nitya@hashicorp.com>
2022-04-21 22:34:40 +00:00
|
|
|
|
|
|
|
func NormalizeNamespace(_ string) string {
|
|
|
|
return ""
|
|
|
|
}
|