portutil

package
v1.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL