Download this file
| 1 | package console |
| 2 | |
| 3 | type instanceCopyStrings struct { |
| 4 | AllChannels, GroupChannel, Open, Observed, Target, LastReading, NoReadings, PendingVersion string |
| 5 | } |
| 6 | |
| 7 | var 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 | |
| 18 | func (p page) InstanceCopy() instanceCopyStrings { return instanceCopy } |
| 19 | func (p page) InstanceQuerySuffix() string { return instanceQuerySuffix(p.InstanceQuery) } |
| 20 | func (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 | |