package ipamutils
import "github.com/docker/docker/libnetwork/ipamutils"
Package ipamutils provides utility functions for ipam management
Index ¶
Types ¶
type NetworkToSplit ¶
NetworkToSplit represent a network that has to be split in chunks with mask length Size. Each subnet in the set is derived from the Base pool. Base is to be passed in CIDR format. Example: a Base "10.10.0.0/16 with Size 24 will define the set of 256 10.10.[0-255].0/24 address pools
func GetGlobalScopeDefaultNetworks ¶
func GetGlobalScopeDefaultNetworks() []*NetworkToSplit
GetGlobalScopeDefaultNetworks returns a copy of the global-scope network list.
func GetLocalScopeDefaultNetworks ¶
func GetLocalScopeDefaultNetworks() []*NetworkToSplit
GetLocalScopeDefaultNetworks returns a copy of the default local-scope network list.
func (NetworkToSplit) FirstPrefix ¶
func (n NetworkToSplit) FirstPrefix() netip.Prefix
FirstPrefix returns the first prefix available in NetworkToSplit.
func (NetworkToSplit) Overlaps ¶
func (n NetworkToSplit) Overlaps(p netip.Prefix) bool
Overlaps is a util function checking whether 'p' overlaps with 'n'.
Source Files ¶
- Version
- v28.0.2+incompatible
- Published
- Mar 18, 2025
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 7 seconds ago –
Tools for package owners.