mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
24 lines
1.2 KiB
Go
24 lines
1.2 KiB
Go
package docker
|
|
|
|
import "github.com/docker/docker/api/types"
|
|
|
|
type PortMapping = map[string]types.Port
|
|
type ProxyProperties struct {
|
|
DockerHost string `yaml:"-" json:"docker_host"`
|
|
ContainerName string `yaml:"-" json:"container_name"`
|
|
ContainerID string `yaml:"-" json:"container_id"`
|
|
ImageName string `yaml:"-" json:"image_name"`
|
|
PublicPortMapping PortMapping `yaml:"-" json:"public_port_mapping"` // non-zero publicPort:types.Port
|
|
PrivatePortMapping PortMapping `yaml:"-" json:"private_port_mapping"` // privatePort:types.Port
|
|
NetworkMode string `yaml:"-" json:"network_mode"`
|
|
|
|
Aliases []string `yaml:"-" json:"aliases"`
|
|
IsExcluded bool `yaml:"-" json:"is_excluded"`
|
|
IsExplicit bool `yaml:"-" json:"is_explicit"`
|
|
IdleTimeout string `yaml:"-" json:"idle_timeout"`
|
|
WakeTimeout string `yaml:"-" json:"wake_timeout"`
|
|
StopMethod string `yaml:"-" json:"stop_method"`
|
|
StopTimeout string `yaml:"-" json:"stop_timeout"` // stop_method = "stop" only
|
|
StopSignal string `yaml:"-" json:"stop_signal"` // stop_method = "stop" | "kill" only
|
|
Running bool `yaml:"-" json:"running"`
|
|
}
|