port

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAvailablePort

func FindAvailablePort(start int) (int, error)

func IsAvailable

func IsAvailable(addr string) (bool, error)

Types

type Address added in v0.3.3

type Address struct {
	Protocol string
	Address  string
}

type Mapping added in v0.3.3

type Mapping struct {
	Host      Address
	Container Address
}

func ParsePortSpec added in v0.3.3

func ParsePortSpec(port string) (Mapping, error)

Jump to

Keyboard shortcuts

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