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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// CreateSandbox ensures a sandbox exists for the given session, creating one if needed.
	CreateSandbox(ctx context.Context, image string, agentName string, namespace string, sessionID string) (*SandboxHandle, error)
	// GetSandbox returns the handle for an existing sandbox.
	GetSandbox(ctx context.Context, sessionID string) (*SandboxHandle, error)
	// DeleteSandbox tears down the sandbox for the given session.
	DeleteSandbox(ctx context.Context, sessionID string) error
	// GetAgentDataPath returns the path where agent data is available
	GetAgentDataPath() string
}

Manager defines the lifecycle operations for sandboxes.

type NotFoundError

type NotFoundError struct {
	SessionID string
}

NotFoundError is returned when a sandbox for a given session does not exist.

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

type SandboxHandle

type SandboxHandle struct {
	SessionID string
	PodName   string
	PodIP     string
	Port      int
}

SandboxHandle represents a running sandbox pod bound to a session.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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