Package ganeti :: Package cmdlib :: Module query
[hide private]
[frames] | no frames]

Module query

source code

Logical units for queries.

Classes [hide private]
  LUQuery
Query for resources/items of a certain kind.
  LUQueryFields
Query for resources/items of a certain kind.
Functions [hide private]
 
_GetQueryImplementation(name)
Returns the implementation for a query type.
source code
Variables [hide private]
  _QUERY_IMPL = {constants.QR_CLUSTER: ClusterQuery, constants.Q...
Query type implementations

Imports: constants, errors, query, NoHooksLU, ClusterQuery, ExtStorageQuery, OsQuery


Function Details [hide private]

_GetQueryImplementation(name)

source code 

Returns the implementation for a query type.

Parameters:
  • name - Query type, must be one of constants.QR_VIA_OP

Variables Details [hide private]

_QUERY_IMPL

Query type implementations

Value:
{constants.QR_CLUSTER: ClusterQuery, constants.QR_OS: OsQuery, constan\
ts.QR_EXTSTORAGE: ExtStorageQuery,}