package
0.0.0-20220915083431-c01aa29c5a7b
Repository: https://github.com/infraboard/workflow.git
Documentation: pkg.go.dev
# Functions
IndexFuncToKeyFuncAdapter adapts an indexFunc to a keyFunc.
NewIndexer returns an Indexer implemented simply with a map and a lock.
NewStore returns a Store implemented simply with a map and a lock.
NewThreadSafeStore creates a new instance of ThreadSafeStore.
# Constants
NamespaceIndex is the lookup name for the most comment index function, which is to index by the namespace field.
# Structs
KeyError will be returned any time a KeyFunc gives an error; it includes the object at fault.
# Interfaces
Indexer is a storage interface that lets you list objects using multiple indexing functions.
Manager 管理Store.
Reader 读取数据.
Store is a generic object storage interface.
ThreadSafeStore is an interface that allows concurrent access to a storage backend.
Writer 写数据.
# Type aliases
ExplicitKey can be passed to MetaNamespaceKeyFunc if you have the key for the object but not the object itself.
Index maps the indexed value to a set of keys in the store that match on that value.
Indexers maps a name to a IndexFunc.
IndexFunc knows how to compute the set of indexed values for an object.
Indices maps a name to an Index.
KeyFunc knows how to make a key from an object.