mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-12 19:46:32 +00:00
75513575be
* store dependency's in git * since we vendor ... rm tech-depts * aad make target 'vendor' to update vendor folder (manual task)
14 lines
509 B
Go
14 lines
509 B
Go
package credentials
|
|
|
|
// Helper is the interface a credentials store helper must implement.
|
|
type Helper interface {
|
|
// Add appends credentials to the store.
|
|
Add(*Credentials) error
|
|
// Delete removes credentials from the store.
|
|
Delete(serverURL string) error
|
|
// Get retrieves credentials from the store.
|
|
// It returns username and secret as strings.
|
|
Get(serverURL string) (string, string, error)
|
|
// List returns the stored serverURLs and their associated usernames.
|
|
List() (map[string]string, error)
|
|
}
|