ganeti

Safe HaskellNone

Ganeti.Query.Query

Contents

Description

Implementation of the Ganeti Query2 functionality.

Synopsis

Helper functions

Main query execution

nameField :: ItemType -> FilterField Source #

Computes the name field for different query types.

uuidField :: ItemType -> FilterField Source #

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

getRequestedNames :: Query -> [String] Source #

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

query Source #

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]] Source #

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