Documentation
¶
Overview ¶
Package hostnetwork inspects Linux network interfaces for future role plans. It does not apply or authorize network changes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Link ¶
type Link struct {
Name string `json:"name"`
State string `json:"state"`
MTU int `json:"mtu"`
MAC string `json:"mac,omitempty"`
Addresses []string `json:"addresses,omitempty"`
Inspectable bool `json:"inspectable"`
}
Link describes one interface for choosing an interface to inspect. Only an interface marked Inspectable may be passed to Inspect.
type Observation ¶
type Observation struct {
Interface string `json:"interface"`
Addresses json.RawMessage `json:"addresses"`
IPv4Routes json.RawMessage `json:"ipv4Routes"`
IPv6Routes json.RawMessage `json:"ipv6Routes"`
}
Observation is a read-only snapshot of an interface and its IPv4 and IPv6 routes. Resolver configuration and persistent network-manager profiles are not included, so it must not be used to authorize configuration changes.