Documentation
¶
Index ¶
- type AbstractExecutor
- func (a *AbstractExecutor) CleanupAndPersistState(ctx context.Context, req *types.ExecutionRequest) error
- func (a *AbstractExecutor) Close()
- func (a *AbstractExecutor) Execute(ctx context.Context, req *types.ExecutionRequest) (*types.ExecutorResponse, error)
- func (a *AbstractExecutor) FailureIndicator() FailureIndicator
- func (a *AbstractExecutor) RecoverWorkerLogs(ctx context.Context) error
- type Executor
- type FailureIndicator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractExecutor ¶
type AbstractExecutor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
NewExecutor creates and returns the executor client based on the executor environment
func (*AbstractExecutor) CleanupAndPersistState ¶
func (a *AbstractExecutor) CleanupAndPersistState(ctx context.Context, req *types.ExecutionRequest) error
CleanupAndPersistState stops the container/pod and saves the state file in the database
func (*AbstractExecutor) Close ¶
func (a *AbstractExecutor) Close()
func (*AbstractExecutor) Execute ¶
func (a *AbstractExecutor) Execute(ctx context.Context, req *types.ExecutionRequest) (*types.ExecutorResponse, error)
func (*AbstractExecutor) FailureIndicator ¶
func (a *AbstractExecutor) FailureIndicator() FailureIndicator
func (*AbstractExecutor) RecoverWorkerLogs ¶
func (a *AbstractExecutor) RecoverWorkerLogs(ctx context.Context) error
RecoverWorkerLogs uploads worker logs from the previous container/pod on startup (S3 mode).
type Executor ¶
type Executor interface {
Execute(ctx context.Context, req *types.ExecutionRequest, workdir string) (string, error)
Cleanup(ctx context.Context, req *types.ExecutionRequest) error
Close() error
}
Executor interface for k8s and docker executor
type FailureIndicator ¶
type FailureIndicator interface {
Indicator(ctx context.Context, req *types.IndicatorRequest) error
}
FailureIndicator spawns or deletes GitOps failure-indicator pods/containers.
Directories
¶
| Path | Synopsis |
|---|---|
|
GitOps: failure-indicator containers for ConfigMap/Secret validation errors (spawn/delete via IndicatorWorkflow).
|
GitOps: failure-indicator containers for ConfigMap/Secret validation errors (spawn/delete via IndicatorWorkflow). |
|
GitOps: failure-indicator pods for ConfigMap/Secret validation errors (spawn/delete via IndicatorWorkflow).
|
GitOps: failure-indicator pods for ConfigMap/Secret validation errors (spawn/delete via IndicatorWorkflow). |
Click to show internal directories.
Click to hide internal directories.