2023-03-28 18:39:22 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2023-03-13 21:19:11 +00:00
|
|
|
//go:build !consulent
|
|
|
|
// +build !consulent
|
|
|
|
|
|
|
|
package structs
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
2023-04-24 20:21:28 +00:00
|
|
|
// Validate assures that the sameness-groups are an enterprise only feature
|
2023-03-13 21:19:11 +00:00
|
|
|
func (s *SamenessGroupConfigEntry) Validate() error {
|
|
|
|
return fmt.Errorf("sameness-groups are an enterprise-only feature")
|
|
|
|
}
|
2023-03-31 18:35:56 +00:00
|
|
|
|
2023-08-23 16:53:44 +00:00
|
|
|
// RelatedPeers is an CE placeholder noop
|
2023-03-31 18:35:56 +00:00
|
|
|
func (s *SamenessGroupConfigEntry) RelatedPeers() []string {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-08-23 16:53:44 +00:00
|
|
|
// AllMembers is an CE placeholder noop
|
2023-03-31 18:35:56 +00:00
|
|
|
func (s *SamenessGroupConfigEntry) AllMembers() []SamenessGroupMember {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-08-23 16:53:44 +00:00
|
|
|
// ToServiceResolverFailoverTargets is an CE placeholder noop
|
2023-04-24 20:21:28 +00:00
|
|
|
func (s *SamenessGroupConfigEntry) ToServiceResolverFailoverTargets() []ServiceResolverFailoverTarget {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-08-23 16:53:44 +00:00
|
|
|
// ToQueryFailoverTargets is an CE placeholder noop
|
2023-04-24 20:21:28 +00:00
|
|
|
func (s *SamenessGroupConfigEntry) ToQueryFailoverTargets(namespace string) []QueryFailoverTarget {
|
2023-03-31 18:35:56 +00:00
|
|
|
return nil
|
|
|
|
}
|