ipam

package
v0.0.0-...-8bfe3b3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressManager

type AddressManager interface {
	// TODO: extend this interface with additional methods if necessary.
	//		Most likely following methods are going to be required:
	//			- network create/delete
	AllocateIP(context.Context, *AllocateIPRequest) (address string, subnetUUID string, err error)
	DeallocateIP(context.Context, *DeallocateIPRequest) (err error)
	IsIPAllocated(context.Context, *IsIPAllocatedRequest) (isAllocated bool, err error)
	CreateIpamSubnet(context.Context, *CreateIpamSubnetRequest) (subnetUUID string, err error)
	CheckIfIpamSubnetExists(ctx context.Context, subnetUUID string) (bool, error)
	DeleteIpamSubnet(context.Context, *DeleteIpamSubnetRequest) (err error)
}

AddressManager address manager interface for virtual network

type AllocateIPRequest

type AllocateIPRequest struct {
	VirtualNetwork               *models.VirtualNetwork
	SubnetUUID                   string
	IPAddress                    string
	IPFamily                     string
	VirtualRouterNetworkIpamRefs []*models.VirtualRouterNetworkIpamRef
	InstanceIPNetworkIpamRefs    []*models.InstanceIPNetworkIpamRef
}

AllocateIPRequest arguments for AllocateIP methods.

type CreateIpamSubnetRequest

type CreateIpamSubnetRequest struct {
	IpamSubnet *models.IpamSubnetType
}

CreateIpamSubnetRequest arguments for CreateIpamSubnet methods.

type DeallocateIPRequest

type DeallocateIPRequest struct {
	VirtualNetwork *models.VirtualNetwork
	IPAddress      string
	IpamRefs       []*models.InstanceIPNetworkIpamRef
}

DeallocateIPRequest arguments for DeallocateIP methods.

type DeleteIpamSubnetRequest

type DeleteIpamSubnetRequest struct {
	SubnetUUID string
}

DeleteIpamSubnetRequest arguments for DeleteIpamSubnet methods.

type ErrSubnetExhausted

type ErrSubnetExhausted interface {
	SubnetExhausted()
}

ErrSubnetExhausted signals that address cannot be allocated since subnet is exhausted

type IsIPAllocatedRequest

type IsIPAllocatedRequest struct {
	VirtualNetwork *models.VirtualNetwork
	IPAddress      string
}

IsIPAllocatedRequest arguments for IsIPAllocated methods.

Jump to

Keyboard shortcuts

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