Added EeSV1 APIs back

This commit is contained in:
Trial97
2021-09-06 17:03:34 +03:00
committed by Dan Christian Bogos
parent f147617401
commit a3ebbe38ec
42 changed files with 195 additions and 288 deletions

View File

@@ -96,9 +96,9 @@ func (eeR *ExportRequest) FieldAsString(fldPath []string) (val string, err error
}
//SetFields will populate fields of AgentRequest out of templates
func (eeR *ExportRequest) SetFields(tplFlds []*config.FCTemplate) (err error) {
func (eeR *ExportRequest) SetFields(ctx *context.Context, tplFlds []*config.FCTemplate) (err error) {
for _, tplFld := range tplFlds {
if pass, err := eeR.filterS.Pass(context.TODO(), eeR.tnt,
if pass, err := eeR.filterS.Pass(ctx, eeR.tnt,
tplFld.Filters, eeR); err != nil {
return err
} else if !pass {