credentials.go 571 B

1234567891011121314151617
  1. package credentials
  2. import (
  3. "github.com/docker/engine-api/types"
  4. )
  5. // Store is the interface that any credentials store must implement.
  6. type Store interface {
  7. // Erase removes credentials from the store for a given server.
  8. Erase(serverAddress string) error
  9. // Get retrieves credentials from the store for a given server.
  10. Get(serverAddress string) (types.AuthConfig, error)
  11. // GetAll retrieves all the credentials from the store.
  12. GetAll() (map[string]types.AuthConfig, error)
  13. // Store saves credentials in the store.
  14. Store(authConfig types.AuthConfig) error
  15. }