addtransient

package
v1.15.1-beta1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: GPL-3.0 Imports: 5 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 value that will be the initialisation of the field when it's created

func NewMask

func NewMask(value model.Entry, tmpl tmpl.FuncMap, seed int64, seedField string) (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