Formation.Lxd (formation v0.10.0)

Link to this section Summary

Link to this section Functions

Link to this function

create(client, slug, instance_params, options \\ [])

Specs

create(
  %Tesla.Client{adapter: term(), fun: term(), post: term(), pre: term()},
  binary(),
  map(),
  Keyword.t()
) ::
  %Tesla.Client{adapter: term(), fun: term(), post: term(), pre: term()}
  | {:error, atom()}
Link to this function

delete(client, slug, options \\ [])

Link to this function

execute(client, slug, command, options \\ [])

Specs

execute(
  %Tesla.Client{adapter: term(), fun: term(), post: term(), pre: term()},
  binary(),
  binary(),
  Keyword.t()
) :: {:ok, map()} | {:error, any()}

Use execute to execute a command on an instance

Link to this function

execute_and_log(client, slug, command, options \\ [])

Execute command and return the log output

Specs

impl() :: atom()
Link to this function

start(client, slug, options \\ [])

Specs

start(
  %Tesla.Client{adapter: term(), fun: term(), post: term(), pre: term()},
  binary(),
  Keyword.t()
) ::
  %Tesla.Client{adapter: term(), fun: term(), post: term(), pre: term()}
  | {:error, atom()}
Link to this function

stop(client, slug, options \\ [])