posture

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package posture is what a runner reports about its device (design 0.9 §7.4). mdm_managed and disk_encrypted come from a root-owned file the device's MDM writes when one is present, else from the runner's own probe of the OS. Both are self-reported: they separate a lost or compromised laptop from a healthy one, and do not constrain a root developer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read() types.RunnerPosture

Read is this device's posture now.

Types

type Reporter

type Reporter struct {
	// contains filtered or unexported fields
}

Reporter sends the `posture` event at READY and again when it changes.

func NewReporter

func NewReporter() *Reporter

NewReporter reads this device.

func (*Reporter) Send

func (r *Reporter) Send(ctx context.Context, peer *runnerwire.Peer) error

Send reports the current posture on peer.

func (*Reporter) Watch

func (r *Reporter) Watch(peer *runnerwire.Peer, every time.Duration)

Watch re-reads the posture every interval until peer ends, and reports a change.

Jump to

Keyboard shortcuts

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