kubernetes

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 31 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)
	WireguardServerList(namespace string) (*vpnv1alpha1.WireguardServerList, error)
	WireguardServer(namespace string, name string) (*vpnv1alpha1.WireguardServer, error)
	WireguardPeerList(namespace string) (*vpnv1alpha1.WireguardPeerList, error)
	WireguardPeer(namespace string, name string) (*vpnv1alpha1.WireguardPeer, error)
	WireguardPeerCreate(namespace string, wireguardPeer *vpnv1alpha1.WireguardPeer) (*vpnv1alpha1.WireguardPeer, error)
	WireguardPeerDelete(namespace string, name string) error
	Apply(path string, force bool) error
	CreateNamespace(namespace string) error
	GetClient() *kubernetes.Clientset
	GetRestClient() *restclient.RESTClient
}

func Kubernetes

func Kubernetes() (Kube, error)

func KubernetesWithContext

func KubernetesWithContext(context string) (Kube, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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