ociauth

package
v0.0.0-...-5ec65c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL