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
Click to show internal directories.
Click to hide internal directories.