translation

package
v0.10.9 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 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 OutputSnapshots

type OutputSnapshots struct {
	// contains filtered or unexported fields
}

func (OutputSnapshots) Apply

func (t OutputSnapshots) Apply(
	ctx context.Context,
	clusterClient client.Client,
	multiClusterClient multicluster.Client,
	errHandler output.ErrorHandler,
)

func (OutputSnapshots) MarshalJSON

func (t OutputSnapshots) MarshalJSON() ([]byte, error)

type Translator

type Translator interface {
	// errors reflect an internal translation error and should never happen
	Translate(
		ctx context.Context,
		in input.Snapshot,
		reporter reporting.Reporter,
	) (OutputSnapshots, 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
validation

Jump to

Keyboard shortcuts

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