Safe Haskell | None |
---|
Implementation of the Ganeti Query2 job queries.
Synopsis
- type RuntimeData = Result (QueuedJob, Bool)
- jobPrioDoc :: String
- tsDoc :: String -> String
- maybeJob :: JSON a => (QueuedJob -> a) -> RuntimeData -> JobId -> ResultEntry
- maybeJobOpt :: JSON a => (QueuedJob -> Maybe a) -> RuntimeData -> JobId -> ResultEntry
- jobGetter :: JSON a => (QueuedJob -> a) -> FieldGetter JobId RuntimeData
- opsGetter :: JSON a => (QueuedOpCode -> a) -> FieldGetter JobId RuntimeData
- opsOptGetter :: JSON a => (QueuedOpCode -> Maybe a) -> FieldGetter JobId RuntimeData
- archivedField :: String
- wantArchived :: [FilterField] -> Bool
- jobFields :: FieldList JobId RuntimeData
- fieldsMap :: FieldMap JobId RuntimeData
Documentation
type RuntimeData = Result (QueuedJob, Bool) Source #
The runtime data for a job.
jobPrioDoc :: String Source #
Job priority explanation.
maybeJob :: JSON a => (QueuedJob -> a) -> RuntimeData -> JobId -> ResultEntry Source #
Wrapper for unavailable job.
maybeJobOpt :: JSON a => (QueuedJob -> Maybe a) -> RuntimeData -> JobId -> ResultEntry Source #
Wrapper for optional fields that should become unavailable.
jobGetter :: JSON a => (QueuedJob -> a) -> FieldGetter JobId RuntimeData Source #
Simple helper for a job getter.
opsGetter :: JSON a => (QueuedOpCode -> a) -> FieldGetter JobId RuntimeData Source #
Simple helper for a per-opcode getter.
opsOptGetter :: JSON a => (QueuedOpCode -> Maybe a) -> FieldGetter JobId RuntimeData Source #
Simple helper for a per-opcode optional field getter.
archivedField :: String Source #
Archived field name.
wantArchived :: [FilterField] -> Bool Source #
Check whether we should look at archived jobs as well.