Movatterモバイル変換


[0]ホーム

URL:


drvregistry

package
v2.0.0-beta.5Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2025 License:Apache-2.0Imports:8Imported by:0

Details

Repository

github.com/moby/moby

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeDriverWalkFunc

type DriverWalkFunc func(namestring, driverdriverapi.Driver, capabilitydriverapi.Capability)bool

DriverWalkFunc defines the network driver table walker function signature.

typeIPAMWalkFunc

type IPAMWalkFunc func(namestring, driveripamapi.Ipam, capability *ipamapi.Capability)bool

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

func (ir *IPAMs) IPAM(namestring) (ipamapi.Ipam, *ipamapi.Capability)

IPAM returns the actual IPAM driver instance and its capability which registered with the passed name.

func (*IPAMs)RegisterIpamDriver

func (ir *IPAMs) RegisterIpamDriver(namestring, driveripamapi.Ipam)error

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 (nr *Networks) HasDriverOrNwAllocator(ntypestring)bool

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

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.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp