mocks

package
v1.8.14 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

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.

Package mock_storage 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.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSimulatedError = fmt.Errorf("simulated errors")
)

Functions

func NewErrorIterator added in v1.8.1

func NewErrorIterator[T any](items []T) *errorIterator[T]

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

func NewMockOidcServer(issuerURL string) (*mockOidcServer, error)

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

func NewMockTracingServer(t testing.TB, port int) *mockTracingServer

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 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

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

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

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

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 MockCacheController added in v1.7.0

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

MockCacheController is a mock of CacheController interface.

func NewMockCacheController added in v1.7.0

func NewMockCacheController(ctrl *gomock.Controller) *MockCacheController

NewMockCacheController creates a new mock instance.

func (*MockCacheController) DetermineInvalidationTime added in v1.8.5

func (m *MockCacheController) DetermineInvalidationTime(ctx context.Context, storeID string) time.Time

DetermineInvalidationTime mocks base method.

func (*MockCacheController) EXPECT added in v1.7.0

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

func (*MockCacheController) InvalidateIfNeeded added in v1.8.10

func (m *MockCacheController) InvalidateIfNeeded(storeID string, parentSpan trace.Span)

InvalidateIfNeeded mocks base method.

type MockCacheControllerMockRecorder added in v1.7.0

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

MockCacheControllerMockRecorder is the mock recorder for MockCacheController.

func (*MockCacheControllerMockRecorder) DetermineInvalidationTime added in v1.8.5

func (mr *MockCacheControllerMockRecorder) DetermineInvalidationTime(ctx, storeID any) *gomock.Call

DetermineInvalidationTime indicates an expected call of DetermineInvalidationTime.

func (*MockCacheControllerMockRecorder) InvalidateIfNeeded added in v1.8.10

func (mr *MockCacheControllerMockRecorder) InvalidateIfNeeded(storeID, parentSpan any) *gomock.Call

InvalidateIfNeeded indicates an expected call of InvalidateIfNeeded.

type MockCacheItem added in v1.8.12

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

MockCacheItem is a mock of CacheItem interface.

func NewMockCacheItem added in v1.8.12

func NewMockCacheItem(ctrl *gomock.Controller) *MockCacheItem

NewMockCacheItem creates a new mock instance.

func (*MockCacheItem) CacheEntityType added in v1.8.12

func (m *MockCacheItem) CacheEntityType() string

CacheEntityType mocks base method.

func (*MockCacheItem) EXPECT added in v1.8.12

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

type MockCacheItemMockRecorder added in v1.8.12

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

MockCacheItemMockRecorder is the mock recorder for MockCacheItem.

func (*MockCacheItemMockRecorder) CacheEntityType added in v1.8.12

func (mr *MockCacheItemMockRecorder) CacheEntityType() *gomock.Call

CacheEntityType indicates an expected call of CacheEntityType.

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

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, filter, options any) *gomock.Call

ReadChanges indicates an expected call of ReadChanges.

type MockContinuationTokenSerializer added in v1.8.0

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

MockContinuationTokenSerializer is a mock of ContinuationTokenSerializer interface.

func NewMockContinuationTokenSerializer added in v1.8.0

func NewMockContinuationTokenSerializer(ctrl *gomock.Controller) *MockContinuationTokenSerializer

NewMockContinuationTokenSerializer creates a new mock instance.

func (*MockContinuationTokenSerializer) Deserialize added in v1.8.0

func (m *MockContinuationTokenSerializer) Deserialize(token string) (string, string, error)

Deserialize mocks base method.

func (*MockContinuationTokenSerializer) EXPECT added in v1.8.0

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

func (*MockContinuationTokenSerializer) Serialize added in v1.8.0

func (m *MockContinuationTokenSerializer) Serialize(ulid, objType string) ([]byte, error)

Serialize mocks base method.

type MockContinuationTokenSerializerMockRecorder added in v1.8.0

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

MockContinuationTokenSerializerMockRecorder is the mock recorder for MockContinuationTokenSerializer.

func (*MockContinuationTokenSerializerMockRecorder) Deserialize added in v1.8.0

Deserialize indicates an expected call of Deserialize.

func (*MockContinuationTokenSerializerMockRecorder) Serialize added in v1.8.0

