Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSecretSourceFileFailedOpen = fmt.Errorf("failed to open secret file") ErrSecretSourceFileFailedRead = fmt.Errorf("failed to read secret file") )
Functions ¶
This section is empty.
Types ¶
type SecretSourceFile ¶
type SecretSourceFile struct{}
SecretSourceFile digs up secrets from local files. The URI scheme for this source is "file". Examples:
file:///path/to/secret.txt file://relative/path/to/secret.txt file://./path/to/secret/from/this/directory.txt
This types.SecretSource is built-in to spelunker.Spelunker.
func (*SecretSourceFile) DigUp ¶
func (s *SecretSourceFile) DigUp(_ context.Context, coord types.SecretCoord) (string, error)
func (*SecretSourceFile) Type ¶
func (s *SecretSourceFile) Type() string
Click to show internal directories.
Click to hide internal directories.