Documentation
¶
Overview ¶
Package diag implements network diagnostics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvalResult ¶
type EvalResult struct { Name string Error bool Status string Children []*EvalResult }
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func NewMonitor ¶
func (*Monitor) Evaluate ¶
func (m *Monitor) Evaluate() *EvalResult
type Node ¶
func DHCPv4 ¶
func DHCPv4() Node
DHCPv4 returns a Node which succeeds if /perm/dhcp4/wire/lease.json contains a non-expired DHCPv4 lease.
func DHCPv6 ¶
func DHCPv6() Node
DHCPv6 returns a Node which succeeds if /perm/dhcp6/wire/lease.json contains a non-expired DHCPv6 lease.
func Link ¶
Link returns a Node which succeeds when the specified network interface is in state UP and RUNNING.
func Ping4 ¶
Ping4 returns a Node which succeeds when the specified address responds to an ICMPv4 ping.
func Ping4Gateway ¶
func Ping4Gateway() Node
Ping4Gateway returns a Node which succeeds when the default gateway responds to an ICMPv4 ping.
func Ping6 ¶
Ping6 returns a Node which succeeds when the specified address responds to an ICMPv6 ping.
func Ping6Gateway ¶
func Ping6Gateway() Node
Ping6Gateway returns a Node which succeeds when the default gateway responds to an ICMPv6 ping.
func RouterAdvertisments ¶
RouterAdvertisments returns a Node which succeeds if the specified interface obtained at least one address from IPv6 router advertisments.