Documentation ¶
Index ¶
- type Config
- type ORM
- func (_m *ORM) Close() error
- func (_m *ORM) CreateRun(ctx context.Context, run *pipeline.Run) error
- func (_m *ORM) CreateSpec(ctx context.Context, _a1 pipeline.Pipeline, maxTaskTimeout models.Interval) (int32, error)
- func (_m *ORM) DataSource() sqlutil.DataSource
- func (_m *ORM) DeleteRun(ctx context.Context, id int64) error
- func (_m *ORM) DeleteRunsOlderThan(_a0 context.Context, _a1 time.Duration) error
- func (_m *ORM) FindRun(ctx context.Context, id int64) (pipeline.Run, error)
- func (_m *ORM) GetAllRuns(ctx context.Context) ([]pipeline.Run, error)
- func (_m *ORM) GetUnfinishedRuns(_a0 context.Context, _a1 time.Time, _a2 func(pipeline.Run) error) error
- func (_m *ORM) HealthReport() map[string]error
- func (_m *ORM) InsertFinishedRun(ctx context.Context, run *pipeline.Run, saveSuccessfulTaskRuns bool) error
- func (_m *ORM) InsertFinishedRunWithSpec(ctx context.Context, run *pipeline.Run, saveSuccessfulTaskRuns bool) error
- func (_m *ORM) InsertFinishedRuns(ctx context.Context, run []*pipeline.Run, saveSuccessfulTaskRuns bool) error
- func (_m *ORM) InsertRun(ctx context.Context, run *pipeline.Run) error
- func (_m *ORM) Name() string
- func (_m *ORM) Ready() error
- func (_m *ORM) Start(_a0 context.Context) error
- func (_m *ORM) StoreRun(ctx context.Context, run *pipeline.Run) (bool, error)
- func (_m *ORM) Transact(_a0 context.Context, _a1 func(pipeline.ORM) error) error
- func (_m *ORM) UpdateTaskRunResult(ctx context.Context, taskID uuid.UUID, result pipeline.Result) (pipeline.Run, bool, error)
- func (_m *ORM) WithDataSource(_a0 sqlutil.DataSource) pipeline.ORM
- type PipelineParamUnmarshaler
- type Runner
- func (_m *Runner) Close() error
- func (_m *Runner) ExecuteAndInsertFinishedRun(ctx context.Context, spec pipeline.Spec, vars pipeline.Vars, l logger.Logger, ...) (int64, pipeline.TaskRunResults, error)
- func (_m *Runner) ExecuteRun(ctx context.Context, spec pipeline.Spec, vars pipeline.Vars, l logger.Logger) (*pipeline.Run, pipeline.TaskRunResults, error)
- func (_m *Runner) HealthReport() map[string]error
- func (_m *Runner) InitializePipeline(spec pipeline.Spec) (*pipeline.Pipeline, error)
- func (_m *Runner) InsertFinishedRun(ctx context.Context, ds sqlutil.DataSource, run *pipeline.Run, ...) error
- func (_m *Runner) InsertFinishedRuns(ctx context.Context, ds sqlutil.DataSource, runs []*pipeline.Run, ...) error
- func (_m *Runner) Name() string
- func (_m *Runner) OnRunFinished(_a0 func(*pipeline.Run))
- func (_m *Runner) Ready() error
- func (_m *Runner) ResumeRun(ctx context.Context, taskID uuid.UUID, value interface{}, err error) error
- func (_m *Runner) Run(ctx context.Context, run *pipeline.Run, l logger.Logger, ...) (bool, error)
- func (_m *Runner) Start(_a0 context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config is an autogenerated mock type for the Config type
func NewConfig ¶
NewConfig creates a new instance of Config. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Config) DefaultHTTPLimit ¶
DefaultHTTPLimit provides a mock function with given fields:
func (*Config) DefaultHTTPTimeout ¶
DefaultHTTPTimeout provides a mock function with given fields:
func (*Config) MaxRunDuration ¶ added in v2.3.0
MaxRunDuration provides a mock function with given fields:
func (*Config) ReaperInterval ¶ added in v2.3.0
ReaperInterval provides a mock function with given fields:
func (*Config) ReaperThreshold ¶ added in v2.3.0
ReaperThreshold provides a mock function with given fields:
func (*Config) VerboseLogging ¶ added in v2.11.0
VerboseLogging provides a mock function with given fields:
type ORM ¶
ORM is an autogenerated mock type for the ORM type
func NewORM ¶
NewORM creates a new instance of ORM. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ORM) CreateSpec ¶
func (_m *ORM) CreateSpec(ctx context.Context, _a1 pipeline.Pipeline, maxTaskTimeout models.Interval) (int32, error)
CreateSpec provides a mock function with given fields: ctx, _a1, maxTaskTimeout
func (*ORM) DataSource ¶ added in v2.12.0
func (_m *ORM) DataSource() sqlutil.DataSource
DataSource provides a mock function with given fields:
func (*ORM) DeleteRunsOlderThan ¶
DeleteRunsOlderThan provides a mock function with given fields: _a0, _a1
func (*ORM) GetAllRuns ¶
GetAllRuns provides a mock function with given fields: ctx
func (*ORM) GetUnfinishedRuns ¶
func (_m *ORM) GetUnfinishedRuns(_a0 context.Context, _a1 time.Time, _a2 func(pipeline.Run) error) error
GetUnfinishedRuns provides a mock function with given fields: _a0, _a1, _a2
func (*ORM) HealthReport ¶
HealthReport provides a mock function with given fields:
func (*ORM) InsertFinishedRun ¶
func (_m *ORM) InsertFinishedRun(ctx context.Context, run *pipeline.Run, saveSuccessfulTaskRuns bool) error
InsertFinishedRun provides a mock function with given fields: ctx, run, saveSuccessfulTaskRuns
func (*ORM) InsertFinishedRunWithSpec ¶ added in v2.11.0
func (_m *ORM) InsertFinishedRunWithSpec(ctx context.Context, run *pipeline.Run, saveSuccessfulTaskRuns bool) error
InsertFinishedRunWithSpec provides a mock function with given fields: ctx, run, saveSuccessfulTaskRuns
func (*ORM) InsertFinishedRuns ¶
func (_m *ORM) InsertFinishedRuns(ctx context.Context, run []*pipeline.Run, saveSuccessfulTaskRuns bool) error
InsertFinishedRuns provides a mock function with given fields: ctx, run, saveSuccessfulTaskRuns
func (*ORM) Transact ¶ added in v2.12.0
Transact provides a mock function with given fields: _a0, _a1
func (*ORM) UpdateTaskRunResult ¶
func (_m *ORM) UpdateTaskRunResult(ctx context.Context, taskID uuid.UUID, result pipeline.Result) (pipeline.Run, bool, error)
UpdateTaskRunResult provides a mock function with given fields: ctx, taskID, result
func (*ORM) WithDataSource ¶ added in v2.12.0
func (_m *ORM) WithDataSource(_a0 sqlutil.DataSource) pipeline.ORM
WithDataSource provides a mock function with given fields: _a0
type PipelineParamUnmarshaler ¶
PipelineParamUnmarshaler is an autogenerated mock type for the PipelineParamUnmarshaler type
func NewPipelineParamUnmarshaler ¶
func NewPipelineParamUnmarshaler(t interface { mock.TestingT Cleanup(func()) }) *PipelineParamUnmarshaler
NewPipelineParamUnmarshaler creates a new instance of PipelineParamUnmarshaler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*PipelineParamUnmarshaler) UnmarshalPipelineParam ¶
func (_m *PipelineParamUnmarshaler) UnmarshalPipelineParam(val interface{}) error
UnmarshalPipelineParam provides a mock function with given fields: val
type Runner ¶
Runner is an autogenerated mock type for the Runner type
func NewRunner ¶
NewRunner creates a new instance of Runner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Runner) ExecuteAndInsertFinishedRun ¶
func (_m *Runner) ExecuteAndInsertFinishedRun(ctx context.Context, spec pipeline.Spec, vars pipeline.Vars, l logger.Logger, saveSuccessfulTaskRuns bool) (int64, pipeline.TaskRunResults, error)
ExecuteAndInsertFinishedRun provides a mock function with given fields: ctx, spec, vars, l, saveSuccessfulTaskRuns
func (*Runner) ExecuteRun ¶
func (_m *Runner) ExecuteRun(ctx context.Context, spec pipeline.Spec, vars pipeline.Vars, l logger.Logger) (*pipeline.Run, pipeline.TaskRunResults, error)
ExecuteRun provides a mock function with given fields: ctx, spec, vars, l
func (*Runner) HealthReport ¶
HealthReport provides a mock function with given fields:
func (*Runner) InitializePipeline ¶ added in v2.10.0
InitializePipeline provides a mock function with given fields: spec
func (*Runner) InsertFinishedRun ¶
func (_m *Runner) InsertFinishedRun(ctx context.Context, ds sqlutil.DataSource, run *pipeline.Run, saveSuccessfulTaskRuns bool) error
InsertFinishedRun provides a mock function with given fields: ctx, ds, run, saveSuccessfulTaskRuns
func (*Runner) InsertFinishedRuns ¶
func (_m *Runner) InsertFinishedRuns(ctx context.Context, ds sqlutil.DataSource, runs []*pipeline.Run, saveSuccessfulTaskRuns bool) error
InsertFinishedRuns provides a mock function with given fields: ctx, ds, runs, saveSuccessfulTaskRuns
func (*Runner) OnRunFinished ¶
OnRunFinished provides a mock function with given fields: _a0
func (*Runner) ResumeRun ¶
func (_m *Runner) ResumeRun(ctx context.Context, taskID uuid.UUID, value interface{}, err error) error
ResumeRun provides a mock function with given fields: ctx, taskID, value, err