authz

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientNamespaceLabel  = "client.clusterlink.net/namespace"
	ClientSALabel         = "client.clusterlink.net/service-account"
	ClientLabelsPrefix    = "client.clusterlink.net/labels."
	ServiceNameLabel      = "export.clusterlink.net/name"
	ServiceNamespaceLabel = "export.clusterlink.net/namespace"
	ServiceLabelsPrefix   = "export.clusterlink.net/labels."
	PeerNameLabel         = "peer.clusterlink.net/name"
)

Variables

This section is empty.

Functions

func CreateControllers

func CreateControllers(mgr *Manager, controllerManager ctrl.Manager) error

CreateControllers creates the various k8s controllers used to update the xDS manager.

func RegisterService added in v0.3.0

func RegisterService(manager *Manager, grpcServer *grpc.Server)

RegisterService registers an ext_authz service backed by Manager to the given gRPC server.

Types

type LoadBalancer added in v0.2.1

type LoadBalancer struct {
	// contains filtered or unexported fields
}

func NewLoadBalancer added in v0.2.1

func NewLoadBalancer() *LoadBalancer

NewLoadBalancer returns a new instance of a LoadBalancer object.

func (*LoadBalancer) Select added in v0.2.1

func (lb *LoadBalancer) Select(result *LoadBalancingResult) error

Select one of the import sources, based on the set load balancing scheme.

type LoadBalancingResult added in v0.2.1

type LoadBalancingResult struct {
	// contains filtered or unexported fields
}

func NewLoadBalancingResult added in v0.2.1

func NewLoadBalancingResult(imp *crds.Import) *LoadBalancingResult

func (*LoadBalancingResult) Delay added in v0.2.1

func (r *LoadBalancingResult) Delay()

func (*LoadBalancingResult) Get added in v0.2.1

func (*LoadBalancingResult) IsDelayed added in v0.2.1

func (r *LoadBalancingResult) IsDelayed() bool

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager manages the authorization dataplane connections.

func NewManager

func NewManager(cl client.Client, namespace string) *Manager

NewManager returns a new authorization manager.

func (*Manager) AddAccessPolicy

func (m *Manager) AddAccessPolicy(policy *connectivitypdp.AccessPolicy) error

AddAccessPolicy adds an access policy to allow/deny specific connections.

func (*Manager) AddPeer

func (m *Manager) AddPeer(pr *v1alpha1.Peer)

AddPeer defines a new route target for egress dataplane connections.

func (*Manager) DeleteAccessPolicy

func (m *Manager) DeleteAccessPolicy(name types.NamespacedName, privileged bool) error

DeleteAccessPolicy removes an access policy to allow/deny specific connections.

func (*Manager) DeletePeer

func (m *Manager) DeletePeer(name string)

DeletePeer removes the possibility for egress dataplane connections to be routed to a given peer.

func (*Manager) IsReady added in v0.4.0

func (m *Manager) IsReady() bool

func (*Manager) SetPeerCertificates added in v0.3.0

func (m *Manager) SetPeerCertificates(peerTLS *tls.ParsedCertData, _ *tls.RawCertData) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL