Documentation
¶
Index ¶
- func CopyFile(src string, dst string) error
- func CreateDirectories() error
- func DirExists(dirname string) bool
- func ExecForeground(command string, args ...string) (int, error)
- func ExecuteCommand(command string, args ...string) (string, error)
- func FileExists(filename string) bool
- func FileIsEmpty(file string) (bool, error)
- func IsEmptyString(input string) bool
- func MatchPrefix(prefix string, fields ...string) []string
- func NewMAC(buffer *[]string) error
- func NewOutput() *output
- func PathExists(path string) (bool, os.FileInfo)
- func RandomName() string
- func TestRoot() (bool, error)
- type MountPoint
- type Prefixer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirectories ¶
func CreateDirectories() error
Creates the /var/lib/firecracker/{vm,image,kernel} directories
func FileExists ¶
func FileIsEmpty ¶
FileIsEmpty returns true if the file is empty
func IsEmptyString ¶
func MatchPrefix ¶
func RandomName ¶
func RandomName() string
Types ¶
type MountPoint ¶
type MountPoint struct {
Path string
}
func Mount ¶
func Mount(volume string) (*MountPoint, error)
func (*MountPoint) Umount ¶
func (mp *MountPoint) Umount() error
Click to show internal directories.
Click to hide internal directories.