|
|
|
|
|
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 | | QueryNodes | | QueryJobs | | QueryClusterInfo | | SubmitManyJobs | |
|
|
|
|
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.
|
|
|
:: LuxiOp | The method
| -> JSValue | The arguments
| -> 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.4.2 |