destinationrule

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 25 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 DestinationRule for the given Destination.
	// returns nil if no DestinationRule is required for the Destination (i.e. if no DestinationRule features are required, such as subsets).
	//
	// 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,
		sourceMeshInstallation *discoveryv1.MeshSpec_MeshInstallation,
		reporter reporting.Reporter,
	) *networkingv1alpha3.DestinationRule
}

the DestinationRule translator translates a Destination into a DestinationRule.

func NewTranslator

func NewTranslator(
	settings *settingsv1.Settings,
	userDestinationRules v1alpha3sets.DestinationRuleSet,
	clusterDomains hostutils.ClusterDomainRegistry,
	decoratorFactory decorators.Factory,
	destinations discoveryv1sets.DestinationSet,
) Translator

Directories

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

Jump to

Keyboard shortcuts

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