mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Added comments to PortConfig for greater clarity
I always forget which one is which. Now, I can't forget. This is probably in the docs somewhere but now it's handy at a glance. Signed-off-by: Drew Erny <drew.erny@docker.com>
This commit is contained in:
parent
61639bf63d
commit
55454752f8
1 changed files with 6 additions and 4 deletions
|
@ -25,10 +25,12 @@ const (
|
|||
|
||||
// PortConfig represents the config of a port.
|
||||
type PortConfig struct {
|
||||
Name string `json:",omitempty"`
|
||||
Protocol PortConfigProtocol `json:",omitempty"`
|
||||
TargetPort uint32 `json:",omitempty"`
|
||||
PublishedPort uint32 `json:",omitempty"`
|
||||
Name string `json:",omitempty"`
|
||||
Protocol PortConfigProtocol `json:",omitempty"`
|
||||
// TargetPort is the port inside the container
|
||||
TargetPort uint32 `json:",omitempty"`
|
||||
// PublishedPort is the port on the swarm hosts
|
||||
PublishedPort uint32 `json:",omitempty"`
|
||||
}
|
||||
|
||||
// PortConfigProtocol represents the protocol of a port.
|
||||
|
|
Loading…
Add table
Reference in a new issue