Documentation ¶
Index ¶
Constants ¶
View Source
const ( PortSpecTemplate = "ip:hostPort:containerPort" PortSpecTemplateFormat = "ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort | containerPort" )
Variables ¶
This section is empty.
Functions ¶
func ParsePortSpecs ¶
func ParsePortSpecs(ports []string) (map[Port]struct{}, map[Port][]PortBinding, error)
We will receive port specs in the format of ip:public:private/proto and these need to be parsed in the internal types
func SplitProtoPort ¶
Splits a port in the format of proto/port
Types ¶
type PortBinding ¶
type PortMap ¶
type PortMap map[Port][]PortBinding
Click to show internal directories.
Click to hide internal directories.