credentialshelper

package
v0.0.0-...-9245cf0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCredentialsNotAvailable = errors.New("no credentials available for this registry")
	ErrUnsupportedRegistry     = errors.New("unsupported registry")
)

Common errors

Functions

func GetCredentials

func GetCredentials(image *types.TrackedImage) (*types.Credentials, error)

GetCredentials - generic function for getting credentials func (ch *CredentialsHelpers) GetCredentials(image *types.TrackedImage) (*types.Credentials, error) {

func RegisterCredentialsHelper

func RegisterCredentialsHelper(name string, ch CredentialsHelper)

RegisterCredentialsHelper - registering new credentials helper

func UnregisterCredentialsHelper

func UnregisterCredentialsHelper(name string)

UnregisterCredentialsHelper - unregister existing credentials helper, used for testing

Types

type CredentialsHelper

type CredentialsHelper interface {
	GetCredentials(image *types.TrackedImage) (*types.Credentials, error)
	IsEnabled() bool
}

CredentialsHelper is a generic interface for implementing cloud vendor specific authorization code

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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