Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶ added in v0.6.0
type Manager interface { Refresh(options ...types.RefreshOption) error GetNetworkUsage(networkName string) (*types.NetworkUsage, error) GetSubnetUsage(networkName, subnetName string) (*types.Usage, error) Allocate(networkName string, podInfo types.PodInfo, options ...types.AllocateOption) (allocatedIPs []*types.IP, err error) Assign(networkName string, podInfo types.PodInfo, assignedSuites []types.SubnetIPSuite, options ...types.AssignOption) (assignedIPs []*types.IP, err error) Release(networkName string, releaseSuites []types.SubnetIPSuite) (err error) Reserve(networkName string, reserveSuites []types.SubnetIPSuite) (err error) }
type Store ¶
type Store interface { Couple(ctx context.Context, pod *v1.Pod, IPs []*types.IP, options ...types.CoupleOption) (err error) ReCouple(ctx context.Context, pod *v1.Pod, IPs []*types.IP, options ...types.ReCoupleOption) (err error) DeCouple(ctx context.Context, pod *v1.Pod) (err error) IPReserve(ctx context.Context, pod *v1.Pod, options ...types.ReserveOption) (err error) IPRecycle(ctx context.Context, namespace string, ip *types.IP) (err error) IPUnBind(ctx context.Context, namespace, ip string) (err error) }
Click to show internal directories.
Click to hide internal directories.