Higher order functions to manipulate VMs
Higher order functions to manipulate VMs
(by-name config vm)
The infamous name resolver, using listVirtualMachines since Cloudstack does not allow singular get calls
The infamous name resolver, using listVirtualMachines since Cloudstack does not allow singular get calls
(destroy config target)
Destroy virtual machine
Destroy virtual machine
(ensure-up config target timeout)
Wait for machine to be up by probbing the SSH port. This assumes that inbound SSH is authorized
Wait for machine to be up by probbing the SSH port. This assumes that inbound SSH is authorized
(get-password config target)
Fetch encrypted password
Fetch encrypted password
(reboot config target & [params])
Reboot virtual machine.
Reboot virtual machine.
(reset-password config target & [params])
Reset-password virtual machine.
Reset-password virtual machine.
(resolve-id config target)
Yield a target VM id from a target definition (name, ID, or vm return)
Yield a target VM id from a target definition (name, ID, or vm return)
(resolve-indirect-params config {:keys [zoneid zone serviceoffering template]})
(sanitize-ag group)
Parse affinitygroup UUID
Parse affinitygroup UUID
(sanitize-nic {:keys [macaddress ipaddress ip6address] :as nic})
Keep relevant information for public NICs. We do not keep network IDs and name since this isn't actionable information.
Keep relevant information for public NICs. We do not keep network IDs and name since this isn't actionable information.
(sanitize-nics nics)
Keep relevant information for private network NICs
Keep relevant information for private network NICs
(sanitize-public nics)
Filter out public NIC and show relevant information
Filter out public NIC and show relevant information
(sanitize-sg {:keys [id name]})
Keep relevant information for security groups
Keep relevant information for security groups
(sanitize-template {:keys [templatename templateid]})
Rewrite template information to contain UUIDs
Rewrite template information to contain UUIDs
(sanitize-vm resp)
Coerce API response into something a bit more useful
Coerce API response into something a bit more useful
(ssh config target command)
Asynchronously reach out to a machine to execute an ssh command
Asynchronously reach out to a machine to execute an ssh command
(start config target & [params])
Start virtual machine.
Start virtual machine.
(stop config target & [params])
Stop virtual machine.
Stop virtual machine.
(update config target & [params])
Update virtual machine.
Update virtual machine.
(vmdef? x)
Predicate to test against a valid VM definition
Predicate to test against a valid VM definition
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close