cache

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFile

func FromFile[T metav1.Object](path string) (*fileCache[T], error)

func Union

func Union(stores ...Store) *union

Types

type ContinueToken

type ContinueToken *string

type SearchOptions

type SearchOptions struct {
	ContinueFrom  ContinueToken
	Limit         int
	LabelSelector labels.Selector
	Namespace     *string
}

type SharedInformerCache added in v0.0.8

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

func NewSharedInformerCache

func NewSharedInformerCache(
	getter cache.Getter,
	resource string,
	exampleObject runtime.Object,
) (*SharedInformerCache, func())

func (*SharedInformerCache) Get added in v0.0.8

func (s *SharedInformerCache) Get(namespace, name string) (interface{}, error)

func (*SharedInformerCache) HasSynced added in v0.0.8

func (s *SharedInformerCache) HasSynced() bool

func (*SharedInformerCache) Search added in v0.0.8

func (s *SharedInformerCache) Search(opts *SearchOptions) ([]interface{}, ContinueToken, error)

type Store

type Store interface {
	Get(namespace, name string) (interface{}, error)

	Search(*SearchOptions) ([]interface{}, ContinueToken, error)
}

Jump to

Keyboard shortcuts

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