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
Click to show internal directories.
Click to hide internal directories.