agent

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package agent provides the agent API for the server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	// InstanceUID is a unique identifier for the agent instance.
	InstanceUID uuid.UUID `json:"instanceUid"`

	// Raw is a raw data of the agent.
	// It is used for debugging purposes.
	Raw any `json:"raw"`

} // @name Agent

Agent represents an agent which is defined OpAMP protocol. It is a value object that contains the instance UID and raw data.

type Command added in v0.1.0

type Command struct {
	Kind              string         `json:"kind"`
	ID                string         `json:"id"`
	TargetInstanceUID string         `json:"targetInstanceUid"`
	Data              map[string]any `json:"data"`

} // @name agentCommand

Command is a common struct that represents a command to be sent to an agent.

type UpdateAgentConfigRequest added in v0.1.0

type UpdateAgentConfigRequest struct {
	RemoteConfig any `binding:"required" json:"remoteConfig"`

} // @name UpdateAgentConfigRequest

UpdateAgentConfigRequest is a struct that represents the request to update the agent configuration. It contains the target instance UID and the remote configuration data.

Jump to

Keyboard shortcuts

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