natgateway

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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