ccegateway

package
v0.0.0-...-d1b2497 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TokenKey     = "token"
	ExpiredAtKey = "expiredAt"

	TokenSecretName      = "cce-plugin-token"
	TokenSecretNamespace = "kube-system"

	TokenHeaderKey      = "cce-token"
	ClusterIDHeaderKey  = "cce-cluster"
	RemoteHostHeaderKey = "cce-remote-host"

	EndpointOverrideEnv = "CCE_GATEWAY_ENDPOINT"
)

Variables

This section is empty.

Functions

func NewBCESigner

func NewBCESigner(region, clusterID string) *bceSigner

Types

type BCESigner

type BCESigner interface {
	auth.Signer

	SetVolumeSource(tokenVolume string)
	SetSecretSource(secretGetter func(namespace, name string) (*corev1.Secret, error))
	SetTokenSource(tokenGetter func(*auth.BceCredentials, *auth.SignOptions) ([]byte, []byte, error))
	GetHostAndPort() (string, int)
}

Jump to

Keyboard shortcuts

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