a8rcloud

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

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)
}

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 SessionClient added in v2.8.0

type SessionClient interface {
	systema.SystemACRUDClient
	Closeable
}

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], bool)

Jump to

Keyboard shortcuts

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