Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Factory ¶
func Factory(conf model.MaskFactoryConfiguration) (model.MaskEngine, bool, error)
Create a mask from a configuration
Types ¶
type MaskEngine ¶
type MaskEngine struct {
// contains filtered or unexported fields
}
MaskEngine is a struct to mask XML content within JSON values
func NewMask ¶
func NewMask(xPath, injectParent string, caches map[string]model.Cache, fns template.FuncMap, seed int64, subMasking ...model.Masking) (MaskEngine, error)
NewMask return a MaskEngine from xPath name, injectParent and Masking config
func (MaskEngine) Mask ¶
func (engine MaskEngine) Mask(e model.Entry, context ...model.Dictionary) (model.Entry, error)
Mask choose the target attribute or tag value and apply masking configuration
Click to show internal directories.
Click to hide internal directories.