Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsIPv4DefaultRoute ¶
func IsIPv6DefaultRoute ¶
Types ¶
type DNSResolver ¶
type DNSResolver struct {
Running DNSConfig `json:"running,omitempty"`
}
type IPConfig ¶
type IPConfig struct { Enabled bool `json:"enabled,omitempty"` Addresses []net.IPNet `json:"address,omitempty"` }
func (*IPConfig) UnmarshalJSON ¶
type NetState ¶
type NetState struct { Hostname Hostname `json:"hostname,omitempty"` DNS DNSResolver `json:"dns-resolver,omitempty"` Routes RoutesRC `json:"routes,omitempty"` Ifaces []Iface `json:"interfaces"` }
func (*NetState) GetDefaultNextHopIface ¶
Click to show internal directories.
Click to hide internal directories.