Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fencer ¶
Fencer provides a method set to prevent processing out of order events.
Fencer will keep track of the last seen revision (monotonically increasing event id) for each seen UUID (globally unique identifier for a resource producing an event.)
type Meta ¶
type Meta struct { // UUID is an immutable identifier for resource producing // this event. UUID string // Rev is a revision number in a total order of revision numbers // for the resource producing this event. Rev uint64 }
Meta provides metadata from the resource which triggered this package's events.
func (*Meta) FromObjectMeta ¶
func (m *Meta) FromObjectMeta(om *v1.ObjectMeta) error
FromSlimObjectMeta allocates a meta derived from a k8s ObjectMeta and stores it at the memory pointed to by m.
func (*Meta) FromSlimObjectMeta ¶
func (m *Meta) FromSlimObjectMeta(om *slim_metav1.ObjectMeta) error
FromSlimObjectMeta allocates a meta derived from a slim k8s ObjectMeta and stores it at the memory pointed to by m.
Click to show internal directories.
Click to hide internal directories.