Documentation ¶
Index ¶
- type FGAStoreHelper
- func (_m *FGAStoreHelper) EXPECT() *FGAStoreHelper_Expecter
- func (_m *FGAStoreHelper) GetModelIDForTenant(ctx context.Context, conn openfgav1.OpenFGAServiceClient, tenantID string) (string, error)
- func (_m *FGAStoreHelper) GetStoreIDForTenant(ctx context.Context, conn openfgav1.OpenFGAServiceClient, tenantID string) (string, error)
- func (_m *FGAStoreHelper) IsDuplicateWriteError(err error) bool
- type FGAStoreHelper_Expecter
- func (_e *FGAStoreHelper_Expecter) GetModelIDForTenant(ctx interface{}, conn interface{}, tenantID interface{}) *FGAStoreHelper_GetModelIDForTenant_Call
- func (_e *FGAStoreHelper_Expecter) GetStoreIDForTenant(ctx interface{}, conn interface{}, tenantID interface{}) *FGAStoreHelper_GetStoreIDForTenant_Call
- func (_e *FGAStoreHelper_Expecter) IsDuplicateWriteError(err interface{}) *FGAStoreHelper_IsDuplicateWriteError_Call
- type FGAStoreHelper_GetModelIDForTenant_Call
- func (_c *FGAStoreHelper_GetModelIDForTenant_Call) Return(_a0 string, _a1 error) *FGAStoreHelper_GetModelIDForTenant_Call
- func (_c *FGAStoreHelper_GetModelIDForTenant_Call) Run(...) *FGAStoreHelper_GetModelIDForTenant_Call
- func (_c *FGAStoreHelper_GetModelIDForTenant_Call) RunAndReturn(...) *FGAStoreHelper_GetModelIDForTenant_Call
- type FGAStoreHelper_GetStoreIDForTenant_Call
- func (_c *FGAStoreHelper_GetStoreIDForTenant_Call) Return(_a0 string, _a1 error) *FGAStoreHelper_GetStoreIDForTenant_Call
- func (_c *FGAStoreHelper_GetStoreIDForTenant_Call) Run(...) *FGAStoreHelper_GetStoreIDForTenant_Call
- func (_c *FGAStoreHelper_GetStoreIDForTenant_Call) RunAndReturn(...) *FGAStoreHelper_GetStoreIDForTenant_Call
- type FGAStoreHelper_IsDuplicateWriteError_Call
- func (_c *FGAStoreHelper_IsDuplicateWriteError_Call) Return(_a0 bool) *FGAStoreHelper_IsDuplicateWriteError_Call
- func (_c *FGAStoreHelper_IsDuplicateWriteError_Call) Run(run func(err error)) *FGAStoreHelper_IsDuplicateWriteError_Call
- func (_c *FGAStoreHelper_IsDuplicateWriteError_Call) RunAndReturn(run func(error) bool) *FGAStoreHelper_IsDuplicateWriteError_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FGAStoreHelper ¶
FGAStoreHelper is an autogenerated mock type for the FGAStoreHelper type
func NewFGAStoreHelper ¶
func NewFGAStoreHelper(t interface { mock.TestingT Cleanup(func()) }) *FGAStoreHelper
NewFGAStoreHelper creates a new instance of FGAStoreHelper. 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 (*FGAStoreHelper) EXPECT ¶
func (_m *FGAStoreHelper) EXPECT() *FGAStoreHelper_Expecter
func (*FGAStoreHelper) GetModelIDForTenant ¶
func (_m *FGAStoreHelper) GetModelIDForTenant(ctx context.Context, conn openfgav1.OpenFGAServiceClient, tenantID string) (string, error)
GetModelIDForTenant provides a mock function with given fields: ctx, conn, tenantID
func (*FGAStoreHelper) GetStoreIDForTenant ¶
func (_m *FGAStoreHelper) GetStoreIDForTenant(ctx context.Context, conn openfgav1.OpenFGAServiceClient, tenantID string) (string, error)
GetStoreIDForTenant provides a mock function with given fields: ctx, conn, tenantID
func (*FGAStoreHelper) IsDuplicateWriteError ¶
func (_m *FGAStoreHelper) IsDuplicateWriteError(err error) bool
IsDuplicateWriteError provides a mock function with given fields: err
type FGAStoreHelper_Expecter ¶
type FGAStoreHelper_Expecter struct {
// contains filtered or unexported fields
}
func (*FGAStoreHelper_Expecter) GetModelIDForTenant ¶
func (_e *FGAStoreHelper_Expecter) GetModelIDForTenant(ctx interface{}, conn interface{}, tenantID interface{}) *FGAStoreHelper_GetModelIDForTenant_Call
GetModelIDForTenant is a helper method to define mock.On call
- ctx context.Context
- conn openfgav1.OpenFGAServiceClient
- tenantID string
func (*FGAStoreHelper_Expecter) GetStoreIDForTenant ¶
func (_e *FGAStoreHelper_Expecter) GetStoreIDForTenant(ctx interface{}, conn interface{}, tenantID interface{}) *FGAStoreHelper_GetStoreIDForTenant_Call
GetStoreIDForTenant is a helper method to define mock.On call
- ctx context.Context
- conn openfgav1.OpenFGAServiceClient
- tenantID string
func (*FGAStoreHelper_Expecter) IsDuplicateWriteError ¶
func (_e *FGAStoreHelper_Expecter) IsDuplicateWriteError(err interface{}) *FGAStoreHelper_IsDuplicateWriteError_Call
IsDuplicateWriteError is a helper method to define mock.On call
- err error
type FGAStoreHelper_GetModelIDForTenant_Call ¶
FGAStoreHelper_GetModelIDForTenant_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetModelIDForTenant'
func (*FGAStoreHelper_GetModelIDForTenant_Call) Return ¶
func (_c *FGAStoreHelper_GetModelIDForTenant_Call) Return(_a0 string, _a1 error) *FGAStoreHelper_GetModelIDForTenant_Call
func (*FGAStoreHelper_GetModelIDForTenant_Call) Run ¶
func (_c *FGAStoreHelper_GetModelIDForTenant_Call) Run(run func(ctx context.Context, conn openfgav1.OpenFGAServiceClient, tenantID string)) *FGAStoreHelper_GetModelIDForTenant_Call
func (*FGAStoreHelper_GetModelIDForTenant_Call) RunAndReturn ¶
func (_c *FGAStoreHelper_GetModelIDForTenant_Call) RunAndReturn(run func(context.Context, openfgav1.OpenFGAServiceClient, string) (string, error)) *FGAStoreHelper_GetModelIDForTenant_Call
type FGAStoreHelper_GetStoreIDForTenant_Call ¶
FGAStoreHelper_GetStoreIDForTenant_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStoreIDForTenant'
func (*FGAStoreHelper_GetStoreIDForTenant_Call) Return ¶
func (_c *FGAStoreHelper_GetStoreIDForTenant_Call) Return(_a0 string, _a1 error) *FGAStoreHelper_GetStoreIDForTenant_Call
func (*FGAStoreHelper_GetStoreIDForTenant_Call) Run ¶
func (_c *FGAStoreHelper_GetStoreIDForTenant_Call) Run(run func(ctx context.Context, conn openfgav1.OpenFGAServiceClient, tenantID string)) *FGAStoreHelper_GetStoreIDForTenant_Call
func (*FGAStoreHelper_GetStoreIDForTenant_Call) RunAndReturn ¶
func (_c *FGAStoreHelper_GetStoreIDForTenant_Call) RunAndReturn(run func(context.Context, openfgav1.OpenFGAServiceClient, string) (string, error)) *FGAStoreHelper_GetStoreIDForTenant_Call
type FGAStoreHelper_IsDuplicateWriteError_Call ¶
FGAStoreHelper_IsDuplicateWriteError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsDuplicateWriteError'
func (*FGAStoreHelper_IsDuplicateWriteError_Call) Return ¶
func (_c *FGAStoreHelper_IsDuplicateWriteError_Call) Return(_a0 bool) *FGAStoreHelper_IsDuplicateWriteError_Call
func (*FGAStoreHelper_IsDuplicateWriteError_Call) Run ¶
func (_c *FGAStoreHelper_IsDuplicateWriteError_Call) Run(run func(err error)) *FGAStoreHelper_IsDuplicateWriteError_Call
func (*FGAStoreHelper_IsDuplicateWriteError_Call) RunAndReturn ¶
func (_c *FGAStoreHelper_IsDuplicateWriteError_Call) RunAndReturn(run func(error) bool) *FGAStoreHelper_IsDuplicateWriteError_Call