Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePortSpec ¶
ParsePortSpec parses a Docker-like representation of PortSpec, but with support for both "parent IP" and "child IP" (optional); e.g. "127.0.0.1:8080:80/tcp", or "127.0.0.1:8080:10.0.2.100:80/tcp"
Format is as follows:
<parent IP>:<parent port>[:<child IP>]:<child port>/<proto>
Note that (child IP being optional) the format can either contain 5 or 4 components. When using IPv6 IP addresses, addresses must use square brackets to prevent the colons being mistaken for delimiters. For example:
[::1]:8080:[::2]:80/udp
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.