Versions in this module Expand all Collapse all v1 v1.1.0 Jul 9, 2026 Changes in this version + var ErrNoFreePort = errors.New("no free port find") + type Allocator struct + func NewAllocator(pRange PortRange, store backend.Store) *Allocator + func (a *Allocator) Release(ns string, port int) error + func (a *Allocator) Reserve(ns string) (int, error) + type PortAllocator interface + Release func(ns string, port int) error + Reserve func(ns string) (int, error) + type PortRange struct + End int + Start int