Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- func NewErrorTupleIterator(tuples []*openfgav1.Tuple) storage.TupleIterator
- func NewMockOidcServer(issuerURL string) (*mockOidcServer, error)
- func NewMockSlowDataStorage(ds storage.OpenFGADatastore, readTuplesDelay time.Duration) storage.OpenFGADatastore
- func NewMockTracingServer(t testing.TB, port int) *mockTracingServer
- type MockAssertionsBackend
- func (m *MockAssertionsBackend) EXPECT() *MockAssertionsBackendMockRecorder
- func (m *MockAssertionsBackend) ReadAssertions(ctx context.Context, store, modelID string) ([]*openfgav1.Assertion, error)
- func (m *MockAssertionsBackend) WriteAssertions(ctx context.Context, store, modelID string, assertions []*openfgav1.Assertion) error
- type MockAssertionsBackendMockRecorder
- type MockAuthorizationModelBackend
- func (m *MockAuthorizationModelBackend) EXPECT() *MockAuthorizationModelBackendMockRecorder
- func (m *MockAuthorizationModelBackend) FindLatestAuthorizationModel(ctx context.Context, store string) (*openfgav1.AuthorizationModel, error)
- func (m *MockAuthorizationModelBackend) MaxTypesPerAuthorizationModel() int
- func (m *MockAuthorizationModelBackend) ReadAuthorizationModel(ctx context.Context, store, id string) (*openfgav1.AuthorizationModel, error)
- func (m *MockAuthorizationModelBackend) ReadAuthorizationModels(ctx context.Context, store string, ...) ([]*openfgav1.AuthorizationModel, []byte, error)
- func (m *MockAuthorizationModelBackend) WriteAuthorizationModel(ctx context.Context, store string, model *openfgav1.AuthorizationModel) error
- type MockAuthorizationModelBackendMockRecorder
- func (mr *MockAuthorizationModelBackendMockRecorder) FindLatestAuthorizationModel(ctx, store any) *gomock.Call
- func (mr *MockAuthorizationModelBackendMockRecorder) MaxTypesPerAuthorizationModel() *gomock.Call
- func (mr *MockAuthorizationModelBackendMockRecorder) ReadAuthorizationModel(ctx, store, id any) *gomock.Call
- func (mr *MockAuthorizationModelBackendMockRecorder) ReadAuthorizationModels(ctx, store, options any) *gomock.Call
- func (mr *MockAuthorizationModelBackendMockRecorder) WriteAuthorizationModel(ctx, store, model any) *gomock.Call
- type MockAuthorizationModelReadBackend
- func (m *MockAuthorizationModelReadBackend) EXPECT() *MockAuthorizationModelReadBackendMockRecorder
- func (m *MockAuthorizationModelReadBackend) FindLatestAuthorizationModel(ctx context.Context, store string) (*openfgav1.AuthorizationModel, error)
- func (m *MockAuthorizationModelReadBackend) ReadAuthorizationModel(ctx context.Context, store, id string) (*openfgav1.AuthorizationModel, error)
- func (m *MockAuthorizationModelReadBackend) ReadAuthorizationModels(ctx context.Context, store string, ...) ([]*openfgav1.AuthorizationModel, []byte, error)
- type MockAuthorizationModelReadBackendMockRecorder
- func (mr *MockAuthorizationModelReadBackendMockRecorder) FindLatestAuthorizationModel(ctx, store any) *gomock.Call
- func (mr *MockAuthorizationModelReadBackendMockRecorder) ReadAuthorizationModel(ctx, store, id any) *gomock.Call
- func (mr *MockAuthorizationModelReadBackendMockRecorder) ReadAuthorizationModels(ctx, store, options any) *gomock.Call
- type MockChangelogBackend
- type MockChangelogBackendMockRecorder
- type MockEncoder
- type MockEncoderMockRecorder
- type MockInMemoryCache
- type MockInMemoryCacheMockRecorder
- type MockOpenFGADatastore
- func (m *MockOpenFGADatastore) Close()
- func (m *MockOpenFGADatastore) CreateStore(ctx context.Context, store *openfgav1.Store) (*openfgav1.Store, error)
- func (m *MockOpenFGADatastore) DeleteStore(ctx context.Context, id string) error
- func (m *MockOpenFGADatastore) EXPECT() *MockOpenFGADatastoreMockRecorder
- func (m *MockOpenFGADatastore) FindLatestAuthorizationModel(ctx context.Context, store string) (*openfgav1.AuthorizationModel, error)
- func (m *MockOpenFGADatastore) GetStore(ctx context.Context, id string) (*openfgav1.Store, error)
- func (m *MockOpenFGADatastore) IsReady(ctx context.Context) (storage.ReadinessStatus, error)
- func (m *MockOpenFGADatastore) ListStores(ctx context.Context, options storage.ListStoresOptions) ([]*openfgav1.Store, []byte, error)
- func (m *MockOpenFGADatastore) MaxTuplesPerWrite() int
- func (m *MockOpenFGADatastore) MaxTypesPerAuthorizationModel() int
- func (m *MockOpenFGADatastore) Read(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, ...) (storage.TupleIterator, error)
- func (m *MockOpenFGADatastore) ReadAssertions(ctx context.Context, store, modelID string) ([]*openfgav1.Assertion, error)
- func (m *MockOpenFGADatastore) ReadAuthorizationModel(ctx context.Context, store, id string) (*openfgav1.AuthorizationModel, error)
- func (m *MockOpenFGADatastore) ReadAuthorizationModels(ctx context.Context, store string, ...) ([]*openfgav1.AuthorizationModel, []byte, error)
- func (m *MockOpenFGADatastore) ReadChanges(ctx context.Context, store, objectType string, ...) ([]*openfgav1.TupleChange, []byte, error)
- func (m *MockOpenFGADatastore) ReadPage(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, ...) ([]*openfgav1.Tuple, []byte, error)
- func (m *MockOpenFGADatastore) ReadStartingWithUser(ctx context.Context, store string, filter storage.ReadStartingWithUserFilter, ...) (storage.TupleIterator, error)
- func (m *MockOpenFGADatastore) ReadUserTuple(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, ...) (*openfgav1.Tuple, error)
- func (m *MockOpenFGADatastore) ReadUsersetTuples(ctx context.Context, store string, filter storage.ReadUsersetTuplesFilter, ...) (storage.TupleIterator, error)
- func (m *MockOpenFGADatastore) Write(ctx context.Context, store string, d storage.Deletes, w storage.Writes) error
- func (m *MockOpenFGADatastore) WriteAssertions(ctx context.Context, store, modelID string, assertions []*openfgav1.Assertion) error
- func (m *MockOpenFGADatastore) WriteAuthorizationModel(ctx context.Context, store string, model *openfgav1.AuthorizationModel) error
- type MockOpenFGADatastoreMockRecorder
- func (mr *MockOpenFGADatastoreMockRecorder) Close() *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) CreateStore(ctx, store any) *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) DeleteStore(ctx, id any) *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) FindLatestAuthorizationModel(ctx, store any) *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) GetStore(ctx, id any) *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) IsReady(ctx any) *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) ListStores(ctx, options any) *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) MaxTuplesPerWrite() *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) MaxTypesPerAuthorizationModel() *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) Read(ctx, store, tupleKey, options any) *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) ReadAssertions(ctx, store, modelID any) *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) ReadAuthorizationModel(ctx, store, id any) *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) ReadAuthorizationModels(ctx, store, options any) *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) ReadChanges(ctx, store, objectType, options, horizonOffset any) *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) ReadPage(ctx, store, tupleKey, options any) *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) ReadStartingWithUser(ctx, store, filter, options any) *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) ReadUserTuple(ctx, store, tupleKey, options any) *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) ReadUsersetTuples(ctx, store, filter, options any) *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) Write(ctx, store, d, w any) *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) WriteAssertions(ctx, store, modelID, assertions any) *gomock.Call
- func (mr *MockOpenFGADatastoreMockRecorder) WriteAuthorizationModel(ctx, store, model any) *gomock.Call
- type MockRelationshipTupleReader
- func (m *MockRelationshipTupleReader) EXPECT() *MockRelationshipTupleReaderMockRecorder
- func (m *MockRelationshipTupleReader) Read(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, ...) (storage.TupleIterator, error)
- func (m *MockRelationshipTupleReader) ReadPage(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, ...) ([]*openfgav1.Tuple, []byte, error)
- func (m *MockRelationshipTupleReader) ReadStartingWithUser(ctx context.Context, store string, filter storage.ReadStartingWithUserFilter, ...) (storage.TupleIterator, error)
- func (m *MockRelationshipTupleReader) ReadUserTuple(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, ...) (*openfgav1.Tuple, error)
- func (m *MockRelationshipTupleReader) ReadUsersetTuples(ctx context.Context, store string, filter storage.ReadUsersetTuplesFilter, ...) (storage.TupleIterator, error)
- type MockRelationshipTupleReaderMockRecorder
- func (mr *MockRelationshipTupleReaderMockRecorder) Read(ctx, store, tupleKey, options any) *gomock.Call
- func (mr *MockRelationshipTupleReaderMockRecorder) ReadPage(ctx, store, tupleKey, options any) *gomock.Call
- func (mr *MockRelationshipTupleReaderMockRecorder) ReadStartingWithUser(ctx, store, filter, options any) *gomock.Call
- func (mr *MockRelationshipTupleReaderMockRecorder) ReadUserTuple(ctx, store, tupleKey, options any) *gomock.Call
- func (mr *MockRelationshipTupleReaderMockRecorder) ReadUsersetTuples(ctx, store, filter, options any) *gomock.Call
- type MockRelationshipTupleWriter
- type MockRelationshipTupleWriterMockRecorder
- type MockStoresBackend
- func (m *MockStoresBackend) CreateStore(ctx context.Context, store *openfgav1.Store) (*openfgav1.Store, error)
- func (m *MockStoresBackend) DeleteStore(ctx context.Context, id string) error
- func (m *MockStoresBackend) EXPECT() *MockStoresBackendMockRecorder
- func (m *MockStoresBackend) GetStore(ctx context.Context, id string) (*openfgav1.Store, error)
- func (m *MockStoresBackend) ListStores(ctx context.Context, options storage.ListStoresOptions) ([]*openfgav1.Store, []byte, error)
- type MockStoresBackendMockRecorder
- func (mr *MockStoresBackendMockRecorder) CreateStore(ctx, store any) *gomock.Call
- func (mr *MockStoresBackendMockRecorder) DeleteStore(ctx, id any) *gomock.Call
- func (mr *MockStoresBackendMockRecorder) GetStore(ctx, id any) *gomock.Call
- func (mr *MockStoresBackendMockRecorder) ListStores(ctx, options any) *gomock.Call
- type MockThrottler
- type MockThrottlerMockRecorder
- type MockTupleBackend
- func (m *MockTupleBackend) EXPECT() *MockTupleBackendMockRecorder
- func (m *MockTupleBackend) MaxTuplesPerWrite() int
- func (m *MockTupleBackend) Read(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, ...) (storage.TupleIterator, error)
- func (m *MockTupleBackend) ReadPage(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, ...) ([]*openfgav1.Tuple, []byte, error)
- func (m *MockTupleBackend) ReadStartingWithUser(ctx context.Context, store string, filter storage.ReadStartingWithUserFilter, ...) (storage.TupleIterator, error)
- func (m *MockTupleBackend) ReadUserTuple(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, ...) (*openfgav1.Tuple, error)
- func (m *MockTupleBackend) ReadUsersetTuples(ctx context.Context, store string, filter storage.ReadUsersetTuplesFilter, ...) (storage.TupleIterator, error)
- func (m *MockTupleBackend) Write(ctx context.Context, store string, d storage.Deletes, w storage.Writes) error
- type MockTupleBackendMockRecorder
- func (mr *MockTupleBackendMockRecorder) MaxTuplesPerWrite() *gomock.Call
- func (mr *MockTupleBackendMockRecorder) Read(ctx, store, tupleKey, options any) *gomock.Call
- func (mr *MockTupleBackendMockRecorder) ReadPage(ctx, store, tupleKey, options any) *gomock.Call
- func (mr *MockTupleBackendMockRecorder) ReadStartingWithUser(ctx, store, filter, options any) *gomock.Call
- func (mr *MockTupleBackendMockRecorder) ReadUserTuple(ctx, store, tupleKey, options any) *gomock.Call
- func (mr *MockTupleBackendMockRecorder) ReadUsersetTuples(ctx, store, filter, options any) *gomock.Call
- func (mr *MockTupleBackendMockRecorder) Write(ctx, store, d, w any) *gomock.Call
- type MockTypeDefinitionWriteBackend
- func (m *MockTypeDefinitionWriteBackend) EXPECT() *MockTypeDefinitionWriteBackendMockRecorder
- func (m *MockTypeDefinitionWriteBackend) MaxTypesPerAuthorizationModel() int
- func (m *MockTypeDefinitionWriteBackend) WriteAuthorizationModel(ctx context.Context, store string, model *openfgav1.AuthorizationModel) error
- type MockTypeDefinitionWriteBackendMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorTupleIterator ¶ added in v1.4.2
func NewErrorTupleIterator(tuples []*openfgav1.Tuple) storage.TupleIterator
NewErrorTupleIterator mocks case where Next will return error after the first Next() This TupleIterator is designed to be used in tests.
func NewMockOidcServer ¶
NewMockOidcServer creates a mock OIDC server with the given issuer URL and a random private key. You must call Stop afterward.
func NewMockSlowDataStorage ¶
func NewMockSlowDataStorage(ds storage.OpenFGADatastore, readTuplesDelay time.Duration) storage.OpenFGADatastore
NewMockSlowDataStorage returns a wrapper of a datastore that adds artificial delays into the reads of tuples.
func NewMockTracingServer ¶
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 ¶
func (m *MockAssertionsBackend) EXPECT() *MockAssertionsBackendMockRecorder
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 any) *gomock.Call
ReadAssertions indicates an expected call of ReadAssertions.
func (*MockAssertionsBackendMockRecorder) WriteAssertions ¶
func (mr *MockAssertionsBackendMockRecorder) WriteAssertions(ctx, store, modelID, assertions any) *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 ¶
func (m *MockAuthorizationModelBackend) EXPECT() *MockAuthorizationModelBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthorizationModelBackend) FindLatestAuthorizationModel ¶ added in v1.5.0
func (m *MockAuthorizationModelBackend) FindLatestAuthorizationModel(ctx context.Context, store string) (*openfgav1.AuthorizationModel, error)
FindLatestAuthorizationModel mocks base method.
func (*MockAuthorizationModelBackend) MaxTypesPerAuthorizationModel ¶
func (m *MockAuthorizationModelBackend) MaxTypesPerAuthorizationModel() int
MaxTypesPerAuthorizationModel 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.ReadAuthorizationModelsOptions) ([]*openfgav1.AuthorizationModel, []byte, error)
ReadAuthorizationModels mocks base method.
func (*MockAuthorizationModelBackend) WriteAuthorizationModel ¶
func (m *MockAuthorizationModelBackend) WriteAuthorizationModel(ctx context.Context, store string, model *openfgav1.AuthorizationModel) error
WriteAuthorizationModel mocks base method.
type MockAuthorizationModelBackendMockRecorder ¶
type MockAuthorizationModelBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizationModelBackendMockRecorder is the mock recorder for MockAuthorizationModelBackend.
func (*MockAuthorizationModelBackendMockRecorder) FindLatestAuthorizationModel ¶ added in v1.5.0
func (mr *MockAuthorizationModelBackendMockRecorder) FindLatestAuthorizationModel(ctx, store any) *gomock.Call
FindLatestAuthorizationModel indicates an expected call of FindLatestAuthorizationModel.
func (*MockAuthorizationModelBackendMockRecorder) MaxTypesPerAuthorizationModel ¶
func (mr *MockAuthorizationModelBackendMockRecorder) MaxTypesPerAuthorizationModel() *gomock.Call
MaxTypesPerAuthorizationModel indicates an expected call of MaxTypesPerAuthorizationModel.
func (*MockAuthorizationModelBackendMockRecorder) ReadAuthorizationModel ¶
func (mr *MockAuthorizationModelBackendMockRecorder) ReadAuthorizationModel(ctx, store, id any) *gomock.Call
ReadAuthorizationModel indicates an expected call of ReadAuthorizationModel.
func (*MockAuthorizationModelBackendMockRecorder) ReadAuthorizationModels ¶
func (mr *MockAuthorizationModelBackendMockRecorder) ReadAuthorizationModels(ctx, store, options any) *gomock.Call
ReadAuthorizationModels indicates an expected call of ReadAuthorizationModels.
func (*MockAuthorizationModelBackendMockRecorder) WriteAuthorizationModel ¶
func (mr *MockAuthorizationModelBackendMockRecorder) WriteAuthorizationModel(ctx, store, model any) *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 ¶
func (m *MockAuthorizationModelReadBackend) EXPECT() *MockAuthorizationModelReadBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthorizationModelReadBackend) FindLatestAuthorizationModel ¶ added in v1.5.0
func (m *MockAuthorizationModelReadBackend) FindLatestAuthorizationModel(ctx context.Context, store string) (*openfgav1.AuthorizationModel, error)
FindLatestAuthorizationModel 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 ¶
func (m *MockAuthorizationModelReadBackend) ReadAuthorizationModels(ctx context.Context, store string, options storage.ReadAuthorizationModelsOptions) ([]*openfgav1.AuthorizationModel, []byte, error)
ReadAuthorizationModels mocks base method.
type MockAuthorizationModelReadBackendMockRecorder ¶
type MockAuthorizationModelReadBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizationModelReadBackendMockRecorder is the mock recorder for MockAuthorizationModelReadBackend.
func (*MockAuthorizationModelReadBackendMockRecorder) FindLatestAuthorizationModel ¶ added in v1.5.0
func (mr *MockAuthorizationModelReadBackendMockRecorder) FindLatestAuthorizationModel(ctx, store any) *gomock.Call
FindLatestAuthorizationModel indicates an expected call of FindLatestAuthorizationModel.
func (*MockAuthorizationModelReadBackendMockRecorder) ReadAuthorizationModel ¶
func (mr *MockAuthorizationModelReadBackendMockRecorder) ReadAuthorizationModel(ctx, store, id any) *gomock.Call
ReadAuthorizationModel indicates an expected call of ReadAuthorizationModel.
func (*MockAuthorizationModelReadBackendMockRecorder) ReadAuthorizationModels ¶
func (mr *MockAuthorizationModelReadBackendMockRecorder) ReadAuthorizationModels(ctx, store, options any) *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 ¶
func (m *MockChangelogBackend) EXPECT() *MockChangelogBackendMockRecorder
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, options storage.ReadChangesOptions, 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, options, horizonOffset any) *gomock.Call
ReadChanges indicates an expected call of ReadChanges.
type MockEncoder ¶ added in v1.5.5
type MockEncoder struct {
// contains filtered or unexported fields
}
MockEncoder is a mock of Encoder interface.
func NewMockEncoder ¶ added in v1.5.5
func NewMockEncoder(ctrl *gomock.Controller) *MockEncoder
NewMockEncoder creates a new mock instance.
func (*MockEncoder) Decode ¶ added in v1.5.5
func (m *MockEncoder) Decode(arg0 string) ([]byte, error)
Decode mocks base method.
func (*MockEncoder) EXPECT ¶ added in v1.5.5
func (m *MockEncoder) EXPECT() *MockEncoderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockEncoderMockRecorder ¶ added in v1.5.5
type MockEncoderMockRecorder struct {
// contains filtered or unexported fields
}
MockEncoderMockRecorder is the mock recorder for MockEncoder.
type MockInMemoryCache ¶ added in v1.5.7
type MockInMemoryCache[T any] struct { // contains filtered or unexported fields }
MockInMemoryCache is a mock of InMemoryCache interface.
func NewMockInMemoryCache ¶ added in v1.5.7
func NewMockInMemoryCache[T any](ctrl *gomock.Controller) *MockInMemoryCache[T]
NewMockInMemoryCache creates a new mock instance.
func (*MockInMemoryCache[T]) EXPECT ¶ added in v1.5.7
func (m *MockInMemoryCache[T]) EXPECT() *MockInMemoryCacheMockRecorder[T]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInMemoryCache[T]) Get ¶ added in v1.5.7
func (m *MockInMemoryCache[T]) Get(key string) *storage.CachedResult[T]
Get mocks base method.
func (*MockInMemoryCache[T]) Set ¶ added in v1.5.7
func (m *MockInMemoryCache[T]) Set(key string, value T, ttl time.Duration)
Set mocks base method.
func (*MockInMemoryCache[T]) Stop ¶ added in v1.5.7
func (m *MockInMemoryCache[T]) Stop()
Stop mocks base method.
type MockInMemoryCacheMockRecorder ¶ added in v1.5.7
type MockInMemoryCacheMockRecorder[T any] struct { // contains filtered or unexported fields }
MockInMemoryCacheMockRecorder is the mock recorder for MockInMemoryCache.
func (*MockInMemoryCacheMockRecorder[T]) Get ¶ added in v1.5.7
func (mr *MockInMemoryCacheMockRecorder[T]) Get(key any) *gomock.Call
Get indicates an expected call of Get.
func (*MockInMemoryCacheMockRecorder[T]) Set ¶ added in v1.5.7
func (mr *MockInMemoryCacheMockRecorder[T]) Set(key, value, ttl any) *gomock.Call
Set indicates an expected call of Set.
func (*MockInMemoryCacheMockRecorder[T]) Stop ¶ added in v1.5.7
func (mr *MockInMemoryCacheMockRecorder[T]) Stop() *gomock.Call
Stop indicates an expected call of Stop.
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()
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 ¶
func (m *MockOpenFGADatastore) EXPECT() *MockOpenFGADatastoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOpenFGADatastore) FindLatestAuthorizationModel ¶ added in v1.5.0
func (m *MockOpenFGADatastore) FindLatestAuthorizationModel(ctx context.Context, store string) (*openfgav1.AuthorizationModel, error)
FindLatestAuthorizationModel mocks base method.
func (*MockOpenFGADatastore) IsReady ¶
func (m *MockOpenFGADatastore) IsReady(ctx context.Context) (storage.ReadinessStatus, error)
IsReady mocks base method.
func (*MockOpenFGADatastore) ListStores ¶
func (m *MockOpenFGADatastore) ListStores(ctx context.Context, options storage.ListStoresOptions) ([]*openfgav1.Store, []byte, error)
ListStores mocks base method.
func (*MockOpenFGADatastore) MaxTuplesPerWrite ¶
func (m *MockOpenFGADatastore) MaxTuplesPerWrite() int
MaxTuplesPerWrite mocks base method.
func (*MockOpenFGADatastore) MaxTypesPerAuthorizationModel ¶
func (m *MockOpenFGADatastore) MaxTypesPerAuthorizationModel() int
MaxTypesPerAuthorizationModel mocks base method.
func (*MockOpenFGADatastore) Read ¶
func (m *MockOpenFGADatastore) Read(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, options storage.ReadOptions) (storage.TupleIterator, error)
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.ReadAuthorizationModelsOptions) ([]*openfgav1.AuthorizationModel, []byte, error)
ReadAuthorizationModels mocks base method.
func (*MockOpenFGADatastore) ReadChanges ¶
func (m *MockOpenFGADatastore) ReadChanges(ctx context.Context, store, objectType string, options storage.ReadChangesOptions, horizonOffset time.Duration) ([]*openfgav1.TupleChange, []byte, error)
ReadChanges mocks base method.
func (*MockOpenFGADatastore) ReadPage ¶
func (m *MockOpenFGADatastore) ReadPage(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, options storage.ReadPageOptions) ([]*openfgav1.Tuple, []byte, error)
ReadPage mocks base method.
func (*MockOpenFGADatastore) ReadStartingWithUser ¶
func (m *MockOpenFGADatastore) ReadStartingWithUser(ctx context.Context, store string, filter storage.ReadStartingWithUserFilter, options storage.ReadStartingWithUserOptions) (storage.TupleIterator, error)
ReadStartingWithUser mocks base method.
func (*MockOpenFGADatastore) ReadUserTuple ¶
func (m *MockOpenFGADatastore) ReadUserTuple(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, options storage.ReadUserTupleOptions) (*openfgav1.Tuple, error)
ReadUserTuple mocks base method.
func (*MockOpenFGADatastore) ReadUsersetTuples ¶
func (m *MockOpenFGADatastore) ReadUsersetTuples(ctx context.Context, store string, filter storage.ReadUsersetTuplesFilter, options storage.ReadUsersetTuplesOptions) (storage.TupleIterator, error)
ReadUsersetTuples mocks base method.
func (*MockOpenFGADatastore) Write ¶
func (m *MockOpenFGADatastore) Write(ctx context.Context, store string, d storage.Deletes, w 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 string, model *openfgav1.AuthorizationModel) 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() *gomock.Call
Close indicates an expected call of Close.
func (*MockOpenFGADatastoreMockRecorder) CreateStore ¶
func (mr *MockOpenFGADatastoreMockRecorder) CreateStore(ctx, store any) *gomock.Call
CreateStore indicates an expected call of CreateStore.
func (*MockOpenFGADatastoreMockRecorder) DeleteStore ¶
func (mr *MockOpenFGADatastoreMockRecorder) DeleteStore(ctx, id any) *gomock.Call
DeleteStore indicates an expected call of DeleteStore.
func (*MockOpenFGADatastoreMockRecorder) FindLatestAuthorizationModel ¶ added in v1.5.0
func (mr *MockOpenFGADatastoreMockRecorder) FindLatestAuthorizationModel(ctx, store any) *gomock.Call
FindLatestAuthorizationModel indicates an expected call of FindLatestAuthorizationModel.
func (*MockOpenFGADatastoreMockRecorder) GetStore ¶
func (mr *MockOpenFGADatastoreMockRecorder) GetStore(ctx, id any) *gomock.Call
GetStore indicates an expected call of GetStore.
func (*MockOpenFGADatastoreMockRecorder) IsReady ¶
func (mr *MockOpenFGADatastoreMockRecorder) IsReady(ctx any) *gomock.Call
IsReady indicates an expected call of IsReady.
func (*MockOpenFGADatastoreMockRecorder) ListStores ¶
func (mr *MockOpenFGADatastoreMockRecorder) ListStores(ctx, options any) *gomock.Call
ListStores indicates an expected call of ListStores.
func (*MockOpenFGADatastoreMockRecorder) MaxTuplesPerWrite ¶
func (mr *MockOpenFGADatastoreMockRecorder) MaxTuplesPerWrite() *gomock.Call
MaxTuplesPerWrite indicates an expected call of MaxTuplesPerWrite.
func (*MockOpenFGADatastoreMockRecorder) MaxTypesPerAuthorizationModel ¶
func (mr *MockOpenFGADatastoreMockRecorder) MaxTypesPerAuthorizationModel() *gomock.Call
MaxTypesPerAuthorizationModel indicates an expected call of MaxTypesPerAuthorizationModel.
func (*MockOpenFGADatastoreMockRecorder) Read ¶
func (mr *MockOpenFGADatastoreMockRecorder) Read(ctx, store, tupleKey, options any) *gomock.Call
Read indicates an expected call of Read.
func (*MockOpenFGADatastoreMockRecorder) ReadAssertions ¶
func (mr *MockOpenFGADatastoreMockRecorder) ReadAssertions(ctx, store, modelID any) *gomock.Call
ReadAssertions indicates an expected call of ReadAssertions.
func (*MockOpenFGADatastoreMockRecorder) ReadAuthorizationModel ¶
func (mr *MockOpenFGADatastoreMockRecorder) ReadAuthorizationModel(ctx, store, id any) *gomock.Call
ReadAuthorizationModel indicates an expected call of ReadAuthorizationModel.
func (*MockOpenFGADatastoreMockRecorder) ReadAuthorizationModels ¶
func (mr *MockOpenFGADatastoreMockRecorder) ReadAuthorizationModels(ctx, store, options any) *gomock.Call
ReadAuthorizationModels indicates an expected call of ReadAuthorizationModels.
func (*MockOpenFGADatastoreMockRecorder) ReadChanges ¶
func (mr *MockOpenFGADatastoreMockRecorder) ReadChanges(ctx, store, objectType, options, horizonOffset any) *gomock.Call
ReadChanges indicates an expected call of ReadChanges.
func (*MockOpenFGADatastoreMockRecorder) ReadPage ¶
func (mr *MockOpenFGADatastoreMockRecorder) ReadPage(ctx, store, tupleKey, options any) *gomock.Call
ReadPage indicates an expected call of ReadPage.
func (*MockOpenFGADatastoreMockRecorder) ReadStartingWithUser ¶
func (mr *MockOpenFGADatastoreMockRecorder) ReadStartingWithUser(ctx, store, filter, options any) *gomock.Call
ReadStartingWithUser indicates an expected call of ReadStartingWithUser.
func (*MockOpenFGADatastoreMockRecorder) ReadUserTuple ¶
func (mr *MockOpenFGADatastoreMockRecorder) ReadUserTuple(ctx, store, tupleKey, options any) *gomock.Call
ReadUserTuple indicates an expected call of ReadUserTuple.
func (*MockOpenFGADatastoreMockRecorder) ReadUsersetTuples ¶
func (mr *MockOpenFGADatastoreMockRecorder) ReadUsersetTuples(ctx, store, filter, options any) *gomock.Call
ReadUsersetTuples indicates an expected call of ReadUsersetTuples.
func (*MockOpenFGADatastoreMockRecorder) Write ¶
func (mr *MockOpenFGADatastoreMockRecorder) Write(ctx, store, d, w any) *gomock.Call
Write indicates an expected call of Write.
func (*MockOpenFGADatastoreMockRecorder) WriteAssertions ¶
func (mr *MockOpenFGADatastoreMockRecorder) WriteAssertions(ctx, store, modelID, assertions any) *gomock.Call
WriteAssertions indicates an expected call of WriteAssertions.
func (*MockOpenFGADatastoreMockRecorder) WriteAuthorizationModel ¶
func (mr *MockOpenFGADatastoreMockRecorder) WriteAuthorizationModel(ctx, store, model any) *gomock.Call
WriteAuthorizationModel indicates an expected call of WriteAuthorizationModel.
type MockRelationshipTupleReader ¶
type MockRelationshipTupleReader struct {
// contains filtered or unexported fields
}
MockRelationshipTupleReader is a mock of RelationshipTupleReader interface.
func NewMockRelationshipTupleReader ¶
func NewMockRelationshipTupleReader(ctrl *gomock.Controller) *MockRelationshipTupleReader
NewMockRelationshipTupleReader creates a new mock instance.
func (*MockRelationshipTupleReader) EXPECT ¶
func (m *MockRelationshipTupleReader) EXPECT() *MockRelationshipTupleReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRelationshipTupleReader) Read ¶
func (m *MockRelationshipTupleReader) Read(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, options storage.ReadOptions) (storage.TupleIterator, error)
Read mocks base method.
func (*MockRelationshipTupleReader) ReadPage ¶
func (m *MockRelationshipTupleReader) ReadPage(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, options storage.ReadPageOptions) ([]*openfgav1.Tuple, []byte, error)
ReadPage mocks base method.
func (*MockRelationshipTupleReader) ReadStartingWithUser ¶
func (m *MockRelationshipTupleReader) ReadStartingWithUser(ctx context.Context, store string, filter storage.ReadStartingWithUserFilter, options storage.ReadStartingWithUserOptions) (storage.TupleIterator, error)
ReadStartingWithUser mocks base method.
func (*MockRelationshipTupleReader) ReadUserTuple ¶
func (m *MockRelationshipTupleReader) ReadUserTuple(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, options storage.ReadUserTupleOptions) (*openfgav1.Tuple, error)
ReadUserTuple mocks base method.
func (*MockRelationshipTupleReader) ReadUsersetTuples ¶
func (m *MockRelationshipTupleReader) ReadUsersetTuples(ctx context.Context, store string, filter storage.ReadUsersetTuplesFilter, options storage.ReadUsersetTuplesOptions) (storage.TupleIterator, error)
ReadUsersetTuples mocks base method.
type MockRelationshipTupleReaderMockRecorder ¶
type MockRelationshipTupleReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockRelationshipTupleReaderMockRecorder is the mock recorder for MockRelationshipTupleReader.
func (*MockRelationshipTupleReaderMockRecorder) Read ¶
func (mr *MockRelationshipTupleReaderMockRecorder) Read(ctx, store, tupleKey, options any) *gomock.Call
Read indicates an expected call of Read.
func (*MockRelationshipTupleReaderMockRecorder) ReadPage ¶
func (mr *MockRelationshipTupleReaderMockRecorder) ReadPage(ctx, store, tupleKey, options any) *gomock.Call
ReadPage indicates an expected call of ReadPage.
func (*MockRelationshipTupleReaderMockRecorder) ReadStartingWithUser ¶
func (mr *MockRelationshipTupleReaderMockRecorder) ReadStartingWithUser(ctx, store, filter, options any) *gomock.Call
ReadStartingWithUser indicates an expected call of ReadStartingWithUser.
func (*MockRelationshipTupleReaderMockRecorder) ReadUserTuple ¶
func (mr *MockRelationshipTupleReaderMockRecorder) ReadUserTuple(ctx, store, tupleKey, options any) *gomock.Call
ReadUserTuple indicates an expected call of ReadUserTuple.
func (*MockRelationshipTupleReaderMockRecorder) ReadUsersetTuples ¶
func (mr *MockRelationshipTupleReaderMockRecorder) ReadUsersetTuples(ctx, store, filter, options any) *gomock.Call
ReadUsersetTuples indicates an expected call of ReadUsersetTuples.
type MockRelationshipTupleWriter ¶
type MockRelationshipTupleWriter struct {
// contains filtered or unexported fields
}
MockRelationshipTupleWriter is a mock of RelationshipTupleWriter interface.
func NewMockRelationshipTupleWriter ¶
func NewMockRelationshipTupleWriter(ctrl *gomock.Controller) *MockRelationshipTupleWriter
NewMockRelationshipTupleWriter creates a new mock instance.
func (*MockRelationshipTupleWriter) EXPECT ¶
func (m *MockRelationshipTupleWriter) EXPECT() *MockRelationshipTupleWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRelationshipTupleWriter) MaxTuplesPerWrite ¶
func (m *MockRelationshipTupleWriter) MaxTuplesPerWrite() int
MaxTuplesPerWrite mocks base method.
type MockRelationshipTupleWriterMockRecorder ¶
type MockRelationshipTupleWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockRelationshipTupleWriterMockRecorder is the mock recorder for MockRelationshipTupleWriter.
func (*MockRelationshipTupleWriterMockRecorder) MaxTuplesPerWrite ¶
func (mr *MockRelationshipTupleWriterMockRecorder) MaxTuplesPerWrite() *gomock.Call
MaxTuplesPerWrite indicates an expected call of MaxTuplesPerWrite.
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 ¶
func (m *MockStoresBackend) EXPECT() *MockStoresBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStoresBackend) ListStores ¶
func (m *MockStoresBackend) ListStores(ctx context.Context, options storage.ListStoresOptions) ([]*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 any) *gomock.Call
CreateStore indicates an expected call of CreateStore.
func (*MockStoresBackendMockRecorder) DeleteStore ¶
func (mr *MockStoresBackendMockRecorder) DeleteStore(ctx, id any) *gomock.Call
DeleteStore indicates an expected call of DeleteStore.
func (*MockStoresBackendMockRecorder) GetStore ¶
func (mr *MockStoresBackendMockRecorder) GetStore(ctx, id any) *gomock.Call
GetStore indicates an expected call of GetStore.
func (*MockStoresBackendMockRecorder) ListStores ¶
func (mr *MockStoresBackendMockRecorder) ListStores(ctx, options any) *gomock.Call
ListStores indicates an expected call of ListStores.
type MockThrottler ¶ added in v1.5.4
type MockThrottler struct {
// contains filtered or unexported fields
}
MockThrottler is a mock of Throttler interface.
func NewMockThrottler ¶ added in v1.5.4
func NewMockThrottler(ctrl *gomock.Controller) *MockThrottler
NewMockThrottler creates a new mock instance.
func (*MockThrottler) Close ¶ added in v1.5.4
func (m *MockThrottler) Close()
Close mocks base method.
func (*MockThrottler) EXPECT ¶ added in v1.5.4
func (m *MockThrottler) EXPECT() *MockThrottlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockThrottler) Throttle ¶ added in v1.5.4
func (m *MockThrottler) Throttle(arg0 context.Context)
Throttle mocks base method.
type MockThrottlerMockRecorder ¶ added in v1.5.4
type MockThrottlerMockRecorder struct {
// contains filtered or unexported fields
}
MockThrottlerMockRecorder is the mock recorder for MockThrottler.
func (*MockThrottlerMockRecorder) Close ¶ added in v1.5.4
func (mr *MockThrottlerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
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 ¶
func (m *MockTupleBackend) EXPECT() *MockTupleBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTupleBackend) MaxTuplesPerWrite ¶
func (m *MockTupleBackend) MaxTuplesPerWrite() int
MaxTuplesPerWrite mocks base method.
func (*MockTupleBackend) Read ¶
func (m *MockTupleBackend) Read(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, options storage.ReadOptions) (storage.TupleIterator, error)
Read mocks base method.
func (*MockTupleBackend) ReadPage ¶
func (m *MockTupleBackend) ReadPage(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, options storage.ReadPageOptions) ([]*openfgav1.Tuple, []byte, error)
ReadPage mocks base method.
func (*MockTupleBackend) ReadStartingWithUser ¶
func (m *MockTupleBackend) ReadStartingWithUser(ctx context.Context, store string, filter storage.ReadStartingWithUserFilter, options storage.ReadStartingWithUserOptions) (storage.TupleIterator, error)
ReadStartingWithUser mocks base method.
func (*MockTupleBackend) ReadUserTuple ¶
func (m *MockTupleBackend) ReadUserTuple(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, options storage.ReadUserTupleOptions) (*openfgav1.Tuple, error)
ReadUserTuple mocks base method.
func (*MockTupleBackend) ReadUsersetTuples ¶
func (m *MockTupleBackend) ReadUsersetTuples(ctx context.Context, store string, filter storage.ReadUsersetTuplesFilter, options storage.ReadUsersetTuplesOptions) (storage.TupleIterator, error)
ReadUsersetTuples mocks base method.
type MockTupleBackendMockRecorder ¶
type MockTupleBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockTupleBackendMockRecorder is the mock recorder for MockTupleBackend.
func (*MockTupleBackendMockRecorder) MaxTuplesPerWrite ¶
func (mr *MockTupleBackendMockRecorder) MaxTuplesPerWrite() *gomock.Call
MaxTuplesPerWrite indicates an expected call of MaxTuplesPerWrite.
func (*MockTupleBackendMockRecorder) Read ¶
func (mr *MockTupleBackendMockRecorder) Read(ctx, store, tupleKey, options any) *gomock.Call
Read indicates an expected call of Read.
func (*MockTupleBackendMockRecorder) ReadPage ¶
func (mr *MockTupleBackendMockRecorder) ReadPage(ctx, store, tupleKey, options any) *gomock.Call
ReadPage indicates an expected call of ReadPage.
func (*MockTupleBackendMockRecorder) ReadStartingWithUser ¶
func (mr *MockTupleBackendMockRecorder) ReadStartingWithUser(ctx, store, filter, options any) *gomock.Call
ReadStartingWithUser indicates an expected call of ReadStartingWithUser.
func (*MockTupleBackendMockRecorder) ReadUserTuple ¶
func (mr *MockTupleBackendMockRecorder) ReadUserTuple(ctx, store, tupleKey, options any) *gomock.Call
ReadUserTuple indicates an expected call of ReadUserTuple.
func (*MockTupleBackendMockRecorder) ReadUsersetTuples ¶
func (mr *MockTupleBackendMockRecorder) ReadUsersetTuples(ctx, store, filter, options any) *gomock.Call
ReadUsersetTuples indicates an expected call of ReadUsersetTuples.
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 ¶
func (m *MockTypeDefinitionWriteBackend) EXPECT() *MockTypeDefinitionWriteBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTypeDefinitionWriteBackend) MaxTypesPerAuthorizationModel ¶
func (m *MockTypeDefinitionWriteBackend) MaxTypesPerAuthorizationModel() int
MaxTypesPerAuthorizationModel mocks base method.
func (*MockTypeDefinitionWriteBackend) WriteAuthorizationModel ¶
func (m *MockTypeDefinitionWriteBackend) WriteAuthorizationModel(ctx context.Context, store string, model *openfgav1.AuthorizationModel) error
WriteAuthorizationModel mocks base method.
type MockTypeDefinitionWriteBackendMockRecorder ¶
type MockTypeDefinitionWriteBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockTypeDefinitionWriteBackendMockRecorder is the mock recorder for MockTypeDefinitionWriteBackend.
func (*MockTypeDefinitionWriteBackendMockRecorder) MaxTypesPerAuthorizationModel ¶
func (mr *MockTypeDefinitionWriteBackendMockRecorder) MaxTypesPerAuthorizationModel() *gomock.Call
MaxTypesPerAuthorizationModel indicates an expected call of MaxTypesPerAuthorizationModel.
func (*MockTypeDefinitionWriteBackendMockRecorder) WriteAuthorizationModel ¶
func (mr *MockTypeDefinitionWriteBackendMockRecorder) WriteAuthorizationModel(ctx, store, model any) *gomock.Call
WriteAuthorizationModel indicates an expected call of WriteAuthorizationModel.