k8s

package
v0.0.0-...-1c73a08 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindKubeConfigFile

func FindKubeConfigFile() string

Types

type K8sInfoCollector

type K8sInfoCollector struct {
	// contains filtered or unexported fields
}

func NewK8sInfoCollector

func NewK8sInfoCollector(kubeconfig string) (*K8sInfoCollector, error)

func (*K8sInfoCollector) GetPods

func (collector *K8sInfoCollector) GetPods(namePattern string) (selectedPods []v1.Pod, err error)

type KubernetesClientWrapper

type KubernetesClientWrapper struct {
	Clientset *kubernetes.Clientset
}

func NewKubernetesClientWrapper

func NewKubernetesClientWrapper(kubeconfig string) (*KubernetesClientWrapper, error)

func (*KubernetesClientWrapper) CreateDemoDeployment

func (clientProxy *KubernetesClientWrapper) CreateDemoDeployment(deploymentName string) *schema.GroupVersionResource

func (*KubernetesClientWrapper) DeleteDemoDeployment

func (clientProxy *KubernetesClientWrapper) DeleteDemoDeployment(deploymentName string, deploymentRes *schema.GroupVersionResource)

type PodConditionStats

type PodConditionStats struct {
	Type               v1.PodConditionType
	LastTransitionTime metav1.Time
}

type PodConditionStatsList

type PodConditionStatsList struct {
	Items []PodConditionStats
}

Jump to

Keyboard shortcuts

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