mocks

package
v0.110.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenFGAServiceClient

type OpenFGAServiceClient struct {
	mock.Mock
}

OpenFGAServiceClient is an autogenerated mock type for the OpenFGAServiceClient type

func NewOpenFGAServiceClient

func NewOpenFGAServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *OpenFGAServiceClient

NewOpenFGAServiceClient creates a new instance of OpenFGAServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*OpenFGAServiceClient) Check

Check provides a mock function with given fields: ctx, in, opts

func (*OpenFGAServiceClient) CreateStore

CreateStore provides a mock function with given fields: ctx, in, opts

func (*OpenFGAServiceClient) DeleteStore

DeleteStore provides a mock function with given fields: ctx, in, opts

func (*OpenFGAServiceClient) EXPECT

func (*OpenFGAServiceClient) Expand

Expand provides a mock function with given fields: ctx, in, opts

func (*OpenFGAServiceClient) GetStore

GetStore provides a mock function with given fields: ctx, in, opts

func (*OpenFGAServiceClient) ListObjects

ListObjects provides a mock function with given fields: ctx, in, opts

func (*OpenFGAServiceClient) ListStores

ListStores provides a mock function with given fields: ctx, in, opts

func (*OpenFGAServiceClient) ListUsers

ListUsers provides a mock function with given fields: ctx, in, opts

func (*OpenFGAServiceClient) Read

Read provides a mock function with given fields: ctx, in, opts

func (*OpenFGAServiceClient) ReadAssertions

ReadAssertions provides a mock function with given fields: ctx, in, opts

func (*OpenFGAServiceClient) ReadAuthorizationModel

ReadAuthorizationModel provides a mock function with given fields: ctx, in, opts

func (*OpenFGAServiceClient) ReadAuthorizationModels

ReadAuthorizationModels provides a mock function with given fields: ctx, in, opts

func (*OpenFGAServiceClient) ReadChanges

ReadChanges provides a mock function with given fields: ctx, in, opts

func (*OpenFGAServiceClient) StreamedListObjects

StreamedListObjects provides a mock function with given fields: ctx, in, opts

func (*OpenFGAServiceClient) UpdateStore

UpdateStore provides a mock function with given fields: ctx, in, opts

func (*OpenFGAServiceClient) Write

Write provides a mock function with given fields: ctx, in, opts

func (*OpenFGAServiceClient) WriteAssertions

WriteAssertions provides a mock function with given fields: ctx, in, opts

func (*OpenFGAServiceClient) WriteAuthorizationModel

WriteAuthorizationModel provides a mock function with given fields: ctx, in, opts

type OpenFGAServiceClient_Check_Call

type OpenFGAServiceClient_Check_Call struct {
	*mock.Call
}

OpenFGAServiceClient_Check_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Check'

func (*OpenFGAServiceClient_Check_Call) Return

func (*OpenFGAServiceClient_Check_Call) Run

type OpenFGAServiceClient_CreateStore_Call

type OpenFGAServiceClient_CreateStore_Call struct {
	*mock.Call
}

OpenFGAServiceClient_CreateStore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateStore'

func (*OpenFGAServiceClient_CreateStore_Call) Return

func (*OpenFGAServiceClient_CreateStore_Call) Run

type OpenFGAServiceClient_DeleteStore_Call

type OpenFGAServiceClient_DeleteStore_Call struct {
	*mock.Call
}

OpenFGAServiceClient_DeleteStore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteStore'

func (*OpenFGAServiceClient_DeleteStore_Call) Return

func (*OpenFGAServiceClient_DeleteStore_Call) Run

type OpenFGAServiceClient_Expand_Call

type OpenFGAServiceClient_Expand_Call struct {
	*mock.Call
}

OpenFGAServiceClient_Expand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Expand'

func (*OpenFGAServiceClient_Expand_Call) Return

func (*OpenFGAServiceClient_Expand_Call) Run

type OpenFGAServiceClient_Expecter

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

func (*OpenFGAServiceClient_Expecter) Check

func (_e *OpenFGAServiceClient_Expecter) Check(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_Check_Call

Check is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.CheckRequest
  • opts ...grpc.CallOption

func (*OpenFGAServiceClient_Expecter) CreateStore

func (_e *OpenFGAServiceClient_Expecter) CreateStore(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_CreateStore_Call

CreateStore is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.CreateStoreRequest
  • opts ...grpc.CallOption

func (*OpenFGAServiceClient_Expecter) DeleteStore

func (_e *OpenFGAServiceClient_Expecter) DeleteStore(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_DeleteStore_Call

DeleteStore is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.DeleteStoreRequest
  • opts ...grpc.CallOption

func (*OpenFGAServiceClient_Expecter) Expand

func (_e *OpenFGAServiceClient_Expecter) Expand(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_Expand_Call

Expand is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.ExpandRequest
  • opts ...grpc.CallOption

func (*OpenFGAServiceClient_Expecter) GetStore

func (_e *OpenFGAServiceClient_Expecter) GetStore(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_GetStore_Call

GetStore is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.GetStoreRequest
  • opts ...grpc.CallOption

func (*OpenFGAServiceClient_Expecter) ListObjects

func (_e *OpenFGAServiceClient_Expecter) ListObjects(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ListObjects_Call

ListObjects is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.ListObjectsRequest
  • opts ...grpc.CallOption

func (*OpenFGAServiceClient_Expecter) ListStores

func (_e *OpenFGAServiceClient_Expecter) ListStores(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ListStores_Call

ListStores is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.ListStoresRequest
  • opts ...grpc.CallOption

func (*OpenFGAServiceClient_Expecter) ListUsers

func (_e *OpenFGAServiceClient_Expecter) ListUsers(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ListUsers_Call

ListUsers is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.ListUsersRequest
  • opts ...grpc.CallOption

func (*OpenFGAServiceClient_Expecter) Read

func (_e *OpenFGAServiceClient_Expecter) Read(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_Read_Call

Read is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.ReadRequest
  • opts ...grpc.CallOption

func (*OpenFGAServiceClient_Expecter) ReadAssertions

func (_e *OpenFGAServiceClient_Expecter) ReadAssertions(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ReadAssertions_Call

ReadAssertions is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.ReadAssertionsRequest
  • opts ...grpc.CallOption

func (*OpenFGAServiceClient_Expecter) ReadAuthorizationModel

func (_e *OpenFGAServiceClient_Expecter) ReadAuthorizationModel(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ReadAuthorizationModel_Call

ReadAuthorizationModel is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.ReadAuthorizationModelRequest
  • opts ...grpc.CallOption

func (*OpenFGAServiceClient_Expecter) ReadAuthorizationModels

func (_e *OpenFGAServiceClient_Expecter) ReadAuthorizationModels(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ReadAuthorizationModels_Call

ReadAuthorizationModels is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.ReadAuthorizationModelsRequest
  • opts ...grpc.CallOption

func (*OpenFGAServiceClient_Expecter) ReadChanges

func (_e *OpenFGAServiceClient_Expecter) ReadChanges(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ReadChanges_Call

ReadChanges is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.ReadChangesRequest
  • opts ...grpc.CallOption

func (*OpenFGAServiceClient_Expecter) StreamedListObjects

func (_e *OpenFGAServiceClient_Expecter) StreamedListObjects(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_StreamedListObjects_Call

StreamedListObjects is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.StreamedListObjectsRequest
  • opts ...grpc.CallOption

func (*OpenFGAServiceClient_Expecter) UpdateStore

func (_e *OpenFGAServiceClient_Expecter) UpdateStore(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_UpdateStore_Call

UpdateStore is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.UpdateStoreRequest
  • opts ...grpc.CallOption

func (*OpenFGAServiceClient_Expecter) Write

func (_e *OpenFGAServiceClient_Expecter) Write(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_Write_Call

Write is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.WriteRequest
  • opts ...grpc.CallOption

func (*OpenFGAServiceClient_Expecter) WriteAssertions

func (_e *OpenFGAServiceClient_Expecter) WriteAssertions(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_WriteAssertions_Call

WriteAssertions is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.WriteAssertionsRequest
  • opts ...grpc.CallOption

func (*OpenFGAServiceClient_Expecter) WriteAuthorizationModel

func (_e *OpenFGAServiceClient_Expecter) WriteAuthorizationModel(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_WriteAuthorizationModel_Call

WriteAuthorizationModel is a helper method to define mock.On call

  • ctx context.Context
  • in *openfgav1.WriteAuthorizationModelRequest
  • opts ...grpc.CallOption

type OpenFGAServiceClient_GetStore_Call

type OpenFGAServiceClient_GetStore_Call struct {
	*mock.Call
}

OpenFGAServiceClient_GetStore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStore'

func (*OpenFGAServiceClient_GetStore_Call) Return

func (*OpenFGAServiceClient_GetStore_Call) Run

type OpenFGAServiceClient_ListObjects_Call

type OpenFGAServiceClient_ListObjects_Call struct {
	*mock.Call
}

OpenFGAServiceClient_ListObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListObjects'

func (*OpenFGAServiceClient_ListObjects_Call) Return

func (*OpenFGAServiceClient_ListObjects_Call) Run

type OpenFGAServiceClient_ListStores_Call

type OpenFGAServiceClient_ListStores_Call struct {
	*mock.Call
}

OpenFGAServiceClient_ListStores_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListStores'

func (*OpenFGAServiceClient_ListStores_Call) Return

func (*OpenFGAServiceClient_ListStores_Call) Run

type OpenFGAServiceClient_ListUsers_Call

type OpenFGAServiceClient_ListUsers_Call struct {
	*mock.Call
}

OpenFGAServiceClient_ListUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUsers'

func (*OpenFGAServiceClient_ListUsers_Call) Return

func (*OpenFGAServiceClient_ListUsers_Call) Run

type OpenFGAServiceClient_ReadAssertions_Call

type OpenFGAServiceClient_ReadAssertions_Call struct {
	*mock.Call
}

OpenFGAServiceClient_ReadAssertions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadAssertions'

func (*OpenFGAServiceClient_ReadAssertions_Call) Return

func (*OpenFGAServiceClient_ReadAssertions_Call) Run

type OpenFGAServiceClient_ReadAuthorizationModel_Call

type OpenFGAServiceClient_ReadAuthorizationModel_Call struct {
	*mock.Call
}

OpenFGAServiceClient_ReadAuthorizationModel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadAuthorizationModel'

func (*OpenFGAServiceClient_ReadAuthorizationModel_Call) Run

type OpenFGAServiceClient_ReadAuthorizationModels_Call

type OpenFGAServiceClient_ReadAuthorizationModels_Call struct {
	*mock.Call
}

OpenFGAServiceClient_ReadAuthorizationModels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadAuthorizationModels'

func (*OpenFGAServiceClient_ReadAuthorizationModels_Call) Run

type OpenFGAServiceClient_ReadChanges_Call

type OpenFGAServiceClient_ReadChanges_Call struct {
	*mock.Call
}

OpenFGAServiceClient_ReadChanges_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadChanges'

func (*OpenFGAServiceClient_ReadChanges_Call) Return

func (*OpenFGAServiceClient_ReadChanges_Call) Run

type OpenFGAServiceClient_Read_Call

type OpenFGAServiceClient_Read_Call struct {
	*mock.Call
}

OpenFGAServiceClient_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'

func (*OpenFGAServiceClient_Read_Call) Return

func (*OpenFGAServiceClient_Read_Call) Run

func (*OpenFGAServiceClient_Read_Call) RunAndReturn

type OpenFGAServiceClient_StreamedListObjects_Call

type OpenFGAServiceClient_StreamedListObjects_Call struct {
	*mock.Call
}

OpenFGAServiceClient_StreamedListObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamedListObjects'

func (*OpenFGAServiceClient_StreamedListObjects_Call) Run

type OpenFGAServiceClient_UpdateStore_Call

type OpenFGAServiceClient_UpdateStore_Call struct {
	*mock.Call
}

OpenFGAServiceClient_UpdateStore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStore'

func (*OpenFGAServiceClient_UpdateStore_Call) Return

func (*OpenFGAServiceClient_UpdateStore_Call) Run

type OpenFGAServiceClient_WriteAssertions_Call

type OpenFGAServiceClient_WriteAssertions_Call struct {
	*mock.Call
}

OpenFGAServiceClient_WriteAssertions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteAssertions'

func (*OpenFGAServiceClient_WriteAssertions_Call) Return

func (*OpenFGAServiceClient_WriteAssertions_Call) Run

type OpenFGAServiceClient_WriteAuthorizationModel_Call

type OpenFGAServiceClient_WriteAuthorizationModel_Call struct {
	*mock.Call
}

OpenFGAServiceClient_WriteAuthorizationModel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteAuthorizationModel'

func (*OpenFGAServiceClient_WriteAuthorizationModel_Call) Run

type OpenFGAServiceClient_Write_Call

type OpenFGAServiceClient_Write_Call struct {
	*mock.Call
}

OpenFGAServiceClient_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'

func (*OpenFGAServiceClient_Write_Call) Return

func (*OpenFGAServiceClient_Write_Call) Run

Jump to

Keyboard shortcuts

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