service

package
v0.6.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FTEIDM

type FTEIDM struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*FTEIDM) AllocateTEID

func (ipam *FTEIDM) AllocateTEID(seID uint64, pdrID uint32) (uint32, error)

func (*FTEIDM) ReleaseTEID

func (fteidm *FTEIDM) ReleaseTEID(seID uint64)

type IPAM

type IPAM struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*IPAM) AllocateIP

func (ipam *IPAM) AllocateIP(key uint64) (net.IP, error)

func (*IPAM) ReleaseIP

func (ipam *IPAM) ReleaseIP(seID uint64)

type ResourceManager

type ResourceManager struct {
	IPAM   *IPAM
	FTEIDM *FTEIDM
}

func NewResourceManager

func NewResourceManager(ipRange string, teidRange uint32) (*ResourceManager, error)

Jump to

Keyboard shortcuts

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