Documentation ¶
Index ¶
- type IPAM
- func (m *IPAM) GetCapabilities() (*ipam.CapabilitiesResponse, error)
- func (m *IPAM) GetDefaultAddressSpaces() (*ipam.AddressSpacesResponse, error)
- func (m *IPAM) ListSubNets(c *gin.Context)
- func (m *IPAM) ReleaseAddress(req *ipam.ReleaseAddressRequest) error
- func (m *IPAM) ReleasePool(req *ipam.ReleasePoolRequest) error
- func (m *IPAM) RequestAddress(req *ipam.RequestAddressRequest) (*ipam.RequestAddressResponse, error)
- func (m *IPAM) RequestPool(req *ipam.RequestPoolRequest) (*ipam.RequestPoolResponse, error)
- func (m *IPAM) Serve() error
- func (m *IPAM) SetIPPool(pool *IPPoolRange) error
- func (m *IPAM) SetSubNetPool(c *gin.Context)
- func (m *IPAM) StoreSetup() error
- type IPPoolRange
- type SubNet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPAM ¶
type IPAM struct {
// contains filtered or unexported fields
}
func (*IPAM) GetCapabilities ¶
func (m *IPAM) GetCapabilities() (*ipam.CapabilitiesResponse, error)
GetCapabilities Called on `docker network create`
func (*IPAM) GetDefaultAddressSpaces ¶
func (m *IPAM) GetDefaultAddressSpaces() (*ipam.AddressSpacesResponse, error)
GetDefaultAddressSpaces Called on `docker network create`
func (*IPAM) ListSubNets ¶
func (*IPAM) ReleaseAddress ¶
func (m *IPAM) ReleaseAddress(req *ipam.ReleaseAddressRequest) error
func (*IPAM) ReleasePool ¶
func (m *IPAM) ReleasePool(req *ipam.ReleasePoolRequest) error
ReleasePool Called on `docker network rm`
func (*IPAM) RequestAddress ¶
func (m *IPAM) RequestAddress(req *ipam.RequestAddressRequest) (*ipam.RequestAddressResponse, error)
RequestAddress Called on `container start` and `network create --gateway`
func (*IPAM) RequestPool ¶
func (m *IPAM) RequestPool(req *ipam.RequestPoolRequest) (*ipam.RequestPoolResponse, error)
RequestPool Called on `docker network create`
func (*IPAM) SetIPPool ¶
func (m *IPAM) SetIPPool(pool *IPPoolRange) error
func (*IPAM) SetSubNetPool ¶
func (*IPAM) StoreSetup ¶
type IPPoolRange ¶
type IPPoolRange struct { IPStart string `json:"ip_start"` // CIDR IPEnd string `json:"ip_end"` // CIDR }
IPPoolRange
func (*IPPoolRange) IPList ¶
func (r *IPPoolRange) IPList() []string
func (*IPPoolRange) SubNetID ¶
func (r *IPPoolRange) SubNetID() (string, error)
func (*IPPoolRange) Valid ¶
func (r *IPPoolRange) Valid() error
Click to show internal directories.
Click to hide internal directories.