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