Documentation ¶
Index ¶
- func Cat(filePath string)
- func CreateConfigFile(homePath string)
- func ExecuteJsonPath(data interface{}, jsonPathTemplate string)
- func Exists(path string) (bool, error)
- func ExtractLabel(_labels map[string]string, _label string) string
- func ExtractLabels(_labels map[string]string) string
- func FormatDiffTime(diff time.Duration) string
- func GetAge(resourcefilePath string, resourceCreationTimeStamp v1.Time) string
- func GetData(data [][]string, allNamespacesFlag bool, showLabels bool, labels string, ...) [][]string
- func GetJsonTemplate(outputStringVar string) string
- func IsDirectory(path string) (bool, error)
- func MatchLabels(labels string, selector string) bool
- func PrintOutput(resource interface{}, columns int16, outputFlag string, resourceName string, ...) bool
- func PrintTable(headers []string, data [][]string)
- func RandString(length int) string
- func ReadYaml(YamlPath string) []byte
- func StringInSlice(a string, list []string) bool
- func StringWithCharset(length int, charset string) string
- type Contexts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfigFile ¶
func CreateConfigFile(homePath string)
func ExecuteJsonPath ¶
func ExecuteJsonPath(data interface{}, jsonPathTemplate string)
func ExtractLabels ¶
func FormatDiffTime ¶
func GetJsonTemplate ¶
func IsDirectory ¶
func MatchLabels ¶ added in v1.3.0
func PrintOutput ¶
func PrintTable ¶
func RandString ¶
func ReadYaml ¶
doing this because of a bug who append three characthers to the first node yaml file
func StringInSlice ¶ added in v1.3.0
Types ¶
Click to show internal directories.
Click to hide internal directories.