agent

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package agent provides the agent API for the server

Index

Constants

View Source
const (
	// AgentKind is the kind of the agent resource.
	AgentKind = "Agent"
)

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 ListResponse added in v0.1.9

type ListResponse = v1.ListResponse[Agent]

ListResponse represents a list of agents with metadata.

func NewListResponse added in v0.1.9

func NewListResponse(agents []Agent, metadata v1.ListMeta) *ListResponse

NewListResponse creates a new ListResponse with the given agents and metadata.

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