MCPcopy Create free account
hub / github.com/apache/devlake / encodeTaskOptions

Function encodeTaskOptions

backend/helpers/pluginhelper/api/pipeline_plan.go:102–109  ·  view source on GitHub ↗
(op interface{})

Source from the content-addressed store, hash-verified

100}
101
102func encodeTaskOptions(op interface{}) (map[string]interface{}, errors.Error) {
103 var result map[string]interface{}
104 err := Decode(op, &result, nil)
105 if err != nil {
106 return nil, err
107 }
108 return result, nil
109}

Callers 1

MakePipelinePlanTaskFunction · 0.85

Calls 1

DecodeFunction · 0.70

Tested by

no test coverage detected