Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MaskedOut the text that is returned if text is masked out // we don't use the length of the actual secret value to avoid giving folks a hint what the value is MaskedOut = "****" )
Variables ¶
View Source
var ( // ShowMaskedPasswords lets you enable in test programs ShowMaskedPasswords = false )
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client replaces words in a log from a set of secrets
func NewMasker ¶
func NewMasker(kubeClient kubernetes.Interface, namespaces ...string) (*Client, error)
NewMasker creates a new Client loading secrets from the given namespace
func (*Client) GetReplacedWords ¶ added in v0.0.155
GetReplacedWords returns all the words that will be replaced
func (*Client) LoadSecret ¶
LoadSecret loads the secret data into the log masker
func (*Client) LoadSecrets ¶
func (m *Client) LoadSecrets(kubeClient kubernetes.Interface, ns string) error
LoadSecrets loads the secrets into the log masker
Click to show internal directories.
Click to hide internal directories.