nomad v0.6.0 NomadVirtualMachines behaviour
Summary
Callbacks
Attaches the given ‘disk’ to the specified ‘instance’ and with the provided ‘device_name’
Creates an empty persistent disk in the given ‘region’ with the specified ‘size’
Creates a bootable disk in the given ‘region’ with the specified ‘size’ and ‘image’
Creates a new Virtual Machine in the given ‘region’ using the provided ‘class’, ‘image’ and ‘auto_delete’ behaviour
Deletes the given ‘disk’ in the specified ‘region’
Deletes the Virtual Machine ‘instance’ in the given ‘region’
Detaches the given ‘disk’ from the ‘instance’
Returns the specified ‘disk’ name, size, image, status and type
Returns the Virtal Machine ‘instance’ name, status, public IP and class
Lists all available Virtual Machine classes
Lists all disks in the given ‘region’ indicating their names, sizes, images, statuses and types
Lists all available regions (and their zones if possible)
Lists all Virtual Machines in the given ‘region’ with their names, status, public IP and class
Reboots the Virtual Machine ‘instance’ in the given ‘region’
Sets the Virtual Machine ‘instance’ in the given ‘region’ to the specified ‘class’ if possible
Starts the Virtual Machine ‘instance’ in the given ‘region’
Stops the Virtual Machine ‘instance’ in the given ‘region’
Callbacks
Specs
attach_disk(region :: binary, instance :: binary, disk :: binary, device_name :: binary) ::
:ok |
binary
Attaches the given ‘disk’ to the specified ‘instance’ and with the provided ‘device_name’.
Specs
create_disk(region :: binary, size :: integer) ::
:ok |
binary
Creates an empty persistent disk in the given ‘region’ with the specified ‘size’.
Specs
create_disk(region :: binary, size :: integer, image :: binary) ::
:ok |
binary
Creates a bootable disk in the given ‘region’ with the specified ‘size’ and ‘image’.
Specs
create_virtual_machine(region :: binary, class :: binary, image :: binary, auto_delete :: boolean) ::
:ok |
binary
Creates a new Virtual Machine in the given ‘region’ using the provided ‘class’, ‘image’ and ‘auto_delete’ behaviour.
Specs
delete_disk(region :: binary, disk :: binary) ::
:ok |
binary
Deletes the given ‘disk’ in the specified ‘region’.
Specs
delete_virtual_machine(region :: binary, instance :: binary) ::
:ok |
binary
Deletes the Virtual Machine ‘instance’ in the given ‘region’.
Specs
detach_disk(region :: binary, instance :: binary, disk :: binary) ::
:ok |
binary
Detaches the given ‘disk’ from the ‘instance’.
Specs
get_disk(region :: binary, disk :: binary) ::
{binary, binary, binary, binary, binary} |
binary
Returns the specified ‘disk’ name, size, image, status and type.
Specs
get_virtual_machine(region :: binary, instance :: binary) :: {binary, binary, binary, binary}
Returns the Virtal Machine ‘instance’ name, status, public IP and class.
Specs
list_disks(region :: binary) ::
[{binary, binary, binary, binary, binary}] |
binary
Lists all disks in the given ‘region’ indicating their names, sizes, images, statuses and types.
Specs
list_regions :: [binary] | [{binary, [binary]}]
Lists all available regions (and their zones if possible).
Specs
list_virtual_machines(region :: binary) ::
[{binary, binary, binary, binary}] |
binary
Lists all Virtual Machines in the given ‘region’ with their names, status, public IP and class.
Specs
reboot_virtual_machine(region :: binary, instance :: binary) ::
:ok |
binary
Reboots the Virtual Machine ‘instance’ in the given ‘region’.
Specs
set_virtual_machine_class(region :: binary, instance :: binary, class :: binary) ::
:ok |
binary
Sets the Virtual Machine ‘instance’ in the given ‘region’ to the specified ‘class’ if possible.
Specs
start_virtual_machine(region :: binary, instance :: binary) ::
:ok |
binary
Starts the Virtual Machine ‘instance’ in the given ‘region’.