store

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	GVK map[string]*CacheGVK
	// contains filtered or unexported fields
}

func NewCache

func NewCache() *Cache

func (*Cache) Add

func (c *Cache) Add(key string, namespace string, name string, obj *unstructured.Unstructured)

func (*Cache) Find

func (c *Cache) Find(key string, namespace string) []*unstructured.Unstructured

func (*Cache) Remove

func (c *Cache) Remove(key string, namespace string, name string)

type CacheGVK

type CacheGVK struct {
	Key        string
	Namespaces map[string]*CacheNamespace
}

type CacheItem

type CacheItem struct {
	Obj *unstructured.Unstructured
}

type CacheNamespace

type CacheNamespace struct {
	Namespace string
	Names     map[string]*CacheItem
}

Jump to

Keyboard shortcuts

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