2023-03-28 18:39:22 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-03-28 18:39:22 +00:00
|
|
|
|
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-04-24 20:21:28 +00:00
|
|
|
// RelatedPeers is an OSS placeholder noop
|
2023-03-31 18:35:56 +00:00
|
|
|
func (s *SamenessGroupConfigEntry) RelatedPeers() []string {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-04-24 20:21:28 +00:00
|
|
|
// AllMembers is an OSS placeholder noop
|
2023-03-31 18:35:56 +00:00
|
|
|
func (s *SamenessGroupConfigEntry) AllMembers() []SamenessGroupMember {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-04-24 20:21:28 +00:00
|
|
|
// ToServiceResolverFailoverTargets is an OSS placeholder noop
|
|
|
|
func (s *SamenessGroupConfigEntry) ToServiceResolverFailoverTargets() []ServiceResolverFailoverTarget {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// ToQueryFailoverTargets is an OSS placeholder noop
|
|
|
|
func (s *SamenessGroupConfigEntry) ToQueryFailoverTargets(namespace string) []QueryFailoverTarget {
|
2023-03-31 18:35:56 +00:00
|
|
|
return nil
|
|
|
|
}
|