Documentation
¶
Index ¶
- func CalculateHealth(lastSeen *time.Time, status types.AgentStatus) types.AgentHealthStatus
- func CleanupExpiredDeviceCodes(app core.App)
- func HandleAgentHealth(app core.App, c *core.RequestEvent) error
- func HandleAuthorize(app core.App, c *core.RequestEvent) error
- func HandleDeviceAuthStart(app core.App, c *core.RequestEvent, frontendURL string) error
- func HandleIngestMetrics(app core.App, c *core.RequestEvent) error
- func HandleListAgents(app core.App, c *core.RequestEvent) error
- func HandleRefreshToken(app core.App, c *core.RequestEvent) error
- func HandleRegister(app core.App, c *core.RequestEvent) error
- func HandleRevokeAgent(app core.App, c *core.RequestEvent) error
- func HashToken(token string) string
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 ¶
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 ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.