I felt it made more sence 👼 Signed-off-by: Vincent Demeester <vincent@sbr.pm> Upstream-commit: ce964a607ad7395af7b74a0ba1efc5ab3cb15790 Component: engine
18 lines
571 B
Go
18 lines
571 B
Go
package credentials
|
|
|
|
import (
|
|
"github.com/docker/docker/api/types"
|
|
)
|
|
|
|
// Store is the interface that any credentials store must implement.
|
|
type Store interface {
|
|
// Erase removes credentials from the store for a given server.
|
|
Erase(serverAddress string) error
|
|
// Get retrieves credentials from the store for a given server.
|
|
Get(serverAddress string) (types.AuthConfig, error)
|
|
// GetAll retrieves all the credentials from the store.
|
|
GetAll() (map[string]types.AuthConfig, error)
|
|
// Store saves credentials in the store.
|
|
Store(authConfig types.AuthConfig) error
|
|
}
|