Documentation
¶
Index ¶
- type CreateStrategy
- type Options
- type Store
- func (s *Store[E]) Create(_ context.Context, obj E) (E, error)
- func (s *Store[E]) Delete(_ context.Context, id string) error
- func (s *Store[E]) Get(_ context.Context, id string) (E, error)
- func (s *Store[E]) List(ctx context.Context) ([]E, error)
- func (s *Store[E]) Update(_ context.Context, obj E) (E, error)
- func (s *Store[E]) Watch(_ context.Context) (store.Watch[E], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateStrategy ¶
type Options ¶
type Options[E api.Object] struct { Dir string NewFunc func() E CreateStrategy CreateStrategy[E] WatchBufferSize int }
Click to show internal directories.
Click to hide internal directories.