Documentation
¶
Overview ¶
Server-side for handling agent functions
Index ¶
- Variables
- type Agents
- func (a Agents) ListAutoScaleControlPoints() ([]rpc.Result[*cmdv1.ListAutoScaleControlPointsAgentResponse], error)
- func (a Agents) ListDiscoveryEntities() ([]rpc.Result[*cmdv1.ListDiscoveryEntitiesAgentResponse], error)
- func (a Agents) ListDiscoveryEntity(req *cmdv1.ListDiscoveryEntityRequest) (*cmdv1.ListDiscoveryEntityAgentResponse, error)
- func (a Agents) ListFlowControlPoints() ([]rpc.Result[*cmdv1.ListFlowControlPointsAgentResponse], error)
- func (a Agents) PreviewFlowLabels(agent string, req *previewv1.PreviewRequest) (*previewv1.PreviewFlowLabelsResponse, error)
- func (a Agents) PreviewHTTPRequests(agent string, req *previewv1.PreviewRequest) (*previewv1.PreviewHTTPRequestsResponse, error)
Constants ¶
This section is empty.
Variables ¶
var Module = fx.Provide(NewAgents)
Module is fx module for controlling Agents on controller side.
Functions ¶
This section is empty.
Types ¶
type Agents ¶
Agents wraps rpc.Clients where clients are agents and provides wrapper
Agents wraps functions registered in agentfunctions, types should match.
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
func (a Agents) ListDiscoveryEntity(req *cmdv1.ListDiscoveryEntityRequest) (*cmdv1.ListDiscoveryEntityAgentResponse, error)
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.