destination

package
v1.1.0-beta19 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Translator

type Translator interface {
	// Translate translates the appropriate VirtualService and DestinationRule for the given Destination.
	// returns nil if no VirtualService or DestinationRule is required for the Destination (i.e. if no VirtualService/DestinationRule features are required, such as subsets).
	// Output resources will be added to the smi
	// Errors caused by invalid user config will be reported using the Reporter.
	Translate(
		ctx context.Context,
		in input.LocalSnapshot,
		destination *discoveryv1.Destination,
		outputs smi.Builder,
		reporter reporting.Reporter,
	)
}

the VirtualService translator translates a Destination into a VirtualService.

func NewTranslator

func NewTranslator(smiTranslator smitraffictarget.Translator) Translator

Directories

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

Jump to

Keyboard shortcuts

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