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 RuntimeSpec ¶
type RuntimeSpec struct {
Backend string
StartCommand string
Image ImageInfo
Sandbox SandboxSpec
}
Click to show internal directories.
Click to hide internal directories.