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

Method RunPlugin

backend/test/helper/client.go:229–246  ·  view source on GitHub ↗

RunPlugin manually execute a plugin directly (local server only)

(ctx context.Context, pluginName string, pluginTask plugin.PluginTask, options map[string]interface{}, subtaskNames ...string)

Source from the content-addressed store, hash-verified

227
228// RunPlugin manually execute a plugin directly (local server only)
229func (d *DevlakeClient) RunPlugin(ctx context.Context, pluginName string, pluginTask plugin.PluginTask, options map[string]interface{}, subtaskNames ...string) errors.Error {
230 if len(subtaskNames) == 0 {
231 subtaskNames = GetSubtaskNames(pluginTask.SubTaskMetas()...)
232 }
233 task := &models.Task{
234 Plugin: pluginName,
235 Options: options,
236 Subtasks: subtaskNames,
237 }
238 return runner.RunPluginSubTasks(
239 ctx,
240 d.basicRes,
241 task,
242 pluginTask,
243 nil,
244 nil,
245 )
246}
247
248func (d *DevlakeClient) configureEncryption() {
249 v := config.GetConfig()

Callers

nothing calls this directly

Calls 2

GetSubtaskNamesFunction · 0.85
SubTaskMetasMethod · 0.65

Tested by

no test coverage detected