client

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: Apache-2.0 Imports: 6 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 creates a *kubernetes.Clientset for the given kubeconfig.

func ClientsetOrDie

func ClientsetOrDie(kubeconfig string) *kubernetes.Clientset

ClientsetOrDie creates a *kubernetes.Clientset for the given kubeconfig. panic if there is any error occurs.

func DiscoveryClient

func DiscoveryClient(kubeconfig string) (*discovery.DiscoveryClient, error)

DiscoveryClient creates a *discovery.DiscoveryClient for the given kubeconfig.

func DiscoveryClientOrDie

func DiscoveryClientOrDie(kubeconfig string) *discovery.DiscoveryClient

DiscoveryClientOrDie creates a *discovery.DiscoveryClient for the given kubeconfig. panic if there is any error occurs.

func DynamicClient

func DynamicClient(kubeconfig string) (dynamic.Interface, error)

DynamicClient creates a dynamic.Interface for the given kubeconfig.

func DynamicClientOrDie

func DynamicClientOrDie(kubeconfig string) dynamic.Interface

DynamicClient creates a dynamic.Interface for the given kubeconfig. panic if there is any error occurs.

func RESTClient

func RESTClient(kubeconfig string) (*rest.RESTClient, error)

RESTClient creates a *rest.RESTClient for the given kubeconfig.

func RESTClientOrDie

func RESTClientOrDie(kubeconfig string) *rest.RESTClient

RESTClientOrDie creates a *rest.RESTClient for the given kubeconfig. panic if there is any error occurs.

func RESTConfig

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

RESTConfig creates a *rest.Config for the given kubeconfig. create rest config, and config precedence. * kubeconfig variable passed. * KUBECONFIG environment variable pointing at a file. * $HOME/.kube/config if exists. * In-cluster config if running in cluster.

func RESTConfigOrDie

func RESTConfigOrDie(kubeconfig string) *rest.Config

RESTConfigOrDie creates a *rest.Config for the given kubeconfig. panic if there is any error occurs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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