kubernetes

package
v0.0.0-...-0e15285 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0 Imports: 18 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
	BatchV2alpha1() batchv2alpha1.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 NewFiltered

func NewFiltered(namespace string, filter resource.Filter) (Client, error)

NewFiltered returns a new filtered Kubernetes client

func NewFilteredOrDie

func NewFilteredOrDie(namespace string, filter resource.Filter) Client

NewFilteredOrDie returns a new filtered Kubernetes client

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 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