Liking cljdoc? Tell your friends :D

pallet.node

API for nodes in pallet

API for nodes in pallet
raw docstring

Nodecljprotocol

compute-serviceclj

(compute-service node)

Return the service provider the node was provided by.

Return the service provider the node was provided by.

os-familyclj

(os-family node)

Return a node's os-family, or nil if not available.

Return a node's os-family, or nil if not available.

running?clj

(running? node)

Predicate to test if node is running.

Predicate to test if node is running.

is-64bit?clj

(is-64bit? node)

64 Bit OS predicate

64 Bit OS predicate

ssh-portclj

(ssh-port node)

Extract the port from the node's userMetadata

Extract the port from the node's userMetadata

primary-ipclj

(primary-ip node)

Returns the first public IP for the node.

Returns the first public IP for the node.

hostnameclj

(hostname node)

TODO make this work on ec2

TODO make this work on ec2

os-versionclj

(os-version node)

Return a node's os-version, or nil if not available.

Return a node's os-version, or nil if not available.

terminated?clj

(terminated? node)

Predicate to test if node is terminated.

Predicate to test if node is terminated.

group-nameclj

(group-name node)

Returns the group name for the node.

Returns the group name for the node.

idclj

(id node)

private-ipclj

(private-ip node)

Returns the first private IP for the node.

Returns the first private IP for the node.
source

node-addressclj

(node-address node)
source

node-in-group?clj

(node-in-group? grp-name node)
source

node-mapclj

(node-map node)

Convert a node into a map representing the node.

Convert a node into a map representing the node.
sourceraw docstring

node?clj

(node? obj)

Predicate to test whether an object implements the Node protocol

Predicate to test whether an object implements the Node protocol
sourceraw docstring

NodeHardwarecljprotocol

hardwareclj

(hardware node)

Return a map with :cpus, :ram, and :disks information. The ram is reported in Mb. The :cpus is a sequence of maps, one for each cpu, containing the number of :cores on each. The :disks is a sequence of maps, containing a :size key for each drive, in Gb. Other keys may be present.

Return a map with `:cpus`, `:ram`, and `:disks` information. The ram is
reported in Mb. The `:cpus` is a sequence of maps, one for each cpu,
containing the number of `:cores` on each. The `:disks` is a sequence
of maps, containing a :size key for each drive, in Gb. Other keys
may be present.
source

NodeImagecljprotocol

image-userclj

(image-user node)

Return the user that is defined by the image.

Return the user that is defined by the image.
source

NodePackagercljprotocol

packagerclj

(packager node)

The packager to use on the node

The packager to use on the node
source

NodeProxycljprotocol

proxyclj

(proxy node)

A map with SSH proxy connection details.

A map with SSH proxy connection details.
source

prefer-private-ipclj

Prefer using the node private IP address

Prefer using the node private IP address
sourceraw docstring

tagclj

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

Return the specified tag.

Return the specified tag.
sourceraw docstring

tag!clj

(tag! node tag-name value)

Set a value on the given tag-name.

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

taggable?clj

(taggable? node)

Predicate to test the availability of tags.

Predicate to test the availability of tags.
sourceraw docstring

tagsclj

(tags node)

Return the tags.

Return the tags.
sourceraw docstring

use-private-ipclj

(use-private-ip val)
source

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

× close