Regc.Blob.Upload (regc v0.0.2)
View SourceImmutable state for a Distribution API blob upload.
Upload locations are validated when received from a registry. Each operation returns an updated value because a registry may rotate the location or report a new byte offset.
Summary
Types
@type t() :: %Regc.Blob.Upload{ endpoint: Regc.Oci.Reference.t(), location: String.t(), metadata: Regc.Registry.Metadata.t(), min_chunk_size: non_neg_integer() | nil, offset: non_neg_integer(), repository: Regc.Oci.Reference.t(), resolved_addresses: [Regc.Oci.Transport.Address.address()] | nil, status: :active | :complete | :cancelled, uuid: String.t() | nil }
Functions
@spec cancel(Regc.Client.t(), t(), keyword()) :: :ok | {:error, Regc.Error.t()}
@spec chunk(Regc.Client.t(), t(), iodata(), keyword()) :: {:ok, t()} | {:error, Regc.Error.t()}
@spec finalize(Regc.Client.t(), t(), String.t(), keyword()) :: {:ok, Regc.Oci.Descriptor.t()} | {:error, Regc.Error.t()}
@spec start(Regc.Client.t(), String.t() | Regc.Oci.Reference.t(), keyword()) :: {:ok, t()} | {:error, Regc.Error.t()}
@spec status(Regc.Client.t(), t(), keyword()) :: {:ok, t()} | {:error, Regc.Error.t()}