Versions in this module Expand all Collapse all v1 v1.7.4 Mar 26, 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 Incompatible versions in this module v3.9.0-0.dev+incompatible Jun 10, 2019 v3.8.0-0.dev+incompatible Apr 23, 2019 v3.7.0-0.dev+incompatible Mar 7, 2019 v3.6.0-0.dev+incompatible Jan 9, 2019 v3.5.0-0.dev+incompatible Nov 23, 2018 v3.4.0-0.dev+incompatible Oct 19, 2018 v2.0.0-alpha1+incompatible Oct 27, 2017 Other modules containing this package github.com/mangoqiqi/libcalico-go/v3