plugin

package
v0.0.0-...-ed44e08 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientset

func GetClientset(configFlags *genericclioptions.ConfigFlags) (*kubernetes.Clientset, error)

GetClientset: get kubernetes clientset for interacting with the kubernetes cluster

func GetNamespaces

func GetNamespaces(clientset *kubernetes.Clientset, outputCh chan NamespaceResult)

GetNamespaces: return list of namespaces in the cluster

func GetPodLogs

func GetPodLogs(clientset *kubernetes.Clientset, grep, container, pod, namespace string, follow, onlyMatch bool) error

GetPodLogs: return logs from the provided pod

func GetPods

func GetPods(clientset *kubernetes.Clientset, namespace string, outputCh chan PodResult)

GetPods: return list of pods in the cluster

Types

type NamespaceResult

type NamespaceResult struct {
	Value v1.Namespace
	Err   error
}

type PodResult

type PodResult struct {
	Value v1.Pod
	Err   error
}

Jump to

Keyboard shortcuts

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