Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthEntry ¶
type CredentialsCache ¶
type CredentialsCache interface { Get(registry string) *AuthEntry Set(registry string, entry *AuthEntry) List() []*AuthEntry Clear() }
func BuildCredentialsCache ¶
func BuildCredentialsCache(region string) CredentialsCache
func NewFileCredentialsCache ¶
func NewFileCredentialsCache(path string, filename string, cachePrefixKey string) CredentialsCache
NewFileCredentialsCache returns a new file credentials cache.
path is used for temporary files during save, and filename should be a relative filename in the same directory where the cache is serialized and deserialized.
cachePrefixKey is used for scoping credentials for a given credential cache (i.e. region and accessKey).
type PorterHelper ¶
type PorterHelper struct { Debug bool // contains filtered or unexported fields }
PorterHelper implements credentials.Helper: it acts as a credentials helper for Docker that allows authentication with different registries.
func (*PorterHelper) Add ¶
func (p *PorterHelper) Add(cr *credentials.Credentials) error
Add appends credentials to the store.
func (*PorterHelper) Delete ¶
func (p *PorterHelper) Delete(serverURL string) error
Delete removes credentials from the store.
type RegistryCache ¶
Click to show internal directories.
Click to hide internal directories.