package portutil
import "github.com/rootless-containers/rootlesskit/pkg/port/portutil"
Index ¶
- func ParsePortSpec(s string) (*port.Spec, error)
- func ValidatePortSpec(spec port.Spec, existingPorts map[int]*port.Status) error
Functions ¶
func ParsePortSpec ¶
ParsePortSpec parses a Docker-like representation of PortSpec. e.g. "127.0.0.1:8080:80/tcp"
func ValidatePortSpec ¶
ValidatePortSpec validates *port.Spec. existingPorts can be optionally passed for detecting conflicts.
Source Files ¶
- Version
- v0.9.0-beta.1
- Published
- Mar 5, 2020
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 2 hours ago –
Tools for package owners.