port

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 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

type Address struct {
	Protocol string
	Address  string
}

type Mapping

type Mapping struct {
	Host      Address
	Container Address
}

func ParsePortSpec

func ParsePortSpec(port string) (Mapping, error)

Jump to

Keyboard shortcuts

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