dockerport

package
v2.12.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetAvailablePort = util.GetAvailablePort // For testing

Functions

This section is empty.

Types

type PortManager

type PortManager struct {
	// contains filtered or unexported fields
}

func NewPortManager

func NewPortManager() *PortManager

func (*PortManager) AllocatePorts

func (pm *PortManager) AllocatePorts(containerName string, pf []*latest.PortForwardResource, cfg *container.Config, debugBindings nat.PortMap) (nat.PortMap, error)

func (*PortManager) RelinquishPorts

func (pm *PortManager) RelinquishPorts(containerName string)

func (*PortManager) Start

func (pm *PortManager) Start(_ context.Context, out io.Writer) error

func (*PortManager) Stop

func (pm *PortManager) Stop()

Jump to

Keyboard shortcuts

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