traffictarget

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 15 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 TrafficTarget.
	// returns nil if no VirtualService or DestinationRule is required for the TrafficTarget (i.e. if no VirtualService/DestinationRule features are required, such as subsets).
	// Output resources will be added to the output.Builder
	// Errors caused by invalid user config will be reported using the Reporter.
	Translate(
		in input.Snapshot,
		trafficTarget *discoveryv1alpha2.TrafficTarget,
		outputs istio.Builder,
		reporter reporting.Reporter,
	)
}

the VirtualService translator translates a TrafficTarget into a VirtualService.

func NewTranslator

func NewTranslator(
	ctx context.Context,
	clusterDomains hostutils.ClusterDomainRegistry,
	decoratorFactory decorators.Factory,
	trafficTargets discoveryv1alpha2sets.TrafficTargetSet,
	failoverServices v1alpha2sets.FailoverServiceSet,
) Translator

Directories

Path Synopsis
mocks
Package mock_authorizationpolicy is a generated GoMock package.
Package mock_authorizationpolicy is a generated GoMock package.
mocks
Package mock_destinationrule is a generated GoMock package.
Package mock_destinationrule is a generated GoMock package.
Package mock_traffictarget is a generated GoMock package.
Package mock_traffictarget is a generated GoMock package.
mocks
Package mock_virtualservice is a generated GoMock package.
Package mock_virtualservice is a generated GoMock package.

Jump to

Keyboard shortcuts

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