drvregistry
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
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
- func (nr *Networks) Driver(name string) (driverapi.Driver, driverapi.Capability)
- func (nr *Networks) HasDriverOrNwAllocator(ntype string) bool
- func (nr *Networks) NetworkAllocator(name string) driverapi.NetworkAllocator
- func (nr *Networks) RegisterDriver(ntype string, driver driverapi.Driver, capability driverapi.Capability) error
- func (nr *Networks) RegisterNetworkAllocator(ntype string, nwAlloc driverapi.NetworkAllocator) error
- func (nr *Networks) WalkDrivers(dfn DriverWalkFunc)
- type PortMappers
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeDriverWalkFunc¶
DriverWalkFunc defines the network driver table walker function signature.
typeIPAMWalkFunc¶
IPAMWalkFunc defines the IPAM driver table walker function signature.
typeIPAMs¶
type IPAMs struct {// contains filtered or unexported fields}IPAMs is a registry of IPAM drivers. The zero value is an empty IPAM driverregistry, 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(namestring, driveripamapi.Ipam, caps *ipamapi.Capability)error
RegisterIpamDriverWithCapabilities registers the IPAM driver discovered with specified capabilities.
func (*IPAMs)WalkIPAMs¶
func (ir *IPAMs) WalkIPAMs(ifnIPAMWalkFunc)
WalkIPAMs walks the IPAM drivers registered in the registry and invokes the passed walk function and each one of them.
typeNetworks¶
type Networks struct {// Notify is called whenever a network driver is registered.Notifydriverapi.Registerer// contains filtered or unexported fields}Networks is a registry of network drivers. The zero value is an empty networkdriver registry, ready to use.
func (*Networks)Driver¶
Driver returns the network driver instance registered under name, and its capability.
func (*Networks)HasDriverOrNwAllocator¶
func (*Networks)NetworkAllocator¶
func (nr *Networks) NetworkAllocator(namestring)driverapi.NetworkAllocator
NetworkAllocator returns the NetworkAllocator registered under name, and its capability.
func (*Networks)RegisterDriver¶
func (nr *Networks) RegisterDriver(ntypestring, driverdriverapi.Driver, capabilitydriverapi.Capability)error
RegisterDriver registers the network driver with nr.
func (*Networks)RegisterNetworkAllocator¶
func (nr *Networks) RegisterNetworkAllocator(ntypestring, nwAllocdriverapi.NetworkAllocator)error
func (*Networks)WalkDrivers¶
func (nr *Networks) WalkDrivers(dfnDriverWalkFunc)
WalkDrivers walks the network drivers registered in the registry and invokes the passed walk function and each one of them.
typePortMappers¶
type PortMappers struct {// contains filtered or unexported fields}func (*PortMappers)Get¶
func (r *PortMappers) Get(namestring) (portmapperapi.PortMapper,error)
Get retrieves a portmapper by name from the registry.
func (*PortMappers)Register¶
func (r *PortMappers) Register(namestring, pmportmapperapi.PortMapper)error
Register a portmapper with the registry.