auth

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 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