login

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(opts Options) (configPath string, err error)

Login authenticates against a container registry and stores the credentials in the Docker config file, respecting any configured credential helpers.

Types

type Options

type Options struct {
	ServerAddress string
	Username      string
	Password      string
	PasswordStdin io.Reader
	// ConfigDir overrides the Docker config directory. If empty, uses DOCKER_CONFIG env or default.
	ConfigDir string
}

Options holds the parameters for a registry login.

Jump to

Keyboard shortcuts

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