kubernetes

package
v1.6.20 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 22 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
	AdmissionregistrationV1() admissionregistrationv1.Client
	ApiextensionsV1() apiextensionsv1.Client
	ApiextensionsV1beta1() apiextensionsv1beta1.Client
	AppsV1() appsv1.Client
	AppsV1beta1() appsv1beta1.Client
	BatchV1() batchv1.Client
	BatchV1beta1() batchv1beta1.Client
	ExtensionsV1beta1() extensionsv1beta1.Client
	NetworkingV1beta1() networkingv1beta1.Client
	PolicyV1beta1() policyv1beta1.Client
	RbacV1() rbacv1.Client
	StorageV1() storagev1.Client
	CoreV1() corev1.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
admissionregistration
v1
apiextensions
v1
apps
v1
batch
v1
core
v1
extensions
networking
policy
rbac
v1
storage
v1

Jump to

Keyboard shortcuts

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