cache

package
v0.0.0-...-735b8cc Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsCache

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

func NewMetricsCache

func NewMetricsCache() *MetricsCache

func (*MetricsCache) Get

func (c *MetricsCache) Get() []*dto.MetricFamily

func (*MetricsCache) Update

func (c *MetricsCache) Update(metricsBytes []byte) error

type PodCache

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

PodCache

func NewPodCache

func NewPodCache() *PodCache

func (*PodCache) Cleanup

func (c *PodCache) Cleanup()

func (*PodCache) Delete

func (c *PodCache) Delete(podUID types.UID)

func (*PodCache) GetAll

func (c *PodCache) GetAll() []*corev1.Pod

func (*PodCache) GetByID

func (c *PodCache) GetByID(podUID types.UID) (*corev1.Pod, bool)

func (*PodCache) GetByName

func (c *PodCache) GetByName(namespace, name string) (*corev1.Pod, bool)

func (*PodCache) IsDeletedInRemote

func (c *PodCache) IsDeletedInRemote(podUID types.UID) bool

func (*PodCache) MarkDeletedInRemote

func (c *PodCache) MarkDeletedInRemote(podUID types.UID, deleted bool)

func (*PodCache) Update

func (c *PodCache) Update(pod *corev1.Pod)

Jump to

Keyboard shortcuts

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