podstore

package
v1.15.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	GetPodByIPAndTime(ip string, startTime time.Time) (*corev1.Pod, bool)
	Run(stopCh <-chan struct{})
}

Interface is a podStore interface to create local podStore for Flow Exporter and Flow Aggregator.

type PodStore

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

func NewPodStore

func NewPodStore(podInformer cache.SharedIndexInformer) *PodStore

func NewPodStoreWithClock

func NewPodStoreWithClock(podInformer cache.SharedIndexInformer, clock clock.WithTicker) *PodStore

NewPodStoreWithClock creates a Pod Store with a custom clock, which is useful when writing robust unit tests.

func (*PodStore) GetPodByIPAndTime

func (s *PodStore) GetPodByIPAndTime(ip string, time time.Time) (*corev1.Pod, bool)

func (*PodStore) Run

func (s *PodStore) Run(stopCh <-chan struct{})

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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