Help us shape the future of Go! Take the 2026 Go Developer Survey

docker

package
v1.115.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package docker provides commands that help configure a docker credential helper.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdConfigureDocker

func NewCmdConfigureDocker(f cmdutils.Factory) *cobra.Command

NewCmdConfigureDocker returns a command that configures the CLI as a Docker credential helper.

func NewCmdCredentialHelper

func NewCmdCredentialHelper(f cmdutils.Factory) *cobra.Command

NewCmdCredentialHelper returns a command that handles Docker credential requests.

Types

type Helper

type Helper struct {
	// contains filtered or unexported fields
}

Helper implements a docker-credential-* helper interface. It assists in logging into a registry.

func (*Helper) Add

func (h *Helper) Add(creds *credentials.Credentials) error

func (*Helper) Delete

func (h *Helper) Delete(serverURL string) error

func (*Helper) Get

func (h *Helper) Get(registryURL string) (string, string, error)

Get fetches the glab auth token for registryURL. It tries the Artifact Registry first; on any failure, it falls back to the container-registry path, using that credential and logging the fall-through if the fallback succeeds. If neither produces a credential, it prefers the artifact registry error whenever the domain was configured for it, since that names the actual failure, where the container-registry path can only say the domain is unassociated.

func (*Helper) List

func (h *Helper) List() (map[string]string, error)

Jump to

Keyboard shortcuts

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