API for nodes in pallet
API for nodes in pallet
(compute-service node)
Return the service provider the node was provided by.
Return the service provider the node was provided by.
(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? node)
Predicate to test if node is running.
Predicate to test if node is running.
(is-64bit? node)
64 Bit OS predicate
64 Bit OS predicate
(ssh-port node)
Extract the port from the node's userMetadata
Extract the port from the node's userMetadata
(primary-ip node)
Returns the first public IP for the node.
Returns the first public IP for the node.
(hostname node)
TODO make this work on ec2
TODO make this work on ec2
(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? node)
Predicate to test if node is terminated.
Predicate to test if node is terminated.
(group-name node)
Returns the group name for the node.
Returns the group name for the node.
(id node)
(private-ip node)
Returns the first private IP for the node.
Returns the first private IP for the node.
(node-map node)
Convert a node into a map representing the node.
Convert a node into a map representing the node.
(node? obj)
Predicate to test whether an object implements the Node protocol
Predicate to test whether an object implements the Node protocol
(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.
(image-user node)
Return the user that is defined by the image.
Return the user that is defined by the image.
(packager node)
The packager to use on the node
The packager to use on the node
(proxy node)
A map with SSH proxy connection details.
A map with SSH proxy connection details.
Prefer using the node private IP address
Prefer using the node private IP address
(tag node tag-name)
(tag node tag-name default-value)
Return the specified tag.
Return the specified tag.
(tag! node tag-name value)
Set a value on the given tag-name.
Set a value on the given tag-name.
(taggable? node)
Predicate to test the availability of tags.
Predicate to test the availability of tags.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close