Spectre.Operation.Artifact (Spectre v0.3.0)

Copy Markdown View Source

Portable reference to output produced by an operational loop.

Summary

Types

t()

@type t() :: %Spectre.Operation.Artifact{
  created_at: non_neg_integer(),
  digest: String.t() | nil,
  id: String.t(),
  kind: atom() | String.t(),
  media_type: String.t() | nil,
  metadata: map(),
  uri: String.t() | nil
}

Functions

new(attrs)

@spec new(map() | keyword()) :: t()

validate(artifact)

@spec validate(t()) :: :ok | {:error, term()}

validate!(artifact)

@spec validate!(t()) :: t()