Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventStorage ¶ added in v0.0.3
type EventStorage interface {
storage.Storage
// SetUpdateStream gives the EventStorage a channel to send events to.
// The caller is responsible for choosing a large enough buffer to avoid
// blocking the underlying EventStorage implementation unnecessarily.
// TODO: In the future maybe enable sending events to multiple listeners?
SetUpdateStream(UpdateStream)
}
EventStorage is a storage that exposes an UpdateStream.
type ObjectEvent ¶
type ObjectEvent byte
ObjectEvent is an enum describing a change in an Object's state.
const ( ObjectEventNone ObjectEvent = iota // 0 ObjectEventCreate // 1 ObjectEventModify // 2 ObjectEventDelete // 3 )
func (ObjectEvent) String ¶
func (o ObjectEvent) String() string
type Update ¶
type Update struct {
Event ObjectEvent
PartialObject runtime.PartialObject
Storage storage.Storage
}
Update bundles an FileEvent with an APIType for Storage retrieval.
type UpdateStream ¶ added in v0.0.3
type UpdateStream chan Update
UpdateStream is a channel of updates.
Click to show internal directories.
Click to hide internal directories.