Documentation ¶
Overview ¶
Package generic provides a generic object store interface and a generic label/field matching type.
Index ¶
- func AddObjectMetaFieldsSet(source fields.Set, objectMeta *api.ObjectMeta, hasNamespaceField bool) fields.Set
- func MergeFieldsSets(source fields.Set, fragment fields.Set) fields.Set
- func NewRawStorage(config *storagebackend.Config) (storage.Interface, factory.DestroyFunc)
- func ObjectMetaFieldsSet(objectMeta *api.ObjectMeta, hasNamespaceField bool) fields.Set
- func UndecoratedStorage(config *storagebackend.Config, capacity int, objectType runtime.Object, ...) (storage.Interface, factory.DestroyFunc)
- type RESTOptions
- type StorageDecorator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddObjectMetaFieldsSet ¶ added in v1.5.0
func AddObjectMetaFieldsSet(source fields.Set, objectMeta *api.ObjectMeta, hasNamespaceField bool) fields.Set
AdObjectMetaField add fields that represent the ObjectMeta to source.
func MergeFieldsSets ¶ added in v1.2.0
MergeFieldsSets merges a fields'set from fragment into the source.
func NewRawStorage ¶ added in v1.4.1
func NewRawStorage(config *storagebackend.Config) (storage.Interface, factory.DestroyFunc)
NewRawStorage creates the low level kv storage. This is a work-around for current two layer of same storage interface. TODO: Once cacher is enabled on all registries (event registry is special), we will remove this method.
func ObjectMetaFieldsSet ¶ added in v1.2.0
func ObjectMetaFieldsSet(objectMeta *api.ObjectMeta, hasNamespaceField bool) fields.Set
ObjectMetaFieldsSet returns a fields that represent the ObjectMeta.
func UndecoratedStorage ¶ added in v1.2.0
func UndecoratedStorage( config *storagebackend.Config, capacity int, objectType runtime.Object, resourcePrefix string, scopeStrategy rest.NamespaceScopedStrategy, newListFunc func() runtime.Object, trigger storage.TriggerPublisherFunc) (storage.Interface, factory.DestroyFunc)
Returns given 'storageInterface' without any decoration.
Types ¶
type RESTOptions ¶ added in v1.2.0
type RESTOptions struct { StorageConfig *storagebackend.Config Decorator StorageDecorator EnableGarbageCollection bool DeleteCollectionWorkers int ResourcePrefix string }
RESTOptions is set of configuration options to generic registries.
type StorageDecorator ¶ added in v1.2.0
type StorageDecorator func( config *storagebackend.Config, capacity int, objectType runtime.Object, resourcePrefix string, scopeStrategy rest.NamespaceScopedStrategy, newListFunc func() runtime.Object, trigger storage.TriggerPublisherFunc) (storage.Interface, factory.DestroyFunc)
StorageDecorator is a function signature for producing a storage.Interface from given parameters.
Directories ¶
Path | Synopsis |
---|---|
Package etcd has a generic implementation of a registry that stores things in etcd.
|
Package etcd has a generic implementation of a registry that stores things in etcd. |
Package rest has generic implementations of resources used for REST responses
|
Package rest has generic implementations of resources used for REST responses |