Documentation ¶
Index ¶
- type CacheMap
- func (cm *CacheMap[T]) Add(key string, value T)
- func (cm *CacheMap[T]) AddIfNotExists(key string, value T)
- func (cm *CacheMap[T]) Delete(key string) bool
- func (cm *CacheMap[T]) Exists(key string) bool
- func (cm *CacheMap[T]) ForEach(fun func(key string, item T) bool)
- func (cm *CacheMap[T]) Get(key string) (T, bool)
- type CacheMapArray
- func (cm *CacheMapArray[T]) Append(key string, value ...T)
- func (cm *CacheMapArray[T]) Delete(key string) bool
- func (cm *CacheMapArray[T]) Exists(key string) bool
- func (cm *CacheMapArray[T]) ForEach(fun func(key string, item []T) bool)
- func (cm *CacheMapArray[T]) ForEachSubItem(fun func(key string, index int, item T) bool)
- func (cm *CacheMapArray[T]) Get(key string) ([]T, bool)
- type ReuseIPAndWepPool
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 (*CacheMap[T]) AddIfNotExists ¶
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{})
Click to show internal directories.
Click to hide internal directories.