mirror of
https://github.com/status-im/consul.git
synced 2025-01-12 14:55:02 +00:00
f2902e6608
This commit adds a sameness-group config entry to the API and structs packages. It includes some validation logic and a new memdb index that tracks the default sameness-group for each partition. Sameness groups will simplify the effort of managing failovers / intentions / exports for peers and partitions. Note that this change purely to introduce the configuration entry and does not include the full functionality of sameness-groups.
11 lines
200 B
Go
11 lines
200 B
Go
//go:build !consulent
|
|
// +build !consulent
|
|
|
|
package structs
|
|
|
|
import "fmt"
|
|
|
|
func (s *SamenessGroupConfigEntry) Validate() error {
|
|
return fmt.Errorf("sameness-groups are an enterprise-only feature")
|
|
}
|