Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Event types // NetEvent_InterfaceStateDown is emitted when a network state has changed InterfaceStateDown = "interface-state-down" // InterfaceStateUp is emitted when a network state has changed InterfaceStateUp = "interface-state-up" // CloudReachable is emitted when the cloud (symphony) has become reachable CloudReachable = "cloud-reachable" // CloudUnreachable is emitted when the cloud (symphony) has become reachable CloudUnreachable = "cloud-unreachable" // NewAddress is emitted when an interface has a new address NewAddress = "new-address" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InterfaceEventData ¶
type InterfaceEventData struct { // Id represents the interfaces, such as "eth0" ID string `json:"id"` // Index represents the interfaces 'index' value Index int `json:"index"` Address string `json:"address"` AddressV6 string `json:"addressV6"` LinkState string `json:"linkstate"` }
InterfaceEventData is used if the event involves a change to an interface
type NetEventData ¶
type NetEventData struct { Type string `json:"type"` Interface *InterfaceEventData `json:"interface"` }
NetEventData - All network events has this data struct
Click to show internal directories.
Click to hide internal directories.