tour

package
v0.0.0-...-fcdcd11 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSecretFromFile

func CreateSecretFromFile(clientset kubernetes.Interface, namespace, name, fpath string) (*corev1.Secret, error)

CreateSecretFromFile creates a secret from a file

func GetNode

func GetNode(clientset kubernetes.Interface, name string) (*corev1.Node, error)

GetNode get node detail in the cluster

func GetPod

func GetPod(clientset kubernetes.Interface, namespace, name string) (*corev1.Pod, error)

GetPod get pod detail in specified namespace and name

func ListNamespaces

func ListNamespaces(clientset kubernetes.Interface) ([]corev1.Namespace, error)

ListNamespaces lists the namespaces in the cluster

func ListNodes

func ListNodes(clientset kubernetes.Interface, labels map[string]string) ([]corev1.Node, error)

ListNodes list all nodes in the cluster

func ListPods

func ListPods(clientset kubernetes.Interface, namespace string) ([]corev1.Pod, error)

ListPods list all pod in specified namespace

func NewKubeClient

func NewKubeClient(kubeconfig string) (kubernetes.Interface, error)

NewKubeClient creates a kubernetes client

func NewKubeClientDynamic

func NewKubeClientDynamic(kubeconfig string) (dynamic.Interface, error)

NewKubeClientDynamic creates a dynical kube client

func NewKubeClientInner

func NewKubeClientInner() (kubernetes.Interface, error)

NewKubeClientInner creates a client inside a Kubernetes cluster

Types

This section is empty.

Jump to

Keyboard shortcuts

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