RunPlugin manually execute a plugin directly (local server only)
(ctx context.Context, pluginName string, pluginTask plugin.PluginTask, options map[string]interface{}, subtaskNames ...string)
| 227 | |
| 228 | // RunPlugin manually execute a plugin directly (local server only) |
| 229 | func (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 | |
| 248 | func (d *DevlakeClient) configureEncryption() { |
| 249 | v := config.GetConfig() |
nothing calls this directly
no test coverage detected