-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel.go
49 lines (47 loc) · 1.73 KB
/
model.go
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package cephrestclient
type Snapshot struct {
ID int `json:"id"`
Size int `json:"size"`
Name string `json:"name"`
Namespace int `json:"namespace"`
MirrorMode string `json:"mirror_mode"`
Timestamp string `json:"timestamp"`
IsProtected bool `json:"is_protected"`
UsedBytes *int `json:"used_bytes"`
Children []any `json:"children"`
DiskUsage int `json:"disk_usage"`
}
type Image struct {
Size int `json:"size"`
ObjSize int `json:"obj_size"`
NumObjs int `json:"num_objs"`
Order int `json:"order"`
BlockNamePrefix string `json:"block_name_prefix"`
MirrorMode string `json:"mirror_mode"`
Name string `json:"name"`
UniqueID string `json:"unique_id"`
ID string `json:"id"`
ImageFormat int `json:"image_format"`
PoolName string `json:"pool_name"`
Namespace *string `json:"namespace"`
Features int `json:"features"`
FeaturesName []string `json:"features_name"`
Timestamp string `json:"timestamp"`
StripeCount int `json:"stripe_count"`
StripeUnit int `json:"stripe_unit"`
DataPool *string `json:"data_pool"`
Parent struct {
PoolName string `json:"pool_name"`
PoolNamespace string `json:"pool_namespace"`
ImageName string `json:"image_name"`
SnapName string `json:"snap_name"`
} `json:"parent"`
Snapshots []Snapshot `json:"snapshots"`
TotalDiskUsage int `json:"total_disk_usage"`
DiskUsage int `json:"disk_usage"`
Configuration []struct {
Name string `json:"name"`
Value string `json:"value"`
Source int `json:"source"`
} `json:"configuration"`
}