-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker.go
More file actions
32 lines (27 loc) · 1.11 KB
/
docker.go
File metadata and controls
32 lines (27 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package truenas
// DockerState represents the state of the Docker/container runtime.
type DockerState string
const (
DockerStateRunning DockerState = "RUNNING"
DockerStateStopped DockerState = "STOPPED"
DockerStateInitializing DockerState = "INITIALIZING"
DockerStateError DockerState = "ERROR"
DockerStateUnconfigured DockerState = "UNCONFIGURED"
)
// DockerStatusResponse represents the wire-format response from docker.status.
type DockerStatusResponse struct {
Status string `json:"status"`
Description string `json:"description"`
}
// DockerConfigResponse represents the wire-format response from docker.config.
type DockerConfigResponse struct {
Pool string `json:"pool"`
EnableImageUpdates bool `json:"enable_image_updates"`
NvidiaEnabled bool `json:"nvidia"`
AddressPoolsV4 []DockerAddressPoolResponse `json:"address_pools"`
}
// DockerAddressPoolResponse represents an address pool in Docker config.
type DockerAddressPoolResponse struct {
Base string `json:"base"`
Size int `json:"size"`
}