package portutil

import "github.com/rootless-containers/rootlesskit/pkg/port/portutil"

Index

Functions

func ParsePortSpec

func ParsePortSpec(s string) (*port.Spec, error)

ParsePortSpec parses a Docker-like representation of PortSpec. e.g. "127.0.0.1:8080:80/tcp"

func ValidatePortSpec

func ValidatePortSpec(spec port.Spec, existingPorts map[int]*port.Status) error

ValidatePortSpec validates *port.Spec. existingPorts can be optionally passed for detecting conflicts.

Source Files

portutil.go

Version
v0.10.0
Published
Jul 28, 2020
Platform
js/wasm
Imports
5 packages
Last checked
2 hours ago

Tools for package owners.