util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: UPL-1.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubeconfig

func GetKubeconfig() string

GetKubeconfig returns the KubeConfig in string format

func Kubectl

func Kubectl(args string) (string, string)

Kubectl runs kubectl in an external process, captures the stdout and stderr, as well as streaming them to the real output streams in real time

func RunCommand

func RunCommand(commandLine string) (string, string)

RunCommand runs an external process, captures the stdout and stderr, as well as streaming them to the real output streams in real time

func ToYaml

func ToYaml(obj interface{}) ([]byte, error)

ToYaml marshalls the obj to a yaml

func WriteYaml

func WriteYaml(path string, obj interface{}) (string, error)

WriteYaml writes/marshalls the obj to a yaml file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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