team

package
v0.0.0-...-6e2fad4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnrollDevice

func EnrollDevice(inviteID string, host string) error

EnrollDevice enrolls a device using an invite ID

func ReportToTeam

func ReportToTeam(initial bool) error

ReportAndSave generates a report and saves it to the configuration file.

Types

type DeviceEnrollmentRequest

type DeviceEnrollmentRequest struct {
	InviteID string           `json:"invite_id"`
	Device   EnrollmentDevice `json:"device"`
}

type DeviceEnrollmentResponse

type DeviceEnrollmentResponse struct {
	Auth string `json:"auth"`
}

type EnrollmentDevice

type EnrollmentDevice struct {
	MachineUUID      string `json:"machineUUID"`
	MachineName      string `json:"machineName"`
	OSVersion        string `json:"macOSVersion,omitempty"`
	LinuxOSVersion   string `json:"linuxOSVersion,omitempty"`
	WindowsOSVersion string `json:"windowsOSVersion,omitempty"`
	ModelName        string `json:"modelName"`
	ModelSerial      string `json:"modelSerial"`
}

EnrollmentDevice is like ReportingDevice but without the Auth field

type Report

type Report struct {
	PassedCount       int                         `json:"passedCount"`
	FailedCount       int                         `json:"failedCount"`
	DisabledCount     int                         `json:"disabledCount"`
	Device            shared.ReportingDevice      `json:"device"`
	Version           string                      `json:"version"`
	SignificantChange string                      `json:"significantChange"`
	State             map[string]check.CheckState `json:"state"`
}

func NowReport

func NowReport(all []claims.Claim) Report

NowReport compiles and returns a Report that summarizes the results of all runnable checks.

Jump to

Keyboard shortcuts

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