split

package
v1.1.0-beta6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

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

Directories

Path Synopsis
Package mock_split is a generated GoMock package.
Package mock_split is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL