Documentation ¶
Overview ¶
Package pass implements a `pass` based credential helper. Passwords are stored as arguments to pass of the form: "$PASS_FOLDER/base64-url(serverURL)/username". We base64-url encode the serverURL, because under the hood pass uses files and folders, so /s will get translated into additional folders.
Index ¶
Constants ¶
View Source
const PASS_FOLDER = "docker-credential-helpers" //nolint:revive
PASS_FOLDER contains the directory where credentials are stored
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pass ¶
type Pass struct{}
Pass handles secrets using pass as a store.
func (Pass) Add ¶
func (p Pass) Add(creds *credentials.Credentials) error
Add adds new credentials to the keychain.
func (Pass) CheckInitialized ¶ added in v0.6.1
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.
Click to show internal directories.
Click to hide internal directories.