avocado_i2n.states.btrfs module

Module for the Btrfs state management backend.

SUMMARY

Copyright: Intra2net AG

INTERFACE

class avocado_i2n.states.btrfs.BtrfsBackend[source]

Bases: StateBackend

Backend manipulating states as Btrfs volume snapshots.

classmethod show(params: Params, object: Any = None) None[source]

Return a list of available states of a specific type.

All arguments match the base class.

classmethod get(params: Params, object: Any = None) None[source]

Retrieve a state disregarding the current changes.

All arguments match the base class.

classmethod set(params: Params, object: Any = None) None[source]

Store a state saving the current changes.

All arguments match the base class.

classmethod unset(params: Params, object: Any = None) None[source]

Remove a state with previous changes.

All arguments match the base class.

classmethod check_root(params: Params, object: Any = None) None[source]

Check whether a root state or essentially the object exists.

All arguments match the base class.

classmethod unset_root(params: Params, object: Any = None) None[source]

Unset a root state to prevent object existence.

All arguments match the base class and in addition: