access

package
v1.0.0-beta15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

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

Functions

This section is empty.

Types

type Translator

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

the SMI Access translator translates a Destination 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