Documentation ¶
Index ¶
- type Config
- func (_m *Config) BridgeResponseURL() *url.URL
- func (_m *Config) DatabaseURL() url.URL
- func (_m *Config) DefaultHTTPLimit() int64
- func (_m *Config) DefaultHTTPTimeout() models.Duration
- func (_m *Config) JobPipelineMaxRunDuration() time.Duration
- func (_m *Config) JobPipelineReaperInterval() time.Duration
- func (_m *Config) JobPipelineReaperThreshold() time.Duration
- func (_m *Config) TriggerFallbackDBPollInterval() time.Duration
- type ETHKeyStore
- type ORM
- func (_m *ORM) CreateRun(run *pipeline.Run, qopts ...pg.QOpt) error
- func (_m *ORM) CreateSpec(_a0 pipeline.Pipeline, maxTaskTimeout models.Interval, qopts ...pg.QOpt) (int32, error)
- func (_m *ORM) DeleteRun(id int64) error
- func (_m *ORM) DeleteRunsOlderThan(_a0 context.Context, _a1 time.Duration) error
- func (_m *ORM) FindRun(id int64) (pipeline.Run, error)
- func (_m *ORM) GetAllRuns() ([]pipeline.Run, error)
- func (_m *ORM) GetQ() pg.Q
- func (_m *ORM) GetUnfinishedRuns(_a0 context.Context, _a1 time.Time, _a2 func(pipeline.Run) error) error
- func (_m *ORM) InsertFinishedRun(run *pipeline.Run, saveSuccessfulTaskRuns bool, qopts ...pg.QOpt) error
- func (_m *ORM) InsertFinishedRuns(run []*pipeline.Run, saveSuccessfulTaskRuns bool, qopts ...pg.QOpt) error
- func (_m *ORM) InsertRun(run *pipeline.Run, qopts ...pg.QOpt) error
- func (_m *ORM) StoreRun(run *pipeline.Run, qopts ...pg.QOpt) (bool, error)
- func (_m *ORM) UpdateTaskRunResult(taskID uuid.UUID, result pipeline.Result) (pipeline.Run, bool, error)
- 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.FinalResult, 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) Healthy() error
- func (_m *Runner) InsertFinishedRun(run *pipeline.Run, saveSuccessfulTaskRuns bool, qopts ...pg.QOpt) error
- func (_m *Runner) InsertFinishedRuns(runs []*pipeline.Run, saveSuccessfulTaskRuns bool, qopts ...pg.QOpt) error
- func (_m *Runner) OnRunFinished(_a0 func(*pipeline.Run))
- func (_m *Runner) Ready() error
- func (_m *Runner) ResumeRun(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
- type Task
- func (_m *Task) Base() *pipeline.BaseTask
- func (_m *Task) DotID() string
- func (_m *Task) ID() int
- func (_m *Task) Inputs() []pipeline.TaskDependency
- func (_m *Task) OutputIndex() int32
- func (_m *Task) Outputs() []pipeline.Task
- func (_m *Task) Run(ctx context.Context, lggr logger.Logger, vars pipeline.Vars, ...) (pipeline.Result, pipeline.RunInfo)
- func (_m *Task) TaskMaxBackoff() time.Duration
- func (_m *Task) TaskMinBackoff() time.Duration
- func (_m *Task) TaskRetries() uint32
- func (_m *Task) TaskTimeout() (time.Duration, bool)
- func (_m *Task) Type() pipeline.TaskType
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 ¶ added in v1.6.0
func NewConfig(t mockConstructorTestingTNewConfig) *Config
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.
func (*Config) BridgeResponseURL ¶
BridgeResponseURL provides a mock function with given fields:
func (*Config) DatabaseURL ¶
DatabaseURL provides a mock function with given fields:
func (*Config) DefaultHTTPLimit ¶
DefaultHTTPLimit provides a mock function with given fields:
func (*Config) DefaultHTTPTimeout ¶
DefaultHTTPTimeout provides a mock function with given fields:
func (*Config) JobPipelineMaxRunDuration ¶ added in v0.9.10
JobPipelineMaxRunDuration provides a mock function with given fields:
func (*Config) JobPipelineReaperInterval ¶
JobPipelineReaperInterval provides a mock function with given fields:
func (*Config) JobPipelineReaperThreshold ¶
JobPipelineReaperThreshold provides a mock function with given fields:
func (*Config) TriggerFallbackDBPollInterval ¶ added in v0.9.6
TriggerFallbackDBPollInterval provides a mock function with given fields:
type ETHKeyStore ¶ added in v0.10.11
ETHKeyStore is an autogenerated mock type for the ETHKeyStore type
func NewETHKeyStore ¶ added in v1.6.0
func NewETHKeyStore(t mockConstructorTestingTNewETHKeyStore) *ETHKeyStore
NewETHKeyStore creates a new instance of ETHKeyStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ETHKeyStore) GetRoundRobinAddress ¶ added in v0.10.11
func (_m *ETHKeyStore) GetRoundRobinAddress(chainID *big.Int, addrs ...common.Address) (common.Address, error)
GetRoundRobinAddress provides a mock function with given fields: chainID, addrs
type ORM ¶
ORM is an autogenerated mock type for the ORM type
func NewORM ¶ added in v1.6.0
func NewORM(t mockConstructorTestingTNewORM) *ORM
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.
func (*ORM) CreateSpec ¶
func (_m *ORM) CreateSpec(_a0 pipeline.Pipeline, maxTaskTimeout models.Interval, qopts ...pg.QOpt) (int32, error)
CreateSpec provides a mock function with given fields: _a0, maxTaskTimeout, qopts
func (*ORM) DeleteRunsOlderThan ¶
DeleteRunsOlderThan provides a mock function with given fields: _a0, _a1
func (*ORM) GetAllRuns ¶ added in v0.10.8
GetAllRuns provides a mock function with given fields:
func (*ORM) GetUnfinishedRuns ¶ added in v0.10.10
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) InsertFinishedRun ¶ added in v0.10.5
func (_m *ORM) InsertFinishedRun(run *pipeline.Run, saveSuccessfulTaskRuns bool, qopts ...pg.QOpt) error
InsertFinishedRun provides a mock function with given fields: run, saveSuccessfulTaskRuns, qopts
func (*ORM) InsertFinishedRuns ¶ added in v1.4.0
func (_m *ORM) InsertFinishedRuns(run []*pipeline.Run, saveSuccessfulTaskRuns bool, qopts ...pg.QOpt) error
InsertFinishedRuns provides a mock function with given fields: run, saveSuccessfulTaskRuns, qopts
func (*ORM) InsertRun ¶ added in v1.1.0
InsertRun provides a mock function with given fields: run, qopts
type PipelineParamUnmarshaler ¶ added in v0.10.8
PipelineParamUnmarshaler is an autogenerated mock type for the PipelineParamUnmarshaler type
func NewPipelineParamUnmarshaler ¶ added in v1.6.0
func NewPipelineParamUnmarshaler(t mockConstructorTestingTNewPipelineParamUnmarshaler) *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.
func (*PipelineParamUnmarshaler) UnmarshalPipelineParam ¶ added in v0.10.8
func (_m *PipelineParamUnmarshaler) UnmarshalPipelineParam(val interface{}) error
UnmarshalPipelineParam provides a mock function with given fields: val
type Runner ¶ added in v0.10.3
Runner is an autogenerated mock type for the Runner type
func NewRunner ¶ added in v1.6.0
func NewRunner(t mockConstructorTestingTNewRunner) *Runner
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.
func (*Runner) ExecuteAndInsertFinishedRun ¶ added in v0.10.5
func (_m *Runner) ExecuteAndInsertFinishedRun(ctx context.Context, spec pipeline.Spec, vars pipeline.Vars, l logger.Logger, saveSuccessfulTaskRuns bool) (int64, pipeline.FinalResult, error)
ExecuteAndInsertFinishedRun provides a mock function with given fields: ctx, spec, vars, l, saveSuccessfulTaskRuns
func (*Runner) ExecuteRun ¶ added in v0.10.3
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) InsertFinishedRun ¶ added in v0.10.5
func (_m *Runner) InsertFinishedRun(run *pipeline.Run, saveSuccessfulTaskRuns bool, qopts ...pg.QOpt) error
InsertFinishedRun provides a mock function with given fields: run, saveSuccessfulTaskRuns, qopts
func (*Runner) InsertFinishedRuns ¶ added in v1.4.0
func (_m *Runner) InsertFinishedRuns(runs []*pipeline.Run, saveSuccessfulTaskRuns bool, qopts ...pg.QOpt) error
InsertFinishedRuns provides a mock function with given fields: runs, saveSuccessfulTaskRuns, qopts
func (*Runner) OnRunFinished ¶ added in v1.0.0
OnRunFinished provides a mock function with given fields: _a0
func (*Runner) ResumeRun ¶ added in v1.0.0
ResumeRun provides a mock function with given fields: taskID, value, err
type Task ¶
Task is an autogenerated mock type for the Task type
func NewTask ¶ added in v1.6.0
func NewTask(t mockConstructorTestingTNewTask) *Task
NewTask creates a new instance of Task. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Task) Inputs ¶ added in v1.1.0
func (_m *Task) Inputs() []pipeline.TaskDependency
Inputs provides a mock function with given fields:
func (*Task) OutputIndex ¶
OutputIndex provides a mock function with given fields:
func (*Task) Run ¶
func (_m *Task) Run(ctx context.Context, lggr logger.Logger, vars pipeline.Vars, inputs []pipeline.Result) (pipeline.Result, pipeline.RunInfo)
Run provides a mock function with given fields: ctx, lggr, vars, inputs
func (*Task) TaskMaxBackoff ¶ added in v1.1.0
TaskMaxBackoff provides a mock function with given fields:
func (*Task) TaskMinBackoff ¶ added in v1.1.0
TaskMinBackoff provides a mock function with given fields:
func (*Task) TaskRetries ¶ added in v1.1.0
TaskRetries provides a mock function with given fields:
func (*Task) TaskTimeout ¶ added in v0.9.7
TaskTimeout provides a mock function with given fields: