Documentation ¶
Overview ¶
Package executor provides an abstraction of a job executor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BacalhauExecutor ¶
type BacalhauExecutor struct {
Client *publicapi.RequesterAPIClient
}
func (*BacalhauExecutor) Execute ¶
func (b *BacalhauExecutor) Execute(ctx context.Context, rawJob interface{}) (Result, error)
func (*BacalhauExecutor) Render ¶
func (b *BacalhauExecutor) Render(job config.Job, inputs []ExecutorIOSpec, outputs []ExecutorIOSpec) interface{}
type Executor ¶
type Executor interface { Execute(context.Context, interface{}) (Result, error) Render(config.Job, []ExecutorIOSpec, []ExecutorIOSpec) interface{} }
Executor abstracts the execution of a job
func NewBacalhauExecutor ¶
func NewBacalhauExecutor() Executor
type ExecutorIOSpec ¶
Click to show internal directories.
Click to hide internal directories.