mocks

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAssertionsBackend

type MockAssertionsBackend struct {
	// contains filtered or unexported fields
}

MockAssertionsBackend is a mock of AssertionsBackend interface.

func NewMockAssertionsBackend

func NewMockAssertionsBackend(ctrl *gomock.Controller) *MockAssertionsBackend

NewMockAssertionsBackend creates a new mock instance.

func (*MockAssertionsBackend) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAssertionsBackend) ReadAssertions

func (m *MockAssertionsBackend) ReadAssertions(ctx context.Context, store, modelID string) ([]*openfgav1.Assertion, error)

ReadAssertions mocks base method.

func (*MockAssertionsBackend) WriteAssertions

func (m *MockAssertionsBackend) WriteAssertions(ctx context.Context, store, modelID string, assertions []*openfgav1.Assertion) error

WriteAssertions mocks base method.

type MockAssertionsBackendMockRecorder

type MockAssertionsBackendMockRecorder struct {
	// contains filtered or unexported fields
}

MockAssertionsBackendMockRecorder is the mock recorder for MockAssertionsBackend.

func (*MockAssertionsBackendMockRecorder) ReadAssertions

func (mr *MockAssertionsBackendMockRecorder) ReadAssertions(ctx, store, modelID interface{}) *gomock.Call

ReadAssertions indicates an expected call of ReadAssertions.

func (*MockAssertionsBackendMockRecorder) WriteAssertions

func (mr *MockAssertionsBackendMockRecorder) WriteAssertions(ctx, store, modelID, assertions interface{}) *gomock.Call

WriteAssertions indicates an expected call of WriteAssertions.

type MockAuthorizationModelBackend

type MockAuthorizationModelBackend struct {
	// contains filtered or unexported fields
}

MockAuthorizationModelBackend is a mock of AuthorizationModelBackend interface.

func NewMockAuthorizationModelBackend

func NewMockAuthorizationModelBackend(ctrl *gomock.Controller) *MockAuthorizationModelBackend

NewMockAuthorizationModelBackend creates a new mock instance.

func (*MockAuthorizationModelBackend) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAuthorizationModelBackend) FindLatestAuthorizationModelID

func (m *MockAuthorizationModelBackend) FindLatestAuthorizationModelID(ctx context.Context, store string) (string, error)

FindLatestAuthorizationModelID mocks base method.

func (*MockAuthorizationModelBackend) MaxTypesInTypeDefinition

func (m *MockAuthorizationModelBackend) MaxTypesInTypeDefinition() int

MaxTypesInTypeDefinition mocks base method.

func (*MockAuthorizationModelBackend) ReadAuthorizationModel

func (m *MockAuthorizationModelBackend) ReadAuthorizationModel(ctx context.Context, store, id string) (*openfgav1.AuthorizationModel, error)

ReadAuthorizationModel mocks base method.

func (*MockAuthorizationModelBackend) ReadAuthorizationModels

func (m *MockAuthorizationModelBackend) ReadAuthorizationModels(ctx context.Context, store string, options storage.PaginationOptions) ([]*openfgav1.AuthorizationModel, []byte, error)

ReadAuthorizationModels mocks base method.

func (*MockAuthorizationModelBackend) ReadTypeDefinition

func (m *MockAuthorizationModelBackend) ReadTypeDefinition(ctx context.Context, store, id, objectType string) (*openfgav1.TypeDefinition, error)

ReadTypeDefinition mocks base method.

func (*MockAuthorizationModelBackend) WriteAuthorizationModel

func (m *MockAuthorizationModelBackend) WriteAuthorizationModel(ctx context.Context, store, id string, tds *openfgav1.TypeDefinitions) error

WriteAuthorizationModel mocks base method.

type MockAuthorizationModelBackendMockRecorder

type MockAuthorizationModelBackendMockRecorder struct {
	// contains filtered or unexported fields
}

MockAuthorizationModelBackendMockRecorder is the mock recorder for MockAuthorizationModelBackend.

func (*MockAuthorizationModelBackendMockRecorder) FindLatestAuthorizationModelID

func (mr *MockAuthorizationModelBackendMockRecorder) FindLatestAuthorizationModelID(ctx, store interface{}) *gomock.Call

FindLatestAuthorizationModelID indicates an expected call of FindLatestAuthorizationModelID.

func (*MockAuthorizationModelBackendMockRecorder) MaxTypesInTypeDefinition

func (mr *MockAuthorizationModelBackendMockRecorder) MaxTypesInTypeDefinition() *gomock.Call

MaxTypesInTypeDefinition indicates an expected call of MaxTypesInTypeDefinition.

func (*MockAuthorizationModelBackendMockRecorder) ReadAuthorizationModel

func (mr *MockAuthorizationModelBackendMockRecorder) ReadAuthorizationModel(ctx, store, id interface{}) *gomock.Call

ReadAuthorizationModel indicates an expected call of ReadAuthorizationModel.

func (*MockAuthorizationModelBackendMockRecorder) ReadAuthorizationModels

func (mr *MockAuthorizationModelBackendMockRecorder) ReadAuthorizationModels(ctx, store, options interface{}) *gomock.Call

ReadAuthorizationModels indicates an expected call of ReadAuthorizationModels.

func (*MockAuthorizationModelBackendMockRecorder) ReadTypeDefinition

func (mr *MockAuthorizationModelBackendMockRecorder) ReadTypeDefinition(ctx, store, id, objectType interface{}) *gomock.Call

ReadTypeDefinition indicates an expected call of ReadTypeDefinition.

func (*MockAuthorizationModelBackendMockRecorder) WriteAuthorizationModel

func (mr *MockAuthorizationModelBackendMockRecorder) WriteAuthorizationModel(ctx, store, id, tds interface{}) *gomock.Call

WriteAuthorizationModel indicates an expected call of WriteAuthorizationModel.

type MockAuthorizationModelReadBackend

type MockAuthorizationModelReadBackend struct {
	// contains filtered or unexported fields
}

MockAuthorizationModelReadBackend is a mock of AuthorizationModelReadBackend interface.

func NewMockAuthorizationModelReadBackend

func NewMockAuthorizationModelReadBackend(ctrl *gomock.Controller) *MockAuthorizationModelReadBackend

NewMockAuthorizationModelReadBackend creates a new mock instance.

func (*MockAuthorizationModelReadBackend) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAuthorizationModelReadBackend) FindLatestAuthorizationModelID

func (m *MockAuthorizationModelReadBackend) FindLatestAuthorizationModelID(ctx context.Context, store string) (string, error)

FindLatestAuthorizationModelID mocks base method.

func (*MockAuthorizationModelReadBackend) ReadAuthorizationModel

func (m *MockAuthorizationModelReadBackend) ReadAuthorizationModel(ctx context.Context, store, id string) (*openfgav1.AuthorizationModel, error)

ReadAuthorizationModel mocks base method.

func (*MockAuthorizationModelReadBackend) ReadAuthorizationModels

ReadAuthorizationModels mocks base method.

type MockAuthorizationModelReadBackendMockRecorder

type MockAuthorizationModelReadBackendMockRecorder struct {
	// contains filtered or unexported fields
}

MockAuthorizationModelReadBackendMockRecorder is the mock recorder for MockAuthorizationModelReadBackend.

func (*MockAuthorizationModelReadBackendMockRecorder) FindLatestAuthorizationModelID

func (mr *MockAuthorizationModelReadBackendMockRecorder) FindLatestAuthorizationModelID(ctx, store interface{}) *gomock.Call

FindLatestAuthorizationModelID indicates an expected call of FindLatestAuthorizationModelID.

func (*MockAuthorizationModelReadBackendMockRecorder) ReadAuthorizationModel

func (mr *MockAuthorizationModelReadBackendMockRecorder) ReadAuthorizationModel(ctx, store, id interface{}) *gomock.Call

ReadAuthorizationModel indicates an expected call of ReadAuthorizationModel.

func (*MockAuthorizationModelReadBackendMockRecorder) ReadAuthorizationModels

func (mr *MockAuthorizationModelReadBackendMockRecorder) ReadAuthorizationModels(ctx, store, options interface{}) *gomock.Call

ReadAuthorizationModels indicates an expected call of ReadAuthorizationModels.

type MockChangelogBackend

type MockChangelogBackend struct {
	// contains filtered or unexported fields
}

MockChangelogBackend is a mock of ChangelogBackend interface.

func NewMockChangelogBackend

func NewMockChangelogBackend(ctrl *gomock.Controller) *MockChangelogBackend

NewMockChangelogBackend creates a new mock instance.

func (*MockChangelogBackend) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockChangelogBackend) ReadChanges

func (m *MockChangelogBackend) ReadChanges(ctx context.Context, store, objectType string, paginationOptions storage.PaginationOptions, horizonOffset time.Duration) ([]*openfgav1.TupleChange, []byte, error)

ReadChanges mocks base method.

type MockChangelogBackendMockRecorder

type MockChangelogBackendMockRecorder struct {
	// contains filtered or unexported fields
}

MockChangelogBackendMockRecorder is the mock recorder for MockChangelogBackend.

func (*MockChangelogBackendMockRecorder) ReadChanges

func (mr *MockChangelogBackendMockRecorder) ReadChanges(ctx, store, objectType, paginationOptions, horizonOffset interface{}) *gomock.Call

ReadChanges indicates an expected call of ReadChanges.

type MockOpenFGADatastore

type MockOpenFGADatastore struct {
	// contains filtered or unexported fields
}

MockOpenFGADatastore is a mock of OpenFGADatastore interface.

func NewMockOpenFGADatastore

func NewMockOpenFGADatastore(ctrl *gomock.Controller) *MockOpenFGADatastore

NewMockOpenFGADatastore creates a new mock instance.

func (*MockOpenFGADatastore) Close

func (m *MockOpenFGADatastore) Close(ctx context.Context) error

Close mocks base method.

func (*MockOpenFGADatastore) CreateStore

func (m *MockOpenFGADatastore) CreateStore(ctx context.Context, store *openfgav1.Store) (*openfgav1.Store, error)

CreateStore mocks base method.

func (*MockOpenFGADatastore) DeleteStore

func (m *MockOpenFGADatastore) DeleteStore(ctx context.Context, id string) error

DeleteStore mocks base method.

func (*MockOpenFGADatastore) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockOpenFGADatastore) FindLatestAuthorizationModelID

func (m *MockOpenFGADatastore) FindLatestAuthorizationModelID(ctx context.Context, store string) (string, error)

FindLatestAuthorizationModelID mocks base method.

func (*MockOpenFGADatastore) GetStore

func (m *MockOpenFGADatastore) GetStore(ctx context.Context, id string) (*openfgav1.Store, error)

GetStore mocks base method.

func (*MockOpenFGADatastore) ListStores

func (m *MockOpenFGADatastore) ListStores(ctx context.Context, paginationOptions storage.PaginationOptions) ([]*openfgav1.Store, []byte, error)

ListStores mocks base method.

func (*MockOpenFGADatastore) MaxTuplesInWriteOperation

func (m *MockOpenFGADatastore) MaxTuplesInWriteOperation() int

MaxTuplesInWriteOperation mocks base method.

func (*MockOpenFGADatastore) MaxTypesInTypeDefinition

func (m *MockOpenFGADatastore) MaxTypesInTypeDefinition() int

MaxTypesInTypeDefinition mocks base method.

func (*MockOpenFGADatastore) Read

Read mocks base method.

func (*MockOpenFGADatastore) ReadAssertions

func (m *MockOpenFGADatastore) ReadAssertions(ctx context.Context, store, modelID string) ([]*openfgav1.Assertion, error)

ReadAssertions mocks base method.

func (*MockOpenFGADatastore) ReadAuthorizationModel

func (m *MockOpenFGADatastore) ReadAuthorizationModel(ctx context.Context, store, id string) (*openfgav1.AuthorizationModel, error)

ReadAuthorizationModel mocks base method.

func (*MockOpenFGADatastore) ReadAuthorizationModels

func (m *MockOpenFGADatastore) ReadAuthorizationModels(ctx context.Context, store string, options storage.PaginationOptions) ([]*openfgav1.AuthorizationModel, []byte, error)

ReadAuthorizationModels mocks base method.

func (*MockOpenFGADatastore) ReadByStore

func (m *MockOpenFGADatastore) ReadByStore(arg0 context.Context, arg1 string, arg2 storage.PaginationOptions) ([]*openfgav1.Tuple, []byte, error)

ReadByStore mocks base method.

func (*MockOpenFGADatastore) ReadChanges

func (m *MockOpenFGADatastore) ReadChanges(ctx context.Context, store, objectType string, paginationOptions storage.PaginationOptions, horizonOffset time.Duration) ([]*openfgav1.TupleChange, []byte, error)

ReadChanges mocks base method.

func (*MockOpenFGADatastore) ReadPage

ReadPage mocks base method.

func (*MockOpenFGADatastore) ReadTypeDefinition

func (m *MockOpenFGADatastore) ReadTypeDefinition(ctx context.Context, store, id, objectType string) (*openfgav1.TypeDefinition, error)

ReadTypeDefinition mocks base method.

func (*MockOpenFGADatastore) ReadUserTuple

func (m *MockOpenFGADatastore) ReadUserTuple(arg0 context.Context, arg1 string, arg2 *openfgav1.TupleKey) (*openfgav1.Tuple, error)

ReadUserTuple mocks base method.

func (*MockOpenFGADatastore) ReadUsersetTuples

func (m *MockOpenFGADatastore) ReadUsersetTuples(arg0 context.Context, arg1 string, arg2 *openfgav1.TupleKey) (storage.TupleIterator, error)

ReadUsersetTuples mocks base method.

func (*MockOpenFGADatastore) Write

func (m *MockOpenFGADatastore) Write(arg0 context.Context, arg1 string, arg2 storage.Deletes, arg3 storage.Writes) error

Write mocks base method.

func (*MockOpenFGADatastore) WriteAssertions

func (m *MockOpenFGADatastore) WriteAssertions(ctx context.Context, store, modelID string, assertions []*openfgav1.Assertion) error

WriteAssertions mocks base method.

func (*MockOpenFGADatastore) WriteAuthorizationModel

func (m *MockOpenFGADatastore) WriteAuthorizationModel(ctx context.Context, store, id string, tds *openfgav1.TypeDefinitions) error

WriteAuthorizationModel mocks base method.

type MockOpenFGADatastoreMockRecorder

type MockOpenFGADatastoreMockRecorder struct {
	// contains filtered or unexported fields
}

MockOpenFGADatastoreMockRecorder is the mock recorder for MockOpenFGADatastore.

func (*MockOpenFGADatastoreMockRecorder) Close

func (mr *MockOpenFGADatastoreMockRecorder) Close(ctx interface{}) *gomock.Call

Close indicates an expected call of Close.

func (*MockOpenFGADatastoreMockRecorder) CreateStore

func (mr *MockOpenFGADatastoreMockRecorder) CreateStore(ctx, store interface{}) *gomock.Call

CreateStore indicates an expected call of CreateStore.

func (*MockOpenFGADatastoreMockRecorder) DeleteStore

func (mr *MockOpenFGADatastoreMockRecorder) DeleteStore(ctx, id interface{}) *gomock.Call

DeleteStore indicates an expected call of DeleteStore.

func (*MockOpenFGADatastoreMockRecorder) FindLatestAuthorizationModelID

func (mr *MockOpenFGADatastoreMockRecorder) FindLatestAuthorizationModelID(ctx, store interface{}) *gomock.Call

FindLatestAuthorizationModelID indicates an expected call of FindLatestAuthorizationModelID.

func (*MockOpenFGADatastoreMockRecorder) GetStore

func (mr *MockOpenFGADatastoreMockRecorder) GetStore(ctx, id interface{}) *gomock.Call

GetStore indicates an expected call of GetStore.

func (*MockOpenFGADatastoreMockRecorder) ListStores

func (mr *MockOpenFGADatastoreMockRecorder) ListStores(ctx, paginationOptions interface{}) *gomock.Call

ListStores indicates an expected call of ListStores.

func (*MockOpenFGADatastoreMockRecorder) MaxTuplesInWriteOperation

func (mr *MockOpenFGADatastoreMockRecorder) MaxTuplesInWriteOperation() *gomock.Call

MaxTuplesInWriteOperation indicates an expected call of MaxTuplesInWriteOperation.

func (*MockOpenFGADatastoreMockRecorder) MaxTypesInTypeDefinition

func (mr *MockOpenFGADatastoreMockRecorder) MaxTypesInTypeDefinition() *gomock.Call

MaxTypesInTypeDefinition indicates an expected call of MaxTypesInTypeDefinition.

func (*MockOpenFGADatastoreMockRecorder) Read

func (mr *MockOpenFGADatastoreMockRecorder) Read(arg0, arg1, arg2 interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockOpenFGADatastoreMockRecorder) ReadAssertions

func (mr *MockOpenFGADatastoreMockRecorder) ReadAssertions(ctx, store, modelID interface{}) *gomock.Call

ReadAssertions indicates an expected call of ReadAssertions.

func (*MockOpenFGADatastoreMockRecorder) ReadAuthorizationModel

func (mr *MockOpenFGADatastoreMockRecorder) ReadAuthorizationModel(ctx, store, id interface{}) *gomock.Call

ReadAuthorizationModel indicates an expected call of ReadAuthorizationModel.

func (*MockOpenFGADatastoreMockRecorder) ReadAuthorizationModels

func (mr *MockOpenFGADatastoreMockRecorder) ReadAuthorizationModels(ctx, store, options interface{}) *gomock.Call

ReadAuthorizationModels indicates an expected call of ReadAuthorizationModels.

func (*MockOpenFGADatastoreMockRecorder) ReadByStore

func (mr *MockOpenFGADatastoreMockRecorder) ReadByStore(arg0, arg1, arg2 interface{}) *gomock.Call

ReadByStore indicates an expected call of ReadByStore.

func (*MockOpenFGADatastoreMockRecorder) ReadChanges

func (mr *MockOpenFGADatastoreMockRecorder) ReadChanges(ctx, store, objectType, paginationOptions, horizonOffset interface{}) *gomock.Call

ReadChanges indicates an expected call of ReadChanges.

func (*MockOpenFGADatastoreMockRecorder) ReadPage

func (mr *MockOpenFGADatastoreMockRecorder) ReadPage(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

ReadPage indicates an expected call of ReadPage.

func (*MockOpenFGADatastoreMockRecorder) ReadTypeDefinition

func (mr *MockOpenFGADatastoreMockRecorder) ReadTypeDefinition(ctx, store, id, objectType interface{}) *gomock.Call

ReadTypeDefinition indicates an expected call of ReadTypeDefinition.

func (*MockOpenFGADatastoreMockRecorder) ReadUserTuple

func (mr *MockOpenFGADatastoreMockRecorder) ReadUserTuple(arg0, arg1, arg2 interface{}) *gomock.Call

ReadUserTuple indicates an expected call of ReadUserTuple.

func (*MockOpenFGADatastoreMockRecorder) ReadUsersetTuples

func (mr *MockOpenFGADatastoreMockRecorder) ReadUsersetTuples(arg0, arg1, arg2 interface{}) *gomock.Call

ReadUsersetTuples indicates an expected call of ReadUsersetTuples.

func (*MockOpenFGADatastoreMockRecorder) Write

func (mr *MockOpenFGADatastoreMockRecorder) Write(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Write indicates an expected call of Write.

func (*MockOpenFGADatastoreMockRecorder) WriteAssertions

func (mr *MockOpenFGADatastoreMockRecorder) WriteAssertions(ctx, store, modelID, assertions interface{}) *gomock.Call

WriteAssertions indicates an expected call of WriteAssertions.

func (*MockOpenFGADatastoreMockRecorder) WriteAuthorizationModel

func (mr *MockOpenFGADatastoreMockRecorder) WriteAuthorizationModel(ctx, store, id, tds interface{}) *gomock.Call

WriteAuthorizationModel indicates an expected call of WriteAuthorizationModel.

type MockStoresBackend

type MockStoresBackend struct {
	// contains filtered or unexported fields
}

MockStoresBackend is a mock of StoresBackend interface.

func NewMockStoresBackend

func NewMockStoresBackend(ctrl *gomock.Controller) *MockStoresBackend

NewMockStoresBackend creates a new mock instance.

func (*MockStoresBackend) CreateStore

func (m *MockStoresBackend) CreateStore(ctx context.Context, store *openfgav1.Store) (*openfgav1.Store, error)

CreateStore mocks base method.

func (*MockStoresBackend) DeleteStore

func (m *MockStoresBackend) DeleteStore(ctx context.Context, id string) error

DeleteStore mocks base method.

func (*MockStoresBackend) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStoresBackend) GetStore

func (m *MockStoresBackend) GetStore(ctx context.Context, id string) (*openfgav1.Store, error)

GetStore mocks base method.

func (*MockStoresBackend) ListStores

func (m *MockStoresBackend) ListStores(ctx context.Context, paginationOptions storage.PaginationOptions) ([]*openfgav1.Store, []byte, error)

ListStores mocks base method.

type MockStoresBackendMockRecorder

type MockStoresBackendMockRecorder struct {
	// contains filtered or unexported fields
}

MockStoresBackendMockRecorder is the mock recorder for MockStoresBackend.

func (*MockStoresBackendMockRecorder) CreateStore

func (mr *MockStoresBackendMockRecorder) CreateStore(ctx, store interface{}) *gomock.Call

CreateStore indicates an expected call of CreateStore.

func (*MockStoresBackendMockRecorder) DeleteStore

func (mr *MockStoresBackendMockRecorder) DeleteStore(ctx, id interface{}) *gomock.Call

DeleteStore indicates an expected call of DeleteStore.

func (*MockStoresBackendMockRecorder) GetStore

func (mr *MockStoresBackendMockRecorder) GetStore(ctx, id interface{}) *gomock.Call

GetStore indicates an expected call of GetStore.

func (*MockStoresBackendMockRecorder) ListStores

func (mr *MockStoresBackendMockRecorder) ListStores(ctx, paginationOptions interface{}) *gomock.Call

ListStores indicates an expected call of ListStores.

type MockTupleBackend

type MockTupleBackend struct {
	// contains filtered or unexported fields
}

MockTupleBackend is a mock of TupleBackend interface.

func NewMockTupleBackend

func NewMockTupleBackend(ctrl *gomock.Controller) *MockTupleBackend

NewMockTupleBackend creates a new mock instance.

func (*MockTupleBackend) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTupleBackend) MaxTuplesInWriteOperation

func (m *MockTupleBackend) MaxTuplesInWriteOperation() int

MaxTuplesInWriteOperation mocks base method.

func (*MockTupleBackend) Read

Read mocks base method.

func (*MockTupleBackend) ReadByStore

func (m *MockTupleBackend) ReadByStore(arg0 context.Context, arg1 string, arg2 storage.PaginationOptions) ([]*openfgav1.Tuple, []byte, error)

ReadByStore mocks base method.

func (*MockTupleBackend) ReadPage

ReadPage mocks base method.

func (*MockTupleBackend) ReadUserTuple

func (m *MockTupleBackend) ReadUserTuple(arg0 context.Context, arg1 string, arg2 *openfgav1.TupleKey) (*openfgav1.Tuple, error)

ReadUserTuple mocks base method.

func (*MockTupleBackend) ReadUsersetTuples

func (m *MockTupleBackend) ReadUsersetTuples(arg0 context.Context, arg1 string, arg2 *openfgav1.TupleKey) (storage.TupleIterator, error)

ReadUsersetTuples mocks base method.

func (*MockTupleBackend) Write

func (m *MockTupleBackend) Write(arg0 context.Context, arg1 string, arg2 storage.Deletes, arg3 storage.Writes) error

Write mocks base method.

type MockTupleBackendMockRecorder

type MockTupleBackendMockRecorder struct {
	// contains filtered or unexported fields
}

MockTupleBackendMockRecorder is the mock recorder for MockTupleBackend.

func (*MockTupleBackendMockRecorder) MaxTuplesInWriteOperation

func (mr *MockTupleBackendMockRecorder) MaxTuplesInWriteOperation() *gomock.Call

MaxTuplesInWriteOperation indicates an expected call of MaxTuplesInWriteOperation.

func (*MockTupleBackendMockRecorder) Read

func (mr *MockTupleBackendMockRecorder) Read(arg0, arg1, arg2 interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockTupleBackendMockRecorder) ReadByStore

func (mr *MockTupleBackendMockRecorder) ReadByStore(arg0, arg1, arg2 interface{}) *gomock.Call

ReadByStore indicates an expected call of ReadByStore.

func (*MockTupleBackendMockRecorder) ReadPage

func (mr *MockTupleBackendMockRecorder) ReadPage(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

ReadPage indicates an expected call of ReadPage.

func (*MockTupleBackendMockRecorder) ReadUserTuple

func (mr *MockTupleBackendMockRecorder) ReadUserTuple(arg0, arg1, arg2 interface{}) *gomock.Call

ReadUserTuple indicates an expected call of ReadUserTuple.

func (*MockTupleBackendMockRecorder) ReadUsersetTuples

func (mr *MockTupleBackendMockRecorder) ReadUsersetTuples(arg0, arg1, arg2 interface{}) *gomock.Call

ReadUsersetTuples indicates an expected call of ReadUsersetTuples.

func (*MockTupleBackendMockRecorder) Write

func (mr *MockTupleBackendMockRecorder) Write(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Write indicates an expected call of Write.

type MockTupleIterator

type MockTupleIterator struct {
	// contains filtered or unexported fields
}

MockTupleIterator is a mock of TupleIterator interface.

func NewMockTupleIterator

func NewMockTupleIterator(ctrl *gomock.Controller) *MockTupleIterator

NewMockTupleIterator creates a new mock instance.

func (*MockTupleIterator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTupleIterator) Next

func (m *MockTupleIterator) Next() (*openfgav1.Tuple, error)

Next mocks base method.

func (*MockTupleIterator) Stop

func (m *MockTupleIterator) Stop()

Stop mocks base method.

type MockTupleIteratorMockRecorder

type MockTupleIteratorMockRecorder struct {
	// contains filtered or unexported fields
}

MockTupleIteratorMockRecorder is the mock recorder for MockTupleIterator.

func (*MockTupleIteratorMockRecorder) Next

Next indicates an expected call of Next.

func (*MockTupleIteratorMockRecorder) Stop

Stop indicates an expected call of Stop.

type MockTypeDefinitionReadBackend

type MockTypeDefinitionReadBackend struct {
	// contains filtered or unexported fields
}

MockTypeDefinitionReadBackend is a mock of TypeDefinitionReadBackend interface.

func NewMockTypeDefinitionReadBackend

func NewMockTypeDefinitionReadBackend(ctrl *gomock.Controller) *MockTypeDefinitionReadBackend

NewMockTypeDefinitionReadBackend creates a new mock instance.

func (*MockTypeDefinitionReadBackend) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTypeDefinitionReadBackend) ReadTypeDefinition

func (m *MockTypeDefinitionReadBackend) ReadTypeDefinition(ctx context.Context, store, id, objectType string) (*openfgav1.TypeDefinition, error)

ReadTypeDefinition mocks base method.

type MockTypeDefinitionReadBackendMockRecorder

type MockTypeDefinitionReadBackendMockRecorder struct {
	// contains filtered or unexported fields
}

MockTypeDefinitionReadBackendMockRecorder is the mock recorder for MockTypeDefinitionReadBackend.

func (*MockTypeDefinitionReadBackendMockRecorder) ReadTypeDefinition

func (mr *MockTypeDefinitionReadBackendMockRecorder) ReadTypeDefinition(ctx, store, id, objectType interface{}) *gomock.Call

ReadTypeDefinition indicates an expected call of ReadTypeDefinition.

type MockTypeDefinitionWriteBackend

type MockTypeDefinitionWriteBackend struct {
	// contains filtered or unexported fields
}

MockTypeDefinitionWriteBackend is a mock of TypeDefinitionWriteBackend interface.

func NewMockTypeDefinitionWriteBackend

func NewMockTypeDefinitionWriteBackend(ctrl *gomock.Controller) *MockTypeDefinitionWriteBackend

NewMockTypeDefinitionWriteBackend creates a new mock instance.

func (*MockTypeDefinitionWriteBackend) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTypeDefinitionWriteBackend) MaxTypesInTypeDefinition

func (m *MockTypeDefinitionWriteBackend) MaxTypesInTypeDefinition() int

MaxTypesInTypeDefinition mocks base method.

func (*MockTypeDefinitionWriteBackend) WriteAuthorizationModel

func (m *MockTypeDefinitionWriteBackend) WriteAuthorizationModel(ctx context.Context, store, id string, tds *openfgav1.TypeDefinitions) error

WriteAuthorizationModel mocks base method.

type MockTypeDefinitionWriteBackendMockRecorder

type MockTypeDefinitionWriteBackendMockRecorder struct {
	// contains filtered or unexported fields
}

MockTypeDefinitionWriteBackendMockRecorder is the mock recorder for MockTypeDefinitionWriteBackend.

func (*MockTypeDefinitionWriteBackendMockRecorder) MaxTypesInTypeDefinition

func (mr *MockTypeDefinitionWriteBackendMockRecorder) MaxTypesInTypeDefinition() *gomock.Call

MaxTypesInTypeDefinition indicates an expected call of MaxTypesInTypeDefinition.

func (*MockTypeDefinitionWriteBackendMockRecorder) WriteAuthorizationModel

func (mr *MockTypeDefinitionWriteBackendMockRecorder) WriteAuthorizationModel(ctx, store, id, tds interface{}) *gomock.Call

WriteAuthorizationModel indicates an expected call of WriteAuthorizationModel.

Jump to

Keyboard shortcuts

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