Documentation
¶
Overview ¶
Package secret resolves and loads secrets referenced from config. A reference is either a bare filesystem path or a scheme URI (e.g. "file://…"); the scheme selects the Source. Only the file source is implemented now; new schemes (e.g. "op://") add a case without changing callers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSource ¶
type FileSource struct{ Path string }
FileSource loads the secret from a file.
func (FileSource) Load ¶
func (s FileSource) Load() (string, error)
Load reads the file, trims surrounding whitespace, and errors if the file is missing or the trimmed content is empty.
Click to show internal directories.
Click to hide internal directories.