Struct nydus::upgrade::UpgradeManager
source · pub struct UpgradeManager {}Expand description
Online upgrade manager.
Implementations§
source§impl UpgradeManager
impl UpgradeManager
sourcepub fn new(_: PathBuf) -> UpgradeManager
pub fn new(_: PathBuf) -> UpgradeManager
Create a new instance of UpgradeManager.
sourcepub fn add_mounts_state(
&mut self,
_cmd: FsBackendMountCmd,
_vfs_index: u8
) -> Result<(), Error>
pub fn add_mounts_state( &mut self, _cmd: FsBackendMountCmd, _vfs_index: u8 ) -> Result<(), Error>
Add a filesystem instance into the upgrade manager.
sourcepub fn update_mounts_state(
&mut self,
_cmd: FsBackendMountCmd
) -> Result<(), Error>
pub fn update_mounts_state( &mut self, _cmd: FsBackendMountCmd ) -> Result<(), Error>
Update a filesystem instance in the upgrade manager.
sourcepub fn remove_mounts_state(
&mut self,
_cmd: FsBackendUmountCmd
) -> Result<(), Error>
pub fn remove_mounts_state( &mut self, _cmd: FsBackendUmountCmd ) -> Result<(), Error>
Remove a filesystem instance from the upgrade manager.
sourcepub fn disable_upgrade(&mut self)
pub fn disable_upgrade(&mut self)
Disable online upgrade capability.