Dobby
3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
|
Utility interface passed in at the post-construction phase, to allow some final tweaking of the container before it's launched. More...
#include <IDobbyStartState.h>
Public Member Functions | |
virtual int | addFileDescriptor (const std::string &pluginName, int fd)=0 |
Adds another file descriptor to be passed into the container. More... | |
virtual bool | addEnvironmentVariable (const std::string &envVar)=0 |
Adds an environment variable to the container. More... | |
virtual bool | addMount (const std::string &source, const std::string &target, const std::string &fsType, unsigned long mountFlags=0, const std::list< std::string > &mountOptions=std::list< std::string >())=0 |
Adds a new mount to the container. More... | |
virtual std::list< int > | files () const =0 |
Gets all file descriptor registered by any client. More... | |
virtual std::list< int > | files (const std::string &pluginName) const =0 |
Gets all file descriptor registered by concrete client. More... | |
Utility interface passed in at the post-construction phase, to allow some final tweaking of the container before it's launched.
|
pure virtual |
Adds an environment variable to the container.
Simple appends another environment variable to the container
[in] | envVar | The environment variable to set |
Implemented in DobbyStartState.
|
pure virtual |
Adds another file descriptor to be passed into the container.
The number of the file descriptor in the container namespace is returned, unless there was an error in which case a negative value is returned. File descriptors start at 3.
The method dups the supplied file descriptor so it can be closed immmediatly after the call. The file descriptor will be closed after the container is started and handed over.
File descriptors are recorded per client (plugin name).
Lastly to help find issues, this function will log an error and reject the file descriptor if it doesn't have the FD_CLOEXEC bit set.
[in] | pluginName | The plugin name for which fd will be recorded |
[in] | fd | The file descriptor to pass to the container |
Implemented in DobbyStartState.
|
pure virtual |
Adds a new mount to the container.
Adds a mount entry to the config.json for the container.
[in] | source | The source of the mount |
[in] | target | The target mount point |
[in] | fsType | The filesystem type of the mount |
[in] | mountFlags | The mount flags (i.e. MS_BIND, MS_??) |
[in] | mountOptions | Any additional mount options. |
Implemented in DobbyStartState.
|
pure virtual |
Gets all file descriptor registered by any client.
Implemented in DobbyStartState.
|
pure virtual |
Gets all file descriptor registered by concrete client.
[in] | pluginName | RDK plugin name |
Implemented in DobbyStartState.