Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnonymizeJsonError ¶
type DefaultExecutors ¶
type DefaultExecutors struct {
S *transformer.TransformerExecutor
N *transformer.TransformerExecutor
Boolean *transformer.TransformerExecutor
}
type JsonAnonymizer ¶
type JsonAnonymizer struct {
// contains filtered or unexported fields
}
func NewAnonymizer ¶
func NewAnonymizer(opts ...Option) (*JsonAnonymizer, error)
NewAnonymizer initializes a new Anonymizer with functional options
func (*JsonAnonymizer) AnonymizeJSONObject ¶
func (a *JsonAnonymizer) AnonymizeJSONObject(jsonStr string) (string, error)
AnonymizeJSONObject takes a JSON string applies the configured anonymization transformations to each object, and returns the modified JSON string.
func (*JsonAnonymizer) AnonymizeJSONObjects ¶
func (a *JsonAnonymizer) AnonymizeJSONObjects(jsonStrs []string) ([]string, []*AnonymizeJsonError)
AnonymizeJSONObjects takes a slice of JSON strings applies the configured anonymization transformations to each object, and returns the modified JSON string.
type Option ¶
type Option func(*JsonAnonymizer)
Option is a functional option for configuring the Anonymizer
func WithDefaultTransformers ¶
func WithDefaultTransformers(defaults *mgmtv1alpha1.DefaultTransformersConfig) Option
WithDefaultTransformers sets the default transformers
func WithHaltOnFailure ¶
WithHaltOnFailure sets the haltOnFailure flag
func WithTransformerMappings ¶
func WithTransformerMappings(mappings []*mgmtv1alpha1.TransformerMapping) Option
WithTransformerMappings sets the transformer mappings
Click to show internal directories.
Click to hide internal directories.