kube

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clientset

func Clientset(kubeconfig *string) (*kubernetes.Clientset, error)

Clientset is a helper to return a kubernetes Clientset pointer using the kubeconfig values (InCluster = nil, OutOfCluster = <location of kubeconfig>)

func ClientsetForConfig

func ClientsetForConfig(cfg *rest.Config) (*kubernetes.Clientset, error)

func RESTConfig

func RESTConfig(kubeconfig *string) (*rest.Config, error)

Config is a helper to create and return the kubernetes REST config using the kubeconfig values (InCluster = nil, OutOfCluster = <location of kubeconfig>)

Types

type Client

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

func NewClient

func NewClient(kubeconfig *string) (*Client, error)

func (*Client) Clientset

func (kcli *Client) Clientset() *kubernetes.Clientset

func (*Client) Kubeconfig

func (kcli *Client) Kubeconfig() string

func (*Client) RESTConfig

func (kcli *Client) RESTConfig() *rest.Config

Jump to

Keyboard shortcuts

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