Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Factory ¶
func Factory(conf model.MaskFactoryConfiguration) (model.MaskEngine, bool, error)
Factory create a mask from a yaml config
Types ¶
type MaskEngine ¶
type MaskEngine struct {
// contains filtered or unexported fields
}
MaskEngine is a list of masking value and a rand init to mask
func NewMask ¶
func NewMask(conf model.ChoiceInCSVType, seed int64, seeder model.Seeder) (MaskEngine, error)
NewMask create a MaskRandomChoiceInCSV with a seed
func (MaskEngine) GenIdentifierIfNeeded ¶ added in v1.25.0
func (mrl MaskEngine) GenIdentifierIfNeeded(obj model.Dictionary, e model.Entry, context ...model.Dictionary) (model.Entry, error)
func (MaskEngine) Mask ¶
func (mrl MaskEngine) Mask(e model.Entry, context ...model.Dictionary) (model.Entry, error)
Mask choose a mask value randomly
Click to show internal directories.
Click to hide internal directories.