PASS_FOLDER contains the directory where credentials are stored
const PASS_FOLDER = "docker-credential-helpers" //nolint:revive
Pass handles secrets using pass as a store.
type Pass struct{}
func (p Pass) Add(creds *credentials.Credentials) error
Add adds new credentials to the keychain.
func (p Pass) CheckInitialized() bool
CheckInitialized checks whether the password helper can be used. It internally caches and so may be safely called multiple times with no impact on performance, though the first call may take longer.
func (p Pass) Delete(serverURL string) error
Delete removes credentials from the store.
func (p Pass) Get(serverURL string) (string, string, error)
Get returns the username and secret to use for a given registry server URL.
func (p Pass) List() (map[string]string, error)
List returns the stored URLs and corresponding usernames for a given credentials label