oficina / docs Public

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

Plain git — no account needed to clone.

Download

Download this file

1package docs
2
3import (
4 "net/http"
5
6 "amadan.net/oficina/home/teammode"
7)
8
9// teamProbePath is the readiness probe Alta polls at provisioning step 11,
10// before it activates this instance in Home's directory (Home
11// implementation/team-members.md §7; Alta provision/steps.go TeamProbe).
12// teammode.Probe answers it: unauthenticated, {team_mode, consumer, roster}
13// only, the same body whoever asks, and {"team_mode":false} with team mode
14// off.
15const teamProbePath = teammode.ProbePath
16
17func teamProbe(t *teamRuntime) http.Handler {
18 if t == nil {
19 return teammode.Probe(nil)
20 }
21 return teammode.Probe(t.cache)
22}
23