docker_sandbox

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 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 Config

type Config struct {
	Network         string
	AgentDataPath   string
	SessionDataPath string
}

type DockerSandboxManager

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

func NewManager

func NewManager(cfg Config) *DockerSandboxManager

func (*DockerSandboxManager) CreateSandbox

func (m *DockerSandboxManager) CreateSandbox(ctx context.Context, image string, agentName string, namespace string, sessionID string) (*sandbox.SandboxHandle, error)

func (*DockerSandboxManager) DeleteSandbox

func (m *DockerSandboxManager) DeleteSandbox(ctx context.Context, sessionID string) error

func (*DockerSandboxManager) GetAgentDataPath added in v0.2.0

func (m *DockerSandboxManager) GetAgentDataPath() string

func (*DockerSandboxManager) GetSandbox

func (m *DockerSandboxManager) GetSandbox(ctx context.Context, sessionID string) (*sandbox.SandboxHandle, error)

type MountConfig

type MountConfig struct {
	// Source is the host path to mount.
	Source string
	// Destination is the container path where the source will be mounted.
	Destination string
}

MountConfig represents a volume mount configuration.

Jump to

Keyboard shortcuts

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