func (mr *MockContinuationTokenSerializerMockRecorder) Serialize(ulid, objType any) *gomock.Call

Serialize indicates an expected call of Serialize.

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.

func (*MockEncoder) Encode added in v1.5.5

func (m *MockEncoder) Encode(arg0 []byte) (string, error)

Encode mocks base method.

type MockEncoderMockRecorder added in v1.5.5

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

MockEncoderMockRecorder is the mock recorder for MockEncoder.

func (*MockEncoderMockRecorder) Decode added in v1.5.5

func (mr *MockEncoderMockRecorder) Decode(arg0 any) *gomock.Call

Decode indicates an expected call of Decode.

func (*MockEncoderMockRecorder) Encode added in v1.5.5

func (mr *MockEncoderMockRecorder) Encode(arg0 any) *gomock.Call

Encode indicates an expected call of Encode.

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]) Delete added in v1.7.0

func (m *MockInMemoryCache[T]) Delete(prefix string)

Delete mocks base method.

func (*MockInMemoryCache[T]) EXPECT added in v1.5.7

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) 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]) Delete added in v1.7.0

func (mr *MockInMemoryCacheMockRecorder[T]) Delete(prefix any) *gomock.Call

Delete indicates an expected call of Delete.

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 MockIterator added in v1.8.1

type MockIterator[T any] struct {
	// contains filtered or unexported fields
}

MockIterator is a mock of Iterator interface.

func NewMockIterator added in v1.8.1

func NewMockIterator[T any](ctrl *gomock.Controller) *MockIterator[T]

NewMockIterator creates a new mock instance.

func (*MockIterator[T]) EXPECT added in v1.8.1

func (m *MockIterator[T]) EXPECT() *MockIteratorMockRecorder[T]

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

func (*MockIterator[T]) Head added in v1.8.1

func (m *MockIterator[T]) Head(ctx context.Context) (T, error)

Head mocks base method.

func (*MockIterator[T]) Next added in v1.8.1

func (m *MockIterator[T]) Next(ctx context.Context) (T, error)

Next mocks base method.

func (*MockIterator[T]) Stop added in v1.8.1

func (m *MockIterator[T]) Stop()

Stop mocks base method.

type MockIteratorMockRecorder added in v1.8.1

type MockIteratorMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockIteratorMockRecorder is the mock recorder for MockIterator.

func (*MockIteratorMockRecorder[T]) Head added in v1.8.1

func (mr *MockIteratorMockRecorder[T]) Head(ctx any) *gomock.Call

Head indicates an expected call of Head.

func (*MockIteratorMockRecorder[T]) Next added in v1.8.1

func (mr *MockIteratorMockRecorder[T]) Next(ctx any) *gomock.Call

Next indicates an expected call of Next.

func (*MockIteratorMockRecorder[T]) Stop added in v1.8.1

func (mr *MockIteratorMockRecorder[T]) Stop() *gomock.Call

Stop indicates an expected call of Stop.

type MockLogger added in v1.8.8

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

MockLogger is a mock of Logger interface.

func NewMockLogger added in v1.8.8

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance.

func (*MockLogger) Debug added in v1.8.8

func (m *MockLogger) Debug(arg0 string, arg1 ...zap.Field)

Debug mocks base method.

func (*MockLogger) DebugWithContext added in v1.8.8

func (m *MockLogger) DebugWithContext(arg0 context.Context, arg1 string, arg2 ...zap.Field)

DebugWithContext mocks base method.

func (*MockLogger) EXPECT added in v1.8.8

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

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

func (*MockLogger) Error added in v1.8.8

func (m *MockLogger) Error(arg0 string, arg1 ...zap.Field)

Error mocks base method.

func (*MockLogger) ErrorWithContext added in v1.8.8

func (m *MockLogger) ErrorWithContext(arg0 context.Context, arg1 string, arg2 ...zap.Field)

ErrorWithContext mocks base method.

func (*MockLogger) Fatal added in v1.8.8

func (m *MockLogger) Fatal(arg0 string, arg1 ...zap.Field)

Fatal mocks base method.

func (*MockLogger) FatalWithContext added in v1.8.8

func (m *MockLogger) FatalWithContext(arg0 context.Context, arg1 string, arg2 ...zap.Field)

