objectset

package
v0.4.3-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LockableRegister

type LockableRegister interface {
	Register
	Locker
}

LockableRegister implements Register and Locker

func NewLockableRegister

NewLockableRegister returns a starter that starts an ObjectSetController listening to events on ObjectSetStates and a LockableRegister that allows you to register new states for ObjectSets in memory

type Locker

type Locker interface {
	// Lock allows you to lock an objectset associated with a specific key
	Lock(key relatedresource.Key)

	// Unlock allows you to unlock an objectset associated with a specific key
	Unlock(key relatedresource.Key)
}

Locker can lock or unlock object sets tied to a specific key

type Register

type Register interface {
	relatedresource.Enqueuer

	// Set allows you to set and lock an objectset associated with a specific key
	// if os or locked are not provided, the currently persisted values will be used
	Set(key relatedresource.Key, os *objectset.ObjectSet, locked *bool)

	// Delete allows you to delete an objectset associated with a specific key
	Delete(key relatedresource.Key, purge bool)
}

Register can keep track of sets of ObjectSets

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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