utils

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTableRowColor

func GetTableRowColor(color string) tablewriter.Colors

Get a tablewriter color depending of a given ID

func GetTableWriter

func GetTableWriter(header []string) *tablewriter.Table

Generate a writer for tablewriter

func LoadConfig

func LoadConfig() error

Load configuration file

func OutputHelm

func OutputHelm(releases []helm.Release)

func OutputKube

func OutputKube(krs []kube.KubeResource)

func OutputResult

func OutputResult(data interface{}, outputType string) error

Output any struct to json or yaml

func SaveToCSV

func SaveToCSV(filename, data interface{}) error

Dump data to CSV file

func SelfUpdate

func SelfUpdate(version string) error

Update the binary version if a newer is found

func StringInSlice

func StringInSlice(a string, list []string) bool

Search for a string in a slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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