FatalWithContext mocks base method.

func (*MockLogger) Info added in v1.8.8

func (m *MockLogger) Info(arg0 string, arg1 ...zap.Field)

Info mocks base method.

func (*MockLogger) InfoWithContext added in v1.8.8

func (m *MockLogger) InfoWithContext(arg0 context.Context, arg1 string, arg2 ...zap.Field)

InfoWithContext mocks base method.

func (*MockLogger) Panic added in v1.8.8

func (m *MockLogger) Panic(arg0 string, arg1 ...zap.Field)

Panic mocks base method.

func (*MockLogger) PanicWithContext added in v1.8.8

func (m *MockLogger) PanicWithContext(arg0 context.Context, arg1 string, arg2 ...zap.Field)

PanicWithContext mocks base method.

func (*MockLogger) Warn added in v1.8.8

func (m *MockLogger) Warn(arg0 string, arg1 ...zap.Field)

Warn mocks base method.

func (*MockLogger) WarnWithContext added in v1.8.8

func (m *MockLogger) WarnWithContext(arg0 context.Context, arg1 string, arg2 ...zap.Field)

WarnWithContext mocks base method.

func (*MockLogger) With added in v1.8.8

func (m *MockLogger) With(arg0 ...zap.Field) logger.Logger

With mocks base method.

type MockLoggerMockRecorder added in v1.8.8

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

MockLoggerMockRecorder is the mock recorder for MockLogger.

func (*MockLoggerMockRecorder) Debug added in v1.8.8

func (mr *MockLoggerMockRecorder) Debug(arg0 any, arg1 ...any) *gomock.Call

Debug indicates an expected call of Debug.

func (*MockLoggerMockRecorder) DebugWithContext added in v1.8.8

func (mr *MockLoggerMockRecorder) DebugWithContext(arg0, arg1 any, arg2 ...any) *gomock.Call

DebugWithContext indicates an expected call of DebugWithContext.

func (*MockLoggerMockRecorder) Error added in v1.8.8

func (mr *MockLoggerMockRecorder) Error(arg0 any, arg1 ...any) *gomock.Call

Error indicates an expected call of Error.

func (*MockLoggerMockRecorder) ErrorWithContext added in v1.8.8

func (mr *MockLoggerMockRecorder) ErrorWithContext(arg0, arg1 any, arg2 ...any) *gomock.Call

ErrorWithContext indicates an expected call of ErrorWithContext.

func (*MockLoggerMockRecorder) Fatal added in v1.8.8

func (mr *MockLoggerMockRecorder) Fatal(arg0 any, arg1 ...any) *gomock.Call

Fatal indicates an expected call of Fatal.

func (*MockLoggerMockRecorder) FatalWithContext added in v1.8.8

func (mr *MockLoggerMockRecorder) FatalWithContext(arg0, arg1 any, arg2 ...any) *gomock.Call

FatalWithContext indicates an expected call of FatalWithContext.

func (*MockLoggerMockRecorder) Info added in v1.8.8

func (mr *MockLoggerMockRecorder) Info(arg0 any, arg1 ...any) *gomock.Call

Info indicates an expected call of Info.

func (*MockLoggerMockRecorder) InfoWithContext added in v1.8.8

func (mr *MockLoggerMockRecorder) InfoWithContext(arg0, arg1 any, arg2 ...any) *gomock.Call

InfoWithContext indicates an expected call of InfoWithContext.

func (*MockLoggerMockRecorder) Panic added in v1.8.8

func (mr *MockLoggerMockRecorder) Panic(arg0 any, arg1 ...any) *gomock.Call

Panic indicates an expected call of Panic.

func (*MockLoggerMockRecorder) PanicWithContext added in v1.8.8

func (mr *MockLoggerMockRecorder) PanicWithContext(arg0, arg1 any, arg2 ...any) *gomock.Call

PanicWithContext indicates an expected call of PanicWithContext.

func (*MockLoggerMockRecorder) Warn added in v1.8.8

func (mr *MockLoggerMockRecorder) Warn(arg0 any, arg1 ...any) *gomock.Call

Warn indicates an expected call of Warn.

func (*MockLoggerMockRecorder) WarnWithContext added in v1.8.8

