Documentation
¶
Overview ¶
Package file is the provider of credentials which are environment variables, or are kept in a file of JSON, which only its user can read, so credentials which are set, such as how a connector's server is signed in to, are kept once the process ends
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File is the provider of credentials which are environment variables, or are in its file. The file is read each time, and written to a temporary file, which is renamed to it, so it's never written partly. It's safe to use concurrently.
func New ¶
New returns the provider of credentials which are environment variables, or are in the file with the path, whose directory is created, when it doesn't exist
func (*File) Delete ¶
Delete deletes the credential with the key from the file, or does nothing when there's none. An environment variable isn't changed.
func (*File) Expand ¶
Expand replaces each placeholder with the credential it names, which must exist, and returns ErrNotFound, with each which doesn't