plugin

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunPlugin

func RunPlugin(configFlags *genericclioptions.ConfigFlags, outputCh chan string, allNamespacesFlag bool, labelFlag string) error

Types

type AllInfo

type AllInfo struct {
	Node          *v1.Node
	DeployList    *appsv1.DeploymentList
	StsList       *appsv1.StatefulSetList
	DsList        *appsv1.DaemonSetList
	SvcList       *v1.ServiceList
	IngList       *netv1.IngressList
	PvcList       *v1.PersistentVolumeClaimList
	ConfigMapList *v1.ConfigMapList
	SecretList    *v1.SecretList
	Hpa           *autov1.HorizontalPodAutoscaler
	Pdbs          []*policyv1.PodDisruptionBudget
	Workload      Workload
}

type SnifferPlugin

type SnifferPlugin struct {
	Clientset     *kubernetes.Clientset
	PodObject     *v1.Pod
	LabelSelector string
	AllInfo       AllInfo
	// contains filtered or unexported fields
}

func NewSnifferPlugin

func NewSnifferPlugin(configFlags *genericclioptions.ConfigFlags) (*SnifferPlugin, error)

type Workload

type Workload struct {
	Type     string
	Name     string
	Replicas string
	Status   bool
}

Jump to

Keyboard shortcuts

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