agent

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 58 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFlowProbeBundle added in v0.26.0

func NewFlowProbeBundle(tb *probe.Bundle, g *graph.Graph, fta *flow.TableAllocator) *probe.Bundle

NewFlowProbeBundle returns a new bundle of flow probes

func NewTopologyProbe added in v0.26.0

func NewTopologyProbe(name string, ctx tp.Context, bundle *probe.Bundle) (probe.Handler, error)

NewTopologyProbe creates a new topology probe

func NewTopologyProbeBundle added in v0.25.0

func NewTopologyProbeBundle(g *graph.Graph, hostNode *graph.Node) (*probe.Bundle, error)

NewTopologyProbeBundle creates a new topology probe.Bundle based on the configuration

Types

type Agent

type Agent struct {
	ws.DefaultSpeakerEventHandler
	// contains filtered or unexported fields
}

Agent object started on each hosts/namespaces

func NewAgent

func NewAgent() (*Agent, error)

NewAgent instantiates a new Agent aiming to launch probes (topology and flow)

func (*Agent) GetStatus added in v0.13.0

func (a *Agent) GetStatus() interface{}

GetStatus returns the status of an agent

func (*Agent) Start

func (a *Agent) Start()

Start the agent services

func (*Agent) Stop

func (a *Agent) Stop()

Stop agent services

type Status added in v0.20.0

type Status struct {
	Clients        map[string]ws.ConnStatus
	Analyzers      map[string]pod.ConnStatus
	TopologyProbes map[string]interface{}
	FlowProbes     []string
}

Status agent object

Status describes the status of an agent

swagger:model AgentStatus easyjson:json

func (Status) MarshalEasyJSON added in v0.27.0

func (v Status) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Status) MarshalJSON added in v0.27.0

func (v Status) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Status) UnmarshalEasyJSON added in v0.27.0

func (v *Status) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Status) UnmarshalJSON added in v0.27.0

func (v *Status) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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