portutils

package
v3.10.0-rc.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 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.

Jump to

Keyboard shortcuts

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