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