Documentation ¶
Index ¶
- type ExecutorConfig
- type ExecutorConfigExternalHooks
- type ExecutorHandlerGetBidStrategy
- type ExecutorHandlerGetVolumeSize
- type ExecutorHandlerHasStorageLocally
- type ExecutorHandlerIsInstalled
- type ExecutorHandlerJobHandler
- type NoopExecutor
- func (e *NoopExecutor) GetOutputStream(ctx context.Context, executionID string, withHistory bool, follow bool) (io.ReadCloser, error)
- func (e *NoopExecutor) GetResourceBidStrategy(ctx context.Context) (bidstrategy.ResourceBidStrategy, error)
- func (e *NoopExecutor) GetSemanticBidStrategy(ctx context.Context) (bidstrategy.SemanticBidStrategy, error)
- func (e *NoopExecutor) GetVolumeSize(ctx context.Context, volume model.StorageSpec) (uint64, error)
- func (e *NoopExecutor) HasStorageLocally(ctx context.Context, volume model.StorageSpec) (bool, error)
- func (e *NoopExecutor) IsInstalled(ctx context.Context) (bool, error)
- func (e *NoopExecutor) Run(ctx context.Context, executionID string, job model.Job, jobResultsDir string) (*model.RunCommandResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutorConfig ¶
type ExecutorConfig struct {
ExternalHooks ExecutorConfigExternalHooks
}
type ExecutorConfigExternalHooks ¶
type ExecutorConfigExternalHooks struct { IsInstalled ExecutorHandlerIsInstalled HasStorageLocally ExecutorHandlerHasStorageLocally GetVolumeSize ExecutorHandlerGetVolumeSize GetBidStrategy ExecutorHandlerGetBidStrategy JobHandler ExecutorHandlerJobHandler }
type ExecutorHandlerGetBidStrategy ¶ added in v0.3.24
type ExecutorHandlerGetBidStrategy func(ctx context.Context) (bidstrategy.BidStrategy, error)
type ExecutorHandlerJobHandler ¶
type ExecutorHandlerJobHandler func(ctx context.Context, job model.Job, resultsDir string) (*model.RunCommandResult, error)
func DelayedJobHandler ¶ added in v0.3.25
func DelayedJobHandler(sleep time.Duration) ExecutorHandlerJobHandler
func ErrorJobHandler ¶ added in v0.3.25
func ErrorJobHandler(err error) ExecutorHandlerJobHandler
type NoopExecutor ¶
type NoopExecutor struct { Jobs []model.Job Config ExecutorConfig }
func NewNoopExecutor ¶
func NewNoopExecutor() *NoopExecutor
func NewNoopExecutorWithConfig ¶
func NewNoopExecutorWithConfig(config ExecutorConfig) *NoopExecutor
func (*NoopExecutor) GetOutputStream ¶ added in v0.3.25
func (e *NoopExecutor) GetOutputStream(ctx context.Context, executionID string, withHistory bool, follow bool) (io.ReadCloser, error)
func (*NoopExecutor) GetResourceBidStrategy ¶ added in v1.0.0
func (e *NoopExecutor) GetResourceBidStrategy(ctx context.Context) (bidstrategy.ResourceBidStrategy, error)
func (*NoopExecutor) GetSemanticBidStrategy ¶ added in v1.0.0
func (e *NoopExecutor) GetSemanticBidStrategy(ctx context.Context) (bidstrategy.SemanticBidStrategy, error)
func (*NoopExecutor) GetVolumeSize ¶
func (e *NoopExecutor) GetVolumeSize(ctx context.Context, volume model.StorageSpec) (uint64, error)
func (*NoopExecutor) HasStorageLocally ¶
func (e *NoopExecutor) HasStorageLocally(ctx context.Context, volume model.StorageSpec) (bool, error)
func (*NoopExecutor) IsInstalled ¶
func (e *NoopExecutor) IsInstalled(ctx context.Context) (bool, error)
Click to show internal directories.
Click to hide internal directories.