Documentation
¶
Overview ¶
Package config parses instigator's YAML configuration into validated, strongly typed values: addresses as netip types, MACs parsed, service toggles and ports defaulted.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Name string
MAC net.HardwareAddr
IP netip.Addr
}
Client is one machine instigator answers.
type Config ¶
type Config struct {
ServerIP netip.Addr
Netmask netip.Prefix
Clients []Client
InstallSets []InstallSet
Services Services
Ports Ports
}
Config is a validated instigator configuration.
type InstallSet ¶
InstallSet is one served IRIX install tree, assembled by layering Layers in the given order. Every configured set is always built and served (browsable); Enabled controls only whether the set is offered in the generated command file and Inst> instructions. Collisions records, for a full logical path written by more than one layer, which layer's copy wins.
type Layer ¶
Layer is one directory or image contributing files to an install set. Exactly one of Image or Dir names its source: Image is a disc image mounted read-only, Dir is a directory served as-is.
Dist is the distribution directory inside that source, defaulting to "dist"; whatever it is called there, it merges into the set's own dist. A version-stub disc names its real catalog instead ("dist6.5", or "dist/dist6.5" where the disc hides it behind a .redirect), which rebases it so inst only ever sees /<set>/dist.
Boot marks the layer whose stand directory is served at /<set>/stand, where the PROM fetches fx.64. At most one layer per set may set it, and only a set an operator actually netboots needs one at all.
type Services ¶
type Services struct {
BOOTP bool
TFTP TFTPService
RSH bool
}
Services holds the per-protocol toggles.
type TFTPService ¶
TFTPService holds the tftp toggle and its transfer port range.