kube

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: Apache-2.0 Imports: 14 Imported by: 30

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Kubernetes, Client kubernetes.Interface
	DynamicClient      dynamic.Interface
	DefaultNamespace   string
	Context            string
)

Functions

func GetClientConfig

func GetClientConfig(context string, configPath string, configData []byte) (clientcmd.ClientConfig, error)

func GroupVersionResourceByKind

func GroupVersionResourceByKind(client kubernetes.Interface, kind string) (schema.GroupVersionResource, error)

func Init

func Init(opts InitOptions) error

Types

type GetAllContextsClientsOptions

type GetAllContextsClientsOptions struct {
	KubeConfig string
}

type InitOptions

type InitOptions struct {
	KubeConfigOptions
}

type KubeConfig

type KubeConfig struct {
	Config           *rest.Config
	Context          string
	DefaultNamespace string
}

func GetKubeConfig

func GetKubeConfig(opts KubeConfigOptions) (*KubeConfig, error)

type KubeConfigOptions

type KubeConfigOptions struct {
	Context          string
	ConfigPath       string
	ConfigDataBase64 string
}

Jump to

Keyboard shortcuts

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