helper

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Helm = helm.New()

Helm is an instance of helm CLI.

Functions

func Byte added in v0.12.0

func Byte(in interface{}) []byte

Byte marshals input to YAML and returns YAML byte slice.

func Contains

func Contains(t string, a []string) bool

Contains checks whether string exists in string slice.

func CreateFile

func CreateFile(p string) (*os.File, error)

CreateFile creates recursively basedir of file and returns created file object.

func Download added in v0.12.0

func Download(file, uri string) error

Download downloads uri to file.

func IsExists added in v0.12.0

func IsExists(s string) bool

IsExists return true if file exists.

func IsURL added in v0.12.0

func IsURL(str string) bool

IsURL reports whether provided string is a valid URL.

func KubeInit added in v0.17.0

func KubeInit() (err error)

KubeInit init kubeconfig for kubedog.

func NewCfg added in v0.12.2

func NewCfg(ns string) (*action.Configuration, error)

NewCfg creates helm internal configuration for provided namespace.

func NewHelm added in v0.12.2

func NewHelm(ns string) (*helm.EnvSettings, error)

NewHelm is a hack to create an instance of helm CLI and specifying namespace without environment variables.

func SaveInterface added in v0.12.0

func SaveInterface(file string, in interface{}) error

SaveInterface encodes input to YAML and saves to file.

func String added in v0.12.0

func String(in interface{}) string

String marshals input to YAML and returns YAML string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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