optimistic_locking_store

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: Apache-2.0 Imports: 11 Imported by: 5 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRecordVersionChanged = errors.New("record version changed")

Functions

func IsErrRecordVersionChanged

func IsErrRecordVersionChanged(err error) bool

Types

type InMemoryStore

type InMemoryStore struct {
	Mux    sync.Mutex
	Values map[string]*Value
}

func NewInMemoryStore

func NewInMemoryStore() *InMemoryStore

func (*InMemoryStore) GetValue

func (store *InMemoryStore) GetValue(key string) (*Value, error)

func (*InMemoryStore) PutValue

func (store *InMemoryStore) PutValue(key string, value *Value) error

type KubernetesResourceAnnotationsStore

type KubernetesResourceAnnotationsStore struct {
	KubernetesInterface dynamic.Interface
	GVR                 schema.GroupVersionResource
	ResourceName        string
	Namespace           string
}

func NewKubernetesResourceAnnotationsStore

func NewKubernetesResourceAnnotationsStore(kubernetesInterface dynamic.Interface, gvr schema.GroupVersionResource, resourceName, namespace string) *KubernetesResourceAnnotationsStore

func (*KubernetesResourceAnnotationsStore) GetValue

func (store *KubernetesResourceAnnotationsStore) GetValue(key string) (*Value, error)

func (*KubernetesResourceAnnotationsStore) PutValue

func (store *KubernetesResourceAnnotationsStore) PutValue(key string, value *Value) error

type OptimisticLockingStore

type OptimisticLockingStore interface {
	GetValue(key string) (*Value, error)
	PutValue(key string, value *Value) error
}

type Value

type Value struct {
	Data string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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