Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeMonitor ¶
NodeMonitor is used to wrap the node executable binary.
func NewNodeMonitor ¶
func NewNodeMonitor(queueSize int) *NodeMonitor
NewNodeMonitor returns a new node monitor
func (*NodeMonitor) GetPid ¶
func (nm *NodeMonitor) GetPid() int
GetPid returns the node monitor's pid.
func (*NodeMonitor) Run ¶
func (nm *NodeMonitor) Run(sockPath, bpfRoot string)
Run starts the node monitor and keeps on restarting it. The function will never return.
func (*NodeMonitor) SendEvent ¶
func (nm *NodeMonitor) SendEvent(typ int, event interface{}) error
SendEvent sends an event to the node monitor which will then distribute to all monitor listeners
func (*NodeMonitor) State ¶
func (nm *NodeMonitor) State() *models.MonitorStatus
State returns the monitor status.
Click to show internal directories.
Click to hide internal directories.