ganeti-3.1: Cluster-based virtualization management software
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ganeti.Query.Query

Description

Implementation of the Ganeti Query2 functionality.

Synopsis

Documentation

query #

Arguments

:: ConfigData

The current configuration

-> Bool

Whether to collect live data

-> Query

The query (item, fields, filter)

-> IO (ErrorResult QueryResult)

Result

Main query execution function.

queryCompat :: QueryResult -> ErrorResult [[JSValue]] #

Classic query converter. It gets a standard query result on input and computes the classic style results.

getRequestedNames :: Query -> [String] #

Checks that we have either requested a valid set of names, or we have a more complex filter.

nameField :: ItemType -> FilterField #

Computes the name field for different query types.

data NoDataRuntime #

The runtime used by queries which retrieve no live data.

uuidField :: ItemType -> FilterField #

Computes the uuid field, or the best possible substitute, for different query types.