mirror of
https://github.com/docker/cli.git
synced 2026-09-25 07:50:37 -05:00
Merge pull request #26649 from dperny/add-comment-to-endpointspec
Added comments to PortConfig for greater clarity Upstream-commit: 6d8598f4bb98b7e3f04bf3a3dd039900414fe465 Component: engine
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user