malutils

package
v0.3.28 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) error

func DumpVal

func DumpVal(vals ...interface{})

func GenerateRandomID

func GenerateRandomID() string

GenerateRandomID returns an unique id

func GetHomeDir

func GetHomeDir() string

GetHomeDir returns the home directory TODO: Having this here just strikes me as dangerous, but some of the drivers depend on it ;_;

func GetUsername

func GetUsername() string

func TruncateID

func TruncateID(id string) string

TruncateID returns a shorten id Following two functions are from github.com/docker/docker/utils module. It was way overkill to include the whole module, so we just have these bits that we're using here.

func WaitFor

func WaitFor(f func() bool) error

func WaitForSpecific

func WaitForSpecific(f func() bool, maxAttempts int, waitInterval time.Duration) error

func WaitForSpecificOrError

func WaitForSpecificOrError(f func() (bool, error), maxAttempts int, waitInterval time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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