# Pallet Crate Writing API
(admin-group)
User that remote commands are run under
User that remote commands are run under
(assoc-settings facility kv-pairs)
(assoc-settings facility kv-pairs {:keys [instance-id] :as options})
Set the settings for the specified host facility. The instance-id allows the specification of specific instance of the facility.
Set the settings for the specified host facility. The instance-id allows the specification of specific instance of the facility.
(blobstore)
Returns the current blobstore.
Returns the current blobstore.
(compute-service)
Returns the current compute service
Returns the current compute service
(def-aggregate-plan-fn name doc-string? attr-map? [params*] f)
Define a crate function where arguments on successive calls are conjoined, and passed to the function specified in the body.
Define a crate function where arguments on successive calls are conjoined, and passed to the function specified in the body.
(def-collect-plan-fn name doc-string? attr-map? [params*] f)
Define a crate function where arguments on successive calls are conjoined, and passed to the function specified in the body.
Define a crate function where arguments on successive calls are conjoined, and passed to the function specified in the body.
(defmulti-plan name
docstring?
attr-map?
dispatch-fn
&
{:keys [hierarchy] :as options})
Declare a multimethod for plan functions
Declare a multimethod for plan functions
(defplan name doc-string? attr-map? [params*] body)
Define a crate function.
Define a crate function.
(final-fn-sym? sym form)
Predicate to match the final function symbol in a form.
Predicate to match the final function symbol in a form.
(get-node-settings node facility)
(get-node-settings node facility {:keys [instance-id default] :as options})
Retrieve the settings for the facility
on the node
. The instance-id
allows the specification of specific instance of the facility.
Retrieve the settings for the `facility` on the `node`. The instance-id allows the specification of specific instance of the facility.
(get-settings facility)
(get-settings facility {:keys [instance-id default] :as options})
Retrieve the settings for the specified host facility. The instance-id allows the specification of specific instance of the facility.
Retrieve the settings for the specified host facility. The instance-id allows the specification of specific instance of the facility.
(group-name)
Group-Name of the target-node.
Group-Name of the target-node.
(groups-with-role role)
All target groups with the specified role.
All target groups with the specified role.
(is-64bit?)
Predicate for a 64 bit target
Predicate for a 64 bit target
(nodes-in-group)
(nodes-in-group group-name)
All nodesin the same tag as the target-node, or with the specified group-name.
All nodesin the same tag as the target-node, or with the specified group-name.
(nodes-with-role role)
All target nodes with the specified role.
All target nodes with the specified role.
(os-family)
OS-Family of the target-node.
OS-Family of the target-node.
(os-version)
OS-Family of the target-node.
OS-Family of the target-node.
(phase-context pipeline-name event & args)
Defines a block with a context that is automatically added.
Defines a block with a context that is automatically added.
(role->nodes-map)
A map from role to nodes.
A map from role to nodes.
(service-phases facility
options
service-f
&
{:keys [actions] :or {actions [:start :stop :restart :status]}})
Return a map of service phases for the specified facility, options and service function. Optionally, specify :actions with a sequence of keywords for the actions you wish to generate service control phases for.
Return a map of service phases for the specified facility, options and service function. Optionally, specify :actions with a sequence of keywords for the actions you wish to generate service control phases for.
(session-peek-fn [sym] & body)
Create a state-m monadic value function that examines the session, and returns nil.
Create a state-m monadic value function that examines the session, and returns nil.
(target-flag? flag)
Returns a DelayedFunction that is a predicate for whether the flag is set
Returns a DelayedFunction that is a predicate for whether the flag is set
(target-id)
Id of the target-node (unique for provider).
Id of the target-node (unique for provider).
(target-node)
The target-node instance (the :node in the target-node map).
The target-node instance (the :node in the target-node map).
(targets-in-group)
(targets-in-group group-name)
All targets in the same tag as the target-node, or with the specified group-name.
All targets in the same tag as the target-node, or with the specified group-name.
(targets-with-role role)
All targets with the specified role.
All targets with the specified role.
(update-settings facility f & args)
(update-settings facility options f & args)
Update the settings for the specified host facility. The instance-id allows the specification of specific instance of the facility (the default is :default).
Update the settings for the specified host facility. The instance-id allows the specification of specific instance of the facility (the default is :default).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close