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 ¶
var ExtraServerInterceptors []ttrpc.UnaryServerInterceptor
ExtraServerInterceptors are chained after the default otelttrpc interceptor when the vminitd ttrpc server starts. Callers may append to this slice from a package init() function before initd.Run is called to inject additional server-side interceptors (e.g. for distributed tracing).
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.