kubernetes

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Namespace returns the client namespace
	Namespace() string

	// Config returns the Kubernetes REST client configuration
	Config() *rest.Config

	// Clientset returns the client's Clientset
	Clientset() *kubernetes.Clientset
	AppsV1() appsv1.Client
	AppsV1beta1() appsv1beta1.Client
	BatchV1() batchv1.Client
	BatchV1beta1() batchv1beta1.Client
	BatchV2alpha1() batchv2alpha1.Client
	CoreV1() corev1.Client
	ExtensionsV1beta1() extensionsv1beta1.Client
	NetworkingV1beta1() networkingv1beta1.Client
	RbacV1() rbacv1.Client
}

Client is a Kubernetes client

func New

func New() (Client, error)

New returns a new Kubernetes client for the current namespace

func NewForNamespace

func NewForNamespace(namespace string) (Client, error)

NewForNamespace returns a new Kubernetes client for the given namespace

func NewForNamespaceOrDie

func NewForNamespaceOrDie(namespace string) Client

NewForNamespaceOrDie returns a new Kubernetes client for the given namespace

func NewForRelease

func NewForRelease(release *helm.HelmRelease) (Client, error)

NewForRelease returns a new Kubernetes client for the given release

func NewForReleaseOrDie

func NewForReleaseOrDie(release *helm.HelmRelease) Client

NewForReleaseOrDie returns a new Kubernetes client for the given release

func NewOrDie

func NewOrDie() Client

NewOrDie returns a new Kubernetes client for the current namespace

Directories

Path Synopsis
apps
v1
batch
v1
core
v1
extensions
networking
rbac
v1

Jump to

Keyboard shortcuts

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