config

package
v0.0.0-...-f662469 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InitramfsName = "drafter.drftinitramfs"
	KernelName    = "drafter.drftkernel"
	DiskName      = "drafter.drftdisk"

	StateName  = "drafter.drftstate"
	MemoryName = "drafter.drftmemory"

	ConfigName = "drafter.drftconfig"
)
View Source
const (
	DefaultBootArgs = "console=ttyS0 panic=1 pci=off modules=ext4 rootfstype=ext4 i8042.noaux i8042.nomux i8042.nopnp i8042.dumbkbd rootflags=rw"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfiguration

type AgentConfiguration struct {
	AgentVSockPort uint32
	ResumeTimeout  time.Duration
}

type HypervisorConfiguration

type HypervisorConfiguration struct {
	FirecrackerBin string
	JailerBin      string

	ChrootBaseDir string

	UID int
	GID int

	NetNS         string
	NumaNode      int
	CgroupVersion int

	EnableOutput bool
	EnableInput  bool
}

type KnownNamesConfiguration

type KnownNamesConfiguration struct {
	InitramfsName string
	KernelName    string
	DiskName      string

	StateName  string
	MemoryName string

	ConfigName string
}

type LivenessConfiguration

type LivenessConfiguration struct {
	LivenessVSockPort uint32
}

type NetworkConfiguration

type NetworkConfiguration struct {
	Interface string
	MAC       string
}

type PackageConfiguration

type PackageConfiguration struct {
	AgentVSockPort uint32 `json:"agentVSockPort"`
}

type ResourceAddresses

type ResourceAddresses struct {
	State     string
	Memory    string
	Initramfs string
	Kernel    string
	Disk      string
	Config    string
}

type ResourceResumeThresholds

type ResourceResumeThresholds struct {
	State     int64
	Memory    int64
	Initramfs int64
	Kernel    int64
	Disk      int64
	Config    int64
}

type VMConfiguration

type VMConfiguration struct {
	CPUCount    int
	MemorySize  int
	CPUTemplate string

	BootArgs string
}

Jump to

Keyboard shortcuts

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