translation

package
v1.0.0-beta12 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Outputs added in v0.12.1

type Outputs struct {
	Istio   istiooutput.Builder
	Appmesh appmeshoutput.Builder
	Smi     smioutput.Builder
	Local   localoutput.Builder
}

func (*Outputs) ApplyMultiCluster added in v0.12.1

func (t *Outputs) ApplyMultiCluster(
	ctx context.Context,
	clusterClient client.Client,
	multiClusterClient multicluster.Client,
	errHandler output.ErrorHandler,
) error

func (*Outputs) MarshalJSON added in v0.12.1

func (t *Outputs) MarshalJSON() ([]byte, error)

type Translator

type Translator interface {
	// errors reflect an internal translation error and should never happen
	Translate(
		ctx context.Context,
		in input.LocalSnapshot,
		userSupplied input.RemoteSnapshot,
		reporter reporting.Reporter,
	) (*Outputs, error)
}

the networking translator translates an istio input networking snapshot to an istiooutput snapshot of mesh config resources

func NewTranslator

func NewTranslator(
	istioTranslator istio.Translator,
	appmeshTranslator appmesh.Translator,
	osmTranslator osm.Translator,
) Translator

Directories

Path Synopsis
osm
smi
utils

Jump to

Keyboard shortcuts

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