Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidPlaintextLength = errors.New("plaintext length cannot be negative") ErrInvalidPlaintextSide = errors.New("plaintext side must be left of right") ErrInvalidMaskingPattern = errors.New("masking pattern can't be empty") )
Validaton errors
Functions ¶
func ValidateMaskingParams ¶
func ValidateMaskingParams(pattern string, plaintextLength int, plaintextSide PlainTextSide, dataType common.EncryptedType) error
ValidateMaskingParams checks and returns an error if masking parameters are incorrect.
Types ¶
type PlainTextSide ¶
type PlainTextSide string
PlainTextSide defines which side of data is left untouched (in plain), and which is masked with a pattern.
const ( PlainTextSideLeft PlainTextSide = "left" PlainTextSideRight PlainTextSide = "right" )
Allowable values for PlainTextSide
Click to show internal directories.
Click to hide internal directories.