xml

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

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

Jump to

Keyboard shortcuts

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