func (mr *MockLoggerMockRecorder) WarnWithContext(arg0, arg1 any, arg2 ...any) *gomock.Call

WarnWithContext indicates an expected call of WarnWithContext.

func (*MockLoggerMockRecorder) With added in v1.8.8

func (mr *MockLoggerMockRecorder) With(arg0 ...any) *gomock.Call

With indicates an expected call of With.

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

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) GetStore

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

GetStore mocks base method.

func (*MockOpenFGADatastore) IsReady

IsReady mocks base method.

func (*MockOpenFGADatastore) ListStores

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

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

ReadAuthorizationModels mocks base method.

func (*MockOpenFGADatastore) ReadChanges

ReadChanges mocks base method.

func (*MockOpenFGADatastore) ReadPage

func (m *MockOpenFGADatastore) ReadPage(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, options storage.ReadPageOptions) ([]*openfgav1.Tuple, string, error)

ReadPage mocks base method.

func (*MockOpenFGADatastore) ReadStartingWithUser

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

ReadUsersetTuples mocks base method.

func (*MockOpenFGADatastore) Write

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

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, filter, options 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

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

func (*MockRelationshipTupleReader) Read

Read mocks base method.

func (*MockRelationshipTupleReader) ReadPage

ReadPage mocks base method.

func (*MockRelationshipTupleReader) ReadStartingWithUser

ReadStartingWithUser mocks base method.

func (*MockRelationshipTupleReader) ReadUserTuple

ReadUserTuple mocks base method.

func (*MockRelationshipTupleReader) ReadUsersetTuples

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

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

func (*MockRelationshipTupleWriter) MaxTuplesPerWrite

func (m *MockRelationshipTupleWriter) MaxTuplesPerWrite() int

MaxTuplesPerWrite mocks base method.

func (*MockRelationshipTupleWriter) Write

Write 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.

func (*MockRelationshipTupleWriterMockRecorder) Write

func (mr *MockRelationshipTupleWriterMockRecorder) Write(ctx, store, d, w any) *gomock.Call

Write indicates an expected call of Write.

type MockServerInterface added in v1.7.0

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

MockServerInterface is a mock of ServerInterface interface.

func NewMockServerInterface added in v1.7.0

func NewMockServerInterface(ctrl *gomock.Controller) *MockServerInterface

NewMockServerInterface creates a new mock instance.

func (*MockServerInterface) Check added in v1.7.0

Check mocks base method.

func (*MockServerInterface) EXPECT added in v1.7.0

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

func (*MockServerInterface) ListObjects added in v1.7.0

ListObjects mocks base method.

type MockServerInterfaceMockRecorder added in v1.7.0

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

MockServerInterfaceMockRecorder is the mock recorder for MockServerInterface.

func (*MockServerInterfaceMockRecorder) Check added in v1.7.0

func (mr *MockServerInterfaceMockRecorder) Check(ctx, req any) *gomock.Call

Check indicates an expected call of Check.

func (*MockServerInterfaceMockRecorder) ListObjects added in v1.7.0

func (mr *MockServerInterfaceMockRecorder) ListObjects(ctx, req any) *gomock.Call

ListObjects indicates an expected call of ListObjects.

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

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

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.

func (*MockThrottlerMockRecorder) Throttle added in v1.5.4

func (mr *MockThrottlerMockRecorder) Throttle(arg0 any) *gomock.Call

Throttle indicates an expected call of Throttle.

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) MaxTuplesPerWrite

func (m *MockTupleBackend) MaxTuplesPerWrite() int

MaxTuplesPerWrite mocks base method.

func (*MockTupleBackend) Read

Read mocks base method.

func (*MockTupleBackend) ReadPage

func (m *MockTupleBackend) ReadPage(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, options storage.ReadPageOptions) ([]*openfgav1.Tuple, string, error)

ReadPage mocks base method.

func (*MockTupleBackend) ReadStartingWithUser

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

ReadUsersetTuples mocks base method.

func (*MockTupleBackend) Write

Write 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.

func (*MockTupleBackendMockRecorder) Write

func (mr *MockTupleBackendMockRecorder) Write(ctx, store, d, w any) *gomock.Call

Write indicates an expected call of Write.

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) 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.

Jump to

Keyboard shortcuts

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