remoteagentregistry

package
v0.0.0-...-23a0380 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 0 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) (uint32, error)
	GetRegisteredAgents() []*RegisteredAgent
	GetRegisteredAgentStatuses() []*StatusData
}

Component is the component type.

type FlareData

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

FlareData contains the flare data for a remote agent

type RegisteredAgent

type RegisteredAgent struct {
	DisplayName  string
	LastSeenUnix int64
}

RegisteredAgent contains the information about a registered remote agent

type RegistrationData

type RegistrationData struct {
	AgentID     string
	DisplayName string
	APIEndpoint string
	AuthToken   string
}

RegistrationData contains the registration information for a remote agent

type StatusData

type StatusData struct {
	AgentID       string
	DisplayName   string
	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