Documentation
¶
Overview ¶
Package consolestatus fetches the live state of an engine's link to the CrowdSec console (CAPI/PAPI): enrollment, plan, and decision-management state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecisionManagementActive ¶
DecisionManagementActive reports whether the console pushes decisions to this engine, from PAPI.
Types ¶
type CAPIStatus ¶
CAPIStatus is what an authentication round-trip to CAPI tells us about the engine.
type PAPIInfo ¶
PAPIInfo is the plan detail exposed by the PAPI /permissions endpoint plus the timestamp of the last order the engine pulled.
func QueryPAPIInfo ¶
func QueryPAPIInfo(ctx context.Context, serverCfg *csconfig.LocalApiServerCfg, db *database.Client) (PAPIInfo, error)
QueryPAPIInfo asks PAPI for the plan/categories the engine is entitled to
Click to show internal directories.
Click to hide internal directories.