dockercredentials

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MPL-2.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const AzureContainerRegistryUsername = "00000000-0000-0000-0000-000000000000"

Variables

This section is empty.

Functions

func ConfigureCredentialsContainer

func ConfigureCredentialsContainer(userName string, port int, log log.Logger) error

func ConfigureCredentialsDockerless

func ConfigureCredentialsDockerless(targetFolder string, port int, log log.Logger) (string, error)

func ConfigureCredentialsMachine

func ConfigureCredentialsMachine(targetFolder string, port int, log log.Logger) (string, error)

Types

type Credentials

type Credentials struct {
	ServerURL string
	Username  string
	Secret    string
}

Credentials holds the information shared between docker and the credentials store.

func GetAuthConfig

func GetAuthConfig(host string) (*Credentials, error)

func (*Credentials) AuthToken

func (c *Credentials) AuthToken() string

type Helper added in v0.12.1

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

Helper implements the Docker credential helper interface.

func NewHelper added in v0.12.1

func NewHelper(port int) *Helper

NewHelper creates a new credential helper.

func (*Helper) Add added in v0.12.1

Add is not supported (read-only helper).

func (*Helper) Delete added in v0.12.1

func (h *Helper) Delete(string) error

Delete is not supported (read-only helper).

func (*Helper) Get added in v0.12.1

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

Get retrieves credentials for the given server URL.

func (*Helper) List added in v0.12.1

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

List returns all configured registries.

type ListResponse

type ListResponse struct {
	Registries map[string]string
}

func ListCredentials

func ListCredentials() (*ListResponse, error)

type Request

type Request struct {
	// If ServerURL is empty its a list request
	ServerURL string
}

Jump to

Keyboard shortcuts

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