auth

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIaasKeychain

func NewIaasKeychain(ctx context.Context, environFunc func() []string) (authn.Keychain, error)

NewIaasKeychain implements an authn.Keychain interface by using credentials provided by the iaas metadata services

Types

type CustomRegistryKeychain

type CustomRegistryKeychain struct {
	Opts KeychainOpts
}

CustomRegistryKeychain implements an authn.Keychain interface by using credentials provided by imgpkg's auth options

func (CustomRegistryKeychain) Resolve

Resolve looks up the most appropriate credential for the specified target.

type EnvKeychain

type EnvKeychain struct {
	EnvironFunc func() []string
	// contains filtered or unexported fields
}

EnvKeychain implements an authn.Keychain interface by using credentials provided by imgpkg's auth environment vars

func (*EnvKeychain) Resolve

func (k *EnvKeychain) Resolve(target regauthn.Resource) (regauthn.Authenticator, error)

Resolve looks up the most appropriate credential for the specified target.

type KeychainOpts

type KeychainOpts struct {
	Username string
	Password string
	Token    string
	Anon     bool
}

KeychainOpts Contains credentials (passed down via flags) used by custom keychain to auth with a registry

Jump to

Keyboard shortcuts

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