access

package
v0.12.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoServiceAccountError = eris.New("Could not determine ServiceAccount target for TrafficTarget as no backing" +
		" workloads exist")

	CouldNotDetermineServiceAccountError = func(total int) error {
		return eris.Errorf("Could not determine ServiceAccount target for TrafficTarget as workloads belong to "+
			"%d service accounts", total)
	}
)

Functions

This section is empty.

Types

type Translator

type Translator interface {
	// Translate translates the appropriate TrafficTargets and HTTPRoutesGroups for the given TrafficTarget.
	// returns empty lists if none are required
	//
	// Errors caused by invalid user config will be reported using the Reporter.
	//
	// Note that the input snapshot TrafficTargetSet contains the given TrafficTarget.
	Translate(
		ctx context.Context,
		in input.LocalSnapshot,
		trafficTarget *discoveryv1alpha2.TrafficTarget,
		reporter reporting.Reporter,
	) ([]*smiaccessv1alpha2.TrafficTarget, []*smispecsv1alpha3.HTTPRouteGroup)
}

the SMI Access translator translates a TrafficTarget into sets of SMI access resources.

func NewTranslator

func NewTranslator() Translator

Directories

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

Jump to

Keyboard shortcuts

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