utils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckValidDir

func CheckValidDir(inPath string) error

func CheckValidFile

func CheckValidFile(inPath string) error

func CheckVersionConstraint added in v0.2.0

func CheckVersionConstraint(version, constraint string) bool

func Command added in v0.2.0

func Command(name string, arg ...string) *exec.Cmd

Command creates an exec.Cmd instance like exec.Command does - it fills only Path and Args fields. But the difference is that the binary in current working directory takes precedence over the binary in PATH.

func GetK8sBuildAssetDir added in v0.2.0

func GetK8sBuildAssetDir() (string, error)

func GetK8sBuildOutputDir added in v0.1.1

func GetK8sBuildOutputDir() (string, error)

func GetKubeconfigPath added in v0.2.1

func GetKubeconfigPath(kubeSpawnDir, clusterName string) string

func GetValidGoPath

func GetValidGoPath() (string, error)

func IsTerminal

func IsTerminal(fd uintptr) bool

IsTerminal returns true if the given file descriptor is a terminal.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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