Documentation ¶
Index ¶
- func DirectRun(cmd *cobra.Command, args []string, pluginTask core.PluginTask, ...)
- func LoadPlugins(pluginsDir string, config *viper.Viper, logger core.Logger, db *gorm.DB) error
- func NewGormDb(config *viper.Viper, logger core.Logger) (*gorm.DB, error)
- func RegisterMigrationScripts(scripts []migration.Script, comment string, config core.ConfigGetter, ...)
- func RunCmd(cmd *cobra.Command)
- func RunPipeline(cfg *viper.Viper, log core.Logger, db *gorm.DB, pipelineId uint64, ...) error
- func RunPluginSubTasks(ctx context.Context, cfg *viper.Viper, logger core.Logger, db *gorm.DB, ...) error
- func RunPluginTask(ctx context.Context, cfg *viper.Viper, logger core.Logger, db *gorm.DB, ...) error
- func RunTask(ctx context.Context, _ *viper.Viper, logger core.Logger, db *gorm.DB, ...) error
- func UpdateProgressDetail(db *gorm.DB, logger core.Logger, taskId uint64, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirectRun ¶
func DirectRun(cmd *cobra.Command, args []string, pluginTask core.PluginTask, options map[string]interface{})
DirectRun direct run plugin from command line. cmd: type is cobra.Command args: command line arguments pluginTask: specific built-in plugin, for example: feishu, jira... options: plugin config
func LoadPlugins ¶
LoadPlugins load plugins from local directory
func RegisterMigrationScripts ¶ added in v0.12.0
func RegisterMigrationScripts(scripts []migration.Script, comment string, config core.ConfigGetter, logger core.Logger)
RegisterMigrationScripts FIXME ...
func RunPipeline ¶
func RunPipeline( cfg *viper.Viper, log core.Logger, db *gorm.DB, pipelineId uint64, runTasks func([]uint64) error, ) error
RunPipeline FIXME ...
func RunPluginSubTasks ¶
func RunPluginSubTasks( ctx context.Context, cfg *viper.Viper, logger core.Logger, db *gorm.DB, taskID uint64, name string, subtaskNames []string, options map[string]interface{}, pluginTask core.PluginTask, progress chan core.RunningProgress, ) error
RunPluginSubTasks FIXME ...
func RunPluginTask ¶
func RunPluginTask( ctx context.Context, cfg *viper.Viper, logger core.Logger, db *gorm.DB, taskID uint64, name string, subtasks []string, options map[string]interface{}, progress chan core.RunningProgress, ) error
RunPluginTask FIXME ...
func RunTask ¶
func RunTask( ctx context.Context, _ *viper.Viper, logger core.Logger, db *gorm.DB, progress chan core.RunningProgress, taskId uint64, ) error
RunTask FIXME ...
func UpdateProgressDetail ¶
func UpdateProgressDetail(db *gorm.DB, logger core.Logger, taskId uint64, progressDetail *models.TaskProgressDetail, p *core.RunningProgress)
UpdateProgressDetail FIXME ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.