api

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

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

Go to latest
Published: Oct 13, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubernetesClient

func GetKubernetesClient() kubernetes.Interface

GetKubernetesClient generate kubernetes local client

func GetNamespaceNames

func GetNamespaceNames(namespaces *v1.NamespaceList) []string

GetNamespaceNames generate list of ns name from k8s nsList

func RunPrompt

func RunPrompt(strs []string, label string) (string, error)

RunPrompt generate prompt with given array and label

Types

type NamespaceList

type NamespaceList struct {
	Namespaces []string `json:"namespaces"`
}

Generated by https://quicktype.io

type PodList

type PodList struct {
	Pods []string `json:"pods"`
}

Jump to

Keyboard shortcuts

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