(pluginName string, option map[string]interface{})
| 182 | } |
| 183 | |
| 184 | func 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 |
| 192 | func GetPipelines(query *PipelineQuery, shouldSanitize bool) ([]*models.Pipeline, int64, errors.Error) { |
no outgoing calls
no test coverage detected