Documentation ¶
Index ¶
- Constants
- type CalicoIPAM
- func (c CalicoIPAM) AssignIP(address string) (caliconet.IP, error)
- func (c CalicoIPAM) AutoAssign(poolName string) (caliconet.IP, error)
- func (c CalicoIPAM) GetIPPool(poolName string) (*apiv3.IPPool, error)
- func (c CalicoIPAM) IPPools() (*apiv3.IPPoolList, error)
- func (c CalicoIPAM) ReleaseIP(poolName string, address string) error
- func (c CalicoIPAM) RequestDefaultPool(v6 bool) *types.Pool
- func (c CalicoIPAM) RequestPool(cidr string) (*types.Pool, error)
- func (c CalicoIPAM) RequestPools(cidrs []string) ([]*types.Pool, error)
Constants ¶
View Source
const ( // PoolIDV4 . // Calico IPAM module does not allow selection of pools from which to allocate // IP addresses. The pool ID, which has to be supplied in the libnetwork IPAM // API is therefore fixed. We use different values for IPv4 and IPv6 so that // during allocation we know which IP version to use. PoolIDV4 = "CalicoPoolIPv4" // PoolIDV6 . PoolIDV6 = "CalicoPoolIPv6" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalicoIPAM ¶
type CalicoIPAM struct {
// contains filtered or unexported fields
}
CalicoIPAM .
func (CalicoIPAM) AssignIP ¶
func (c CalicoIPAM) AssignIP(address string) (caliconet.IP, error)
AssignIP .
func (CalicoIPAM) AutoAssign ¶
func (c CalicoIPAM) AutoAssign(poolName string) (caliconet.IP, error)
AutoAssign .
func (CalicoIPAM) GetIPPool ¶
func (c CalicoIPAM) GetIPPool(poolName string) (*apiv3.IPPool, error)
GetIPPool .
func (CalicoIPAM) ReleaseIP ¶
func (c CalicoIPAM) ReleaseIP(poolName string, address string) error
ReleaseIP .
func (CalicoIPAM) RequestDefaultPool ¶
func (c CalicoIPAM) RequestDefaultPool(v6 bool) *types.Pool
RequestDefaultPool .
func (CalicoIPAM) RequestPool ¶
func (c CalicoIPAM) RequestPool(cidr string) (*types.Pool, error)
RequestPool .
func (CalicoIPAM) RequestPools ¶
func (c CalicoIPAM) RequestPools(cidrs []string) ([]*types.Pool, error)
RequestPools .
Click to show internal directories.
Click to hide internal directories.