launch

package
v1.5.0-rc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeMonitor

type NodeMonitor struct {
	launcher.Launcher
	// contains filtered or unexported fields
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL