runconfig

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuilderConfig

type BuilderConfig struct {
	Name       string `toml:"name"`
	Dockerfile string `toml:"dockerfile"`
}

type Config

type Config struct {
	Machine MachineConfig `toml:"machine"`
	Rootfs  RootfsConfig  `toml:"rootfs"`
	Builder BuilderConfig `toml:"builder"`
	Kernel  KernelConfig  `toml:"kernel"`
}

Config represents the structure of vers.toml for runtime/build needs.

func Default

func Default() *Config

Default returns a config with safe defaults.

func Load

func Load() (*Config, error)

Load loads vers.toml if present, otherwise returns Default() and prints a warning.

type KernelConfig

type KernelConfig struct {
	Name string `toml:"name"`
}

type MachineConfig

type MachineConfig struct {
	MemSizeMib  int64 `toml:"mem_size_mib"`
	VcpuCount   int64 `toml:"vcpu_count"`
	FsSizeVmMib int64 `toml:"fs_size_vm_mib"`
}

type RootfsConfig

type RootfsConfig struct {
	Name string `toml:"name"`
}

Jump to

Keyboard shortcuts

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