docker

package
v0.0.0-...-604005a Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerSandbox

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

DockerSandbox 基于Docker的沙盒实现

func NewSandbox

func NewSandbox(cfg *config.SandboxConfig) (*DockerSandbox, error)

NewSandbox 创建Docker沙盒

func (*DockerSandbox) Cleanup

func (s *DockerSandbox) Cleanup() error

Cleanup 清理沙盒资源

func (*DockerSandbox) Execute

Execute 执行代码

type LanguageConfig

type LanguageConfig struct {
	Image          string
	Extension      string
	CompileCommand []string
	RunCommand     []string
}

LanguageConfig 语言配置

Jump to

Keyboard shortcuts

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