Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NoServiceAccountError = eris.New("Could not determine ServiceAccount target for Destination as no backing" + " workloads exist") CouldNotDetermineServiceAccountError = func(total int) error { return eris.Errorf("Could not determine ServiceAccount target for Destination as workloads belong to "+ "%d service accounts", total) } )
Functions ¶
This section is empty.
Types ¶
type Translator ¶
type Translator interface { // Translate translates the appropriate Destinations and HTTPRoutesGroups for the given Destination. // returns empty lists if none are required // // Errors caused by invalid user config will be reported using the Reporter. // // Note that the input snapshot DestinationSet contains the given Destination. Translate( ctx context.Context, in input.LocalSnapshot, destination *discoveryv1.Destination, reporter reporting.Reporter, ) ([]*smiaccessv1alpha2.TrafficTarget, []*smispecsv1alpha3.HTTPRouteGroup) }
the SMI Access translator translates a Destination into sets of SMI access resources.
func NewTranslator ¶
func NewTranslator() Translator
Click to show internal directories.
Click to hide internal directories.