Documentation
¶
Overview ¶
Package secret wraps sensitive strings to prevent accidental logging or serialization.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrSecretNotFound = errors.New("secret not found in environment or /run/secrets/")
Functions ¶
This section is empty.
Types ¶
type String ¶
type String string
String wraps a sensitive value. Use Unwrap() to access the actual value.
func (String) MarshalJSON ¶
MarshalJSON prevents secrets from leaking in API responses.
func (*String) UnmarshalJSON ¶
UnmarshalJSON allows secrets to be loaded from config files / payloads.