execution

package
v0.0.0-...-4f4fead Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionConfig

type ExecutionConfig struct {
	// Task Exeuction Id
	ExecutionId string
	// Entrypoint specified by request
	EntryPoint string
	// Language runtime for task
	Runtime *manifest.ManifestRuntime
}

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

func (*Executor) Execute

Execute execute code

func (*Executor) IsExecutorAvailable

func (r *Executor) IsExecutorAvailable(rt *manifest.ManifestRuntime) bool

IsExecutorAvailable checks if there is an available executor/container to use

func (*Executor) Prepare

func (r *Executor) Prepare(containerId string, files []models.ExecutionFile) (executionId string, err error)

Prepare prepares the execution It creates a directory with the execution id It copies the files to the directory It returns the execution id

func (*Executor) Setup

func (r *Executor) Setup(ctn di.Container)

Setup the executor struct

Jump to

Keyboard shortcuts

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