auth

package
v0.19.14 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateBasicAuth added in v0.7.0

func GenerateBasicAuth(username, password string) string

GenerateBasicAuth generates a Basic Authentication header value from a username and password.

Types

type RegistryAuth

type RegistryAuth interface {
	// CredentialFunc returns an authentication mechanism that can be used to access the registry at the provided URL.
	CredentialFunc(scope string) (auth2.CredentialFunc, error)
}

RegistryAuth abstracts over credentials that can be used to access registries.

func NewClientAuthFromToken

func NewClientAuthFromToken(token string) RegistryAuth

func NewClientAuthFromUsernamePassword added in v0.7.0

func NewClientAuthFromUsernamePassword(username, password string) RegistryAuth

Jump to

Keyboard shortcuts

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