schema

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RuntimeBackendDocker  = "docker"
	RuntimeBackendSandbox = "sandbox"
)
View Source
const (
	RuntimeBackendTag = "Runtime-Backend"
	StartCommandTag   = "Start-Command"
	SandboxAgentTag   = "Sandbox-Agent"
	SandboxNetworkTag = "Sandbox-Network"
	SandboxNameTag    = "Sandbox-Name"
	SandboxCommandTag = "Sandbox-Command"
)
View Source
const (
	ImageNameTag    = "Image-Name"
	ImageIDTag      = "Image-ID"
	ImageSourceTag  = "Image-Source"
	ImageArchiveTag = "Image-Archive-Format"
)
View Source
const (
	ImageSourceModuleData    = "module-data"
	ImageArchiveDockerSaveGZ = "docker-save+gzip"
)
View Source
const (
	ModuleFormat = "hymx.vmdocker.v0.0.1"
)

Variables

View Source
var (
	DockerVersion = "1.47"
	ExprotPort    = "8080/tcp"
	AllowHost     = "127.0.0.1"             // Only host machine can access the runtime
	MaxMem        = 12 * 1024 * 1024 * 1024 // max 12GB memory
	CheckpointDir = "checkpoints"

	// use mount to share models
	UseMount    = false
	MountSource = os.ExpandEnv("$HOME/.ollama/models")
	MountTarget = "/app/models"
)
View Source
var ErrNotSupported = errors.New("not supported in stateless runtime mode")

Functions

This section is empty.

Types

type ImageInfo

type ImageInfo struct {
	Name          string // Docker image name
	SHA           string // Image SHA256 digest for verification
	Source        string // how the image should be sourced
	ArchiveFormat string // payload encoding for module-backed images
}

ImageInfo contains image name and verification information

type InstanceInfo

type InstanceInfo struct {
	ID        string
	Name      string
	Port      int
	Status    string
	CreateAt  time.Time
	Backend   string
	Agent     string
	Workspace string
}

type RuntimeSpec

type RuntimeSpec struct {
	Backend      string
	StartCommand string
	Image        ImageInfo
	Sandbox      SandboxSpec
}

type SandboxSpec

type SandboxSpec struct {
	Agent     string
	Workspace string
	Network   string
	Name      string
	Command   string
}

Jump to

Keyboard shortcuts

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