File
Blob: waf/status.go
| 1 | package waf |
| 2 | |
| 3 | import "time" |
| 4 | |
| 5 | // Status reports this server's observations, separately from saved shared intent. |
| 6 | type Status struct { |
| 7 | Configured bool `json:"configured"` |
| 8 | Enabled bool `json:"enabled"` |
| 9 | Ready bool `json:"ready"` |
| 10 | ActiveVersion string `json:"active_version"` |
| 11 | PreviousVersion string `json:"previous_version"` |
| 12 | EngineVersion string `json:"engine_version"` |
| 13 | Channel string `json:"channel"` |
| 14 | PinnedVersion string `json:"pinned_version,omitempty"` |
| 15 | AppliedVersion string `json:"applied_version"` |
| 16 | LastCheck *time.Time `json:"last_check,omitempty"` |
| 17 | LastSuccessfulCheck *time.Time `json:"last_successful_check,omitempty"` |
| 18 | LastError string `json:"last_error,omitempty"` |
| 19 | Updating bool `json:"updating"` |
| 20 | } |