k8sclient

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetPods(namespace string) (*kapi.PodList, error)
	SetAnnotationsOnPod(pod *kapi.Pod, annotations map[string]string) error
	PatchPod(pod *kapi.Pod, patchType types.PatchType, patchData []byte) error
	GetNetworkAttachmentDefinition(namespace, name string) (*netapi.NetworkAttachmentDefinition, error)
	GetRestClient() rest.Interface
}

func NewK8sClient

func NewK8sClient() (Client, error)

NewK8sClient returns a kubernetes client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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