objectcache

package
v0.0.0-...-070373f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheRequestMetric

type CacheRequestMetric struct {
	Cluster string
	Hit     bool
	Error   string
}

func (*CacheRequestMetric) MetricName

func (*CacheRequestMetric) MetricName() string

type ObjectCache

type ObjectCache struct {
	Logger    logrus.FieldLogger
	Clock     clock.Clock
	Clients   k8s.Clients
	Metrics   metrics.Client
	DiffCache diffcache.Cache

	CacheRequestMetric *metrics.Metric[*CacheRequestMetric]
	// contains filtered or unexported fields
}

func (*ObjectCache) Close

func (oc *ObjectCache) Close(ctx context.Context) error

func (*ObjectCache) Get

func (*ObjectCache) Init

func (oc *ObjectCache) Init() error

func (*ObjectCache) Options

func (oc *ObjectCache) Options() manager.Options

func (*ObjectCache) Start

func (oc *ObjectCache) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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