Liking cljdoc? Tell your friends :D

pallet.core.primitives

Base operation primitives for pallet.

Base operation primitives for pallet.
raw docstring

async-fsmclj

(async-fsm f)

Returns a FSM specification for running the specified function in a future. Assumes failures in the underlying function cause an exception to be thrown, and that the function takes no arguments.

Returns a FSM specification for running the specified function in a future.
Assumes failures in the underlying function cause an exception to be thrown,
and that the function takes no arguments.
sourceraw docstring

bootstrapped-metaclj

Executes on bootstrapped nodes, with admin user credentials.

Executes on bootstrapped nodes, with admin user credentials.
sourceraw docstring

build-and-execute-phaseclj

(build-and-execute-phase service-state
                         plan-state
                         environment
                         phase
                         targets
                         execution-settings-f)

Build and execute the specified phase.

target-type : specifies the type of target to run the phase on, :group, :group-nodes, or :group-node-list.

Build and execute the specified phase.

`target-type`
: specifies the type of target to run the phase on, :group, :group-nodes,
or :group-node-list.
sourceraw docstring

create-group-nodesclj

(create-group-nodes compute-service environment group-counts)

Create nodes for groups.

Create nodes for groups.
sourceraw docstring

create-nodesclj

(create-nodes compute-service environment group count)

Create count nodes for a group.

Create `count` nodes for a `group`.
sourceraw docstring

default-phase-metaclj

The bootstrap phase is executed with the image credentials, and only not flagged with a :bootstrapped keyword.

The bootstrap phase is executed with the image credentials, and
only not flagged with a :bootstrapped keyword.
sourceraw docstring

execute-action-planclj

(execute-action-plan service-state
                     plan-state
                     environment
                     execution-settings-f
                     {:keys [action-plan phase target-type target]
                      :as action-plan-map})

Executes an action-plan on the specified node.

Executes an action-plan on the specified node.
sourceraw docstring

execute-action-plansclj

(execute-action-plans service-state
                      plan-state
                      environment
                      execution-settings-f
                      action-plans)

Execute action-plans, a sequence of action-plan maps. execution-settings-f is a function of target, that returns a map with :user, :executor and :executor-status-fn keys.

Execute `action-plans`, a sequence of action-plan maps.
`execution-settings-f` is a function of target, that returns a map with
:user, :executor and :executor-status-fn keys.
sourceraw docstring

execute-and-flagclj

(execute-and-flag state-flag)
(execute-and-flag state-flag execute-f)

Return a phase execution function, that will execute a phase on nodes that don't have the specified state flag set. On successful completion the nodes have the state flag set.

Return a phase execution function, that will execute a phase on nodes that
don't have the specified state flag set. On successful completion the nodes
have the state flag set.
sourceraw docstring

execute-on-filteredclj

(execute-on-filtered filter-f execute-f)

Return a phase execution function, that will execute a phase on nodes that have the specified state flag set.

Return a phase execution function, that will execute a phase on nodes that
have the specified state flag set.
sourceraw docstring

execute-on-flaggedclj

(execute-on-flagged state-flag)
(execute-on-flagged state-flag execute-f)

Return a phase execution function, that will execute a phase on nodes that have the specified state flag set.

Return a phase execution function, that will execute a phase on nodes that
have the specified state flag set.
sourceraw docstring

execute-on-unflaggedclj

(execute-on-unflagged state-flag)
(execute-on-unflagged state-flag execute-f)

Return a phase execution function, that will execute a phase on nodes that have the specified state flag set.

Return a phase execution function, that will execute a phase on nodes that
have the specified state flag set.
sourceraw docstring

phase-errorsclj

(phase-errors operation)

Return the phase errors for an operation

Return the phase errors for an operation
sourceraw docstring

phases-with-metaclj

(phases-with-meta phases-map phases-meta)

Takes a phases-map and applies the default phase metadata and the phases-meta to the phases in it.

Takes a `phases-map` and applies the default phase metadata and the
`phases-meta` to the phases in it.
sourceraw docstring

remove-group-nodesclj

(remove-group-nodes compute-service group-nodes)

Removes nodes from groups. group-nodes is a map from group to a sequence of nodes

Removes nodes from groups. `group-nodes` is a map from group to a sequence of
nodes
sourceraw docstring

remove-nodesclj

(remove-nodes compute-service group {:keys [nodes all] :as remove-node-map})

Removes nodes from group. If all is true, then all nodes for the group are being removed.

Removes `nodes` from `group`. If `all` is true, then all nodes for the group
are being removed.
sourceraw docstring

service-stateclj

(service-state compute groups)

Define an operation that builds a representation of the available nodes.

Define an operation that builds a representation of the available nodes.
sourceraw docstring

set-state-for-nodeclj

(set-state-for-node state-name node)

Sets the boolean state-name flag on node.

Sets the boolean `state-name` flag on `node`.
sourceraw docstring

set-state-for-nodesclj

(set-state-for-nodes state-name nodes)

Sets the boolean state-name flag on nodes.

Sets the boolean `state-name` flag on `nodes`.
sourceraw docstring

successful-result?clj

(successful-result? result)

Filters target-results, a map from target to result map, for successful results.

Filters `target-results`, a map from target to result map, for successful
results.
sourceraw docstring

throw-operation-exceptionclj

(throw-operation-exception operation)

If the result has a logged exception, throw it. This will block on the operation being complete or failed.

If the result has a logged exception, throw it. This will block on the
operation being complete or failed.
sourceraw docstring

throw-phase-errorsclj

(throw-phase-errors operation)
source

unbootstrapped-metaclj

Executes on non bootstrapped nodes, with image credentials.

Executes on non bootstrapped nodes, with image credentials.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close