oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package thin
2
3import (
4 "context"
5
6 "amadan.net/oficina/equipo/internal/runner"
7 "amadan.net/oficina/equipo/internal/wire"
8)
9
10// fakeMac is the test build's fake Mac worker; nil in every other build
11// (fakeworker_testbuild.go sets it), so EQUIPO_FAKE_PLATFORM is refused.
12type fakeMac interface {
13 marker() string
14 platform(spec string) (wire.Platform, bool)
15 // probe is the fixture capability report, for a Mac whose checks
16 // sandbox is sandbox (seatbelt: probe P2 denied).
17 probe(sandbox string) func(context.Context) wire.Capabilities
18 gate(bin, sandbox string) GateRunner
19 // setup is the whole fake Mac worker for c and o: its report and
20 // gate, its credential operations and its Engineering pieces (Mac
21 // runners slice F, task 16). It may change c as a Mac's would be.
22 setup(ctx context.Context, c *runner.Config, o Options) (workerSetup, error)
23}
24
25var fake fakeMac
26