ExIncus.ExecResult (ex_incus v1.0.0)

Copy Markdown

Result of ExIncus.Instances.exec/4.

:stdout / :stderr are only captured when the command was run with record_output: true (the default); otherwise they are nil.

Note that a non-zero :exit_code is still an {:ok, result} - the operation succeeded, the command inside the instance did not.

Summary

Types

t()

@type t() :: %ExIncus.ExecResult{
  exit_code: integer() | nil,
  operation: ExIncus.Operation.t(),
  stderr: binary() | nil,
  stdout: binary() | nil
}