Documentation ¶
Index ¶
- Constants
- func NewHmacHasherTransformer(config MaskFunctionHash, lgr log.Logger, tables filter.Filter, ...) (abstract.Transformer, error)
- func NewMaskTransformer(config Config, lgr log.Logger) (abstract.Transformer, error)
- type Config
- type HmacHasher
- func (hh *HmacHasher) Apply(input []abstract.ChangeItem) abstract.TransformerResult
- func (hh *HmacHasher) Description() string
- func (hh *HmacHasher) ResultSchema(original *abstract.TableSchema) (*abstract.TableSchema, error)
- func (hh *HmacHasher) Suitable(table abstract.TableID, schema *abstract.TableSchema) bool
- func (hh *HmacHasher) Type() abstract.TransformerType
- type MaskFunctionHash
Constants ¶
View Source
const MaskFieldTransformerType = abstract.TransformerType("mask_field")
Variables ¶
This section is empty.
Functions ¶
func NewHmacHasherTransformer ¶
func NewHmacHasherTransformer(config MaskFunctionHash, lgr log.Logger, tables filter.Filter, columns []string) (abstract.Transformer, error)
func NewMaskTransformer ¶
Types ¶
type Config ¶
type Config struct { MaskFunctionHash MaskFunctionHash `json:"maskFunctionHash"` Tables filter.Tables `json:"tables"` Columns []string `json:"columns"` }
type HmacHasher ¶
type HmacHasher struct { Tables filter.Filter Columns *set.Set[string] HashFactory func() hash.Hash Salt string // contains filtered or unexported fields }
func (*HmacHasher) Apply ¶
func (hh *HmacHasher) Apply(input []abstract.ChangeItem) abstract.TransformerResult
func (*HmacHasher) Description ¶
func (hh *HmacHasher) Description() string
func (*HmacHasher) ResultSchema ¶
func (hh *HmacHasher) ResultSchema(original *abstract.TableSchema) (*abstract.TableSchema, error)
func (*HmacHasher) Suitable ¶
func (hh *HmacHasher) Suitable(table abstract.TableID, schema *abstract.TableSchema) bool
func (*HmacHasher) Type ¶
func (hh *HmacHasher) Type() abstract.TransformerType
type MaskFunctionHash ¶
type MaskFunctionHash struct {
UserDefinedSalt string `json:"userDefinedSalt"`
}
Click to show internal directories.
Click to hide internal directories.