init commit
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
@@ -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
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user