Regc.Credential.DockerConfig (regc v0.0.2)
View SourceLoads 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
@spec load(String.t() | nil) :: {:ok, %{optional(String.t()) => Regc.Credential.t()}} | {:error, Regc.Error.t()}
@spec load!(String.t() | nil) :: %{optional(String.t()) => Regc.Credential.t()}