package portallocator
import "github.com/docker/docker/networkdriver/portallocator"
Index ¶
- Constants
- Variables
- func ReleaseAll() error
- func ReleasePort(ip net.IP, proto string, port int) error
- func RequestPort(ip net.IP, proto string, port int) (int, error)
Constants ¶
const ( BeginPortRange = 49153 EndPortRange = 65535 )
Variables ¶
var ( ErrPortAlreadyAllocated = errors.New("port has already been allocated") ErrPortExceedsRange = errors.New("port exceeds upper range") ErrUnknownProtocol = errors.New("unknown protocol") )
Functions ¶
func ReleaseAll ¶
func ReleaseAll() error
func ReleasePort ¶
ReleasePort will return the provided port back into the pool for reuse
func RequestPort ¶
RequestPort returns an available port if the port is 0 If the provided port is not 0 then it will be checked if it is available for allocation
Source Files ¶
- Version
- v0.8.0
- Published
- Feb 5, 2014
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 43 minutes ago –
Tools for package owners.