LXCContainer

struct LXCContainer {}

Constructors

this
this(string name, string configPath = null)
this
this(lxc_container* container)

Destructor

~this
~this()

Members

Functions

addDeviceNode
OpStatus addDeviceNode(string sourcePath, string destPath)
addRef
OpStatus addRef()
attach
OpStatus attach(lxc_attach_exec_t execFunction, void* execPayload, AttachOptions attachOptions, pid_t* attachedProcess)
attachInterface
OpStatus attachInterface(string dev, string destDev)
attachRunWait
OpStatus attachRunWait(AttachOptions attachOptions, string program, string[] args)
checkpoint
OpStatus checkpoint(string directory, bool stop, bool verbose = false)
clearConfig
void clearConfig()
clearConfigItem
OpStatus clearConfigItem(string key)
clone
LXCContainer clone(string newName, string lxcPath, int flags, string bDevType, ubyte[] bDevData, ulong newSize, string[] hookArgs)
configFile
string configFile()
configFileName
string configFileName()
console
OpStatus console(int ttyNum, int stdinfd, int stdoutfd, int stderrfd, int escape)
consoleGetFD
auto consoleGetFD()
create
OpStatus create(string t, string bdevType, BackingDeviceSpec specs, CreateFlags flags, string[] args)
destroy
OpStatus destroy()
destroyWithSnapshots
OpStatus destroyWithSnapshots()
detachInterface
OpStatus detachInterface(string dev, string destDev)
dropRef
OpStatus dropRef()
freeze
OpStatus freeze()
getCGroupItem
string getCGroupItem(string subsys)
getConfigItem
string getConfigItem(string key)
getConfigPath
string getConfigPath()
getIPs
string[] getIPs(string interfaceString, string family, int scopeID)
getInterfaces
string[] getInterfaces()
getKeys
string getKeys(string keyPrefix)
getRunningConfigItem
string getRunningConfigItem(string key)
initPid
pid_t initPid()
isDefined
bool isDefined()
isRunning
bool isRunning()
listSnapshots
SnapShot[] listSnapshots()
loadConfig
OpStatus loadConfig(string filename)
mayControl
bool mayControl()
migrate
OpStatus migrate(MigrateCommand command, MigrateOptions migrateOptions, uint size)
name
string name()
pidFile
string pidFile()
reboot
OpStatus reboot()
removeDeviceNode
OpStatus removeDeviceNode(string sourcePath, string destPath)
rename
OpStatus rename(string newName)
restore
OpStatus restore(string directory, bool verbose = false)
saveConfig
OpStatus saveConfig(string altFile)
setCGroupItem
OpStatus setCGroupItem(string subsys, string value)
setConfigItem
OpStatus setConfigItem(string key, string value)
setConfigPath
OpStatus setConfigPath(string path)
shutdown
OpStatus shutdown(Duration timeout)
snapShot
OpStatus snapShot(string commentFile)
snaphotDestroyAll
OpStatus snaphotDestroyAll()
snapshotDestroy
OpStatus snapshotDestroy(string name)
snapshotRestore
OpStatus snapshotRestore(string snapName, string newName)
start
OpStatus start(bool useInit = false, string[] args = cast(string[])[])
state
string state()
stop
OpStatus stop()
unfreeze
OpStatus unfreeze()
wait
OpStatus wait(string state, Duration timeout)
wantCloseAllFDs
OpStatus wantCloseAllFDs(bool closeAll = true)
wantDaemonize
OpStatus wantDaemonize(bool daemonize = true)

Variables

container
lxc_container* container

Meta