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