package
1.8.2
Repository: https://github.com/projectatomic/docker.git
Documentation: pkg.go.dev

# Functions

NewPort creates a new instance of a Port given a protocol and port number.
ParsePort parses the port number string and returns an int.
ParsePortSpecs receives port specs in the format of ip:public:private/proto and parses these in to the internal types.
Sort sorts a list of ports using the provided predicate This function should compare `i` and `j`, returning true if `i` is considered to be less than `j`.
SortPortMap sorts the list of ports and their respected mapping.
SplitProtoPort splits a port in the format of proto/port.

# Structs

PortBinding represents a binding between a Host IP address and a Host Port.

# Type aliases

Port is a string containing port number and protocol in the format "80/tcp".
PortMap is a collection of PortBinding indexed by Port.
PortSet is a collection of structs indexed by Port.