Regc.Mutate.Image (regc v0.0.2)

View Source

Immutable in-memory state for a manifest mutation.

Create values with Regc.Mutate.new/3, transform them through the Regc.Mutate.Manifest, Regc.Mutate.Config, and Regc.Mutate.Layer modules, and call Regc.Mutate.finalize/2 to obtain publishable bytes and descriptors.

Summary

Types

change()

@type change() :: %{:operation => atom(), optional(:details) => map()}

t()

@type t() :: %Regc.Mutate.Image{
  changes: [change()],
  config: map() | nil,
  config_changed?: boolean(),
  config_descriptor: Regc.Oci.Descriptor.t() | nil,
  config_raw: binary() | nil,
  kind: :image | :index | :artifact,
  manifest: map(),
  manifest_changed?: boolean(),
  manifest_descriptor: Regc.Oci.Descriptor.t(),
  manifest_raw: binary(),
  original_config: map() | nil,
  original_config_raw: binary() | nil,
  original_manifest: map(),
  original_manifest_raw: binary()
}