mirror of https://github.com/status-im/consul.git
26 lines
455 B
Go
26 lines
455 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
//go:build !consulent
|
|
// +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
|
|
}
|