replacement

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

func Factory(conf model.Masking, seed int64, caches map[string]model.Cache) (model.MaskEngine, bool, error)

Factory create a mask from a yaml config

Types

type MaskEngine

type MaskEngine struct {
	Field string
}

ReplacementMask is to mask with a value from another field

func NewMask

func NewMask(field string) MaskEngine

NewMask return a mask containing another field of the dictionary

func (MaskEngine) Mask

func (remp MaskEngine) Mask(e model.Entry, context ...model.Dictionary) (model.Entry, error)

Mask masks a value with another field of the json

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL