package ipam
import "github.com/dotcloud/docker/libnetwork/ipam"
Index ¶
- type Allocator
- func NewAllocator(lcAs, glAs []*net.IPNet) (*Allocator, error)
- func (a *Allocator) DumpDatabase() string
- func (a *Allocator) GetDefaultAddressSpaces() (string, string, error)
- func (a *Allocator) IsBuiltIn() bool
- func (a *Allocator) ReleaseAddress(poolID string, address net.IP) error
- func (a *Allocator) ReleasePool(poolID string) error
- func (a *Allocator) RequestAddress(poolID string, prefAddress net.IP, opts map[string]string) (*net.IPNet, map[string]string, error)
- func (a *Allocator) RequestPool(addressSpace, requestedPool, requestedSubPool string, _ map[string]string, v6 bool) (poolID string, pool *net.IPNet, meta map[string]string, err error)
- type PoolData
- type PoolID
- type SubnetKey
Types ¶
type Allocator ¶
type Allocator struct {
// contains filtered or unexported fields
}
Allocator provides per address space ipv4/ipv6 book keeping
func NewAllocator ¶
NewAllocator returns an instance of libnetwork ipam
func (*Allocator) DumpDatabase ¶
DumpDatabase dumps the internal info
func (*Allocator) GetDefaultAddressSpaces ¶
GetDefaultAddressSpaces returns the local and global default address spaces
func (*Allocator) IsBuiltIn ¶
IsBuiltIn returns true for builtin drivers
func (*Allocator) ReleaseAddress ¶
ReleaseAddress releases the address from the specified pool ID
func (*Allocator) ReleasePool ¶
ReleasePool releases the address pool identified by the passed id
func (*Allocator) RequestAddress ¶
func (a *Allocator) RequestAddress(poolID string, prefAddress net.IP, opts map[string]string) (*net.IPNet, map[string]string, error)
RequestAddress returns an address from the specified pool ID
func (*Allocator) RequestPool ¶
func (a *Allocator) RequestPool(addressSpace, requestedPool, requestedSubPool string, _ map[string]string, v6 bool) (poolID string, pool *net.IPNet, meta map[string]string, err error)
RequestPool returns an address pool along with its unique id. addressSpace must be a valid address space name and must not be the empty string. If requestedPool is the empty string then the default predefined pool for addressSpace will be used, otherwise pool must be a valid IP address and length in CIDR notation. If requestedSubPool is not empty, it must be a valid IP address and length in CIDR notation which is a sub-range of requestedPool. requestedSubPool must be empty if requestedPool is empty.
type PoolData ¶
type PoolData struct {
// contains filtered or unexported fields
}
PoolData contains the configured pool data
func (*PoolData) String ¶
String returns the string form of the PoolData object
type PoolID ¶
PoolID is the pointer to the configured pools in each address space
func PoolIDFromString ¶
PoolIDFromString creates a new PoolID and populates the SubnetKey object reading it from the given string.
func (*PoolID) String ¶
String returns the string form of the SubnetKey object
type SubnetKey ¶
SubnetKey is the composite key to an address pool within an address space.
Source Files ¶
- Version
- v26.1.3+incompatible
- Published
- May 15, 2024
- Platform
- js/wasm
- Imports
- 12 packages
- Last checked
- 5 minutes ago –
Tools for package owners.