[−][src]Module transistor::docker
Docker Client module. It contains the DockerClient
for Docker.
DockerClient
Contains the following functions:
state
queries endpoint/
with aGET
. No args.tx_log
requests endpoint/tx-log
viaPOST
. A Vector ofAction
is expected as argument.tx_logs
requests endpoint/tx-log
viaGET
. No args.entity
requests endpoint/entity
viaPOST
. A serializedCruxId
, serializedEdn::Key
or a String containing akeyword
must be passed as argument.entity_tx
requests endpoint/entity-tx
viaPOST
. A serializedCruxId
, serializedEdn::Key
or a String containing akeyword
must be passed as argument.document_by_id
requests endpoint/document/{:content-hash}
viaGET
.{:content-hash}
can be obtained with functionentity_tx
.documents
requests endpoint/documents
viaPOST
. The argument of this reuqest is a vector ofcontent-hashes
that converts to an edn set as a body.query
requests endpoint/query
viaPOST
. Argument is aquery
of the typeQuery
. Retrives a Set containing a vector of the values defined by the functionQuery::find
.
Enum Action
is available in this module.
Examples can be found in the examples directory.
Structs
DockerClient |
|
Enums
Action | Action to perform in Crux. Receives a serialized Edn. |