Liking cljdoc? Tell your friends :D

hive-compose.addon

IAddon hive.compose. Construction is pure. initialize! reads the config and profiles file, loads the active map and starts the reaper; shutdown! stops the reaper. Containers and host programs are never touched by the lifecycle itself.

The reaper is one daemon thread waking every :compose/tick-seconds. Its first pass adopts running stacks of configured profiles (when :compose/adopt?); every pass forgets profiles taken down outside the addon and releases the ones idle past their TTL.

Config: see hive-compose.promote.config. :compose/engine injects an IComposeEngine in place of the docker CLI, :compose/runner an IProgramRunner in place of the host one.

IAddon `hive.compose`. Construction is pure. `initialize!` reads the config
and profiles file, loads the active map and starts the reaper; `shutdown!`
stops the reaper. Containers and host programs are never touched by the
lifecycle itself.

The reaper is one daemon thread waking every `:compose/tick-seconds`. Its first
pass adopts running stacks of configured profiles (when `:compose/adopt?`);
every pass forgets profiles taken down outside the addon and releases the ones
idle past their TTL.

Config: see `hive-compose.promote.config`. `:compose/engine` injects an
IComposeEngine in place of the docker CLI, `:compose/runner` an
IProgramRunner in place of the host one.
raw docstring

addon-ctorclj

(addon-ctor config)

hive-addon.mount constructor: config -> uninitialized IAddon.

hive-addon.mount constructor: config -> uninitialized IAddon.
sourceraw docstring

addon-id-valueclj

source

command-helpclj

One line per command: what it does and the params it reads.

One line per command: what it does and the params it reads.
sourceraw docstring

commandsclj

source

make-addonclj

(make-addon)
(make-addon seed)

Uninitialized IAddon. No thread, file or container is touched.

Uninitialized IAddon. No thread, file or container is touched.
sourceraw docstring

reload!clj

(reload! {:keys [state]})

Re-read config and profiles file into the running context, keeping the active map. Result<{:profiles n}>.

Re-read config and profiles file into the running context, keeping the
active map. Result<{:profiles n}>.
sourceraw docstring

tick!clj

(tick! {:keys [state]})

One reaper pass on the calling thread: adopt once, then reap. Answers the pass, or {:skipped ..} when not active or a pass is running.

One reaper pass on the calling thread: adopt once, then reap. Answers the
pass, or {:skipped ..} when not active or a pass is running.
sourceraw docstring

toolclj

(tool a)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close