util

package
v0.0.0-...-77a4cd4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentNamespace

func GetCurrentNamespace(configPath string) string

GetCurrentNamespace returns the current OpenShift namespace or an empty string

func GetKubeConfigPath

func GetKubeConfigPath(kcPath string) string

GetKubeConfigPath returns a valid kubeconfig path

func PrintTable

func PrintTable(columns []*TableColumn)

PrintTable prints a list of TableColumns with auto-sized columns and dividers.

Types

type TableColumn

type TableColumn struct {
	Header string
	Data   []string
}

TableColumn objects can be printed with func PrintTable()

Jump to

Keyboard shortcuts

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