Documentation
¶
Index ¶
Constants ¶
View Source
const ( Masked = "***" MinMaskedLength = 8 )
View Source
const EnvPrefix = "OPERION_SECRET_"
Variables ¶
This section is empty.
Functions ¶
func FromEnviron ¶
FromEnviron returns the secrets among environ, the KEY=value pairs os.Environ gives: OPERION_SECRET_CRM_TOKEN becomes crm_token.
Types ¶
type Mask ¶
type Mask struct {
// contains filtered or unexported fields
}
Mask replaces secret values of at least MinMaskedLength characters with Masked.
func NewMask ¶
NewMask returns nil when no value is long enough to mask; a nil Mask leaves everything as it is.
Click to show internal directories.
Click to hide internal directories.