kubeclient

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientOption

type ClientOption func(ff *Kubeclient)

func WithKubeconfig

func WithKubeconfig(path string) ClientOption

type Kubeclient

type Kubeclient struct {
	Kubeconfig  string
	Kubecontext string
	APIConfig   *api.Config
}

func New

func New(opts ...ClientOption) (*Kubeclient, error)

func (Kubeclient) Clientset

func (kc Kubeclient) Clientset(context *string, config *rest.Config) (*kubernetes.Clientset, error)

func (Kubeclient) RESTConfig

func (kc Kubeclient) RESTConfig(context *string) (*rest.Config, error)

Jump to

Keyboard shortcuts

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