ipam

package
v0.8.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL