fabricipam

package
v0.11.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package fabricipam contains the implementation of the IPAM for the Fabric network.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context, cl client.Client, ipam *IPAM) error

Init initializes the IPAM. It lists all the internalnode and internalfabric resources and configures the IPAM accordingly.

Types

type IPAM

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

IPAM is the struct that manages the IPAM.

func Get

func Get(ctx context.Context, cl client.Client) (*IPAM, error)

Get retrieve and init the IPAM singleton.

func (*IPAM) Allocate

func (i *IPAM) Allocate(name string) (net.IP, error)

Allocate allocates an IP for the given name.

Jump to

Keyboard shortcuts

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