authorizationpolicy

package
v1.1.0-beta18 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 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 Destination.
	// returns nil if no AuthorizationPolicy is required for the Destination (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 DestinationSet contains the given Destination.
	Translate(
		in input.LocalSnapshot,
		destination *discoveryv1.Destination,
		reporter reporting.Reporter,
	) *securityv1beta1.AuthorizationPolicy
}

the AuthorizationPolicy translator translates a Destination 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