|
|
|
|
|
Description |
Implementation of the Ganeti LUXI interface.
|
|
Synopsis |
|
|
|
|
Utility functions
|
|
withTimeout :: Int -> String -> IO a -> IO a | Source |
|
Wrapper over System.Timeout.timeout that fails in the IO monad.
|
|
Generic protocol functionality
|
|
|
Currently supported Luxi operations.
| Constructors | QueryInstances [String] [String] Bool | | QueryNodes [String] [String] Bool | | QueryGroups [String] [String] Bool | | QueryJobs [Int] [String] | | QueryExports [String] Bool | | QueryConfigValues [String] | | QueryClusterInfo | | QueryTags String String | | SubmitJob [OpCode] | | SubmitManyJobs [[OpCode]] | | WaitForJobChange Int [String] JSValue JSValue Int | | ArchiveJob Int | | AutoArchiveJobs Int Int | | CancelJob Int | | SetDrainFlag Bool | | SetWatcherPause Double | |
|
|
|
|
The serialisation of LuxiOps into strings in messages.
|
|
|
The end-of-message separator.
|
|
|
Valid keys in the requests and responses.
| Constructors | |
|
|
|
The serialisation of MsgKeys into strings in messages.
|
|
|
Luxi client encapsulation.
| Constructors | Client | | socket :: Socket | The socket of the client
| rbuf :: IORef String | Already received buffer
|
|
|
|
|
|
Connects to the master daemon and returns a luxi Client.
|
|
|
Closes the client socket.
|
|
|
Sends a message over a luxi transport.
|
|
|
Waits for a message over a luxi transport.
|
|
|
Compute the serialized form of a Luxi operation.
|
|
|
:: LuxiOp | The method
| -> String | The serialized form
| Serialize a request to String.
|
|
|
|
Check that luxi responses contain the required keys and that the
call was successful.
|
|
|
Generic luxi method call.
|
|
|
Specialized submitManyJobs call.
|
|
|
Custom queryJobs call.
|
|
Produced by Haddock version 2.6.0 |