cache

package
v0.0.0-...-e2054a2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubeConfigFromCache

func GetKubeConfigFromCache(logger *zap.SugaredLogger, coreV1 v1.CoreV1Interface, runtimeID string) (string,
	error,
)

GetKubeConfigFromCache returns the kubeconfig from the cache if it is not expired. If it is expired, it will get the kubeconfig from the secret and set it in the cache.

Types

type Record

type Record struct {
	InstanceID      string
	RuntimeID       string
	SubAccountID    string
	GlobalAccountID string
	ShootName       string
	ProviderType    string
	KubeConfig      string
	Metric          *edp.ConsumptionMetrics
}

Jump to

Keyboard shortcuts

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