authorizationpolicy

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Translator

type Translator interface {
	// Translate translates an appropriate AuthorizationPolicy for the given TrafficTarget.
	// returns nil if no AuthorizationPolicy is required for the TrafficTarget (i.e. if no AuthorizationPolicy features are required, such access control).
	//
	// Errors caused by invalid user config will be reported using the Reporter.
	//
	// Note that the input snapshot TrafficTargetSet contains the given TrafficTarget.
	Translate(
		in input.Snapshot,
		trafficTarget *discoveryv1alpha2.TrafficTarget,
		reporter reporting.Reporter,
	) *securityv1beta1.AuthorizationPolicy
}

the AuthorizationPolicy translator translates a TrafficTarget into a AuthorizationPolicy.

func NewTranslator

func NewTranslator() Translator

Directories

Path Synopsis
Package mock_authorizationpolicy is a generated GoMock package.
Package mock_authorizationpolicy is a generated GoMock package.

Jump to

Keyboard shortcuts

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