agents

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateHealth

func CalculateHealth(lastSeen *time.Time, status types.AgentStatus) types.AgentHealthStatus

CalculateHealth determines agent health status

func CleanupExpiredDeviceCodes

func CleanupExpiredDeviceCodes(app core.App)

CleanupExpiredDeviceCodes removes old device codes

func HandleAgentHealth

func HandleAgentHealth(app core.App, c *core.RequestEvent) error

HandleAgentHealth - get agent health & latest metrics

func HandleAuthorize

func HandleAuthorize(app core.App, c *core.RequestEvent) error

HandleAuthorize - user authorizes device code

func HandleDeviceAuthStart

func HandleDeviceAuthStart(app core.App, c *core.RequestEvent, frontendURL string) error

HandleDeviceAuthStart - anonymous agent requests device code

func HandleIngestMetrics

func HandleIngestMetrics(app core.App, c *core.RequestEvent) error

HandleIngestMetrics - agent sends metrics every 30s

func HandleListAgents

func HandleListAgents(app core.App, c *core.RequestEvent) error

HandleListAgents - list user's agents

func HandleRefreshToken

func HandleRefreshToken(app core.App, c *core.RequestEvent) error

HandleRefreshToken - refresh access token

func HandleRegister

func HandleRegister(app core.App, c *core.RequestEvent) error

HandleRegister - agent registers using authorized device code

func HandleRevokeAgent

func HandleRevokeAgent(app core.App, c *core.RequestEvent) error

HandleRevokeAgent - revoke agent access

func HashToken

func HashToken(token string) string

HashToken creates SHA-256 hash of token

Types

This section is empty.

Jump to

Keyboard shortcuts

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