Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InKubernetes ¶
func InKubernetes() bool
func KubeConfig ¶
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, managedByPlural bool) error
GetClient() *kubernetes.Clientset
GetRestClient() *restclient.RESTClient
}
func Kubernetes ¶
func KubernetesWithContext ¶
Click to show internal directories.
Click to hide internal directories.