Documentation ¶
Index ¶
- type EntityStore
- func (_m *EntityStore) Add(ctx context.Context, entity entitystore.Entity) (string, error)
- func (_m *EntityStore) Delete(ctx context.Context, organizationID string, id string, ...) error
- func (_m *EntityStore) Find(ctx context.Context, organizationID string, key string, ...) (bool, error)
- func (_m *EntityStore) Get(ctx context.Context, organizationID string, key string, ...) error
- func (_m *EntityStore) List(ctx context.Context, organizationID string, opts entitystore.Options, ...) error
- func (_m *EntityStore) ListGlobal(ctx context.Context, opts entitystore.Options, entities interface{}) error
- func (_m *EntityStore) SoftDelete(ctx context.Context, entity entitystore.Entity) error
- func (_m *EntityStore) Update(ctx context.Context, lastRevision uint64, entity entitystore.Entity) (int64, error)
- func (_m *EntityStore) UpdateWithError(ctx context.Context, e entitystore.Entity, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityStore ¶
EntityStore is an autogenerated mock type for the EntityStore type
func (*EntityStore) Add ¶
func (_m *EntityStore) Add(ctx context.Context, entity entitystore.Entity) (string, error)
Add provides a mock function with given fields: ctx, entity
func (*EntityStore) Delete ¶
func (_m *EntityStore) Delete(ctx context.Context, organizationID string, id string, entity entitystore.Entity) error
Delete provides a mock function with given fields: ctx, organizationID, id, entity
func (*EntityStore) Find ¶ added in v0.1.13
func (_m *EntityStore) Find(ctx context.Context, organizationID string, key string, opts entitystore.Options, entity entitystore.Entity) (bool, error)
Find provides a mock function with given fields: ctx, organizationID, key, opts, entity
func (*EntityStore) Get ¶
func (_m *EntityStore) Get(ctx context.Context, organizationID string, key string, opts entitystore.Options, entity entitystore.Entity) error
Get provides a mock function with given fields: ctx, organizationID, key, opts, entity
func (*EntityStore) List ¶
func (_m *EntityStore) List(ctx context.Context, organizationID string, opts entitystore.Options, entities interface{}) error
List provides a mock function with given fields: ctx, organizationID, opts, entities
func (*EntityStore) ListGlobal ¶ added in v0.1.18
func (_m *EntityStore) ListGlobal(ctx context.Context, opts entitystore.Options, entities interface{}) error
ListGlobal provides a mock function with given fields: ctx, opts, entities
func (*EntityStore) SoftDelete ¶ added in v0.1.13
func (_m *EntityStore) SoftDelete(ctx context.Context, entity entitystore.Entity) error
SoftDelete provides a mock function with given fields: ctx, entity
func (*EntityStore) Update ¶
func (_m *EntityStore) Update(ctx context.Context, lastRevision uint64, entity entitystore.Entity) (int64, error)
Update provides a mock function with given fields: ctx, lastRevision, entity
func (*EntityStore) UpdateWithError ¶
func (_m *EntityStore) UpdateWithError(ctx context.Context, e entitystore.Entity, err error)
UpdateWithError provides a mock function with given fields: ctx, e, err