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
Click to show internal directories.
Click to hide internal directories.