addtransient

package
v1.13.0-beta5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: GPL-3.0 Imports: 4 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.MaskContextEngine, bool, error)

Create a mask from a configuration

Types

type MaskEngine

type MaskEngine struct {
	// contains filtered or unexported fields
}

MaskEngine is a value that will be the initialisation of the field when it's created

func NewMask

func NewMask(value model.Entry) (MaskEngine, error)

NewMask return a MaskEngine from a value

func (MaskEngine) Cleanup

func (am MaskEngine) Cleanup(e model.Dictionary, key string, contexts ...model.Dictionary) (model.Dictionary, error)

Cleanup removes the transient field

func (MaskEngine) GetCleaner

func (am MaskEngine) GetCleaner() model.FunctionMaskContextEngine

GetCleaner returns the cleanup function

func (MaskEngine) MaskContext

func (am MaskEngine) MaskContext(context model.Dictionary, key string, contexts ...model.Dictionary) (model.Dictionary, error)

MaskContext add the field

Jump to

Keyboard shortcuts

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