helper.go 509 B

1234567891011121314
  1. package credentials
  2. // Helper is the interface a credentials store helper must implement.
  3. type Helper interface {
  4. // Add appends credentials to the store.
  5. Add(*Credentials) error
  6. // Delete removes credentials from the store.
  7. Delete(serverURL string) error
  8. // Get retrieves credentials from the store.
  9. // It returns username and secret as strings.
  10. Get(serverURL string) (string, string, error)
  11. // List returns the stored serverURLs and their associated usernames.
  12. List() (map[string]string, error)
  13. }