PortConfig represents the config of a port.
| 44 | |
| 45 | // PortConfig represents the config of a port. |
| 46 | type PortConfig struct { |
| 47 | Name string `json:",omitempty"` |
| 48 | Protocol int32 `json:",omitempty"` |
| 49 | // TargetPort is the port inside the container |
| 50 | TargetPort uint32 `json:",omitempty"` |
| 51 | // PublishedPort is the port on the swarm hosts |
| 52 | PublishedPort uint32 `json:",omitempty"` |
| 53 | // PublishMode is the mode in which port is published |
| 54 | PublishMode int32 `json:",omitempty"` |
| 55 | } |
| 56 | |
| 57 | // Driver represent the interface a driver must fulfill. |
| 58 | type Driver interface { |
nothing calls this directly
no outgoing calls
no test coverage detected