hashcache

package
v0.80.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHashCache = NewHashCache()

Functions

This section is empty.

Types

type HashCache

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

func NewHashCache

func NewHashCache() HashCache

func (*HashCache) AddClowdObjectToObject

func (hc *HashCache) AddClowdObjectToObject(clowdObj object.ClowdObject, obj client.Object) error

func (*HashCache) CreateOrUpdateObject

func (hc *HashCache) CreateOrUpdateObject(obj client.Object) (bool, error)

func (*HashCache) Delete

func (hc *HashCache) Delete(obj client.Object)

func (*HashCache) GetSuperHashForClowdObject

func (hc *HashCache) GetSuperHashForClowdObject(clowdObj object.ClowdObject) string

func (*HashCache) Read

func (hc *HashCache) Read(obj client.Object) (*HashObject, error)

func (*HashCache) RemoveClowdObjectFromObjects

func (hc *HashCache) RemoveClowdObjectFromObjects(obj client.Object)

type HashObject

type HashObject struct {
	Hash      string
	ClowdApps map[types.NamespacedName]bool
	ClowdEnvs map[types.NamespacedName]bool
}

func NewHashObject

func NewHashObject(hash string) HashObject

type Ident

type Ident struct {
	NN   types.NamespacedName
	Type string
}

type ItemNotFoundError

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

func (ItemNotFoundError) Error

func (a ItemNotFoundError) Error() string

Jump to

Keyboard shortcuts

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