k8s

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(kubeconfigPath string) (*rest.Config, error)

func IsConnected

func IsConnected(ctx context.Context, r rest.Interface) error

func LoadConfig

func LoadConfig(kubeconfigPath string) (*rest.Config, error)

func ToClientCmdApiConfig added in v0.4.0

func ToClientCmdApiConfig(restCfg *rest.Config) (*clientcmdapi.Config, error)

ToClientCmdApiConfig using a rest.Config to generate a clientcmdapi.Config. Warning this helper is only used for the cases that the caller only accept a clientcmdapi.Config. Try to use rest.Config directly if possible.

func Wait

func Wait(ctx context.Context, cfg *rest.Config) error

Types

type Embedded

type Embedded struct{}

func (Embedded) GetConfig

func (Embedded) GetConfig(ctx context.Context) (string, *rest.Config, error)

func (Embedded) Run

func (Embedded) Run(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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