Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoFreePort = errors.New("no free port find")
ErrNoFreePort is returned when trying to reserve a port but all the the port of the range have been already reserved
Functions ¶
This section is empty.
Types ¶
type Allocator ¶
type Allocator struct {
// contains filtered or unexported fields
}
Allocator implements the PortAllocator interface
func NewAllocator ¶
NewAllocator return a PortAllocator
type PortAllocator ¶
PortAllocator is the interface that defines the behavior to reserve a port in a specific network namespace
Click to show internal directories.
Click to hide internal directories.