github.com/jen20/docker@v1.13.1/cliconfig/credentials/credentials.go (about)

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