ipaddress

package
v0.0.0-...-9264194 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPAddressClaimHandler

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

IPAddressClaimHandler reconciles an IPAddress Claim getting the right address from the right pool

func (*IPAddressClaimHandler) EnsureAddress

func (h *IPAddressClaimHandler) EnsureAddress(ctx context.Context, address *ipamv1.IPAddress) (*ctrl.Result, error)

EnsureAddress ensures that the IPAddress contains a valid address.

func (*IPAddressClaimHandler) FetchPool

FetchPool fetches the PHPIPAM Pool.

func (*IPAddressClaimHandler) ReleaseAddress

func (h *IPAddressClaimHandler) ReleaseAddress(ctx context.Context) (*ctrl.Result, error)

ReleaseAddress releases the ip address.

type PHPIPAMProviderAdapter

type PHPIPAMProviderAdapter struct {
	Client     client.Client
	IPAMClient *ipamclient.IPAMClient
}

PHPIPAMProviderAdapter is used as middle layer for provider integration.

func (*PHPIPAMProviderAdapter) ClaimHandlerFor

ClaimHandlerFor returns a claim handler for a specific claim.

func (*PHPIPAMProviderAdapter) IPPoolToIPClaims

func (v *PHPIPAMProviderAdapter) IPPoolToIPClaims() func(context.Context, client.Object) []reconcile.Request

func (*PHPIPAMProviderAdapter) SetupWithManager

func (v *PHPIPAMProviderAdapter) SetupWithManager(_ context.Context, b *ctrl.Builder) 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