Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUnsupportedFeatureError ¶
func NewUnsupportedFeatureError(resource ezkube.ResourceId, fieldName, reason string) error
Types ¶
type Translator ¶
type Translator interface { // Translate translates the appropriate TrafficSplit for the given TrafficTarget. // returns nil if no TrafficSplit is 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, ) *smislpitv1alpha2.TrafficSplit }
the TrafficSplit Translator translates a TrafficTarget into a TrafficSplit.
func NewTranslator ¶
func NewTranslator() Translator
type UnsupportedFeatureError ¶
type UnsupportedFeatureError struct {
// contains filtered or unexported fields
}
func (*UnsupportedFeatureError) Error ¶
func (u *UnsupportedFeatureError) Error() string
Click to show internal directories.
Click to hide internal directories.