Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseFlagP ¶
func ParseFlagP(s string) ([]gocni.PortMapping, error)
ParseFlagP parse port mapping pair, like "127.0.0.1:3000:8080/tcp", "127.0.0.1:3000-3001:8080-8081/tcp" and "3000:8080" ...
func ParsePortsLabel ¶ added in v1.1.0
func ParsePortsLabel(labelMap map[string]string) ([]gocni.PortMapping, error)
ParsePortsLabel parses JSON-marshalled string from label map (under `labels.Ports` key) and returns []gocni.PortMapping.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.