carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1package hostexec
2
3// InspectLocal reads through the same descriptor-relative, strict decoder as
4// CheckLocal. The state alone grants no authority; callers still call CheckLocal
5// under hostguard, which checks both lifetime locks and the boot deadline.
6func InspectLocal(dataDir, host string) (State, error) {
7 d, err := openLocal(dataDir)
8 if err != nil {
9 return State{}, err
10 }
11 defer d.close()
12 return d.read(host)
13}
14