MCPcopy
hub / github.com/apache/devlake / SanitizePluginOption

Function SanitizePluginOption

backend/server/services/pipeline.go:184–189  ·  view source on GitHub ↗
(pluginName string, option map[string]interface{})

Source from the content-addressed store, hash-verified

182}
183
184func SanitizePluginOption(pluginName string, option map[string]interface{}) (map[string]interface{}, error) {
185 if sanitizer, ok := pluginOptionSanitizers[pluginName]; ok {
186 sanitizer(option)
187 }
188 return option, nil
189}
190
191// GetPipelines by query
192func GetPipelines(query *PipelineQuery, shouldSanitize bool) ([]*models.Pipeline, int64, errors.Error) {

Callers 4

SanitizeTaskFunction · 0.85
GetTasksWithLastStatusFunction · 0.85
RerunTaskFunction · 0.85
GetSubTasksInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected