ExAtlas.Spec.Compute (ExAtlas v0.5.0)

Copy Markdown View Source

Normalized representation of a running or tracked compute resource.

:raw holds the provider's native response for callers that need access to fields ExAtlas doesn't normalize.

Summary

Types

auth_handle()

@type auth_handle() :: %{
  scheme: :bearer | :signed_url,
  token: String.t() | nil,
  header: String.t() | nil,
  hash: String.t() | nil
}

port_binding()

@type port_binding() :: %{
  internal: pos_integer(),
  external: pos_integer() | nil,
  protocol: :http | :tcp,
  url: String.t() | nil
}

status()

@type status() :: :provisioning | :running | :stopped | :terminated | :failed

t()

@type t() :: %ExAtlas.Spec.Compute{
  auth: auth_handle() | nil,
  cost_per_hour: float() | Decimal.t() | nil,
  created_at: DateTime.t() | nil,
  gpu_count: pos_integer(),
  gpu_type: String.t() | nil,
  id: String.t(),
  image: String.t() | nil,
  name: String.t() | nil,
  ports: [port_binding()],
  provider: atom(),
  public_ip: String.t() | nil,
  raw: map(),
  region: String.t() | nil,
  status: status()
}