Documentation ¶
Index ¶
- Constants
- Variables
- func FormatMountLabel(src, mountLabel string) string
- func GetHostIP() string
- func JSONMarshal(v interface{}, safeEncoding bool) ([]byte, error)
- func MatchesContentType(contentType, expectedType string) bool
- func Mount(source string, target string, fstype string, flags uintptr, data string) error
- func PermInt(str string) int
- func RandStr(strSize int, randType string) string
- func SetDaemon(d interface{})
- func UidInt(str string) int
- func UriReader(uri string) (io.ReadCloser, error)
Constants ¶
View Source
const (
APIVERSION = "1.17"
)
Variables ¶
View Source
var ( GITCOMMIT string = "0" VERSION string IAMSTATIC string = "true" INITSHA1 string = "" INITPATH string = "" HYPER_ROOT string HYPER_FILE string HYPER_DAEMON interface{} )
View Source
var (
MS_BIND uintptr = syscall.MS_BIND
)
Functions ¶
func FormatMountLabel ¶
FormatMountLabel returns a string to be used by the mount command. The format of this string will be used to alter the labeling of the mountpoint. The string returned is suitable to be used as the options field of the mount command. If you need to have additional mount point options, you can pass them in as the first parameter. Second parameter is the label that you wish to apply to all content in the mount point.
func JSONMarshal ¶ added in v0.5.0
func MatchesContentType ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.