registry

package
v0.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCredentialFunc

func NewCredentialFunc() (auth.CredentialFunc, error)

NewCredentialFunc returns an auth.CredentialFunc backed by a credential resolution chain that checks Docker and Podman auth locations. The resolution order is:

  1. Docker: via NewStoreFromDocker (handles $DOCKER_CONFIG and $HOME/.docker/config.json)
  2. Podman runtime: $XDG_RUNTIME_DIR/containers/auth.json
  3. Podman config: $HOME/.config/containers/auth.json

Podman paths that do not exist are silently skipped.

func NewRepository

func NewRepository(ref string, credFunc auth.CredentialFunc, plainHTTP bool) (*remote.Repository, error)

NewRepository creates an authenticated remote.Repository from a full OCI reference. The plainHTTP parameter forces HTTP instead of HTTPS, or is auto-detected from http:// scheme.

func ParseTag

func ParseTag(ref string) string

ParseTag extracts the tag or digest from an OCI reference. Returns "latest" if no tag or digest is present.

Types

This section is empty.

Jump to

Keyboard shortcuts

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