package stopevidence import ( "context" "github.com/carlosframework/platform/internal/cgroup" ) // ReconstructInputs is what Reconstruct observes for one host. // // Cgroups is the exec backend's manager (activator.ExecBackend.Cgroups), // handed in by the host package when it arms the moves pass; the activator // cannot call Reconstruct itself because this package imports it. DBPaths // are the host's database files, absolute; each one's -wal and -shm are // checked with it. ProcRoot is "/proc" on a box ("" means that) and a // fixture in tests. LeaseFree reports whether the host's lock.json is // absent, released or expired past the renewal margin: the caller binds // lease.LockState to the location of a fresh claim read (ruling G3). type ReconstructInputs struct { Host string Cgroups *cgroup.Manager DBPaths []string ProcRoot string LeaseFree func(context.Context) (bool, error) }