Documentation
¶
Overview ¶
Package initd contains the runnable entry point for the vminitd guest process. External cmd wrappers parse flags via ParseFlags and call Run to start the service. Plugins are registered via blank imports in the cmd wrapper.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
VSockContextID int
RPCPort int
StreamPort int
Networks Networks
DumpInfo bool
Debug bool
Dev bool
}
Config holds the parsed vminitd configuration.
func ParseFlags ¶
ParseFlags parses the standard vminitd command-line flags from args and returns the populated Config. The "tsi_hijack" leading argument injected by libkrun (when TSI is enabled) is stripped before parsing.
type Networks ¶
type Networks []vmnetworking.Network
Networks is a flag.Value implementation for repeated -network arguments, parsing each value into a vmnetworking.Network and appending to the slice.
Click to show internal directories.
Click to hide internal directories.