utils

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2017 License: Apache-2.0 Imports: 9 Imported by: 8 modules, 26 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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