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
|
|
|
|
2021-11-16 18:04:01 +00:00
|
|
|
//go:build !consulent
|
2021-01-25 17:27:38 +00:00
|
|
|
// +build !consulent
|
|
|
|
|
|
|
|
package structs
|
|
|
|
|
2022-03-13 03:55:53 +00:00
|
|
|
import (
|
2023-04-20 16:16:04 +00:00
|
|
|
"fmt"
|
|
|
|
|
2022-03-13 03:55:53 +00:00
|
|
|
"github.com/hashicorp/consul/acl"
|
|
|
|
)
|
|
|
|
|
|
|
|
func validateSourceIntentionEnterpriseMeta(_, _ *acl.EnterpriseMeta) error {
|
2021-01-25 17:27:38 +00:00
|
|
|
return nil
|
|
|
|
}
|
2023-04-20 16:16:04 +00:00
|
|
|
|
|
|
|
func (s *SourceIntention) validateSamenessGroup() error {
|
|
|
|
if s.SamenessGroup != "" {
|
|
|
|
return fmt.Errorf("Sameness groups are a Consul Enterprise feature.")
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|