23 #include "softwarecontainer-common.h" 24 #include "executable.h" 34 virtual const char *id()
const = 0;
36 virtual bool initialize() = 0;
37 virtual bool create() = 0;
38 virtual bool start(pid_t *pid) = 0;
39 virtual bool stop() = 0;
41 virtual bool shutdown() = 0;
42 virtual bool shutdown(
unsigned int timeout) = 0;
44 virtual bool suspend() = 0;
45 virtual bool resume() = 0;
47 virtual bool destroy() = 0;
48 virtual bool destroy(
unsigned int timeout) = 0;
50 virtual bool mountDevice(
const std::string &pathInHost) = 0;
64 const std::string &pathInContainer,
65 bool readOnly =
true) = 0;
67 virtual bool setEnvironmentVariable(
const std::string &variable,
const std::string &value) = 0;
68 virtual bool setCgroupItem(std::string subsys, std::string value) = 0;
virtual bool bindMountInContainer(const std::string &pathInHost, const std::string &pathInContainer, bool readOnly=true)=0
Tries to bind mount a path from host to container.
Developers guide to adding a config item: