mocks

package
v0.0.5-solo Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityStore

type EntityStore struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL