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