Stevedore.Transport.Registry (Stevedore v0.1.0)

Copy Markdown View Source

The docker:// transport: a remote registry, behind the Stevedore.Transport behaviour.

A thin wrapper over Stevedore.Registry (which owns the HTTP + auth). Carries the target registry/repository and the per-call opts (:creds, :scheme, …). Supports the push path (manifest/blob upload) and cross-repo blob mount.

Summary

Functions

Attempts a cross-repo mount of digest into this transport's repository from from_repo. Returns :not_mounted when the registry declines.

Types

t()

@type t() :: %Stevedore.Transport.Registry{
  opts: keyword(),
  registry: String.t(),
  repository: String.t()
}

Functions

mount(t, digest, from_repo)

@spec mount(t(), Stevedore.Digest.t(), String.t()) :: :ok | :not_mounted

Attempts a cross-repo mount of digest into this transport's repository from from_repo. Returns :not_mounted when the registry declines.