package
Version:
v3.0.1+incompatible
Opens a new window with list of versions in this module.
Published: Oct 31, 2018
License: BSD-3-Clause
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
CheckName checks if name is a valid instance name
ExtractName extracts instance name from an instance:// URI
ProcName returns processus name based on instance name
and username
SetLogFile replaces stdout/stderr streams and redirect content
to log file
type File struct {
Path string `json:"-"`
Pid int `json:"pid"`
PPid int `json:"ppid"`
Name string `json:"name"`
User string `json:"user"`
Image string `json:"image"`
Privileged bool `json:"privileged"`
Config []byte `json:"config"`
}
File represents an instance file storing instance information
Add creates an instance file for a named instance in a privileged
or unprivileged path
Get returns the instance file corresponding to instance name
List returns instance files matching username and/or name pattern
Delete deletes instance file
PrivilegedPath returns if instance file is stored in privileged path or not
Update stores instance information in associated instance file
Source Files
¶
Click to show internal directories.
Click to hide internal directories.