This commit is contained in:
2025-03-25 18:28:06 +08:00
parent 80e147ef1e
commit d1c5fb1162
10 changed files with 334 additions and 1 deletions
+35
View File
@@ -0,0 +1,35 @@
package model
import "time"
type NetWorkJson struct {
Name string `json:"Name"`
Id string `json:"Id"`
Created time.Time `json:"Created"`
Scope string `json:"Scope"`
Driver string `json:"Driver"`
EnableIPv6 bool `json:"EnableIPv6"`
IPAM struct {
Driver string `json:"Driver"`
Options struct {
Driver string `json:"driver"`
} `json:"Options"`
Config []struct {
Subnet string `json:"Subnet"`
Gateway string `json:"Gateway"`
} `json:"Config"`
} `json:"IPAM"`
Internal bool `json:"Internal"`
Attachable bool `json:"Attachable"`
Ingress bool `json:"Ingress"`
ConfigFrom struct {
Network string `json:"Network"`
} `json:"ConfigFrom"`
ConfigOnly bool `json:"ConfigOnly"`
Containers struct {
} `json:"Containers"`
Options struct {
} `json:"Options"`
Labels struct {
} `json:"Labels"`
}