Add device agent library

Provide enrollment, elevated install, posture checks, keystore, and
system-tray helpers shared by the probo-agent binary.

Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
Ludovic Vielle
2026-07-14 20:40:05 +02:00
parent e767dd8377
commit b442e1ed76
44 changed files with 2814 additions and 88 deletions

View File

@@ -35,3 +35,14 @@ func DefaultConfigDir() string {
return filepath.Join(programData, "Probo", "agent")
}
// DefaultEnrollmentRunDir returns the runtime directory for the public
// enrollment marker on Windows.
func DefaultEnrollmentRunDir() string {
programData := os.Getenv("ProgramData")
if programData == "" {
programData = `C:\ProgramData`
}
return filepath.Join(programData, "Probo", "run")
}