gardener

package
v0.0.0-...-30b6b24 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRestConfigFromFile

func NewRestConfigFromFile(kubeconfigFilePath string) (*restclient.Config, error)

Types

type DynamicKubeconfigAPI

type DynamicKubeconfigAPI interface {
	Create(ctx context.Context, obj gardenerClient.Object, subResource gardenerClient.Object, opts ...gardenerClient.SubResourceCreateOption) error
}

type KubeconfigProvider

type KubeconfigProvider struct {
	// contains filtered or unexported fields
}

func NewKubeconfigProvider

func NewKubeconfigProvider(
	shootClient ShootClient,
	dynamicKubeconfigAPI DynamicKubeconfigAPI,
	shootNamespace string,
	expirationInSeconds int64) KubeconfigProvider

func (KubeconfigProvider) Fetch

func (kp KubeconfigProvider) Fetch(ctx context.Context, shootName string) (string, error)

type ShootClient

type ShootClient interface {
	Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.Shoot, error)
}

Jump to

Keyboard shortcuts

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