summaryrefslogtreecommitdiff
path: root/virtual-media/src/system.hpp
diff options
context:
space:
mode:
authorCzarnowski, Przemyslaw <przemyslaw.hawrylewicz.czarnowski@intel.com>2019-12-20 16:15:32 +0300
committerCzarnowski, Przemyslaw <przemyslaw.hawrylewicz.czarnowski@intel.com>2020-01-29 00:58:16 +0300
commit218c41b5f22d68b97d04fec1131208f4af93130e (patch)
treecd2fa4af79cbbb9877ac649247cce8b00b0b2334 /virtual-media/src/system.hpp
parentfc5405d5d65dbe98b89a547304e9d66914973c46 (diff)
downloadprovingground-218c41b5f22d68b97d04fec1131208f4af93130e.tar.xz
Manage remote media state transitions
This is a first part of bigger functionality which provides host to use virtual media. First part provides skeleton and definitions of states and events defining state machine, also brings working implementation of proxy mode and some starting point to implement legacy mode. There are at least three additional patchsets implementing legacy mode with https and cifs support and secure passing of secrets. Specifically this change adds StateMachine class used to keep track state of each mount point: - StateMachine is made as std::variant of object derived from BasicState. - Each state has its own possible transitions defined (events). - Transitions defines appropriate behavior. - Specific event triggers transition from one to other specific state (1:1 relation). Tested: Manual tests on WilsonCity platform: - mounting and unmounting using redfish and webui - check state on dbus interfaces Change-Id: I4b13085e1f8884fcedd7d97e76910c21e87ab7f8 Signed-off-by: Rapkiewicz, Pawel <pawel.rapkiewicz@intel.com> Signed-off-by: Czarnowski, Przemyslaw <przemyslaw.hawrylewicz.czarnowski@intel.com>
Diffstat (limited to 'virtual-media/src/system.hpp')
0 files changed, 0 insertions, 0 deletions