util

package
v0.0.0-...-02c6b06 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandExists

func CommandExists(cmd string) bool

CommandExists checks whether the given command executable exists and returns a boolean result value

func Contains

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

Contains tells whether a contains x.

func Copy

func Copy(src, dst string) (int64, error)

func DownloadFile

func DownloadFile(url, dir string) (filePath string, err error)

func DumpShootLogs

func DumpShootLogs(gardenKubeconfigPath, shootKubeconfigPath, projectNamespace, shootName string) error

func GetFilesByPattern

func GetFilesByPattern(rootDir, filenamePattern string) []string

func GetGroupMapOfRegexMatches

func GetGroupMapOfRegexMatches(re *regexp.Regexp, input string) map[string]string

func ReadLinesFromFile

func ReadLinesFromFile(file io.Reader) <-chan []byte

Types

type CmdOutput

type CmdOutput struct {
	StdOut string
	StdErr string
}

func RunCmd

func RunCmd(command, execPath string) (output CmdOutput, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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