cli

package
v0.0.0-...-5ab5535 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SupportTypes = map[string][]string{
		"Node":                  {"no", "node", "nodes"},
		"Pod":                   {"po", "pod", "pods"},
		"Service":               {"svc", "service", "services"},
		"Deployment":            {"deploy", "deployment", "deployments"},
		"DaemonSet":             {"ds", "daemonset", "daemonsets"},
		"ReplicaSet":            {"rs", "replicaset", "replicasets"},
		"Event":                 {"event", "events"},
		"PersistentVolume":      {"pv", "persistentvolumes"},
		"PersistentVolumeClaim": {"pvc", "persistentvolumeclaim", "persistentvolumeclaims"},
		"StatefulSet":           {"sts", "statefulset", "statefulsets"},
		"Secret":                {"secrets", "secret"},
		"ConfigMap":             {"cm", "configmap", "configmaps"},
		"ServiceAccount":        {"sa", "serviceaccount", "serviceaccounts"},
		"Ingress":               {"ing", "ingress", "ingresses"},
		"StorageClass":          {"sc", "storageclass", "storageclasses"},
		"ClusterRole":           {"clusterrole", "clusterroles"},
		"ClusterRoleBinding":    {"clusterrolebinding", "clusterrolebindings"},
		"Endpoints":             {"ep", "endpoint", "endpoints"},
		"Job":                   {"job", "jobs"},
		"CronJob":               {"cj", "cronjob", "cronjobs"},
		"Role":                  {"role", "roles"},
		"RoleBinding":           {"rolebinding", "rolebindings"},
	}

	DumpFileNames = map[string]string{
		"Node":                  "nodes",
		"Pod":                   "pods",
		"Service":               "services",
		"Deployment":            "deployments",
		"DaemonSet":             "daemonsets",
		"ReplicaSet":            "replicasets",
		"Event":                 "events",
		"PersistentVolume":      "pv",
		"PersistentVolumeClaim": "pvc",
		"StatefulSet":           "statefulsets",
		"Secret":                "secrets",
		"ConfigMap":             "configmaps",
		"ServiceAccount":        "serviceaccounts",
		"Ingress":               "ingresses",
		"StorageClass":          "sc",
		"ClusterRole":           "clusterroles",
		"ClusterRoleBinding":    "clusterrolebindings",
		"Endpoints":             "endpoints",
		"Job":                   "jobs",
		"CronJob":               "cronjobs",
		"Role":                  "roles",
		"RoleBinding":           "rolebindings",
	}

	UnnamespacedTypes = []string{"Node", "PersistentVolume", "StorageClass", "ClusterRole", "ClusterRoleBinding"}
)

Functions

func Execute

func Execute()

Types

type ExtraInfoDumpOptions

type ExtraInfoDumpOptions struct {
	NetworkingClient networkingclient.NetworkingV1Interface
	StorageClient    storageclient.StorageV1Interface
	BatchClient      batchclient.BatchV1Interface
	RbacClient       *rbacclient.RbacV1Client
	ClusterInfoDumpOptions
}

func (*ExtraInfoDumpOptions) CompleteExtra

func (o *ExtraInfoDumpOptions) CompleteExtra(restClientGetter genericclioptions.RESTClientGetter, cmd *cobra.Command) error

type PickItem

type PickItem func(string, string, string, string) []interface{}

type ProcessBuffer

type ProcessBuffer func(string)

Jump to

Keyboard shortcuts

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