Documentation
¶
Index ¶
- type AssociatedEventStream
- type GenericWatchStorage
- func (s *GenericWatchStorage) Close() error
- func (s *GenericWatchStorage) Delete(gvk schema.GroupVersionKind, uid runtime.UID) error
- func (s *GenericWatchStorage) Patch(gvk schema.GroupVersionKind, uid runtime.UID, patch []byte) error
- func (s *GenericWatchStorage) Set(gvk schema.GroupVersionKind, obj runtime.Object) error
- func (s *GenericWatchStorage) SetEventStream(eventStream AssociatedEventStream)
- type WatchStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssociatedEventStream ¶
type AssociatedEventStream chan update.AssociatedUpdate
type GenericWatchStorage ¶
GenericWatchStorage implements the WatchStorage interface
func (*GenericWatchStorage) Close ¶
func (s *GenericWatchStorage) Close() error
func (*GenericWatchStorage) Delete ¶
func (s *GenericWatchStorage) Delete(gvk schema.GroupVersionKind, uid runtime.UID) error
Suspend delete events during Delete
func (*GenericWatchStorage) Patch ¶
func (s *GenericWatchStorage) Patch(gvk schema.GroupVersionKind, uid runtime.UID, patch []byte) error
Suspend modify events during Patch
func (*GenericWatchStorage) Set ¶
func (s *GenericWatchStorage) Set(gvk schema.GroupVersionKind, obj runtime.Object) error
Suspend modify events during Set
func (*GenericWatchStorage) SetEventStream ¶
func (s *GenericWatchStorage) SetEventStream(eventStream AssociatedEventStream)
type WatchStorage ¶
type WatchStorage interface {
// WatchStorage extends the Storage interface
storage.Storage
// GetTrigger returns a hook that can be used to detect a watch event
SetEventStream(AssociatedEventStream)
}
WatchStorage is an extended Storage implementation, which provides a watcher for watching changes in the directory managed by the embedded Storage's RawStorage. If the RawStorage is a MappedRawStorage instance, it's mappings will automatically be updated by the WatchStorage. Update events are sent to the given event stream.
func NewGenericWatchStorage ¶
func NewGenericWatchStorage(s storage.Storage) (WatchStorage, error)
NewGenericWatchStorage constructs a new WatchStorage
Click to show internal directories.
Click to hide internal directories.