a8rcloud

package
v2.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyDescWorkstation    = "telepresence:workstation"
	KeyDescTrafficManager = "telepresence:traffic-manager"

	// Not quite a real API key description, but the bogus name that we catalog the key under
	// when the user explicitly uses --apikey to pass us a key to use in order to create the
	// other keys.
	KeyDescRoot = ""
)

API key descriptions to use when requesting API keys from Ambassador Cloud.

View Source
const (
	ApiKeyHeader           = "X-Ambassador-Api-Key"
	InstallIDHeader        = "X-Ambassador-Install-ID"
	TrafficManagerIDHeader = "X-Telepresence-ManagerID"
)
View Source
const (
	TrafficManagerConnName        = "traffic-manager"
	UnauthdTrafficManagerConnName = "traffic-manager-unauth"
	UserdConnName                 = "userd"
)

Variables

This section is empty.

Functions

func KeyDescAgent

func KeyDescAgent(spec *manager.InterceptSpec) string

func WithSystemAPool added in v2.6.0

func WithSystemAPool[T Closeable](ctx context.Context, poolName string, provider ClientProvider[T]) context.Context

Types

type ClientProvider added in v2.6.0

type ClientProvider[T Closeable] interface {
	HeaderProvider
	GetCloudConfig(ctx context.Context) (*manager.AmbassadorCloudConfig, error)
	BuildClient(ctx context.Context, conn *grpc.ClientConn) (T, error)
}

func GetSystemAPoolProvider added in v2.7.2

func GetSystemAPoolProvider[T Closeable](ctx context.Context, poolName string) ClientProvider[T]

type Closeable added in v2.6.0

type Closeable interface {
	Close(ctx context.Context) error
}

type HeaderProvider added in v2.6.0

type HeaderProvider interface {
	GetAPIKey(ctx context.Context) (string, error)
	GetInstallID(ctx context.Context) (string, error)
	GetExtraHeaders(ctx context.Context) (map[string]string, error)
}

type SystemAPool added in v2.6.0

type SystemAPool[T Closeable] interface {
	Get(ctx context.Context) (T, error)
	Done(ctx context.Context) error
}

func GetSystemAPool added in v2.6.0

func GetSystemAPool[T Closeable](ctx context.Context, poolName string) (SystemAPool[T], error)

Jump to

Keyboard shortcuts

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