Documentation
¶
Overview ¶
Package ociauth builds registry repositories authenticated from the user's local Docker config ($DOCKER_CONFIG/config.json or ~/.docker/config.json).
Both static credentials ("auths") and credential helpers ("credsStore"/"credHelpers", e.g. docker-credential-osxkeychain as used by Docker Desktop on macOS) are supported — without depending on docker/cli: the config subset kbake needs is parsed directly, and helpers are invoked through the small standalone github.com/docker/docker-credential-helpers module, the same helper protocol docker/cli itself shells out to.
The docker config is read lazily on first repository creation, so a malformed or unreadable config only surfaces for commands that actually contact a registry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
func NewRepository(ref registry.Reference) (*remote.Repository, error)
NewRepository creates a remote.Repository for ref's registry, authenticated from the local docker config (static entries and docker-credential-* helpers alike). It is the repository factory kbake's CLI passes to registry-touching commands.
Types ¶
This section is empty.