natgateway

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SlotsPerIP

func SlotsPerIP(portsPerNetworkInterface int32) int32

Types

type AllocationManager

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

func NewAllocationManager

func NewAllocationManager(portsPerNetworkInterface int32, ips []net.IP) *AllocationManager

func (*AllocationManager) HasIP

func (m *AllocationManager) HasIP(ip net.IP) bool

func (*AllocationManager) Total

func (m *AllocationManager) Total() int64

func (*AllocationManager) Use

func (m *AllocationManager) Use(ip net.IP, port, endPort int32) bool

func (*AllocationManager) UseNextFree

func (m *AllocationManager) UseNextFree() (ip net.IP, port, endPort int32, ok bool)

func (*AllocationManager) Used

func (m *AllocationManager) Used() int64

type AutoscalerSelectors

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

func NewAutoscalerSelectors

func NewAutoscalerSelectors() *AutoscalerSelectors

func (*AutoscalerSelectors) Delete

func (m *AutoscalerSelectors) Delete(key client.ObjectKey)

func (*AutoscalerSelectors) Put

func (*AutoscalerSelectors) PutIfNotPresent

func (m *AutoscalerSelectors) PutIfNotPresent(key client.ObjectKey, sel NetworkSelector)

func (*AutoscalerSelectors) ReverseSelect

func (m *AutoscalerSelectors) ReverseSelect(name string) sets.Set[client.ObjectKey]

type NetworkSelector

type NetworkSelector interface {
	MatchesNetwork(name string) bool
}

func NoVNISelector

func NoVNISelector() NetworkSelector

func SelectNetwork

func SelectNetwork(name string) NetworkSelector

Jump to

Keyboard shortcuts

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