Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetDevMatch ¶
type NetDevMatch struct { Name string `toml:"name"` MAC string `toml:"mac_address"` Path string `toml:"path"` Type string `toml:"type"` SSID string `toml:"ssid"` Host string `toml:"host"` }
NetDevMatch enumerates constraints which determine if the configuration in the file should be applied to a given device. If multiple configuration files would match, only the first (lexically) is applied.
func (*NetDevMatch) IsEmpty ¶
func (m *NetDevMatch) IsEmpty() bool
func (*NetDevMatch) String ¶
func (m *NetDevMatch) String() string
String returns the structure serialized as configuration.
type NetLink ¶
NetLink describes configuration to apply to a network link when the configuration matches a network device.
type NetSettings ¶
type NetSettings struct { DHCP NetDHCP IsDefaultRoute bool Address net.IPNet Gateway net.IP DNS []string }
NetSettings describes configuration to apply to a network.
func (*NetSettings) String ¶
func (n *NetSettings) String() string
String returns the structure serialized as configuration.
type Network ¶
type Network struct { Match NetDevMatch Link NetLink Net NetSettings }
Network describes configuration for a systemd-networkd.
Click to show internal directories.
Click to hide internal directories.