mirror of https://github.com/status-im/consul.git
25 lines
434 B
Go
25 lines
434 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
//go:build !consulent
|
|
|
|
package structs
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/hashicorp/consul/acl"
|
|
)
|
|
|
|
func validateSourceIntentionEnterpriseMeta(_, _ *acl.EnterpriseMeta) error {
|
|
return nil
|
|
}
|
|
|
|
func (s *SourceIntention) validateSamenessGroup() error {
|
|
if s.SamenessGroup != "" {
|
|
return fmt.Errorf("Sameness groups are a Consul Enterprise feature.")
|
|
}
|
|
|
|
return nil
|
|
}
|