credentials

package
v0.0.0-...-feb637d Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCredentialsProvider

func NewCredentialsProvider(configPath string, opts ...Opt) pusher.CredentialsProvider

func RegistryEquals

func RegistryEquals(regA, regB string) bool

Types

type ChooseCredentialHelperCallback

type ChooseCredentialHelperCallback func(available []string) (string, error)

type CredentialsCallback

type CredentialsCallback func(registry string) (pusher.Credentials, error)

type Opt

type Opt func(opts *credentialsProvider)

func WithPromptForCredentialStore

func WithPromptForCredentialStore(cbk ChooseCredentialHelperCallback) Opt

func WithPromptForCredentials

func WithPromptForCredentials(cbk CredentialsCallback) Opt

func WithTransport

func WithTransport(transport http.RoundTripper) Opt

type VerifyCredentialsCallback

type VerifyCredentialsCallback func(ctx context.Context, image string, credentials pusher.Credentials) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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