Help us shape the future of Go! Take the 2026 Go Developer Survey

auth

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyChain

func KeyChain(auth Auth) authn.Keychain

Types

type Auth

type Auth struct {
	Registry string
	Username string
	Password string
}

type BasicKeychain

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

BasicKeychain is an authn.Keychain implementation that uses basic auth to talk to a registry.

func NewBasicKeychain

func NewBasicKeychain(auth Auth) *BasicKeychain

func (*BasicKeychain) Resolve

func (b *BasicKeychain) Resolve(resource authn.Resource) (authn.Authenticator, error)

Jump to

Keyboard shortcuts

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