kubernetes

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: MIT Imports: 29 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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() *rest.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