agents

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Server-side for handling agent functions

Index

Constants

This section is empty.

Variables

Module is fx module for controlling Agents on controller side.

Functions

This section is empty.

Types

type Agents

type Agents struct{ *rpc.Clients }

Agents wraps rpc.Clients where clients are agents and provides wrapper

Agents wraps functions registered in agentfunctions, types should match.

func NewAgents

func NewAgents(clients *rpc.Clients) Agents

NewAgents wraps Clients with Agent-specific function wrappers.

func (Agents) ListAutoScaleControlPoints added in v0.27.0

func (a Agents) ListAutoScaleControlPoints() ([]rpc.Result[*cmdv1.ListAutoScaleControlPointsAgentResponse], error)

ListAutoScaleControlPoints lists auto scale control points of all agents.

func (Agents) ListDiscoveryEntities added in v0.27.0

func (a Agents) ListDiscoveryEntities() ([]rpc.Result[*cmdv1.ListDiscoveryEntitiesAgentResponse], error)

ListDiscoveryEntities lists discovery entities.

func (Agents) ListDiscoveryEntity added in v0.27.0

ListDiscoveryEntity lists discovery entity by ip address or name.

func (Agents) ListFlowControlPoints added in v0.27.0

func (a Agents) ListFlowControlPoints() ([]rpc.Result[*cmdv1.ListFlowControlPointsAgentResponse], error)

ListFlowControlPoints lists control points of all agents.

Handled by agentfunctions.ControlPointsHandler.

func (Agents) PreviewFlowLabels

func (a Agents) PreviewFlowLabels(
	agent string,
	req *previewv1.PreviewRequest,
) (*previewv1.PreviewFlowLabelsResponse, error)

PreviewFlowLabels previews flow labels on a given agent.

Handled by agentfunctions.PreviewHandler.

func (Agents) PreviewHTTPRequests

func (a Agents) PreviewHTTPRequests(
	agent string,
	req *previewv1.PreviewRequest,
) (*previewv1.PreviewHTTPRequestsResponse, error)

PreviewHTTPRequests previews flow labels on a given agent.

Handled by agentfunctions.PreviewHandler.

Jump to

Keyboard shortcuts

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