Documentation ¶
Index ¶
- func Factory(conf model.MaskFactoryConfiguration) (model.MaskContextEngine, bool, error)
- type MaskEngine
- func (am MaskEngine) Cleanup(e model.Dictionary, key string, contexts ...model.Dictionary) (model.Dictionary, error)
- func (am MaskEngine) GetCleaner() model.FunctionMaskContextEngine
- func (am MaskEngine) MaskContext(context model.Dictionary, key string, contexts ...model.Dictionary) (model.Dictionary, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Factory ¶
func Factory(conf model.MaskFactoryConfiguration) (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, 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
Click to show internal directories.
Click to hide internal directories.