util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountDecimal

func ByteCountDecimal(b int64) string

func CopyFile

func CopyFile(src string, dst string) error

func CreateDirectories

func CreateDirectories() error

Creates the /var/lib/firecracker/{vm,image,kernel} directories

func DirExists

func DirExists(dirname string) bool

func ExecForeground

func ExecForeground(command string, args ...string) (int, error)

func ExecuteCommand

func ExecuteCommand(command string, args ...string) (string, error)

func FileExists

func FileExists(filename string) bool

func IsEmptyString

func IsEmptyString(input string) bool

func MatchPrefix

func MatchPrefix(prefix string, fields ...string) []string

func NewID

func NewID(baseDir string) (string, error)

Creates a new 8-byte ID and return it as a string

func NewMAC

func NewMAC(buffer *[]string) error

Fills the given string slice with unique MAC addresses

func NewName

func NewName(s *string)

func NewOutput

func NewOutput() *output

func PathExists

func PathExists(path string) (bool, os.FileInfo)

Types

This section is empty.

Jump to

Keyboard shortcuts

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