docker

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package docker hosts the Docker runtime backend.

Index

Constants

View Source
const (
	LabelSandboxID              = LabelNamespace + ".sandbox-id"
	LabelComponent              = LabelNamespace + ".component"
	LabelCompanionContainerName = LabelNamespace + ".companion-container-name"
	LabelProfile                = LabelNamespace + ".profile"
	LabelUserPrefix             = LabelNamespace + ".user."
)
View Source
const LabelNamespace = "io.github.1996fanrui.agents-sandbox"

Variables

View Source
var (
	ErrArtifactPathEscapesRoot    = errors.New("artifact path escapes configured root")
	ErrArtifactPathUsesSymlink    = errors.New("artifact path uses symlink boundary")
	ErrArtifactPathUsesHardlink   = errors.New("artifact path uses hardlink boundary")
	ErrArtifactTemplateFieldEmpty = errors.New("artifact template field is empty")
)
View Source
var ErrProjectionTargetUnreadable = errors.New("projection target is unreadable")

Functions

func CompanionContainerLabels added in v0.3.0

func CompanionContainerLabels(sandboxID string, name string, userLabels map[string]string) map[string]string

func PrepareExecOutputPath

func PrepareExecOutputPath(root string, template string, fields map[string]string) (string, error)

func ResolveLinkTarget

func ResolveLinkTarget(path string) (string, error)

func SandboxLabels

func SandboxLabels(sandboxID string, profile string, userLabels map[string]string) map[string]string

func ValidateWorkspaceTree

func ValidateWorkspaceTree(projectRoot string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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