type SimpleUpdateFunc … // SimpleUpdateFunc converts SimpleUpdateFunc into UpdateFunc func SimpleUpdate(fn SimpleUpdateFunc) UpdateFunc { … } func NamespaceKeyFunc(prefix string, obj runtime.Object) (string, error) { … } func NoNamespaceKeyFunc(prefix string, obj runtime.Object) (string, error) { … } type HighWaterMark … // Update returns true if and only if 'current' is the highest value ever seen. func (hwm *HighWaterMark) Update(current int64) bool { … } // GetCurrentResourceVersionFromStorage gets the current resource version from the underlying storage engine. // This method issues an empty list request and reads only the ResourceVersion from the object metadata func GetCurrentResourceVersionFromStorage(ctx context.Context, storage Interface, newListFunc func() runtime.Object, resourcePrefix, objectType string) (uint64, error) { … } // AnnotateInitialEventsEndBookmark adds a special annotation to the given object // which indicates that the initial events have been sent. // // Note that this function assumes that the obj's annotation // field is a reference type (i.e. a map). func AnnotateInitialEventsEndBookmark(obj runtime.Object) error { … } // HasInitialEventsEndBookmarkAnnotation checks the presence of the // special annotation which marks that the initial events have been sent. func HasInitialEventsEndBookmarkAnnotation(obj runtime.Object) (bool, error) { … }