Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressSpacesResponse ¶
type AddressSpacesResponse struct { LocalDefaultAddressSpace string GlobalDefaultAddressSpace string }
AddressSpacesResponse returns the default local and global address space names for this IPAM
type CapabilitiesResponse ¶
type CapabilitiesResponse struct {
RequiresMACAddress bool
}
CapabilitiesResponse returns whether or not this IPAM required pre-made MAC
type ErrorResponse ¶
type ErrorResponse struct {
Err string
}
ErrorResponse is a formatted error message that libnetwork can understand
func NewErrorResponse ¶
func NewErrorResponse(msg string) *ErrorResponse
NewErrorResponse creates an ErrorResponse with the provided message
type Handler ¶
Handler forwards requests and responses between the docker daemon and the plugin.
func NewHandler ¶
NewHandler initializes the request handler with a driver implementation.
type Ipam ¶
type Ipam interface { GetCapabilities() (*CapabilitiesResponse, error) GetDefaultAddressSpaces() (*AddressSpacesResponse, error) RequestPool(*RequestPoolRequest) (*RequestPoolResponse, error) ReleasePool(*ReleasePoolRequest) error RequestAddress(*RequestAddressRequest) (*RequestAddressResponse, error) ReleaseAddress(*ReleaseAddressRequest) error }
Ipam represent the interface a driver must fulfill.
type ReleaseAddressRequest ¶
ReleaseAddressRequest is sent in order to release an address from the pool
type ReleasePoolRequest ¶
type ReleasePoolRequest struct {
PoolID string
}
ReleasePoolRequest is sent when releasing a previously registered address pool
type RequestAddressRequest ¶
RequestAddressRequest is sent when requesting an address from IPAM
type RequestAddressResponse ¶
RequestAddressResponse is formed with allocated address by IPAM