executor

package
v0.0.0-...-f8747f6 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 10 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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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