Documentation ¶
Index ¶
- func FilterOutput(lines []string, search string, stripHeader bool) []string
- func GetClientset(kubeconfig string) *kubernetes.Clientset
- func GetMatchingPods(service string, namespace string, context string, labels string) []string
- func GetPodPrompt(podInfos []PodInfo, helpMessage string) promptui.Select
- func GetPods(namespace string, context string, labels string) []string
- func GetServicePods(service string, namespace string, context string, labels string) []string
- func InteractiveCommand(name string, args ...string)
- func K8sCommandArgs(args []string, namespace string, context string, labels string) []string
- func KeysString(m map[string]string) string
- func RawK8sOutput(namespace string, context string, labels string, args ...string) []string
- func RunCommand(name string, args ...string) []string
- func StreamCommand(c chan string, prefix string, name string, args ...string)
- type Age
- type ColorManager
- type OutputManager
- type PodInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientset ¶
func GetClientset(kubeconfig string) *kubernetes.Clientset
func GetMatchingPods ¶
func GetPodPrompt ¶ added in v0.3.0
func GetServicePods ¶
func InteractiveCommand ¶
func K8sCommandArgs ¶
func KeysString ¶ added in v0.2.1
func RawK8sOutput ¶
func RunCommand ¶
Types ¶
type ColorManager ¶
func (*ColorManager) Colorize ¶
func (cm *ColorManager) Colorize(s string) string
func (*ColorManager) GetColor ¶
func (cm *ColorManager) GetColor() color.Attribute
func (*ColorManager) GetPrefix ¶
func (cm *ColorManager) GetPrefix(prefix string) string
type OutputManager ¶
type OutputManager struct { sync.RWMutex HeaderColumns []string // contains filtered or unexported fields }
func (*OutputManager) Append ¶
func (o *OutputManager) Append(s ...string)
func (*OutputManager) FormattedStringSlice ¶ added in v0.2.1
func (o *OutputManager) FormattedStringSlice() []string
func (*OutputManager) GetOutput ¶
func (o *OutputManager) GetOutput() []string
func (*OutputManager) HeaderLine ¶ added in v0.2.1
func (o *OutputManager) HeaderLine() string
func (*OutputManager) Print ¶
func (o *OutputManager) Print()
Click to show internal directories.
Click to hide internal directories.