tailcfg,ipn: add c2n endpoint for posture identity

Updates #5902

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby
2023-10-03 11:51:22 +02:00
committed by Kristoffer Dalby
parent 9593cd3871
commit b4e587c3bd
2 changed files with 44 additions and 0 deletions

View File

@@ -52,3 +52,15 @@ type C2NUpdateResponse struct {
// Started indicates whether the update has started.
Started bool
}
// C2NPostureIdentityResponse contains either a set of identifying serial number
// from the client or a boolean indicating that the machine has opted out of
// posture collection.
type C2NPostureIdentityResponse struct {
// SerialNumbers is a list of serial numbers of the client machine.
SerialNumbers []string `json:",omitempty"`
// PostureDisabled indicates if the machine has opted out of
// device posture collection.
PostureDisabled bool `json:",omitempty"`
}