executor

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerConfig

type DockerConfig struct {
	Image       string
	WorkDir     string
	Timeout     time.Duration
	CPU_LIMIT   int64
	MemoryLimit int64
	Env         []string
}

type DockerExecutor

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

func NewDockerExecutor

func NewDockerExecutor(logger *slog.Logger) (*DockerExecutor, error)

func (*DockerExecutor) Close

func (e *DockerExecutor) Close() error

func (*DockerExecutor) Execute

func (e *DockerExecutor) Execute(ctx context.Context, cfg DockerConfig, cmd []string, stdin io.Reader, stdout io.Writer) error

Jump to

Keyboard shortcuts

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