ipcache

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 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 CacheMap

type CacheMap[T any] struct {
	// contains filtered or unexported fields
}

func NewCacheMap

func NewCacheMap[T any]() *CacheMap[T]

func (*CacheMap[T]) Add

func (cm *CacheMap[T]) Add(key string, value T)

func (*CacheMap[T]) AddIfNotExists

func (cm *CacheMap[T]) AddIfNotExists(key string, value T)

func (*CacheMap[T]) Delete

func (cm *CacheMap[T]) Delete(key string) bool

func (*CacheMap[T]) Exists

func (cm *CacheMap[T]) Exists(key string) bool

func (*CacheMap[T]) ForEach

func (cm *CacheMap[T]) ForEach(fun func(key string, item T) bool)

func (*CacheMap[T]) Get

func (cm *CacheMap[T]) Get(key string) (T, bool)

type CacheMapArray

type CacheMapArray[T any] struct {
	// contains filtered or unexported fields
}

func NewCacheMapArray

func NewCacheMapArray[T any]() *CacheMapArray[T]

func (*CacheMapArray[T]) Append

func (cm *CacheMapArray[T]) Append(key string, value ...T)

func (*CacheMapArray[T]) Delete

func (cm *CacheMapArray[T]) Delete(key string) bool

func (*CacheMapArray[T]) Exists

func (cm *CacheMapArray[T]) Exists(key string) bool

func (*CacheMapArray[T]) ForEach

func (cm *CacheMapArray[T]) ForEach(fun func(key string, item []T) bool)

func (*CacheMapArray[T]) ForEachSubItem

func (cm *CacheMapArray[T]) ForEachSubItem(fun func(key string, index int, item T) bool)

func (*CacheMapArray[T]) Get

func (cm *CacheMapArray[T]) Get(key string) ([]T, bool)

type ReuseIPAndWepPool

type ReuseIPAndWepPool struct {
	*CacheMap[*networkingv1alpha1.WorkloadEndpoint]
}

func NewReuseIPAndWepPool

func NewReuseIPAndWepPool() *ReuseIPAndWepPool

func (*ReuseIPAndWepPool) OnAdd

func (pool *ReuseIPAndWepPool) OnAdd(obj interface{})

func (*ReuseIPAndWepPool) OnDelete

func (pool *ReuseIPAndWepPool) OnDelete(obj interface{})

func (*ReuseIPAndWepPool) OnUpdate

func (pool *ReuseIPAndWepPool) OnUpdate(oldObj, newObj interface{})

Jump to

Keyboard shortcuts

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