utils

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	UNIX_SOCKET_PREFIX  = "unix://"
	VSOCK_SOCKET_PREFIX = "vsock://"
)

Variables

This section is empty.

Functions

func DiskId2Name

func DiskId2Name(id int) string

func Mount

func Mount(src, dst string) error

func RandStr added in v0.8.0

func RandStr(strSize int, randType string) string

func SetReadonly added in v0.7.0

func SetReadonly(rootfs string) error

func SocketConnect added in v0.8.0

func SocketConnect(addr string) (net.Conn, error)

func Umount

func Umount(root string)

func UnixSocketConnect

func UnixSocketConnect(addr string) (conn net.Conn, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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