util

package
v0.6.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Cross = string(rune(0x274c))
	Tick  = string(rune(0x2714))
	Wait  = string(rune(0x267B))
	Run   = string(rune(0x1F3C3))
	Warn  = string(rune(0x26A0))
	Lock  = string(rune(0x1F512))
	Globe = string(rune(0x1F310))
)

Variables

View Source
var ExecutablePaths map[string]string
View Source
var ExecutableVerifyCommands = map[string][]string{
	"kind":    {"version"},
	"kubectl": {"version", "--client=true"},
	"docker":  {"ps", "-a"},
	"helm":    {"version"},
}

Functions

func CreateDirectoryPath

func CreateDirectoryPath(path string)

func DumpFile

func DumpFile(template, filename string)

func Fatalf

func Fatalf(format string, a ...interface{})

func Printf

func Printf(format string, a ...interface{})

func RunCommand

func RunCommand(cli string, arg ...string) error

func RunCommandCustomIO

func RunCommandCustomIO(cli string, stdout, stderr io.Writer, suppressPrint bool, arg ...string) error

func RunCommandOnStdIO

func RunCommandOnStdIO(cli string, arg ...string) error

func RunCommandWithoutPrint

func RunCommandWithoutPrint(cli string, arg ...string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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