Documentation
¶
Overview ¶
Package enrollment registers an agent with the FallBCK server using a one-time token
Index ¶
Constants ¶
View Source
const ConfigFileName = "agent.yaml"
ConfigFileName is the agent configuration file inside the data directory
Variables ¶
View Source
var AgentVersion = "0.1.0"
AgentVersion is reported to the server at enrollment; set by the agent binary
Functions ¶
func EnrollAgent ¶
func EnrollAgent(ctx context.Context, serverURL, token, dataDir string) (*config.AgentConfig, error)
EnrollAgent exchanges a one-time enrollment token for an agent identity and bearer token, and writes agent.yaml (and an optional server CA bundle) into dataDir.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.