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:
- Docker: via NewStoreFromDocker (handles $DOCKER_CONFIG and $HOME/.docker/config.json)
- Podman runtime: $XDG_RUNTIME_DIR/containers/auth.json
- 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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.