carlos / platform Public

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

Plain git — no account needed to clone.

Download

Download this file

1package console
2
3type instanceCopyStrings struct {
4 AllChannels, GroupChannel, Open, Observed, Target, LastReading, NoReadings, PendingVersion string
5}
6
7var instanceCopy = instanceCopyStrings{
8 AllChannels: "All channels",
9 GroupChannel: "Group by channel",
10 Open: "Open instance",
11 Observed: "Observed version",
12 Target: "Target version",
13 LastReading: "Last reading",
14 NoReadings: "The platform operator needs to enable health reporting for this instance.",
15 PendingVersion: "The target version has not been reported yet.",
16}
17
18func (p page) InstanceCopy() instanceCopyStrings { return instanceCopy }
19func (p page) InstanceQuerySuffix() string { return instanceQuerySuffix(p.InstanceQuery) }
20func (p page) InstanceAllURL() string {
21 q := p.InstanceQuery
22 q.Health, q.Cursor = "", ""
23 suffix := instanceQuerySuffix(q)
24 if suffix == "" {
25 return "?"
26 }
27 return suffix
28}
29