carlos / platform Public

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

Plain git — no account needed to clone.

Download

Download this file

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