Versions in this module Expand all Collapse all v3 v3.13.5 Mar 26, 2020 v3.13.3 Mar 26, 2020 v3.13.1 Mar 25, 2020 Changes in this version + const AttributeNamespace + const AttributeNode + const AttributePod + const AttributeType + const AttributeTypeIPIP + const AttributeTypeVXLAN + var ErrBlockLimit = errors.New("cannot allocate new block due to per host block limit") + type AssignIPArgs struct + Attrs map[string]string + HandleID *string + Hostname string + IP cnet.IP + type AutoAssignArgs struct + Attrs map[string]string + HandleID *string + Hostname string + IPv4Pools []cnet.IPNet + IPv6Pools []cnet.IPNet + MaxBlocksPerHost int + Num4 int + Num6 int + type BlockUtilization struct + Available int + CIDR net.IPNet + Capacity int + type GetUtilizationArgs struct + Pools []string + type IPAMConfig struct + AutoAllocateBlocks bool + StrictAffinity bool + type Interface interface + AssignIP func(ctx context.Context, args AssignIPArgs) error + AutoAssign func(ctx context.Context, args AutoAssignArgs) ([]cnet.IPNet, []cnet.IPNet, error) + ClaimAffinity func(ctx context.Context, cidr cnet.IPNet, host string) ([]cnet.IPNet, []cnet.IPNet, error) + GetAssignmentAttributes func(ctx context.Context, addr cnet.IP) (map[string]string, *string, error) + GetIPAMConfig func(ctx context.Context) (*IPAMConfig, error) + GetUtilization func(ctx context.Context, args GetUtilizationArgs) ([]*PoolUtilization, error) + IPsByHandle func(ctx context.Context, handleID string) ([]cnet.IP, error) + ReleaseAffinity func(ctx context.Context, cidr cnet.IPNet, host string, mustBeEmpty bool) error + ReleaseByHandle func(ctx context.Context, handleID string) error + ReleaseHostAffinities func(ctx context.Context, host string, mustBeEmpty bool) error + ReleaseIPs func(ctx context.Context, ips []cnet.IP) ([]cnet.IP, error) + ReleasePoolAffinities func(ctx context.Context, pool cnet.IPNet) error + RemoveIPAMHost func(ctx context.Context, host string) error + SetIPAMConfig func(ctx context.Context, cfg IPAMConfig) error + func NewIPAMClient(client bapi.Client, pools PoolAccessorInterface) Interface + type PoolAccessorInterface interface + GetAllPools func() ([]v3.IPPool, error) + GetEnabledPools func(ipVersion int) ([]v3.IPPool, error) + type PoolUtilization struct + Blocks []BlockUtilization + CIDR net.IPNet + Name string Other modules containing this package github.com/mangoqiqi/libcalico-go