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 Destination. // returns nil if no TrafficSplit is 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, ) *smislpitv1alpha2.TrafficSplit }
the TrafficSplit Translator translates a Destination 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.