kubeconfig

package
v0.0.0-...-2dfab7d 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 GetAuthInfo

func GetAuthInfo(authInfoName string) (*api.AuthInfo, error)

func GetContext

func GetContext(ctxName string) (*api.Context, error)

func GetContextNames

func GetContextNames() ([]string, error)

GetContextNames returns a slice with the names of the contexts in the kubeconfig. The slice may be empty.

func GetCurrentContextName

func GetCurrentContextName() (string, error)

func GetKubeConfig

func GetKubeConfig() clientcmd.ClientConfig

func GetServer

func GetServer(context string) (string, error)

func HasContext

func HasContext(ctxName string) (bool, error)

func MergeAllAndWrite

func MergeAllAndWrite(kubeconfigs []string) error

func MergeAndWrite

func MergeAndWrite(newConfig string) error

func SetCurrentContext

func SetCurrentContext(ctx string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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