package idm
import "github.com/docker/docker/libnetwork/idm"
Package idm manages reservation/release of numerical ids from a configured set of contiguous ids
Index ¶
Types ¶
type Idm ¶
type Idm struct {
// contains filtered or unexported fields
}
Idm manages the reservation/release of numerical ids from a contiguous set
func New ¶
New returns an instance of id manager for a [start,end] set of numerical ids
func (*Idm) GetID ¶
GetID returns the first available id in the set
func (*Idm) GetIDInRange ¶
GetIDInRange returns the first available id in the set within a [start,end] range
func (*Idm) GetSpecificID ¶
GetSpecificID tries to reserve the specified id
func (*Idm) Release ¶
Release releases the specified id
Source Files ¶
- Version
- v23.0.14+incompatible
- Published
- Jun 5, 2024
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 1 minute ago –
Tools for package owners.