remoteagentregistry

package
v0.0.0-...-50ddb51 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package remoteagentregistry provides an integration point for remote agents to register and be able to report their status and emit flare data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component interface {
	RegisterRemoteAgent(req *RegistrationData) (sessionID string, recommendedRefreshIntervalSecs uint32, err error)
	RefreshRemoteAgent(sessionID string) bool
	GetRegisteredAgents() []RegisteredAgent
	GetRegisteredAgentStatuses() []StatusData
}

Component is the component type.

type FlareData

type FlareData struct {
	RegisteredAgent
	Files map[string][]byte
}

FlareData contains the flare data for a remote agent

type RegisteredAgent

type RegisteredAgent struct {
	Flavor               string
	DisplayName          string
	SanitizedDisplayName string
	PID                  string
	LastSeen             time.Time
	SessionID            string
}

RegisteredAgent contains the information about a registered remote agent

func (*RegisteredAgent) String

func (a *RegisteredAgent) String() string

type RegistrationData

type RegistrationData struct {
	AgentFlavor      string
	AgentDisplayName string
	AgentPID         string
	APIEndpointURI   string
	Services         []string
}

RegistrationData contains the registration information for a remote agent

type StatusData

type StatusData struct {
	RegisteredAgent
	FailureReason string
	MainSection   StatusSection
	NamedSections map[string]StatusSection
}

StatusData contains the status data for a remote agent

type StatusSection

type StatusSection map[string]string

StatusSection is a map of key-value pairs that represent a section of the status data

Jump to

Keyboard shortcuts

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