federation

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: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertKubePortProtocol

func ConvertKubePortProtocol(port *discoveryv1.DestinationSpec_KubeService_KubeServicePort) string

ConvertKubePortProtocol converts protocol of k8s Service port to application level protocol exported for use in enterprise

Types

type Translator

type Translator interface {

	// Translate translates a ServiceEntry, VirtualService and DestinationRule for the given Destination using the data in status.AppliedFederation.
	// returns nil if no VirtualService or DestinationRule is required for the Mesh (i.e. if no VirtualService/DestinationRule features are required, such as subsets).
	// Errors caused by invalid user config will be reported using the Reporter.
	Translate(
		in input.LocalSnapshot,
		destination *discoveryv1.Destination,
		reporter reporting.Reporter,
	) (
		[]*networkingv1alpha3.ServiceEntry,
		[]*networkingv1alpha3.VirtualService,
		[]*networkingv1alpha3.DestinationRule,
	)
}

the Federation translator translates a Destination into a ServiceEntry, VirtualService, and DestinationRule

func NewTranslator

func NewTranslator(
	ctx context.Context,
	virtualServiceTranslator virtualservice.Translator,
	destinationRuleTranslator destinationrule.Translator,
) Translator

Directories

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

Jump to

Keyboard shortcuts

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