Versions in this module Expand all Collapse all v0 v0.3.0 Oct 10, 2024 v0.2.0 Apr 3, 2024 Changes in this version + var ErrAlreadyExists = errors.New("already exists") + var ErrNotFound = errors.New("not found") + func IgnoreAlreadyExists(err error) error + func IgnoreErrNotFound(err error) error + type Store interface + Create func(ctx context.Context, obj E) (E, error) + Delete func(ctx context.Context, id string) error + Get func(ctx context.Context, id string) (E, error) + List func(ctx context.Context) ([]E, error) + Update func(ctx context.Context, obj E) (E, error) + Watch func(ctx context.Context) (Watch[E], error) + type Watch interface + Events func() <-chan WatchEvent[E] + Stop func() + type WatchEvent struct + Object E + Type WatchEventType + type WatchEventType string + const WatchEventTypeCreated + const WatchEventTypeDeleted + const WatchEventTypeUpdated