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

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

__init__(self, paths)
(Constructor)

source code 

Initializes this class.

Parameters:
  • paths (list) - List of file storage paths

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