@@ -13,32 +13,32 @@ import (
13
13
14
14
// Environment describes a Coder environment
15
15
type Environment struct {
16
- ID string `json:"id" tab :"-"`
17
- Name string `json:"name" tab :"Name"`
18
- ImageID string `json:"image_id" tab :"-"`
19
- ImageTag string `json:"image_tag" tab :"ImageTag"`
20
- OrganizationID string `json:"organization_id" tab :"-"`
21
- UserID string `json:"user_id" tab :"-"`
22
- LastBuiltAt time.Time `json:"last_built_at" tab :"-"`
23
- CPUCores float32 `json:"cpu_cores" tab :"CPUCores"`
24
- MemoryGB float32 `json:"memory_gb" tab :"MemoryGB"`
25
- DiskGB int `json:"disk_gb" tab :"DiskGB"`
26
- GPUs int `json:"gpus" tab :"GPUs"`
27
- Updating bool `json:"updating" tab :"Updating"`
28
- LatestStat EnvironmentStat `json:"latest_stat" tab :"Status"`
29
- RebuildMessages []RebuildMessage `json:"rebuild_messages" tab :"-"`
30
- CreatedAt time.Time `json:"created_at" tab :"-"`
31
- UpdatedAt time.Time `json:"updated_at" tab :"-"`
32
- LastOpenedAt time.Time `json:"last_opened_at" tab :"-"`
33
- LastConnectionAt time.Time `json:"last_connection_at" tab :"-"`
34
- AutoOffThreshold xjson.MSDuration `json:"auto_off_threshold" tab :"-"`
16
+ ID string `json:"id" table :"-"`
17
+ Name string `json:"name" table :"Name"`
18
+ ImageID string `json:"image_id" table :"-"`
19
+ ImageTag string `json:"image_tag" table :"ImageTag"`
20
+ OrganizationID string `json:"organization_id" table :"-"`
21
+ UserID string `json:"user_id" table :"-"`
22
+ LastBuiltAt time.Time `json:"last_built_at" table :"-"`
23
+ CPUCores float32 `json:"cpu_cores" table :"CPUCores"`
24
+ MemoryGB float32 `json:"memory_gb" table :"MemoryGB"`
25
+ DiskGB int `json:"disk_gb" table :"DiskGB"`
26
+ GPUs int `json:"gpus" table :"GPUs"`
27
+ Updating bool `json:"updating" table :"Updating"`
28
+ LatestStat EnvironmentStat `json:"latest_stat" table :"Status"`
29
+ RebuildMessages []RebuildMessage `json:"rebuild_messages" table :"-"`
30
+ CreatedAt time.Time `json:"created_at" table :"-"`
31
+ UpdatedAt time.Time `json:"updated_at" table :"-"`
32
+ LastOpenedAt time.Time `json:"last_opened_at" table :"-"`
33
+ LastConnectionAt time.Time `json:"last_connection_at" table :"-"`
34
+ AutoOffThreshold xjson.MSDuration `json:"auto_off_threshold" table :"-"`
35
35
}
36
36
37
37
// RebuildMessage defines the message shown when an Environment requires a rebuild for it can be accessed.
38
38
type RebuildMessage struct {
39
39
Text string `json:"text"`
40
40
Required bool `json:"required"`
41
- AutoOffThreshold xjson.MSDuration `json:"auto_off_threshold" tab :"-"`
41
+ AutoOffThreshold xjson.MSDuration `json:"auto_off_threshold" table :"-"`
42
42
}
43
43
44
44
// EnvironmentStat represents the state of an environment
0 commit comments