illithid v0.1.0 Illithid.ServerManager.DigitalOcean.API.Prod

The production API handler

Link to this section Summary

Link to this section Functions

Link to this function

create_server(request)

create_server(map()) ::
  {:ok, Illithid.Models.Server.t()} | {:error, String.t()}

Callback implementation for Illithid.ServerManager.HostAPIBehaviour.create_server/1.

Link to this function

destroy_server(server_name)

destroy_server(String.t() | Illithid.Models.Server.t()) ::
  {:ok, Illithid.Models.Server.t()} | {:error, String.t()}

Callback implementation for Illithid.ServerManager.HostAPIBehaviour.destroy_server/1.

Link to this function

get_server(server_id)

get_server(server_id :: String.t()) ::
  {:ok, Illithid.Models.Server.t()} | {:error, String.t()}

Callback implementation for Illithid.ServerManager.HostAPIBehaviour.get_server/1.

Link to this function

list_images(list_local \\ true)

list_images(list_local :: bool()) :: {:ok, map()} | {:error, atom()}

Callback implementation for Illithid.ServerManager.HostAPIBehaviour.list_images/1.

Link to this function

list_servers()

list_servers() :: {:ok, [Illithid.Models.Server.t()]} | {:error, String.t()}

Callback implementation for Illithid.ServerManager.HostAPIBehaviour.list_servers/0.

Link to this function

server_alive?(server)

server_alive?(Illithid.Models.Server.t()) :: boolean()

Callback implementation for Illithid.ServerManager.HostAPIBehaviour.server_alive?/1.