[][src]Trait ttstack::model::Storage

pub trait Storage {
    pub fn create_image(&self, vm: &mut Vm) -> Result<()>;
pub fn destroy_image(&self, vm: &mut Vm) -> Result<()>;
pub fn create_snapshot(
        &self,
        vm: &mut Vm,
        snapshot: &Snapshot
    ) -> Result<String>;
pub fn destroy_snapshot(&self, vm: &Vm, snapshot_path: &str) -> Result<()>;
pub fn apply_snapshot(&self, vm: &Vm, snapshot: &Snapshot) -> Result<()>; }

This trait describes how to manage the 'runtime image'.

Required methods

pub fn create_image(&self, vm: &mut Vm) -> Result<()>[src]

Create a runtime image from it's template.

pub fn destroy_image(&self, vm: &mut Vm) -> Result<()>[src]

Destroy a runtime image.

pub fn create_snapshot(
    &self,
    vm: &mut Vm,
    snapshot: &Snapshot
) -> Result<String>
[src]

Add a snapshot for the runtime image.

pub fn destroy_snapshot(&self, vm: &Vm, snapshot_path: &str) -> Result<()>[src]

Delete a snapshot of the runtime image.

pub fn apply_snapshot(&self, vm: &Vm, snapshot: &Snapshot) -> Result<()>[src]

Revert to the state of this snapshot.

Loading content...

Implementors

Loading content...