mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 07:57:21 +08:00
refactor: 重构types包
This commit is contained in:
23
pkg/types/container.go
Normal file
23
pkg/types/container.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package types
|
||||
|
||||
type ContainerPort struct {
|
||||
ContainerStart int `form:"container_start" json:"container_start"`
|
||||
ContainerEnd int `form:"container_end" json:"container_end"`
|
||||
Host string `form:"host" json:"host"`
|
||||
HostStart int `form:"host_start" json:"host_start"`
|
||||
HostEnd int `form:"host_end" json:"host_end"`
|
||||
Protocol string `form:"protocol" json:"protocol"`
|
||||
}
|
||||
|
||||
type ContainerVolume struct {
|
||||
Host string `form:"host" json:"host"`
|
||||
Container string `form:"container" json:"container"`
|
||||
Mode string `form:"mode" json:"mode"`
|
||||
}
|
||||
|
||||
type ContainerNetwork struct {
|
||||
Enabled bool `form:"enabled" json:"enabled"`
|
||||
Gateway string `form:"gateway" json:"gateway"`
|
||||
IPRange string `form:"ip_range" json:"ip_range"`
|
||||
Subnet string `form:"subnet" json:"subnet"`
|
||||
}
|
||||
Reference in New Issue
Block a user