ipamrange

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPAM

type IPAM struct {
	// contains filtered or unexported fields
}

func (*IPAM) Alloc

func (i *IPAM) Alloc(ctx context.Context, log logr.Logger, clt client.Client, reqSpecs ipam.RequestSpecList, requestKey client.ObjectKey) (ipam.CIDRList, error)

func (*IPAM) Free

func (i *IPAM) Free(ctx context.Context, log logr.Logger, ctl client.Client, allocated ipam.CIDRList, requestKey client.ObjectKey) error

type IPAMCache

type IPAMCache struct {
	client.Client
	// contains filtered or unexported fields
}

func NewIPAMCache

func NewIPAMCache(clt client.Client) *IPAMCache

type IPAMUsageExtractor

type IPAMUsageExtractor struct {
	// contains filtered or unexported fields
}

func (*IPAMUsageExtractor) ExtractUsage

func (e *IPAMUsageExtractor) ExtractUsage(object client.Object) utils.ObjectIds

type PendingRequest

type PendingRequest struct {
	CIDRs ipam.CIDRList
	// contains filtered or unexported fields
}

type Reconciler

type Reconciler struct {
	controllerutils.Reconciler
	// contains filtered or unexported fields
}

Reconciler reconciles a IPAMRange object

func NewReconciler

func NewReconciler() *Reconciler

func (*Reconciler) HandleDelete

func (r *Reconciler) HandleDelete(ctx context.Context, log logr.Logger, obj *api.IPAMRange) (ctrl.Result, error)

func (*Reconciler) HandleDeleted

func (r *Reconciler) HandleDeleted(ctx context.Context, log logr.Logger, key client.ObjectKey) (ctrl.Result, error)

func (*Reconciler) HandleReconcile

func (r *Reconciler) HandleReconcile(ctx context.Context, log logr.Logger, obj *api.IPAMRange) (ctrl.Result, error)

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile if parent -> handle request part and set range

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr *manager.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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