23 #ifndef DOBBYSTARTSTATE_H
24 #define DOBBYSTARTSTATE_H
26 #include <ContainerId.h>
27 #include <IDobbyStartState.h>
52 const std::list<int>&
files);
63 bool addMount(
const std::string& source,
64 const std::string& target,
65 const std::string& fsType,
66 unsigned long mountFlags,
67 const std::list<std::string>& mountOptions)
override;
69 std::list<int>
files()
const override;
71 std::list<int>
files(
const std::string& pluginName)
const override;
74 const std::shared_ptr<DobbyConfig> mConfig;
75 std::list<std::pair<std::string, int>> mFiles;
77 mutable std::mutex mLock;
Interface that configuration file parser classes have to implement.
Definition: DobbyConfig.h:66
Stores the start state of the container.
Definition: DobbyStartState.h:49
bool addMount(const std::string &source, const std::string &target, const std::string &fsType, unsigned long mountFlags, const std::list< std::string > &mountOptions) override
Adds a new mount to the container.
Definition: DobbyStartState.cpp:221
bool addEnvironmentVariable(const std::string &envVar) override
Adds an environment variable to the container.
Definition: DobbyStartState.cpp:196
int addFileDescriptor(const std::string &pluginName, int fd) override
Adds another file descriptor to be passed into the container.
Definition: DobbyStartState.cpp:155
std::list< int > files() const override
Gets all file descriptor registered by any client.
Definition: DobbyStartState.cpp:91
Utility interface passed in at the post-construction phase, to allow some final tweaking of the conta...
Definition: IDobbyStartState.h:40