Discover Packages
github.com/mudler/moby
runtime
networkdriver
portallocator
package
Version:
v0.10.0
Opens a new window with list of versions in this module.
Published: Apr 8, 2014
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
BeginPortRange = 49153
EndPortRange = 65535
)
View Source
var (
ErrAllPortsAllocated = errors .New ("all ports are allocated")
ErrPortAlreadyAllocated = errors .New ("port has already been allocated")
ErrUnknownProtocol = errors .New ("unknown protocol")
)
ReleasePort will return the provided port back into the
pool for reuse
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
¶
Click to show internal directories.
Click to hide internal directories.