Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPAMCache ¶
type IPAMCache struct {
// contains filtered or unexported fields
}
IPAMCache caches Ipamer instances for IPPool objects.
func NewIPAMCache ¶
func NewIPAMCache() *IPAMCache
func (*IPAMCache) Free ¶
func (i *IPAMCache) Free(ippool *ipamv1alpha1.IPPool)
Free removes a cached IPAM instance for the given IPPool.
func (*IPAMCache) Get ¶
func (i *IPAMCache) Get(ippool *ipamv1alpha1.IPPool) (Ipamer, bool)
Get returns a cached IPAM instance if it exists.
func (*IPAMCache) GetOrCreate ¶
func (i *IPAMCache) GetOrCreate( ctx context.Context, ippool *ipamv1alpha1.IPPool, create ipamCreateFn, ) (Ipamer, error)
GetOrCreate returns a cached IPAM instance or calls the createFn to create the instance.
type IPLeaseReconciler ¶
type IPLeaseReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme IPAMCache ipamCache }
IPLeaseReconciler reconciles a IPLease object
func (*IPLeaseReconciler) SetupWithManager ¶
func (r *IPLeaseReconciler) SetupWithManager(mgr ctrl.Manager) error
type IPPoolReconciler ¶
type IPPoolReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme IPAMCache ipamCache NewIPAM func() Ipamer }
IPPoolReconciler reconciles a IPPool object
func (*IPPoolReconciler) SetupWithManager ¶
func (r *IPPoolReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.