docker

package
v1.64.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 17 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 the given registryURL.

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