Abstraction of the compute interface
Abstraction of the compute interface
(admin-group target)
(admin-group os-family os-version)
User that remote commands are run under
User that remote commands are run under
(base-distribution target)
Base distribution for the target.
Base distribution for the target.
(compute-service? c)
Predicate for the argument satisfying the ComputeService protocol.
Predicate for the argument satisfying the ComputeService protocol.
(shutdown compute nodes user)
Shutdown specified nodes
Shutdown specified nodes
(destroy-node compute node)
(images compute)
(destroy-nodes-in-group compute group-name)
(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.
(close compute)
(boot-if-down compute nodes)
Boot the specified nodes, if they are not running.
Boot the specified nodes, if they are not running.
(reboot compute nodes)
Reboot the specified nodes
Reboot the specified nodes
(nodes compute)
List nodes
List nodes
(shutdown-node compute node user)
Shutdown a node.
Shutdown a node.
(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.
(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.
(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
(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.
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.
Provides a SPI for tagging nodes with values.
Provides a SPI for tagging nodes with values.
(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-tags compute node)
Return the tags on the node.
Return the tags on the node.
Provides a SPI for adding tags to nodes.
Provides a SPI for adding tags to nodes.
(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! 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.
(packager-for-os os-family os-version)
Package manager
Package manager
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close