kubernetes

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InKubernetes

func InKubernetes() bool

func KubeConfig

func KubeConfig() (*rest.Config, error)

func KubeConfigWithContext

func KubeConfigWithContext(context string) (*rest.Config, error)

Types

type Kube

type Kube interface {
	Secret(namespace string, name string) (*v1.Secret, error)
	SecretList(namespace string, opts metav1.ListOptions) (*v1.SecretList, error)
	SecretCreate(namespace string, secret *v1.Secret) (*v1.Secret, error)
	SecretDelete(namespace string, secretName string) error
	SecretDeleteCollection(namespace string, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Node(name string) (*v1.Node, error)
	Nodes() (*v1.NodeList, error)
	FinalizeNamespace(namespace string) error
	LogTailList(namespace string) (*platformv1alpha1.LogTailList, error)
	LogTail(namespace string, name string) (*platformv1alpha1.LogTail, error)
	ProxyList(namespace string) (*platformv1alpha1.ProxyList, error)
	Proxy(namespace string, name string) (*platformv1alpha1.Proxy, error)
	Apply(path string, force bool) error
	CreateNamespace(namespace string, managedByPlural bool) error
	GetClient() *kubernetes.Clientset
	GetRestClient() *restclient.RESTClient
}

func Kubernetes

func Kubernetes() (Kube, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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