init commit

This commit is contained in:
2025-04-09 15:52:24 +08:00
parent d1c5fb1162
commit a5b87653a3
31 changed files with 718 additions and 24 deletions
+15
View File
@@ -0,0 +1,15 @@
package model
type Image struct {
Id string `json:"Id"`
RepoTags []string `json:"RepoTags"`
Created int `json:"Created"`
Size int `json:"Size"`
SharedSize int `json:"SharedSize"`
VirtualSize int `json:"VirtualSize"`
Labels *struct {
Maintainer string `json:"maintainer,omitempty"`
} `json:"Labels"`
Digest string `json:"Digest"`
Names []string `json:"Names"`
}
+12
View File
@@ -33,3 +33,15 @@ type NetWorkJson struct {
Labels struct {
} `json:"Labels"`
}
type NetWork struct {
Name string `json:"name"`
Id string `json:"id"`
Created string `json:"created"`
Driver string `json:"driver"`
IPAM []Config `json:"ipam"`
}
type Config struct {
Subnet string `json:"subnet"`
Gateway string `json:"gateway"`
}
+9 -14
View File
@@ -1,18 +1,13 @@
package model
import "time"
type VolumesJson struct {
Volumes []struct {
CreatedAt time.Time `json:"CreatedAt"`
Driver string `json:"Driver"`
Labels struct {
} `json:"Labels"`
Mountpoint string `json:"Mountpoint"`
Name string `json:"Name"`
Options struct {
} `json:"Options"`
Scope string `json:"Scope"`
} `json:"Volumes"`
Warnings []interface{} `json:"Warnings"`
Volumes []Volume `json:"volumes"`
}
type Volume struct {
Driver string `json:"driver"`
Labels struct {
} `json:"labels"`
Mountpoint string `json:"mountpoint"`
Name string `json:"name"`
Scope string `json:"scope"`
}