Package ganeti :: Module storage :: Class _Base
[hide private]
[frames] | no frames]

Class _Base

source code

Base class for storage abstraction.

Instance Methods [hide private]
 
List(self, name, fields)
Returns a list of all entities within the storage unit.
source code
 
Modify(self, name, changes)
Modifies an entity within the storage unit.
source code
 
Execute(self, name, op)
Executes an operation on an entity within the storage unit.
source code
Method Details [hide private]

List(self, name, fields)

source code 

Returns a list of all entities within the storage unit.

Parameters:
  • name (string or None) - Entity name or None for all
  • fields (list) - List with all requested result fields (order is preserved)

Modify(self, name, changes)

source code 

Modifies an entity within the storage unit.

Parameters:
  • name (string) - Entity name
  • changes (dict) - New field values

Execute(self, name, op)

source code 

Executes an operation on an entity within the storage unit.

Parameters:
  • name (string) - Entity name
  • op (string) - Operation name