- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ParsePortRange (0.41 sec)
-
pkg/registry/core/service/portallocator/allocator.go
}) } // NewFromSnapshot allocates a PortAllocator and initializes it from a snapshot. func NewFromSnapshot(snap *api.RangeAllocation) (*PortAllocator, error) { pr, err := net.ParsePortRange(snap.Range) if err != nil { return nil, err } r, err := NewInMemory(*pr) if err != nil { return nil, err } if err := r.Restore(*pr, snap.Data); err != nil { return nil, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 08 07:15:02 UTC 2024 - 7.4K bytes - Viewed (0)