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 implemtnation for a query type.
source code
Variables [hide private]
  _QUERY_IMPL = {constants.QR_CLUSTER: ClusterQuery, constants.Q...
Query type implementations

Imports: constants, errors, query, ExportQuery, NoHooksLU, ClusterQuery, GroupQuery, InstanceQuery, ExtStorageQuery, NetworkQuery, NodeQuery, OsQuery


Function Details [hide private]

_GetQueryImplementation(name)

source code 

Returns the implemtnation 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_INSTANCE: InstanceQu\
ery, constants.QR_NODE: NodeQuery, constants.QR_GROUP: GroupQuery, con\
stants.QR_NETWORK: NetworkQuery, constants.QR_OS: OsQuery, constants.Q\
R_EXTSTORAGE: ExtStorageQuery, constants.QR_EXPORT: ExportQuery,}