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

Class FileStorage

source code


File storage unit.

Instance Methods [hide private]
 
__init__(self, paths)
Initializes this class.
source code
 
List(self, name, fields)
Returns a list of all entities within the storage unit.
source code

Inherited from _Base: Execute, Modify

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

Static Methods [hide private]
 
_ListInner(path, fields)
Gathers requested information from directory.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, paths)
(Constructor)

source code 

Initializes this class.

Parameters:
  • paths (list) - List of file storage paths
Overrides: object.__init__

List(self, name, fields)

source code 

Returns a list of all entities within the storage unit.

See _Base.List.

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

_ListInner(path, fields)
Static Method

source code 

Gathers requested information from directory.

Parameters:
  • path (string) - Path to directory
  • fields (list) - Requested fields