mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
b1688ad856
* execute copyright headers after performing deep-copy generation. * fix copyright install * Apply suggestions from code review Co-authored-by: Semir Patel <semir.patel@hashicorp.com> * Apply suggestions from code review Co-authored-by: Semir Patel <semir.patel@hashicorp.com> * rename steps to match codegen naming * remove copywrite install category --------- Co-authored-by: Semir Patel <semir.patel@hashicorp.com>
21 lines
552 B
Go
21 lines
552 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package proxysnapshot
|
|
|
|
import "github.com/hashicorp/consul/acl"
|
|
|
|
// ProxySnapshot is an abstraction that allows interchangeability between
|
|
// Catalog V1 ConfigSnapshot and Catalog V2 ProxyState.
|
|
type ProxySnapshot interface {
|
|
AllowEmptyListeners() bool
|
|
AllowEmptyRoutes() bool
|
|
AllowEmptyClusters() bool
|
|
Authorize(authz acl.Authorizer) error
|
|
LoggerName() string
|
|
}
|
|
|
|
// CancelFunc is a type for a returned function that can be called to cancel a
|
|
// watch.
|
|
type CancelFunc func()
|