Documentation ¶
Index ¶
- type Config
- func (_m *Config) BridgeResponseURL() *url.URL
- func (_m *Config) DatabaseMaximumTxDuration() time.Duration
- func (_m *Config) DatabaseURL() string
- func (_m *Config) DefaultHTTPAllowUnrestrictedNetworkAccess() bool
- func (_m *Config) DefaultHTTPLimit() int64
- func (_m *Config) DefaultHTTPTimeout() models.Duration
- func (_m *Config) DefaultMaxHTTPAttempts() uint
- func (_m *Config) JobPipelineDBPollInterval() time.Duration
- func (_m *Config) JobPipelineMaxTaskDuration() time.Duration
- func (_m *Config) JobPipelineParallelism() uint8
- func (_m *Config) JobPipelineReaperInterval() time.Duration
- func (_m *Config) JobPipelineReaperThreshold() time.Duration
- type ORM
- func (_m *ORM) AwaitRun(ctx context.Context, runID int64) error
- func (_m *ORM) CreateRun(ctx context.Context, jobID int32, meta map[string]interface{}) (int64, error)
- func (_m *ORM) CreateSpec(ctx context.Context, taskDAG pipeline.TaskDAG) (int32, error)
- func (_m *ORM) DeleteRunsOlderThan(threshold time.Duration) error
- func (_m *ORM) FindBridge(name models.TaskType) (models.BridgeType, error)
- func (_m *ORM) ListenForNewRuns() (postgres.Subscription, error)
- func (_m *ORM) ProcessNextUnclaimedTaskRun(ctx context.Context, fn pipeline.ProcessTaskRunFunc) (bool, error)
- func (_m *ORM) ResultsForRun(ctx context.Context, runID int64) ([]pipeline.Result, error)
- func (_m *ORM) RunFinished(runID int64) (bool, error)
- type Task
- func (_m *Task) DotID() string
- func (_m *Task) OutputIndex() int32
- func (_m *Task) OutputTask() pipeline.Task
- func (_m *Task) Run(ctx context.Context, taskRun pipeline.TaskRun, inputs []pipeline.Result) pipeline.Result
- func (_m *Task) SetOutputTask(task pipeline.Task)
- 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 (*Config) BridgeResponseURL ¶
BridgeResponseURL provides a mock function with given fields:
func (*Config) DatabaseMaximumTxDuration ¶
DatabaseMaximumTxDuration provides a mock function with given fields:
func (*Config) DatabaseURL ¶
DatabaseURL provides a mock function with given fields:
func (*Config) DefaultHTTPAllowUnrestrictedNetworkAccess ¶
DefaultHTTPAllowUnrestrictedNetworkAccess 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) DefaultMaxHTTPAttempts ¶
DefaultMaxHTTPAttempts provides a mock function with given fields:
func (*Config) JobPipelineDBPollInterval ¶
JobPipelineDBPollInterval provides a mock function with given fields:
func (*Config) JobPipelineMaxTaskDuration ¶
JobPipelineMaxTaskDuration provides a mock function with given fields:
func (*Config) JobPipelineParallelism ¶
JobPipelineParallelism 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:
type ORM ¶
ORM is an autogenerated mock type for the ORM type
func (*ORM) CreateRun ¶
func (_m *ORM) CreateRun(ctx context.Context, jobID int32, meta map[string]interface{}) (int64, error)
CreateRun provides a mock function with given fields: ctx, jobID, meta
func (*ORM) CreateSpec ¶
CreateSpec provides a mock function with given fields: ctx, taskDAG
func (*ORM) DeleteRunsOlderThan ¶
DeleteRunsOlderThan provides a mock function with given fields: threshold
func (*ORM) FindBridge ¶
FindBridge provides a mock function with given fields: name
func (*ORM) ListenForNewRuns ¶
func (_m *ORM) ListenForNewRuns() (postgres.Subscription, error)
ListenForNewRuns provides a mock function with given fields:
func (*ORM) ProcessNextUnclaimedTaskRun ¶
func (_m *ORM) ProcessNextUnclaimedTaskRun(ctx context.Context, fn pipeline.ProcessTaskRunFunc) (bool, error)
ProcessNextUnclaimedTaskRun provides a mock function with given fields: ctx, fn
func (*ORM) ResultsForRun ¶
ResultsForRun provides a mock function with given fields: ctx, runID
type Task ¶
Task is an autogenerated mock type for the Task type
func (*Task) OutputIndex ¶
OutputIndex provides a mock function with given fields:
func (*Task) OutputTask ¶
OutputTask provides a mock function with given fields:
func (*Task) Run ¶
func (_m *Task) Run(ctx context.Context, taskRun pipeline.TaskRun, inputs []pipeline.Result) pipeline.Result
Run provides a mock function with given fields: ctx, taskRun, inputs
func (*Task) SetOutputTask ¶
SetOutputTask provides a mock function with given fields: task