From 853112bafc81c67d0d4a43e246515b909efde160 Mon Sep 17 00:00:00 2001 From: Aaron Meihm Date: Sat, 27 Aug 2016 14:47:55 -0500 Subject: [PATCH] [minor] epm implementation for scribe module --- modules/scribe/scribe.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/scribe/scribe.go b/modules/scribe/scribe.go index 81b2cefb..4430d7c6 100644 --- a/modules/scribe/scribe.go +++ b/modules/scribe/scribe.go @@ -246,3 +246,21 @@ type parameters struct { func newParameters() *parameters { return ¶meters{} } + +// Enhanced privacy mode for scribe module, mask identifiers +func (r *run) EnhancePrivacy(in modules.Result) (out modules.Result, err error) { + var el ScribeElements + + out = in + err = out.GetElements(&el) + if err != nil { + return + } + for i := range el.Results { + for j := range el.Results[i].Results { + el.Results[i].Results[j].Identifier = "masked" + } + } + out.Elements = el + return +}