Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct {
Metadata *MetadataConfig
Network *NetworkConfig
}
type EthernetConfig ¶
type EthernetConfig struct {
Match struct {
MacAddress string `json:"mac_address" yaml:"mac_address"`
} `json:"match" yaml:"match"`
Addresses []string `json:"addresses" yaml:"addresses"`
Gateway4 string `json:"gateway4,omitempty" yaml:"gateway4,omitempty"`
Gateway6 string `json:"gateway6,omitempty" yaml:"gateway6,omitempty"`
}
type MetadataConfig ¶
type NetworkConfig ¶
type NetworkConfig struct {
Version int `json:"version" yaml:"version"`
Ethernets map[string]EthernetConfig `json:"ethernets" yaml:"ethernets"`
}
Click to show internal directories.
Click to hide internal directories.