portutil

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 added in v0.3.0

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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