login

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// User did not provide non-empty credentials when prompted for it
	ErrUsernameIsRequired = errors.New("username is required")
	ErrPasswordIsRequired = errors.New("password is required")

	// System errors - not a terminal, failure to read, etc
	ErrReadingUsername        = errors.New("unable to read username")
	ErrReadingPassword        = errors.New("unable to read password")
	ErrNotATerminal           = errors.New("stdin is not a terminal (Hint: use `nerdctl login --username=USERNAME --password-stdin`)")
	ErrCannotAllocateTerminal = errors.New("error allocating terminal")
)

Functions

func Login

func Login(ctx context.Context, options types.LoginCommandOptions, stdout io.Writer) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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