2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 13:47:15 +08:00

feat: 移除docker包

This commit is contained in:
耗子
2024-10-27 19:23:22 +08:00
parent f3a578380a
commit ca097cac1e
8 changed files with 136 additions and 181 deletions

View File

@@ -20,7 +20,7 @@ type ContainerNetwork struct {
// ContainerNetworkIPAM represents IP Address Management
type ContainerNetworkIPAM struct {
Driver string
Options map[string]string // Per network IPAM driver options
Options []KV
Config []ContainerNetworkIPAMConfig
}
@@ -29,21 +29,5 @@ type ContainerNetworkIPAMConfig struct {
Subnet string `json:"subnet"`
IPRange string `json:"ip_range"`
Gateway string `json:"gateway"`
AuxAddress map[string]string `json:"AuxiliaryAddresses,omitempty"`
}
type ContainerNetworkInspect 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 ContainerNetworkIPAM
Internal bool `json:"Internal"`
Attachable bool `json:"Attachable"`
Ingress bool `json:"Ingress"`
ConfigOnly bool `json:"ConfigOnly"`
Options map[string]string `json:"Options"`
Labels map[string]string `json:"Labels"`
AuxAddress map[string]string `json:"aux_address"`
}

View File

@@ -0,0 +1,13 @@
package types
import "time"
type ContainerVolume struct {
Name string `json:"name"`
Driver string `json:"driver"`
Scope string `json:"scope"`
MountPoint string `json:"mount_point"`
CreatedAt time.Time `json:"created_at"`
Labels []KV `json:"labels"`
Options []KV `json:"options"`
}