kube

package
v0.0.0-...-9caa69f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CONFIG config

Functions

func ColumnHelperAge

func ColumnHelperAge(t metav1.Time) string

Column helper: Age

func ColumnHelperReady

func ColumnHelperReady(cs []v1.ContainerStatus) string

Column helper: Ready

func ColumnHelperRestarts

func ColumnHelperRestarts(cs []v1.ContainerStatus) string

Column helper: Restarts

func ColumnHelperStatus

func ColumnHelperStatus(s v1.PodStatus) string

Column helper: Status

func DeletePod

func DeletePod(p string) error

Delete pod

func GetClientSet

func GetClientSet() *kubernetes.Clientset

Get Kubernetes client set

func GetConfig

func GetConfig() config

Get configuration

func GetFieldString

func GetFieldString(e *v1.ContainerStatus, field string) string

Get Field String

func GetHostName

func GetHostName() string

Get host name on which x-tracer is running

func GetNamespaces

func GetNamespaces() (*v1.NamespaceList, error)

Get namespaces

func GetNodeIp

func GetNodeIp() string

func GetPodContainerLogs

func GetPodContainerLogs(p string, c string, o io.Writer) error

Get pod container logs

func GetPodContainersID

func GetPodContainersID(p string) []string

func GetPodContainersName

func GetPodContainersName(p string) []string

Get the pod containers

func GetPods

func GetPods() (*v1.PodList, error)

Get pods (use namespace)

func GetTargetNode

func GetTargetNode(p string) string

func StartAgent

func StartAgent(g *gocui.Gui, p string, o io.Writer, probes string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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