credential

package
v1.6.0-rc4 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCredsStore          = errors.New("docker config use credsStore to store password")
	ErrCredsStoreUnsupport = errors.New("unsupported credsStore, only 'deskstop' supported")
)

Functions

func GetCredentialByDockerConfig

func GetCredentialByDockerConfig(r string, cf io.Reader) (
	user, passwd string, err error)

func GetRegistryCredential

func GetRegistryCredential(url string) (
	username, passwd string, err error)

GetRegistryPassword gets Registry credential by registry URL, it will try to find password from cache first, if not found, then try to find password from docker config. if passwd found in docker config, it will cache the password. if not found, return error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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