portutils

package
Version: v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterPortAndProtocolArray

func FilterPortAndProtocolArray(ports []string) ([]docker.Port, []error)

FilterPortAndProtocolArray splits an array of strings of format port/proto and returns an array of docker.Port that succeeded parsing

func SplitPortAndProtocol

func SplitPortAndProtocol(port string) (docker.Port, error)

SplitPortAndProtocol splits a string of format port/proto and returns a docker.Port

func SplitPortAndProtocolArray

func SplitPortAndProtocolArray(ports []string) ([]docker.Port, []error)

SplitPortAndProtocolArray splits an array of strings of format port/proto and returns an array of docker.Port

func ValidatePortAndProtocol

func ValidatePortAndProtocol(port docker.Port) error

ValidatePortAndProtocol validates the port range and protocol of a docker.Port

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL