Package ganeti :: Package storage :: Module container :: 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

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

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