Documentation ¶
Index ¶
- type DriverWalkFunc
- type IPAMWalkFunc
- type IPAMs
- func (ir *IPAMs) IPAM(name string) (ipamapi.Ipam, *ipamapi.Capability)
- func (ir *IPAMs) RegisterIpamDriver(name string, driver ipamapi.Ipam) error
- func (ir *IPAMs) RegisterIpamDriverWithCapabilities(name string, driver ipamapi.Ipam, caps *ipamapi.Capability) error
- func (ir *IPAMs) WalkIPAMs(ifn IPAMWalkFunc)
- type Networks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DriverWalkFunc ¶
type DriverWalkFunc func(name string, driver driverapi.Driver, capability driverapi.Capability) bool
DriverWalkFunc defines the network driver table walker function signature.
type IPAMWalkFunc ¶
IPAMWalkFunc defines the IPAM driver table walker function signature.
type IPAMs ¶
type IPAMs struct {
// contains filtered or unexported fields
}
IPAMs is a registry of IPAM drivers. The zero value is an empty IPAM driver registry, ready to use.
func (*IPAMs) IPAM ¶
IPAM returns the actual IPAM driver instance and its capability which registered with the passed name.
func (*IPAMs) RegisterIpamDriver ¶
RegisterIpamDriver registers the IPAM driver discovered with default capabilities.
func (*IPAMs) RegisterIpamDriverWithCapabilities ¶
func (ir *IPAMs) RegisterIpamDriverWithCapabilities(name string, driver ipamapi.Ipam, caps *ipamapi.Capability) error
RegisterIpamDriverWithCapabilities registers the IPAM driver discovered with specified capabilities.
func (*IPAMs) WalkIPAMs ¶
func (ir *IPAMs) WalkIPAMs(ifn IPAMWalkFunc)
WalkIPAMs walks the IPAM drivers registered in the registry and invokes the passed walk function and each one of them.
type Networks ¶
type Networks struct { // Notify is called whenever a network driver is registered. Notify driverapi.Registerer // contains filtered or unexported fields }
Networks is a registry of network drivers. The zero value is an empty network driver registry, ready to use.
func (*Networks) Driver ¶
Driver returns the network driver instance registered under name, and its capability.
func (*Networks) RegisterDriver ¶
func (nr *Networks) RegisterDriver(ntype string, driver driverapi.Driver, capability driverapi.Capability) error
RegisterDriver registers the network driver with nr.
func (*Networks) WalkDrivers ¶
func (nr *Networks) WalkDrivers(dfn DriverWalkFunc)
WalkDrivers walks the network drivers registered in the registry and invokes the passed walk function and each one of them.