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 ¶
StatusSection is a map of key-value pairs that represent a section of the status data
Click to show internal directories.
Click to hide internal directories.