Documentation
¶
Index ¶
- func NewExecutor(_ context.Context, _ string) (types.Executor, error)
- type Executor
- func (e *Executor) Cancel(_ context.Context, _ string) error
- func (e *Executor) Cleanup(_ context.Context) error
- func (e *Executor) Exec(_ context.Context, _ string, _ []string) (int, string, string, error)
- func (e *Executor) GetID() string
- func (e *Executor) GetLogStream(_ context.Context, _ types.LogStreamRequest) (io.ReadCloser, error)
- func (e *Executor) GetStatus(_ context.Context, _ string) (types.ExecutionStatus, error)
- func (e *Executor) List() []types.ExecutionListItem
- func (e *Executor) Pause(_ context.Context, _ string) error
- func (e *Executor) Remove(_ string, _ time.Duration) error
- func (e *Executor) Resume(_ context.Context, _ string) error
- func (e *Executor) Run(_ context.Context, _ *types.ExecutionRequest) (*types.ExecutionResult, error)
- func (e *Executor) Start(_ context.Context, _ *types.ExecutionRequest) error
- func (e *Executor) Stats(_ context.Context, _ string) (*types.ExecutorStats, error)
- func (e *Executor) Wait(_ context.Context, _ string) (<-chan *types.ExecutionResult, <-chan error)
- func (e *Executor) WaitForStatus(_ context.Context, _ string, _ types.ExecutionStatus, _ *time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Executor ¶
type Executor struct{}
Executor is a no-op implementation of the Executor interface.
func (*Executor) GetLogStream ¶
func (e *Executor) GetLogStream(_ context.Context, _ types.LogStreamRequest) (io.ReadCloser, error)
GetLogStream returns a closed io.ReadCloser and nil error.
func (*Executor) List ¶
func (e *Executor) List() []types.ExecutionListItem
List returns an empty slice of ExecutionListItem.
func (*Executor) Run ¶
func (e *Executor) Run(_ context.Context, _ *types.ExecutionRequest) (*types.ExecutionResult, error)
Run returns a nil result and nil error.
func (*Executor) Stats ¶ added in v0.9.0
Stats returns nil stats and an error indicating stats are not available for null executor.
Click to show internal directories.
Click to hide internal directories.