Regc.Credential.DockerConfig (regc v0.0.2)

View Source

Loads inline credentials from a Docker-compatible config.json.

The returned host-keyed map can be passed directly as Regc.Client.new(credentials: credentials). Inline auth, identitytoken, and registrytoken entries are supported. External Docker credential helpers are intentionally left to a separate provider adapter.

Summary

Functions

load(path \\ nil)

@spec load(String.t() | nil) ::
  {:ok, %{optional(String.t()) => Regc.Credential.t()}}
  | {:error, Regc.Error.t()}

load!(path \\ nil)

@spec load!(String.t() | nil) :: %{optional(String.t()) => Regc.Credential.t()}