agents

package
v2.29.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 12 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 {
	// contains filtered or unexported fields
}

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

Agents wraps functions registered in agentfunctions, types should match.

func NewAgents

func NewAgents(transport *transport.EtcdTransportClient, client *etcdclient.Client) Agents

NewAgents wraps Clients with Agent-specific function wrappers.

func (Agents) GetAgents

func (a Agents) GetAgents(ctx context.Context) (map[string][]string, error)

GetAgents lists the agents registered on etcd under /peers/aperture-agent.

func (Agents) GetAgentsForGroup

func (a Agents) GetAgentsForGroup(ctx context.Context, agentGroup string) ([]string, error)

GetAgentsForGroup lists the agents under an agent-group registered on etcd under /peers/aperture-agent.

func (Agents) ListAutoScaleControlPoints

func (a Agents) ListAutoScaleControlPoints(ctx context.Context) ([]transport.Result[*cmdv1.ListAutoScaleControlPointsAgentResponse], error)

ListAutoScaleControlPoints lists auto-scale control points of all agents.

func (Agents) ListDiscoveryEntities

func (a Agents) ListDiscoveryEntities(ctx context.Context, agentGroup string) ([]transport.Result[*cmdv1.ListDiscoveryEntitiesAgentResponse], error)

ListDiscoveryEntities lists discovery entities.

func (Agents) ListDiscoveryEntity

ListDiscoveryEntity lists discovery entity by ip address or name.

func (Agents) ListFlowControlPoints

ListFlowControlPoints lists control points of all agents.

Handled by agentfunctions.ControlPointsHandler.

func (Agents) PreviewFlowLabels

func (a Agents) PreviewFlowLabels(
	ctx context.Context,
	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(
	ctx context.Context,
	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