executor

package
v0.0.0-...-0c22c03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

func NewExecutor(ctx context.Context, db *database.DB) (*AbstractExecutor, error)

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 (*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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL