Documentation
¶
Overview ¶
Package datamasking erases selected data and composes encryption providers.
Index ¶
Constants ¶
View Source
const DefaultMask = "*****"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EraseOptions ¶
type Masker ¶
type Masker struct {
// contains filtered or unexported fields
}
type Provider ¶
type Provider interface {
Encrypt(context.Context, string, map[string]string) (string, error)
Decrypt(context.Context, string, map[string]string) (string, error)
}
Provider owns ciphertext format, cryptography and authenticated context. Implementations must support concurrent calls and honor cancellation.
type Rule ¶
Rule uses pointers to retain explicit false and empty custom masks. Replace is an application-owned string replacement strategy, with precedence over CustomMask and DynamicMask. The optional commons/regex module provides Regexp.Replacer for ECMAScript string replacement without a core dependency.
type TransformOptions ¶
Click to show internal directories.
Click to hide internal directories.