Documentation
¶
Index ¶
Constants ¶
View Source
const ( MetadataFilename = "ccbundle.yaml" DefaultImageDir = "image" )
Variables ¶
This section is empty.
Functions ¶
func IsBundleDir ¶
func ValidateBundleDir ¶ added in v0.0.2
ValidateBundleDir validates that a directory is a valid bundle with valid metadata.
func WriteTemplate ¶
WriteTemplate writes a metadata YAML file. Callers should have already created the bundle directory and any referenced files (image/, icons, etc.).
Types ¶
type BootConfig ¶
type BootConfig struct {
ImageDir string `yaml:"imageDir"`
Command []string `yaml:"command,omitempty"`
CPUs int `yaml:"cpus,omitempty"`
MemoryMB uint64 `yaml:"memoryMB,omitempty"`
Exec bool `yaml:"exec,omitempty"`
Dmesg bool `yaml:"dmesg,omitempty"`
Env []string `yaml:"env,omitempty"` // Custom environment variables (KEY=value format)
}
type Metadata ¶
type Metadata struct {
Version int `yaml:"version"`
Name string `yaml:"name"`
Description string `yaml:"description"`
Icon string `yaml:"icon,omitempty"`
Boot BootConfig `yaml:"boot"`
}
Metadata describes a prebaked “cc bundle” folder on disk.
func LoadMetadata ¶
Click to show internal directories.
Click to hide internal directories.