translation

package
v0.12.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependencyFactory

type DependencyFactory interface {
	MakeMeshTranslator(
		ctx context.Context,
	) mesh.Translator

	MakeWorkloadTranslator(
		ctx context.Context,
		in input.DiscoveryInputSnapshot,
	) workload.Translator

	MakeTrafficTargetTranslator() traffictarget.Translator
}

the dependencyFactory creates dependencies for the translator from a given snapshot NOTE(ilackarms): private interface used here as it's not expected we'll need to define our dependencyFactory anywhere else

type DependencyFactoryImpl

type DependencyFactoryImpl struct{}

func (DependencyFactoryImpl) MakeMeshTranslator

func (d DependencyFactoryImpl) MakeMeshTranslator(
	ctx context.Context,
) mesh.Translator

func (DependencyFactoryImpl) MakeTrafficTargetTranslator

func (d DependencyFactoryImpl) MakeTrafficTargetTranslator() traffictarget.Translator

func (DependencyFactoryImpl) MakeWorkloadTranslator

Directories

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

Jump to

Keyboard shortcuts

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