Liking cljdoc? Tell your friends :D

pallet.compute

Abstraction of the compute interface

Abstraction of the compute interface
raw docstring

admin-groupclj

(admin-group target)
(admin-group os-family os-version)

User that remote commands are run under

User that remote commands are run under
sourceraw docstring

base-distributioncljdeprecated

(base-distribution target)

Base distribution for the target.

Base distribution for the target.
sourceraw docstring

compute-service?clj

(compute-service? c)

Predicate for the argument satisfying the ComputeService protocol.

Predicate for the argument satisfying the ComputeService protocol.
sourceraw docstring

ComputeServicecljprotocol

shutdownclj

(shutdown compute nodes user)

Shutdown specified nodes

Shutdown specified nodes

destroy-nodeclj

(destroy-node compute node)

imagesclj

(images compute)

destroy-nodes-in-groupclj

(destroy-nodes-in-group compute group-name)

ensure-os-familyclj

(ensure-os-family compute group-spec)

Called on startup of a new node to ensure group-spec has an os-family attached to it.

Called on startup of a new node to ensure group-spec has an os-family
attached to it.

closeclj

(close compute)

boot-if-downclj

(boot-if-down compute nodes)

Boot the specified nodes, if they are not running.

Boot the specified nodes, if they are not running.

rebootclj

(reboot compute nodes)

Reboot the specified nodes

Reboot the specified nodes

nodesclj

(nodes compute)

List nodes

List nodes

shutdown-nodeclj

(shutdown-node compute node user)

Shutdown a node.

Shutdown a node.

run-nodesclj

(run-nodes compute group-spec node-count user init-script options)

Start node-count nodes for group-spec, executing an init-script on each, using the specified user and options.

Start node-count nodes for group-spec, executing an init-script
on each, using the specified user and options.
source

ComputeServicePropertiescljprotocol

service-propertiesclj

(service-properties compute)

Return a map of service details. Contains a :provider key at a minimum. May contain current credentials.

Return a map of service details.  Contains a :provider key at a minimum.
May contain current credentials.
source

defmulti-oscljmacro

(defmulti-os name [& args])

Defines a defmulti used to abstract over the target operating system. The function dispatches based on the target operating system, that is extracted from the session passed as the first argument.

Version comparisons are not included

Defines a defmulti used to abstract over the target operating system. The
function dispatches based on the target operating system, that is extracted
from the session passed as the first argument.

Version comparisons are not included
sourceraw docstring

instantiate-providerclj

(instantiate-provider provider-name
                      &
                      {:keys [identity credential extensions node-list endpoint
                              environment sub-services]
                       :as options})

Instantiate a compute service. The provider name should be a recognised jclouds provider, "node-list", "hybrid", or "localhost". The other arguments are keyword value pairs.

  • :identity username or key
  • :credential password or secret
  • :extensions extension modules for jclouds
  • :node-list a list of nodes for the "node-list" provider.
  • :environment an environment map with service specific values.

Provider specific options may also be passed.

Instantiate a compute service. The provider name should be a recognised
jclouds provider, "node-list", "hybrid", or "localhost". The other
arguments are keyword value pairs.

   - :identity     username or key
   - :credential   password or secret
   - :extensions   extension modules for jclouds
   - :node-list    a list of nodes for the "node-list" provider.
   - :environment  an environment map with service specific values.

Provider specific options may also be passed.
sourceraw docstring

NodeTagReadercljprotocol

Provides a SPI for tagging nodes with values.

Provides a SPI for tagging nodes with values.

node-tagclj

(node-tag compute node tag-name)
(node-tag compute node tag-name default-value)

Return the specified tag on the node.

Return the specified tag on the node.

node-tagsclj

(node-tags compute node)

Return the tags on the node.

Return the tags on the node.
sourceraw docstring

NodeTagWritercljprotocol

Provides a SPI for adding tags to nodes.

Provides a SPI for adding tags to nodes.

node-taggable?clj

(node-taggable? compute node)

Predicate to test the availability of tags on a node.

Predicate to test the availability of tags on a node.

tag-node!clj

(tag-node! compute node tag-name value)

Set a value on the given tag-name on the node.

Set a value on the given tag-name on the node.
sourceraw docstring

os-hierarchyclj

source

packager-for-osclj

(packager-for-os os-family os-version)

Package manager

Package manager
sourceraw docstring

packager-mapclj

source

supported-providersclj

(supported-providers)

Return a list of supported provider names. Each name is suitable to be passed to compute-service.

Return a list of supported provider names.
Each name is suitable to be passed to compute-service.
sourceraw docstring

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

× close