Documentation ¶
Index ¶
- func SlotsPerIP(portsPerNetworkInterface int32) int32
- type AllocationManager
- type AutoscalerSelectors
- func (m *AutoscalerSelectors) Delete(key client.ObjectKey)
- func (m *AutoscalerSelectors) Put(key client.ObjectKey, sel NetworkSelector)
- func (m *AutoscalerSelectors) PutIfNotPresent(key client.ObjectKey, sel NetworkSelector)
- func (m *AutoscalerSelectors) ReverseSelect(name string) sets.Set[client.ObjectKey]
- type NetworkSelector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SlotsPerIP ¶
Types ¶
type AllocationManager ¶
type AllocationManager struct {
// contains filtered or unexported fields
}
func NewAllocationManager ¶
func NewAllocationManager(portsPerNetworkInterface int32, ips []net.IP) *AllocationManager
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 (m *AutoscalerSelectors) Put(key client.ObjectKey, sel NetworkSelector)
func (*AutoscalerSelectors) PutIfNotPresent ¶
func (m *AutoscalerSelectors) PutIfNotPresent(key client.ObjectKey, sel NetworkSelector)
func (*AutoscalerSelectors) ReverseSelect ¶
type NetworkSelector ¶
func NoVNISelector ¶
func NoVNISelector() NetworkSelector
func SelectNetwork ¶
func SelectNetwork(name string) NetworkSelector
Click to show internal directories.
Click to hide internal directories.