Safe Haskell | Safe-Infered |
---|
Implementation of the Ganeti Query2 job queries.
- 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 :: StringSource
maybeJob :: JSON a => (QueuedJob -> a) -> RuntimeData -> JobId -> ResultEntrySource
maybeJobOpt :: JSON a => (QueuedJob -> Maybe a) -> RuntimeData -> JobId -> ResultEntrySource
jobGetter :: JSON a => (QueuedJob -> a) -> FieldGetter JobId RuntimeDataSource
opsGetter :: JSON a => (QueuedOpCode -> a) -> FieldGetter JobId RuntimeDataSource
opsOptGetter :: JSON a => (QueuedOpCode -> Maybe a) -> FieldGetter JobId RuntimeDataSource
archivedField :: StringSource
wantArchived :: [FilterField] -> BoolSource
Check whether we should look at archived jobs as well.
fieldsMap :: FieldMap JobId RuntimeDataSource
The node fields map.