|
_GetUnknownField(ctx,
item)
Gets the contents of an unknown field. |
source code
|
|
|
|
list of objects.QueryFieldDefinition
|
|
|
_WrapLogicOp(op_fn,
sentences,
ctx,
item)
Wrapper for logic operator functions. |
source code
|
|
|
_WrapUnaryOp(op_fn,
inner,
ctx,
item)
Wrapper for unary operator functions. |
source code
|
|
|
_WrapBinaryOp(op_fn,
retrieval_fn,
value,
ctx,
item)
Wrapper for binary operator functions. |
source code
|
|
|
_WrapNot(fn,
lhs,
rhs)
Negates the result of a wrapped function. |
source code
|
|
|
_PrepareRegex(pattern)
Compiles a regular expression. |
source code
|
|
|
|
|
_MakeSplitTimestampComparison(fn)
Compares split timestamp values after converting to float. |
source code
|
|
|
_MakeComparisonChecks(fn)
Prepares flag-specific comparisons using a comparison function. |
source code
|
|
callable
|
|
|
_ProcessResult(value)
Converts result values into externally-visible ones. |
source code
|
|
|
|
|
_FieldDictKey((fdef, _, flags, fn))
Generates key for field dictionary. |
source code
|
|
dict
|
|
|
|
|
|
|
|
|
_StaticValueInner(value,
ctx,
_)
Returns a static value. |
source code
|
|
|
_StaticValue(value)
Prepares a function to return a static value. |
source code
|
|
|
|
|
|
|
|
|
_GetNDParam(name)
Return a field function to return an ND parameter out of the context. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_GetNodeHvState(_,
node)
Converts node's hypervisor state for query result. |
source code
|
|
|
_GetNodeDiskState(_,
node)
Converts node's disk state for query result. |
source code
|
|
|
_BuildNodeFields()
Builds list of fields for node queries. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_BuildInstanceFields()
Builds list of fields for instance queries. |
source code
|
|
|
_GetLockOwners(_,
data)
Returns a sorted list of a lock's current owners. |
source code
|
|
|
_GetLockPending(_,
data)
Returns a sorted list of a lock's pending acquires. |
source code
|
|
|
_BuildLockFields()
Builds list of fields for lock queries. |
source code
|
|
|
_BuildGroupFields()
Builds list of fields for node group queries. |
source code
|
|
|
_BuildOsFields()
Builds list of fields for operating system queries. |
source code
|
|
|
_BuildExtStorageFields()
Builds list of fields for extstorage provider queries. |
source code
|
|
|
|
|
|
|
_PerJobOpInner(fn,
job)
Executes a function per opcode in a job. |
source code
|
|
|
|
|
|
|
|
|
_BuildJobFields()
Builds list of fields for job queries. |
source code
|
|
|
_GetExportName(_,
(node_name, expname))
Returns an export name if available. |
source code
|
|
|
_BuildExportFields()
Builds list of fields for exports. |
source code
|
|
|
_ClusterWatcherPause(ctx,
_)
Returns until when watcher is paused (if available). |
source code
|
|
|
_BuildClusterFields()
Builds list of fields for cluster information. |
source code
|
|
|
|
|
_BuildNetworkFields()
Builds list of fields for network queries. |
source code
|
|
|
QFF_HOSTNAME = 0x01
|
|
QFF_IP_ADDRESS = 0x02
|
|
QFF_JOB_ID = 0x04
|
|
QFF_SPLIT_TIMESTAMP = 0x08
|
|
QFF_ALL = QFF_HOSTNAME | QFF_IP_ADDRESS | QFF_JOB_ID | QFF_SPL...
|
|
FIELD_NAME_RE = re.compile(r"^[a-z0-9/._]+$")
|
|
TITLE_RE = re.compile(r"^[^\s]+$")
|
|
DOC_RE = re.compile(r"^[A-Z].*[^.,?!]$")
|
|
_VERIFY_FN = {QFT_UNKNOWN: ht.TNone, QFT_TEXT: ht.TString, QFT...
Verification function for each field type
|
|
_FS_UNKNOWN = object()
|
|
_FS_NODATA = object()
|
|
_FS_UNAVAIL = object()
|
|
_FS_OFFLINE = object()
|
|
_FS_ALL = compat.UniqueFrozenset([_FS_UNKNOWN, _FS_NODATA, _FS...
List of all special status
|
|
_VTToQFT = {constants.VTYPE_STRING: QFT_OTHER, constants.VTYPE...
VType to QFT mapping
|
|
_SERIAL_NO_DOC = "%s object serial number, incremented on each...
|
|
_NODE_SIMPLE_FIELDS = {"drained":("Drained", QFT_BOOL, 0, "Whe...
Fields that are direct attributes of an objects.Node
object
|
|
_NODE_LIVE_FIELDS = {"bootid":("BootID", QFT_TEXT, "bootid", "...
Fields requiring talking to the node
|
|
_INST_SIMPLE_FIELDS = {"disk_template":("Disk_template", QFT_T...
|
|
_GROUP_SIMPLE_FIELDS = {"alloc_policy":("AllocPolicy", QFT_TEX...
|
|
_CLUSTER_VERSION_FIELDS = {"software_version":("SoftwareVersio...
|
|
_CLUSTER_SIMPLE_FIELDS = {"cluster_name":("Name", QFT_TEXT, QF...
|
|
_NETWORK_SIMPLE_FIELDS = {"name":("Network", QFT_TEXT, 0, "Nam...
|
|
_NETWORK_STATS_FIELDS = {"free_count":("FreeCount", QFT_NUMBER...
|
|
CLUSTER_FIELDS = _BuildClusterFields()
Fields for cluster information
|
|
NODE_FIELDS = _BuildNodeFields()
Fields available for node queries
|
|
INSTANCE_FIELDS = _BuildInstanceFields()
Fields available for instance queries
|
|
LOCK_FIELDS = _BuildLockFields()
Fields available for lock queries
|
|
GROUP_FIELDS = _BuildGroupFields()
Fields available for node group queries
|
|
OS_FIELDS = _BuildOsFields()
Fields available for operating system queries
|
|
EXTSTORAGE_FIELDS = _BuildExtStorageFields()
Fields available for extstorage provider queries
|
|
JOB_FIELDS = _BuildJobFields()
Fields available for job queries
|
|
EXPORT_FIELDS = _BuildExportFields()
Fields available for exports
|
|
NETWORK_FIELDS = _BuildNetworkFields()
Fields available for network queries
|
|
ALL_FIELDS = {constants.QR_CLUSTER: CLUSTER_FIELDS, constants....
All available resources
|
|
ALL_FIELD_LISTS = ALL_FIELDS.values()
All available field lists
|