ganeti

Safe HaskellNone

Ganeti.Confd.Types

Description

Implementation of the Ganeti confd types.

Synopsis

Documentation

confdRequestTypeFromRaw :: forall m. Monad m => Int -> m ConfdRequestTypeSource

confdReqFieldFromRaw :: forall m. Monad m => Int -> m ConfdReqFieldSource

data ConfdReqQ Source

Constructors

ConfdReqQ 

Fields

confdReqQIp :: Maybe String
 
confdReqQIpList :: [String]
 
confdReqQLink :: Maybe String
 
confdReqQFields :: [ConfdReqField]
 

loadConfdReqQ :: JSValue -> Result ConfdReqQSource

data ConfdQuery Source

Confd query type. This is complex enough that we can't automatically derive it via THH.

Constructors

EmptyQuery 
PlainQuery String 
DictQuery ConfdReqQ 

Instances

Eq ConfdQuery 
Show ConfdQuery 
Arbitrary ConfdQuery 
JSON ConfdQuery 

confdReplyStatusFromRaw :: forall m. Monad m => Int -> m ConfdReplyStatusSource

confdNodeRoleFromRaw :: forall m. Monad m => Int -> m ConfdNodeRoleSource

confdErrorTypeFromRaw :: forall m. Monad m => Int -> m ConfdErrorTypeSource

newConfdRequest :: ConfdRequestType -> ConfdQuery -> IO ConfdRequestSource

Client side helper function for creating requests. It automatically fills in some default values.

loadConfdReply :: JSValue -> Result ConfdReplySource

data ConfdClient Source

Data type containing information used by the Confd client.

Constructors

ConfdClient 

Fields

hmacKey :: HashKey

The hmac used for authentication

peers :: [String]

The list of nodes to query

serverPort :: PortNumber

The port where confd server is listening