kube

package
v0.0.0-...-9042c51 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInClusterConfig

func GetInClusterConfig() *rest.Config

GetInClusterConfig returns the Kubernetes cluster configuration

func GetKubeClientset

func GetKubeClientset(cfg *rest.Config) *kubernetes.Clientset

GetKubeClientset returns a Kubernetes Clientset

func GetPods

func GetPods(cs *kubernetes.Clientset, ns string) *v1.PodList

GetPods returns a list of pods in the cluster

Types

type KubePod

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

func CreateKubePods

func CreateKubePods(podList *v1.PodList) []KubePod

func NewKubePod

func NewKubePod(name string, restarts int32, age time.Duration) *KubePod

func SortKubePods

func SortKubePods(kubes []KubePod, sortBy string) []KubePod

func (*KubePod) String

func (k *KubePod) String() string

Jump to

Keyboard shortcuts

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