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
- type FgaEvents
- type FgaEvents_Expecter
- type FgaEvents_UserRoleChanged_Call
- type InviteManger
- type InviteManger_DeleteInvitesForEmail_Call
- func (_c *InviteManger_DeleteInvitesForEmail_Call) Return(_a0 error) *InviteManger_DeleteInvitesForEmail_Call
- func (_c *InviteManger_DeleteInvitesForEmail_Call) Run(run func(ctx context.Context, tenantID string, email string)) *InviteManger_DeleteInvitesForEmail_Call
- func (_c *InviteManger_DeleteInvitesForEmail_Call) RunAndReturn(run func(context.Context, string, string) error) *InviteManger_DeleteInvitesForEmail_Call
- type InviteManger_Expecter
- func (_e *InviteManger_Expecter) DeleteInvitesForEmail(ctx interface{}, tenantID interface{}, email interface{}) *InviteManger_DeleteInvitesForEmail_Call
- func (_e *InviteManger_Expecter) GetInvitesForEmail(ctx interface{}, tenantID interface{}, email interface{}) *InviteManger_GetInvitesForEmail_Call
- type InviteManger_GetInvitesForEmail_Call
- func (_c *InviteManger_GetInvitesForEmail_Call) Return(_a0 []db.Invite, _a1 error) *InviteManger_GetInvitesForEmail_Call
- func (_c *InviteManger_GetInvitesForEmail_Call) Run(run func(ctx context.Context, tenantID string, email string)) *InviteManger_GetInvitesForEmail_Call
- func (_c *InviteManger_GetInvitesForEmail_Call) RunAndReturn(run func(context.Context, string, string) ([]db.Invite, error)) *InviteManger_GetInvitesForEmail_Call
- type OpenFGAServiceClient
- func (_m *OpenFGAServiceClient) BatchCheck(ctx context.Context, in *openfgav1.BatchCheckRequest, opts ...grpc.CallOption) (*openfgav1.BatchCheckResponse, error)
- func (_m *OpenFGAServiceClient) Check(ctx context.Context, in *openfgav1.CheckRequest, opts ...grpc.CallOption) (*openfgav1.CheckResponse, error)
- func (_m *OpenFGAServiceClient) CreateStore(ctx context.Context, in *openfgav1.CreateStoreRequest, opts ...grpc.CallOption) (*openfgav1.CreateStoreResponse, error)
- func (_m *OpenFGAServiceClient) DeleteStore(ctx context.Context, in *openfgav1.DeleteStoreRequest, opts ...grpc.CallOption) (*openfgav1.DeleteStoreResponse, error)
- func (_m *OpenFGAServiceClient) EXPECT() *OpenFGAServiceClient_Expecter
- func (_m *OpenFGAServiceClient) Expand(ctx context.Context, in *openfgav1.ExpandRequest, opts ...grpc.CallOption) (*openfgav1.ExpandResponse, error)
- func (_m *OpenFGAServiceClient) GetStore(ctx context.Context, in *openfgav1.GetStoreRequest, opts ...grpc.CallOption) (*openfgav1.GetStoreResponse, error)
- func (_m *OpenFGAServiceClient) ListObjects(ctx context.Context, in *openfgav1.ListObjectsRequest, opts ...grpc.CallOption) (*openfgav1.ListObjectsResponse, error)
- func (_m *OpenFGAServiceClient) ListStores(ctx context.Context, in *openfgav1.ListStoresRequest, opts ...grpc.CallOption) (*openfgav1.ListStoresResponse, error)
- func (_m *OpenFGAServiceClient) ListUsers(ctx context.Context, in *openfgav1.ListUsersRequest, opts ...grpc.CallOption) (*openfgav1.ListUsersResponse, error)
- func (_m *OpenFGAServiceClient) Read(ctx context.Context, in *openfgav1.ReadRequest, opts ...grpc.CallOption) (*openfgav1.ReadResponse, error)
- func (_m *OpenFGAServiceClient) ReadAssertions(ctx context.Context, in *openfgav1.ReadAssertionsRequest, ...) (*openfgav1.ReadAssertionsResponse, error)
- func (_m *OpenFGAServiceClient) ReadAuthorizationModel(ctx context.Context, in *openfgav1.ReadAuthorizationModelRequest, ...) (*openfgav1.ReadAuthorizationModelResponse, error)
- func (_m *OpenFGAServiceClient) ReadAuthorizationModels(ctx context.Context, in *openfgav1.ReadAuthorizationModelsRequest, ...) (*openfgav1.ReadAuthorizationModelsResponse, error)
- func (_m *OpenFGAServiceClient) ReadChanges(ctx context.Context, in *openfgav1.ReadChangesRequest, opts ...grpc.CallOption) (*openfgav1.ReadChangesResponse, error)
- func (_m *OpenFGAServiceClient) StreamedListObjects(ctx context.Context, in *openfgav1.StreamedListObjectsRequest, ...) (openfgav1.OpenFGAService_StreamedListObjectsClient, error)
- func (_m *OpenFGAServiceClient) UpdateStore(ctx context.Context, in *openfgav1.UpdateStoreRequest, opts ...grpc.CallOption) (*openfgav1.UpdateStoreResponse, error)
- func (_m *OpenFGAServiceClient) Write(ctx context.Context, in *openfgav1.WriteRequest, opts ...grpc.CallOption) (*openfgav1.WriteResponse, error)
- func (_m *OpenFGAServiceClient) WriteAssertions(ctx context.Context, in *openfgav1.WriteAssertionsRequest, ...) (*openfgav1.WriteAssertionsResponse, error)
- func (_m *OpenFGAServiceClient) WriteAuthorizationModel(ctx context.Context, in *openfgav1.WriteAuthorizationModelRequest, ...) (*openfgav1.WriteAuthorizationModelResponse, error)
- type OpenFGAServiceClient_BatchCheck_Call
- func (_c *OpenFGAServiceClient_BatchCheck_Call) Return(_a0 *openfgav1.BatchCheckResponse, _a1 error) *OpenFGAServiceClient_BatchCheck_Call
- func (_c *OpenFGAServiceClient_BatchCheck_Call) Run(...) *OpenFGAServiceClient_BatchCheck_Call
- func (_c *OpenFGAServiceClient_BatchCheck_Call) RunAndReturn(...) *OpenFGAServiceClient_BatchCheck_Call
- type OpenFGAServiceClient_Check_Call
- func (_c *OpenFGAServiceClient_Check_Call) Return(_a0 *openfgav1.CheckResponse, _a1 error) *OpenFGAServiceClient_Check_Call
- func (_c *OpenFGAServiceClient_Check_Call) Run(...) *OpenFGAServiceClient_Check_Call
- func (_c *OpenFGAServiceClient_Check_Call) RunAndReturn(...) *OpenFGAServiceClient_Check_Call
- type OpenFGAServiceClient_CreateStore_Call
- func (_c *OpenFGAServiceClient_CreateStore_Call) Return(_a0 *openfgav1.CreateStoreResponse, _a1 error) *OpenFGAServiceClient_CreateStore_Call
- func (_c *OpenFGAServiceClient_CreateStore_Call) Run(...) *OpenFGAServiceClient_CreateStore_Call
- func (_c *OpenFGAServiceClient_CreateStore_Call) RunAndReturn(...) *OpenFGAServiceClient_CreateStore_Call
- type OpenFGAServiceClient_DeleteStore_Call
- func (_c *OpenFGAServiceClient_DeleteStore_Call) Return(_a0 *openfgav1.DeleteStoreResponse, _a1 error) *OpenFGAServiceClient_DeleteStore_Call
- func (_c *OpenFGAServiceClient_DeleteStore_Call) Run(...) *OpenFGAServiceClient_DeleteStore_Call
- func (_c *OpenFGAServiceClient_DeleteStore_Call) RunAndReturn(...) *OpenFGAServiceClient_DeleteStore_Call
- type OpenFGAServiceClient_Expand_Call
- func (_c *OpenFGAServiceClient_Expand_Call) Return(_a0 *openfgav1.ExpandResponse, _a1 error) *OpenFGAServiceClient_Expand_Call
- func (_c *OpenFGAServiceClient_Expand_Call) Run(...) *OpenFGAServiceClient_Expand_Call
- func (_c *OpenFGAServiceClient_Expand_Call) RunAndReturn(...) *OpenFGAServiceClient_Expand_Call
- type OpenFGAServiceClient_Expecter
- func (_e *OpenFGAServiceClient_Expecter) BatchCheck(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_BatchCheck_Call
- func (_e *OpenFGAServiceClient_Expecter) Check(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_Check_Call
- func (_e *OpenFGAServiceClient_Expecter) CreateStore(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_CreateStore_Call
- func (_e *OpenFGAServiceClient_Expecter) DeleteStore(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_DeleteStore_Call
- func (_e *OpenFGAServiceClient_Expecter) Expand(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_Expand_Call
- func (_e *OpenFGAServiceClient_Expecter) GetStore(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_GetStore_Call
- func (_e *OpenFGAServiceClient_Expecter) ListObjects(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ListObjects_Call
- func (_e *OpenFGAServiceClient_Expecter) ListStores(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ListStores_Call
- func (_e *OpenFGAServiceClient_Expecter) ListUsers(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ListUsers_Call
- func (_e *OpenFGAServiceClient_Expecter) Read(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_Read_Call
- func (_e *OpenFGAServiceClient_Expecter) ReadAssertions(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ReadAssertions_Call
- func (_e *OpenFGAServiceClient_Expecter) ReadAuthorizationModel(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ReadAuthorizationModel_Call
- func (_e *OpenFGAServiceClient_Expecter) ReadAuthorizationModels(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ReadAuthorizationModels_Call
- func (_e *OpenFGAServiceClient_Expecter) ReadChanges(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ReadChanges_Call
- func (_e *OpenFGAServiceClient_Expecter) StreamedListObjects(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_StreamedListObjects_Call
- func (_e *OpenFGAServiceClient_Expecter) UpdateStore(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_UpdateStore_Call
- func (_e *OpenFGAServiceClient_Expecter) Write(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_Write_Call
- func (_e *OpenFGAServiceClient_Expecter) WriteAssertions(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_WriteAssertions_Call
- func (_e *OpenFGAServiceClient_Expecter) WriteAuthorizationModel(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_WriteAuthorizationModel_Call
- type OpenFGAServiceClient_GetStore_Call
- func (_c *OpenFGAServiceClient_GetStore_Call) Return(_a0 *openfgav1.GetStoreResponse, _a1 error) *OpenFGAServiceClient_GetStore_Call
- func (_c *OpenFGAServiceClient_GetStore_Call) Run(...) *OpenFGAServiceClient_GetStore_Call
- func (_c *OpenFGAServiceClient_GetStore_Call) RunAndReturn(...) *OpenFGAServiceClient_GetStore_Call
- type OpenFGAServiceClient_ListObjects_Call
- func (_c *OpenFGAServiceClient_ListObjects_Call) Return(_a0 *openfgav1.ListObjectsResponse, _a1 error) *OpenFGAServiceClient_ListObjects_Call
- func (_c *OpenFGAServiceClient_ListObjects_Call) Run(...) *OpenFGAServiceClient_ListObjects_Call
- func (_c *OpenFGAServiceClient_ListObjects_Call) RunAndReturn(...) *OpenFGAServiceClient_ListObjects_Call
- type OpenFGAServiceClient_ListStores_Call
- func (_c *OpenFGAServiceClient_ListStores_Call) Return(_a0 *openfgav1.ListStoresResponse, _a1 error) *OpenFGAServiceClient_ListStores_Call
- func (_c *OpenFGAServiceClient_ListStores_Call) Run(...) *OpenFGAServiceClient_ListStores_Call
- func (_c *OpenFGAServiceClient_ListStores_Call) RunAndReturn(...) *OpenFGAServiceClient_ListStores_Call
- type OpenFGAServiceClient_ListUsers_Call
- func (_c *OpenFGAServiceClient_ListUsers_Call) Return(_a0 *openfgav1.ListUsersResponse, _a1 error) *OpenFGAServiceClient_ListUsers_Call
- func (_c *OpenFGAServiceClient_ListUsers_Call) Run(...) *OpenFGAServiceClient_ListUsers_Call
- func (_c *OpenFGAServiceClient_ListUsers_Call) RunAndReturn(...) *OpenFGAServiceClient_ListUsers_Call
- type OpenFGAServiceClient_ReadAssertions_Call
- func (_c *OpenFGAServiceClient_ReadAssertions_Call) Return(_a0 *openfgav1.ReadAssertionsResponse, _a1 error) *OpenFGAServiceClient_ReadAssertions_Call
- func (_c *OpenFGAServiceClient_ReadAssertions_Call) Run(run func(ctx context.Context, in *openfgav1.ReadAssertionsRequest, ...)) *OpenFGAServiceClient_ReadAssertions_Call
- func (_c *OpenFGAServiceClient_ReadAssertions_Call) RunAndReturn(...) *OpenFGAServiceClient_ReadAssertions_Call
- type OpenFGAServiceClient_ReadAuthorizationModel_Call
- func (_c *OpenFGAServiceClient_ReadAuthorizationModel_Call) Return(_a0 *openfgav1.ReadAuthorizationModelResponse, _a1 error) *OpenFGAServiceClient_ReadAuthorizationModel_Call
- func (_c *OpenFGAServiceClient_ReadAuthorizationModel_Call) Run(...) *OpenFGAServiceClient_ReadAuthorizationModel_Call
- func (_c *OpenFGAServiceClient_ReadAuthorizationModel_Call) RunAndReturn(...) *OpenFGAServiceClient_ReadAuthorizationModel_Call
- type OpenFGAServiceClient_ReadAuthorizationModels_Call
- func (_c *OpenFGAServiceClient_ReadAuthorizationModels_Call) Return(_a0 *openfgav1.ReadAuthorizationModelsResponse, _a1 error) *OpenFGAServiceClient_ReadAuthorizationModels_Call
- func (_c *OpenFGAServiceClient_ReadAuthorizationModels_Call) Run(...) *OpenFGAServiceClient_ReadAuthorizationModels_Call
- func (_c *OpenFGAServiceClient_ReadAuthorizationModels_Call) RunAndReturn(...) *OpenFGAServiceClient_ReadAuthorizationModels_Call
- type OpenFGAServiceClient_ReadChanges_Call
- func (_c *OpenFGAServiceClient_ReadChanges_Call) Return(_a0 *openfgav1.ReadChangesResponse, _a1 error) *OpenFGAServiceClient_ReadChanges_Call
- func (_c *OpenFGAServiceClient_ReadChanges_Call) Run(...) *OpenFGAServiceClient_ReadChanges_Call
- func (_c *OpenFGAServiceClient_ReadChanges_Call) RunAndReturn(...) *OpenFGAServiceClient_ReadChanges_Call
- type OpenFGAServiceClient_Read_Call
- type OpenFGAServiceClient_StreamedListObjects_Call
- func (_c *OpenFGAServiceClient_StreamedListObjects_Call) Return(_a0 openfgav1.OpenFGAService_StreamedListObjectsClient, _a1 error) *OpenFGAServiceClient_StreamedListObjects_Call
- func (_c *OpenFGAServiceClient_StreamedListObjects_Call) Run(run func(ctx context.Context, in *openfgav1.StreamedListObjectsRequest, ...)) *OpenFGAServiceClient_StreamedListObjects_Call
- func (_c *OpenFGAServiceClient_StreamedListObjects_Call) RunAndReturn(...) *OpenFGAServiceClient_StreamedListObjects_Call
- type OpenFGAServiceClient_UpdateStore_Call
- func (_c *OpenFGAServiceClient_UpdateStore_Call) Return(_a0 *openfgav1.UpdateStoreResponse, _a1 error) *OpenFGAServiceClient_UpdateStore_Call
- func (_c *OpenFGAServiceClient_UpdateStore_Call) Run(...) *OpenFGAServiceClient_UpdateStore_Call
- func (_c *OpenFGAServiceClient_UpdateStore_Call) RunAndReturn(...) *OpenFGAServiceClient_UpdateStore_Call
- type OpenFGAServiceClient_WriteAssertions_Call
- func (_c *OpenFGAServiceClient_WriteAssertions_Call) Return(_a0 *openfgav1.WriteAssertionsResponse, _a1 error) *OpenFGAServiceClient_WriteAssertions_Call
- func (_c *OpenFGAServiceClient_WriteAssertions_Call) Run(run func(ctx context.Context, in *openfgav1.WriteAssertionsRequest, ...)) *OpenFGAServiceClient_WriteAssertions_Call
- func (_c *OpenFGAServiceClient_WriteAssertions_Call) RunAndReturn(...) *OpenFGAServiceClient_WriteAssertions_Call
- type OpenFGAServiceClient_WriteAuthorizationModel_Call
- func (_c *OpenFGAServiceClient_WriteAuthorizationModel_Call) Return(_a0 *openfgav1.WriteAuthorizationModelResponse, _a1 error) *OpenFGAServiceClient_WriteAuthorizationModel_Call
- func (_c *OpenFGAServiceClient_WriteAuthorizationModel_Call) Run(...) *OpenFGAServiceClient_WriteAuthorizationModel_Call
- func (_c *OpenFGAServiceClient_WriteAuthorizationModel_Call) RunAndReturn(...) *OpenFGAServiceClient_WriteAuthorizationModel_Call
- type OpenFGAServiceClient_Write_Call
- func (_c *OpenFGAServiceClient_Write_Call) Return(_a0 *openfgav1.WriteResponse, _a1 error) *OpenFGAServiceClient_Write_Call
- func (_c *OpenFGAServiceClient_Write_Call) Run(...) *OpenFGAServiceClient_Write_Call
- func (_c *OpenFGAServiceClient_Write_Call) RunAndReturn(...) *OpenFGAServiceClient_Write_Call
- type Service
- func (_m *Service) AssignRoleBindings(ctx context.Context, tenantID string, entityType string, entityID string, ...) error
- func (_m *Service) EXPECT() *Service_Expecter
- func (_m *Service) GetPermissionsForRole(ctx context.Context, tenantID string, entityType string, ...) ([]*graph.Permission, error)
- func (_m *Service) RemoveFromEntity(ctx context.Context, tenantID string, entityType string, entityID string, ...) error
- func (_m *Service) UserIdFromToken(token jwt.WebToken, userIdClaim string) string
- func (_m *Service) UsersForEntity(ctx context.Context, tenantID string, entityID string, entityType string) (types.UserIDToRoles, error)
- func (_m *Service) UsersForEntityRolefilter(ctx context.Context, tenantID string, entityID string, entityType string, ...) (types.UserIDToRoles, error)
- type Service_AssignRoleBindings_Call
- func (_c *Service_AssignRoleBindings_Call) Return(_a0 error) *Service_AssignRoleBindings_Call
- func (_c *Service_AssignRoleBindings_Call) Run(...) *Service_AssignRoleBindings_Call
- func (_c *Service_AssignRoleBindings_Call) RunAndReturn(run func(context.Context, string, string, string, []*graph.Change) error) *Service_AssignRoleBindings_Call
- type Service_Expecter
- func (_e *Service_Expecter) AssignRoleBindings(ctx interface{}, tenantID interface{}, entityType interface{}, ...) *Service_AssignRoleBindings_Call
- func (_e *Service_Expecter) GetPermissionsForRole(ctx interface{}, tenantID interface{}, entityType interface{}, ...) *Service_GetPermissionsForRole_Call
- func (_e *Service_Expecter) RemoveFromEntity(ctx interface{}, tenantID interface{}, entityType interface{}, ...) *Service_RemoveFromEntity_Call
- func (_e *Service_Expecter) UserIdFromToken(token interface{}, userIdClaim interface{}) *Service_UserIdFromToken_Call
- func (_e *Service_Expecter) UsersForEntity(ctx interface{}, tenantID interface{}, entityID interface{}, ...) *Service_UsersForEntity_Call
- func (_e *Service_Expecter) UsersForEntityRolefilter(ctx interface{}, tenantID interface{}, entityID interface{}, ...) *Service_UsersForEntityRolefilter_Call
- type Service_GetPermissionsForRole_Call
- func (_c *Service_GetPermissionsForRole_Call) Return(_a0 []*graph.Permission, _a1 error) *Service_GetPermissionsForRole_Call
- func (_c *Service_GetPermissionsForRole_Call) Run(run func(ctx context.Context, tenantID string, entityType string, ...)) *Service_GetPermissionsForRole_Call
- func (_c *Service_GetPermissionsForRole_Call) RunAndReturn(run func(context.Context, string, string, string) ([]*graph.Permission, error)) *Service_GetPermissionsForRole_Call
- type Service_RemoveFromEntity_Call
- func (_c *Service_RemoveFromEntity_Call) Return(_a0 error) *Service_RemoveFromEntity_Call
- func (_c *Service_RemoveFromEntity_Call) Run(...) *Service_RemoveFromEntity_Call
- func (_c *Service_RemoveFromEntity_Call) RunAndReturn(run func(context.Context, string, string, string, string) error) *Service_RemoveFromEntity_Call
- type Service_UserIdFromToken_Call
- func (_c *Service_UserIdFromToken_Call) Return(_a0 string) *Service_UserIdFromToken_Call
- func (_c *Service_UserIdFromToken_Call) Run(run func(token jwt.WebToken, userIdClaim string)) *Service_UserIdFromToken_Call
- func (_c *Service_UserIdFromToken_Call) RunAndReturn(run func(jwt.WebToken, string) string) *Service_UserIdFromToken_Call
- type Service_UsersForEntityRolefilter_Call
- func (_c *Service_UsersForEntityRolefilter_Call) Return(_a0 types.UserIDToRoles, _a1 error) *Service_UsersForEntityRolefilter_Call
- func (_c *Service_UsersForEntityRolefilter_Call) Run(...) *Service_UsersForEntityRolefilter_Call
- func (_c *Service_UsersForEntityRolefilter_Call) RunAndReturn(...) *Service_UsersForEntityRolefilter_Call
- type Service_UsersForEntity_Call
- func (_c *Service_UsersForEntity_Call) Return(_a0 types.UserIDToRoles, _a1 error) *Service_UsersForEntity_Call
- func (_c *Service_UsersForEntity_Call) Run(...) *Service_UsersForEntity_Call
- func (_c *Service_UsersForEntity_Call) RunAndReturn(run func(context.Context, string, string, string) (types.UserIDToRoles, error)) *Service_UsersForEntity_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
type FgaEvents ¶
FgaEvents is an autogenerated mock type for the FgaEvents type
func NewFgaEvents ¶
NewFgaEvents creates a new instance of FgaEvents. 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 (*FgaEvents) EXPECT ¶
func (_m *FgaEvents) EXPECT() *FgaEvents_Expecter
func (*FgaEvents) UserRoleChanged ¶
func (_m *FgaEvents) UserRoleChanged(ctx context.Context, tenantID string, entityID string, entityType string, userID string, oldRoles []string, newRoles []string) error
UserRoleChanged provides a mock function with given fields: ctx, tenantID, entityID, entityType, userID, oldRoles, newRoles
type FgaEvents_Expecter ¶
type FgaEvents_Expecter struct {
// contains filtered or unexported fields
}
func (*FgaEvents_Expecter) UserRoleChanged ¶
func (_e *FgaEvents_Expecter) UserRoleChanged(ctx interface{}, tenantID interface{}, entityID interface{}, entityType interface{}, userID interface{}, oldRoles interface{}, newRoles interface{}) *FgaEvents_UserRoleChanged_Call
UserRoleChanged is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- entityID string
- entityType string
- userID string
- oldRoles []string
- newRoles []string
type FgaEvents_UserRoleChanged_Call ¶
FgaEvents_UserRoleChanged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserRoleChanged'
func (*FgaEvents_UserRoleChanged_Call) Return ¶
func (_c *FgaEvents_UserRoleChanged_Call) Return(_a0 error) *FgaEvents_UserRoleChanged_Call
func (*FgaEvents_UserRoleChanged_Call) Run ¶
func (_c *FgaEvents_UserRoleChanged_Call) Run(run func(ctx context.Context, tenantID string, entityID string, entityType string, userID string, oldRoles []string, newRoles []string)) *FgaEvents_UserRoleChanged_Call
func (*FgaEvents_UserRoleChanged_Call) RunAndReturn ¶
type InviteManger ¶
InviteManger is an autogenerated mock type for the InviteManger type
func NewInviteManger ¶
func NewInviteManger(t interface {
mock.TestingT
Cleanup(func())
}) *InviteManger
NewInviteManger creates a new instance of InviteManger. 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 (*InviteManger) DeleteInvitesForEmail ¶
func (_m *InviteManger) DeleteInvitesForEmail(ctx context.Context, tenantID string, email string) error
DeleteInvitesForEmail provides a mock function with given fields: ctx, tenantID, email
func (*InviteManger) EXPECT ¶
func (_m *InviteManger) EXPECT() *InviteManger_Expecter
func (*InviteManger) GetInvitesForEmail ¶
func (_m *InviteManger) GetInvitesForEmail(ctx context.Context, tenantID string, email string) ([]db.Invite, error)
GetInvitesForEmail provides a mock function with given fields: ctx, tenantID, email
type InviteManger_DeleteInvitesForEmail_Call ¶
InviteManger_DeleteInvitesForEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteInvitesForEmail'
func (*InviteManger_DeleteInvitesForEmail_Call) Return ¶
func (_c *InviteManger_DeleteInvitesForEmail_Call) Return(_a0 error) *InviteManger_DeleteInvitesForEmail_Call
func (*InviteManger_DeleteInvitesForEmail_Call) Run ¶
func (_c *InviteManger_DeleteInvitesForEmail_Call) Run(run func(ctx context.Context, tenantID string, email string)) *InviteManger_DeleteInvitesForEmail_Call
func (*InviteManger_DeleteInvitesForEmail_Call) RunAndReturn ¶
func (_c *InviteManger_DeleteInvitesForEmail_Call) RunAndReturn(run func(context.Context, string, string) error) *InviteManger_DeleteInvitesForEmail_Call
type InviteManger_Expecter ¶
type InviteManger_Expecter struct {
// contains filtered or unexported fields
}
func (*InviteManger_Expecter) DeleteInvitesForEmail ¶
func (_e *InviteManger_Expecter) DeleteInvitesForEmail(ctx interface{}, tenantID interface{}, email interface{}) *InviteManger_DeleteInvitesForEmail_Call
DeleteInvitesForEmail is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- email string
func (*InviteManger_Expecter) GetInvitesForEmail ¶
func (_e *InviteManger_Expecter) GetInvitesForEmail(ctx interface{}, tenantID interface{}, email interface{}) *InviteManger_GetInvitesForEmail_Call
GetInvitesForEmail is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- email string
type InviteManger_GetInvitesForEmail_Call ¶
InviteManger_GetInvitesForEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInvitesForEmail'
func (*InviteManger_GetInvitesForEmail_Call) Return ¶
func (_c *InviteManger_GetInvitesForEmail_Call) Return(_a0 []db.Invite, _a1 error) *InviteManger_GetInvitesForEmail_Call
func (*InviteManger_GetInvitesForEmail_Call) Run ¶
func (_c *InviteManger_GetInvitesForEmail_Call) Run(run func(ctx context.Context, tenantID string, email string)) *InviteManger_GetInvitesForEmail_Call
func (*InviteManger_GetInvitesForEmail_Call) RunAndReturn ¶
func (_c *InviteManger_GetInvitesForEmail_Call) RunAndReturn(run func(context.Context, string, string) ([]db.Invite, error)) *InviteManger_GetInvitesForEmail_Call
type OpenFGAServiceClient ¶
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) BatchCheck ¶
func (_m *OpenFGAServiceClient) BatchCheck(ctx context.Context, in *openfgav1.BatchCheckRequest, opts ...grpc.CallOption) (*openfgav1.BatchCheckResponse, error)
BatchCheck provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) Check ¶
func (_m *OpenFGAServiceClient) Check(ctx context.Context, in *openfgav1.CheckRequest, opts ...grpc.CallOption) (*openfgav1.CheckResponse, error)
Check provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) CreateStore ¶
func (_m *OpenFGAServiceClient) CreateStore(ctx context.Context, in *openfgav1.CreateStoreRequest, opts ...grpc.CallOption) (*openfgav1.CreateStoreResponse, error)
CreateStore provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) DeleteStore ¶
func (_m *OpenFGAServiceClient) DeleteStore(ctx context.Context, in *openfgav1.DeleteStoreRequest, opts ...grpc.CallOption) (*openfgav1.DeleteStoreResponse, error)
DeleteStore provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) EXPECT ¶
func (_m *OpenFGAServiceClient) EXPECT() *OpenFGAServiceClient_Expecter
func (*OpenFGAServiceClient) Expand ¶
func (_m *OpenFGAServiceClient) Expand(ctx context.Context, in *openfgav1.ExpandRequest, opts ...grpc.CallOption) (*openfgav1.ExpandResponse, error)
Expand provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) GetStore ¶
func (_m *OpenFGAServiceClient) GetStore(ctx context.Context, in *openfgav1.GetStoreRequest, opts ...grpc.CallOption) (*openfgav1.GetStoreResponse, error)
GetStore provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) ListObjects ¶
func (_m *OpenFGAServiceClient) ListObjects(ctx context.Context, in *openfgav1.ListObjectsRequest, opts ...grpc.CallOption) (*openfgav1.ListObjectsResponse, error)
ListObjects provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) ListStores ¶
func (_m *OpenFGAServiceClient) ListStores(ctx context.Context, in *openfgav1.ListStoresRequest, opts ...grpc.CallOption) (*openfgav1.ListStoresResponse, error)
ListStores provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) ListUsers ¶
func (_m *OpenFGAServiceClient) ListUsers(ctx context.Context, in *openfgav1.ListUsersRequest, opts ...grpc.CallOption) (*openfgav1.ListUsersResponse, error)
ListUsers provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) Read ¶
func (_m *OpenFGAServiceClient) Read(ctx context.Context, in *openfgav1.ReadRequest, opts ...grpc.CallOption) (*openfgav1.ReadResponse, error)
Read provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) ReadAssertions ¶
func (_m *OpenFGAServiceClient) ReadAssertions(ctx context.Context, in *openfgav1.ReadAssertionsRequest, opts ...grpc.CallOption) (*openfgav1.ReadAssertionsResponse, error)
ReadAssertions provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) ReadAuthorizationModel ¶
func (_m *OpenFGAServiceClient) ReadAuthorizationModel(ctx context.Context, in *openfgav1.ReadAuthorizationModelRequest, opts ...grpc.CallOption) (*openfgav1.ReadAuthorizationModelResponse, error)
ReadAuthorizationModel provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) ReadAuthorizationModels ¶
func (_m *OpenFGAServiceClient) ReadAuthorizationModels(ctx context.Context, in *openfgav1.ReadAuthorizationModelsRequest, opts ...grpc.CallOption) (*openfgav1.ReadAuthorizationModelsResponse, error)
ReadAuthorizationModels provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) ReadChanges ¶
func (_m *OpenFGAServiceClient) ReadChanges(ctx context.Context, in *openfgav1.ReadChangesRequest, opts ...grpc.CallOption) (*openfgav1.ReadChangesResponse, error)
ReadChanges provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) StreamedListObjects ¶
func (_m *OpenFGAServiceClient) StreamedListObjects(ctx context.Context, in *openfgav1.StreamedListObjectsRequest, opts ...grpc.CallOption) (openfgav1.OpenFGAService_StreamedListObjectsClient, error)
StreamedListObjects provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) UpdateStore ¶
func (_m *OpenFGAServiceClient) UpdateStore(ctx context.Context, in *openfgav1.UpdateStoreRequest, opts ...grpc.CallOption) (*openfgav1.UpdateStoreResponse, error)
UpdateStore provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) Write ¶
func (_m *OpenFGAServiceClient) Write(ctx context.Context, in *openfgav1.WriteRequest, opts ...grpc.CallOption) (*openfgav1.WriteResponse, error)
Write provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) WriteAssertions ¶
func (_m *OpenFGAServiceClient) WriteAssertions(ctx context.Context, in *openfgav1.WriteAssertionsRequest, opts ...grpc.CallOption) (*openfgav1.WriteAssertionsResponse, error)
WriteAssertions provides a mock function with given fields: ctx, in, opts
func (*OpenFGAServiceClient) WriteAuthorizationModel ¶
func (_m *OpenFGAServiceClient) WriteAuthorizationModel(ctx context.Context, in *openfgav1.WriteAuthorizationModelRequest, opts ...grpc.CallOption) (*openfgav1.WriteAuthorizationModelResponse, error)
WriteAuthorizationModel provides a mock function with given fields: ctx, in, opts
type OpenFGAServiceClient_BatchCheck_Call ¶
OpenFGAServiceClient_BatchCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchCheck'
func (*OpenFGAServiceClient_BatchCheck_Call) Return ¶
func (_c *OpenFGAServiceClient_BatchCheck_Call) Return(_a0 *openfgav1.BatchCheckResponse, _a1 error) *OpenFGAServiceClient_BatchCheck_Call
func (*OpenFGAServiceClient_BatchCheck_Call) Run ¶
func (_c *OpenFGAServiceClient_BatchCheck_Call) Run(run func(ctx context.Context, in *openfgav1.BatchCheckRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_BatchCheck_Call
func (*OpenFGAServiceClient_BatchCheck_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_BatchCheck_Call) RunAndReturn(run func(context.Context, *openfgav1.BatchCheckRequest, ...grpc.CallOption) (*openfgav1.BatchCheckResponse, error)) *OpenFGAServiceClient_BatchCheck_Call
type OpenFGAServiceClient_Check_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 (_c *OpenFGAServiceClient_Check_Call) Return(_a0 *openfgav1.CheckResponse, _a1 error) *OpenFGAServiceClient_Check_Call
func (*OpenFGAServiceClient_Check_Call) Run ¶
func (_c *OpenFGAServiceClient_Check_Call) Run(run func(ctx context.Context, in *openfgav1.CheckRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_Check_Call
func (*OpenFGAServiceClient_Check_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_Check_Call) RunAndReturn(run func(context.Context, *openfgav1.CheckRequest, ...grpc.CallOption) (*openfgav1.CheckResponse, error)) *OpenFGAServiceClient_Check_Call
type OpenFGAServiceClient_CreateStore_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 (_c *OpenFGAServiceClient_CreateStore_Call) Return(_a0 *openfgav1.CreateStoreResponse, _a1 error) *OpenFGAServiceClient_CreateStore_Call
func (*OpenFGAServiceClient_CreateStore_Call) Run ¶
func (_c *OpenFGAServiceClient_CreateStore_Call) Run(run func(ctx context.Context, in *openfgav1.CreateStoreRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_CreateStore_Call
func (*OpenFGAServiceClient_CreateStore_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_CreateStore_Call) RunAndReturn(run func(context.Context, *openfgav1.CreateStoreRequest, ...grpc.CallOption) (*openfgav1.CreateStoreResponse, error)) *OpenFGAServiceClient_CreateStore_Call
type OpenFGAServiceClient_DeleteStore_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 (_c *OpenFGAServiceClient_DeleteStore_Call) Return(_a0 *openfgav1.DeleteStoreResponse, _a1 error) *OpenFGAServiceClient_DeleteStore_Call
func (*OpenFGAServiceClient_DeleteStore_Call) Run ¶
func (_c *OpenFGAServiceClient_DeleteStore_Call) Run(run func(ctx context.Context, in *openfgav1.DeleteStoreRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_DeleteStore_Call
func (*OpenFGAServiceClient_DeleteStore_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_DeleteStore_Call) RunAndReturn(run func(context.Context, *openfgav1.DeleteStoreRequest, ...grpc.CallOption) (*openfgav1.DeleteStoreResponse, error)) *OpenFGAServiceClient_DeleteStore_Call
type OpenFGAServiceClient_Expand_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 (_c *OpenFGAServiceClient_Expand_Call) Return(_a0 *openfgav1.ExpandResponse, _a1 error) *OpenFGAServiceClient_Expand_Call
func (*OpenFGAServiceClient_Expand_Call) Run ¶
func (_c *OpenFGAServiceClient_Expand_Call) Run(run func(ctx context.Context, in *openfgav1.ExpandRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_Expand_Call
func (*OpenFGAServiceClient_Expand_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_Expand_Call) RunAndReturn(run func(context.Context, *openfgav1.ExpandRequest, ...grpc.CallOption) (*openfgav1.ExpandResponse, error)) *OpenFGAServiceClient_Expand_Call
type OpenFGAServiceClient_Expecter ¶
type OpenFGAServiceClient_Expecter struct {
// contains filtered or unexported fields
}
func (*OpenFGAServiceClient_Expecter) BatchCheck ¶
func (_e *OpenFGAServiceClient_Expecter) BatchCheck(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_BatchCheck_Call
BatchCheck is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.BatchCheckRequest
- opts ...grpc.CallOption
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 ¶
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 (_c *OpenFGAServiceClient_GetStore_Call) Return(_a0 *openfgav1.GetStoreResponse, _a1 error) *OpenFGAServiceClient_GetStore_Call
func (*OpenFGAServiceClient_GetStore_Call) Run ¶
func (_c *OpenFGAServiceClient_GetStore_Call) Run(run func(ctx context.Context, in *openfgav1.GetStoreRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_GetStore_Call
func (*OpenFGAServiceClient_GetStore_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_GetStore_Call) RunAndReturn(run func(context.Context, *openfgav1.GetStoreRequest, ...grpc.CallOption) (*openfgav1.GetStoreResponse, error)) *OpenFGAServiceClient_GetStore_Call
type OpenFGAServiceClient_ListObjects_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 (_c *OpenFGAServiceClient_ListObjects_Call) Return(_a0 *openfgav1.ListObjectsResponse, _a1 error) *OpenFGAServiceClient_ListObjects_Call
func (*OpenFGAServiceClient_ListObjects_Call) Run ¶
func (_c *OpenFGAServiceClient_ListObjects_Call) Run(run func(ctx context.Context, in *openfgav1.ListObjectsRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_ListObjects_Call
func (*OpenFGAServiceClient_ListObjects_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_ListObjects_Call) RunAndReturn(run func(context.Context, *openfgav1.ListObjectsRequest, ...grpc.CallOption) (*openfgav1.ListObjectsResponse, error)) *OpenFGAServiceClient_ListObjects_Call
type OpenFGAServiceClient_ListStores_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 (_c *OpenFGAServiceClient_ListStores_Call) Return(_a0 *openfgav1.ListStoresResponse, _a1 error) *OpenFGAServiceClient_ListStores_Call
func (*OpenFGAServiceClient_ListStores_Call) Run ¶
func (_c *OpenFGAServiceClient_ListStores_Call) Run(run func(ctx context.Context, in *openfgav1.ListStoresRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_ListStores_Call
func (*OpenFGAServiceClient_ListStores_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_ListStores_Call) RunAndReturn(run func(context.Context, *openfgav1.ListStoresRequest, ...grpc.CallOption) (*openfgav1.ListStoresResponse, error)) *OpenFGAServiceClient_ListStores_Call
type OpenFGAServiceClient_ListUsers_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 (_c *OpenFGAServiceClient_ListUsers_Call) Return(_a0 *openfgav1.ListUsersResponse, _a1 error) *OpenFGAServiceClient_ListUsers_Call
func (*OpenFGAServiceClient_ListUsers_Call) Run ¶
func (_c *OpenFGAServiceClient_ListUsers_Call) Run(run func(ctx context.Context, in *openfgav1.ListUsersRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_ListUsers_Call
func (*OpenFGAServiceClient_ListUsers_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_ListUsers_Call) RunAndReturn(run func(context.Context, *openfgav1.ListUsersRequest, ...grpc.CallOption) (*openfgav1.ListUsersResponse, error)) *OpenFGAServiceClient_ListUsers_Call
type OpenFGAServiceClient_ReadAssertions_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 (_c *OpenFGAServiceClient_ReadAssertions_Call) Return(_a0 *openfgav1.ReadAssertionsResponse, _a1 error) *OpenFGAServiceClient_ReadAssertions_Call
func (*OpenFGAServiceClient_ReadAssertions_Call) Run ¶
func (_c *OpenFGAServiceClient_ReadAssertions_Call) Run(run func(ctx context.Context, in *openfgav1.ReadAssertionsRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_ReadAssertions_Call
func (*OpenFGAServiceClient_ReadAssertions_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_ReadAssertions_Call) RunAndReturn(run func(context.Context, *openfgav1.ReadAssertionsRequest, ...grpc.CallOption) (*openfgav1.ReadAssertionsResponse, error)) *OpenFGAServiceClient_ReadAssertions_Call
type OpenFGAServiceClient_ReadAuthorizationModel_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 ¶
func (_c *OpenFGAServiceClient_ReadAuthorizationModel_Call) Run(run func(ctx context.Context, in *openfgav1.ReadAuthorizationModelRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_ReadAuthorizationModel_Call
func (*OpenFGAServiceClient_ReadAuthorizationModel_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_ReadAuthorizationModel_Call) RunAndReturn(run func(context.Context, *openfgav1.ReadAuthorizationModelRequest, ...grpc.CallOption) (*openfgav1.ReadAuthorizationModelResponse, error)) *OpenFGAServiceClient_ReadAuthorizationModel_Call
type OpenFGAServiceClient_ReadAuthorizationModels_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 ¶
func (_c *OpenFGAServiceClient_ReadAuthorizationModels_Call) Run(run func(ctx context.Context, in *openfgav1.ReadAuthorizationModelsRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_ReadAuthorizationModels_Call
func (*OpenFGAServiceClient_ReadAuthorizationModels_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_ReadAuthorizationModels_Call) RunAndReturn(run func(context.Context, *openfgav1.ReadAuthorizationModelsRequest, ...grpc.CallOption) (*openfgav1.ReadAuthorizationModelsResponse, error)) *OpenFGAServiceClient_ReadAuthorizationModels_Call
type OpenFGAServiceClient_ReadChanges_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 (_c *OpenFGAServiceClient_ReadChanges_Call) Return(_a0 *openfgav1.ReadChangesResponse, _a1 error) *OpenFGAServiceClient_ReadChanges_Call
func (*OpenFGAServiceClient_ReadChanges_Call) Run ¶
func (_c *OpenFGAServiceClient_ReadChanges_Call) Run(run func(ctx context.Context, in *openfgav1.ReadChangesRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_ReadChanges_Call
func (*OpenFGAServiceClient_ReadChanges_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_ReadChanges_Call) RunAndReturn(run func(context.Context, *openfgav1.ReadChangesRequest, ...grpc.CallOption) (*openfgav1.ReadChangesResponse, error)) *OpenFGAServiceClient_ReadChanges_Call
type OpenFGAServiceClient_Read_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 (_c *OpenFGAServiceClient_Read_Call) Return(_a0 *openfgav1.ReadResponse, _a1 error) *OpenFGAServiceClient_Read_Call
func (*OpenFGAServiceClient_Read_Call) Run ¶
func (_c *OpenFGAServiceClient_Read_Call) Run(run func(ctx context.Context, in *openfgav1.ReadRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_Read_Call
func (*OpenFGAServiceClient_Read_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_Read_Call) RunAndReturn(run func(context.Context, *openfgav1.ReadRequest, ...grpc.CallOption) (*openfgav1.ReadResponse, error)) *OpenFGAServiceClient_Read_Call
type OpenFGAServiceClient_StreamedListObjects_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 ¶
func (_c *OpenFGAServiceClient_StreamedListObjects_Call) Run(run func(ctx context.Context, in *openfgav1.StreamedListObjectsRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_StreamedListObjects_Call
func (*OpenFGAServiceClient_StreamedListObjects_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_StreamedListObjects_Call) RunAndReturn(run func(context.Context, *openfgav1.StreamedListObjectsRequest, ...grpc.CallOption) (openfgav1.OpenFGAService_StreamedListObjectsClient, error)) *OpenFGAServiceClient_StreamedListObjects_Call
type OpenFGAServiceClient_UpdateStore_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 (_c *OpenFGAServiceClient_UpdateStore_Call) Return(_a0 *openfgav1.UpdateStoreResponse, _a1 error) *OpenFGAServiceClient_UpdateStore_Call
func (*OpenFGAServiceClient_UpdateStore_Call) Run ¶
func (_c *OpenFGAServiceClient_UpdateStore_Call) Run(run func(ctx context.Context, in *openfgav1.UpdateStoreRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_UpdateStore_Call
func (*OpenFGAServiceClient_UpdateStore_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_UpdateStore_Call) RunAndReturn(run func(context.Context, *openfgav1.UpdateStoreRequest, ...grpc.CallOption) (*openfgav1.UpdateStoreResponse, error)) *OpenFGAServiceClient_UpdateStore_Call
type OpenFGAServiceClient_WriteAssertions_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 (_c *OpenFGAServiceClient_WriteAssertions_Call) Return(_a0 *openfgav1.WriteAssertionsResponse, _a1 error) *OpenFGAServiceClient_WriteAssertions_Call
func (*OpenFGAServiceClient_WriteAssertions_Call) Run ¶
func (_c *OpenFGAServiceClient_WriteAssertions_Call) Run(run func(ctx context.Context, in *openfgav1.WriteAssertionsRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_WriteAssertions_Call
func (*OpenFGAServiceClient_WriteAssertions_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_WriteAssertions_Call) RunAndReturn(run func(context.Context, *openfgav1.WriteAssertionsRequest, ...grpc.CallOption) (*openfgav1.WriteAssertionsResponse, error)) *OpenFGAServiceClient_WriteAssertions_Call
type OpenFGAServiceClient_WriteAuthorizationModel_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 ¶
func (_c *OpenFGAServiceClient_WriteAuthorizationModel_Call) Run(run func(ctx context.Context, in *openfgav1.WriteAuthorizationModelRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_WriteAuthorizationModel_Call
func (*OpenFGAServiceClient_WriteAuthorizationModel_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_WriteAuthorizationModel_Call) RunAndReturn(run func(context.Context, *openfgav1.WriteAuthorizationModelRequest, ...grpc.CallOption) (*openfgav1.WriteAuthorizationModelResponse, error)) *OpenFGAServiceClient_WriteAuthorizationModel_Call
type OpenFGAServiceClient_Write_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 (_c *OpenFGAServiceClient_Write_Call) Return(_a0 *openfgav1.WriteResponse, _a1 error) *OpenFGAServiceClient_Write_Call
func (*OpenFGAServiceClient_Write_Call) Run ¶
func (_c *OpenFGAServiceClient_Write_Call) Run(run func(ctx context.Context, in *openfgav1.WriteRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_Write_Call
func (*OpenFGAServiceClient_Write_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_Write_Call) RunAndReturn(run func(context.Context, *openfgav1.WriteRequest, ...grpc.CallOption) (*openfgav1.WriteResponse, error)) *OpenFGAServiceClient_Write_Call
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
NewService creates a new instance of Service. 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 (*Service) AssignRoleBindings ¶
func (_m *Service) AssignRoleBindings(ctx context.Context, tenantID string, entityType string, entityID string, input []*graph.Change) error
AssignRoleBindings provides a mock function with given fields: ctx, tenantID, entityType, entityID, input
func (*Service) EXPECT ¶
func (_m *Service) EXPECT() *Service_Expecter
func (*Service) GetPermissionsForRole ¶ added in v0.2.0
func (_m *Service) GetPermissionsForRole(ctx context.Context, tenantID string, entityType string, roleTechnicalName string) ([]*graph.Permission, error)
GetPermissionsForRole provides a mock function with given fields: ctx, tenantID, entityType, roleTechnicalName
func (*Service) RemoveFromEntity ¶
func (_m *Service) RemoveFromEntity(ctx context.Context, tenantID string, entityType string, entityID string, userID string) error
RemoveFromEntity provides a mock function with given fields: ctx, tenantID, entityType, entityID, userID
func (*Service) UserIdFromToken ¶ added in v0.7.1
UserIdFromToken provides a mock function with given fields: token, userIdClaim
func (*Service) UsersForEntity ¶
func (_m *Service) UsersForEntity(ctx context.Context, tenantID string, entityID string, entityType string) (types.UserIDToRoles, error)
UsersForEntity provides a mock function with given fields: ctx, tenantID, entityID, entityType
func (*Service) UsersForEntityRolefilter ¶
func (_m *Service) UsersForEntityRolefilter(ctx context.Context, tenantID string, entityID string, entityType string, rolefilter []*graph.RoleInput) (types.UserIDToRoles, error)
UsersForEntityRolefilter provides a mock function with given fields: ctx, tenantID, entityID, entityType, rolefilter
type Service_AssignRoleBindings_Call ¶
Service_AssignRoleBindings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssignRoleBindings'
func (*Service_AssignRoleBindings_Call) Return ¶
func (_c *Service_AssignRoleBindings_Call) Return(_a0 error) *Service_AssignRoleBindings_Call
func (*Service_AssignRoleBindings_Call) Run ¶
func (_c *Service_AssignRoleBindings_Call) Run(run func(ctx context.Context, tenantID string, entityType string, entityID string, input []*graph.Change)) *Service_AssignRoleBindings_Call
func (*Service_AssignRoleBindings_Call) RunAndReturn ¶
func (_c *Service_AssignRoleBindings_Call) RunAndReturn(run func(context.Context, string, string, string, []*graph.Change) error) *Service_AssignRoleBindings_Call
type Service_Expecter ¶
type Service_Expecter struct {
// contains filtered or unexported fields
}
func (*Service_Expecter) AssignRoleBindings ¶
func (_e *Service_Expecter) AssignRoleBindings(ctx interface{}, tenantID interface{}, entityType interface{}, entityID interface{}, input interface{}) *Service_AssignRoleBindings_Call
AssignRoleBindings is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- entityType string
- entityID string
- input []*graph.Change
func (*Service_Expecter) GetPermissionsForRole ¶ added in v0.2.0
func (_e *Service_Expecter) GetPermissionsForRole(ctx interface{}, tenantID interface{}, entityType interface{}, roleTechnicalName interface{}) *Service_GetPermissionsForRole_Call
GetPermissionsForRole is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- entityType string
- roleTechnicalName string
func (*Service_Expecter) RemoveFromEntity ¶
func (_e *Service_Expecter) RemoveFromEntity(ctx interface{}, tenantID interface{}, entityType interface{}, entityID interface{}, userID interface{}) *Service_RemoveFromEntity_Call
RemoveFromEntity is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- entityType string
- entityID string
- userID string
func (*Service_Expecter) UserIdFromToken ¶ added in v0.7.1
func (_e *Service_Expecter) UserIdFromToken(token interface{}, userIdClaim interface{}) *Service_UserIdFromToken_Call
UserIdFromToken is a helper method to define mock.On call
- token jwt.WebToken
- userIdClaim string
func (*Service_Expecter) UsersForEntity ¶
func (_e *Service_Expecter) UsersForEntity(ctx interface{}, tenantID interface{}, entityID interface{}, entityType interface{}) *Service_UsersForEntity_Call
UsersForEntity is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- entityID string
- entityType string
func (*Service_Expecter) UsersForEntityRolefilter ¶
func (_e *Service_Expecter) UsersForEntityRolefilter(ctx interface{}, tenantID interface{}, entityID interface{}, entityType interface{}, rolefilter interface{}) *Service_UsersForEntityRolefilter_Call
UsersForEntityRolefilter is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- entityID string
- entityType string
- rolefilter []*graph.RoleInput
type Service_GetPermissionsForRole_Call ¶ added in v0.2.0
Service_GetPermissionsForRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPermissionsForRole'
func (*Service_GetPermissionsForRole_Call) Return ¶ added in v0.2.0
func (_c *Service_GetPermissionsForRole_Call) Return(_a0 []*graph.Permission, _a1 error) *Service_GetPermissionsForRole_Call
func (*Service_GetPermissionsForRole_Call) Run ¶ added in v0.2.0
func (_c *Service_GetPermissionsForRole_Call) Run(run func(ctx context.Context, tenantID string, entityType string, roleTechnicalName string)) *Service_GetPermissionsForRole_Call
func (*Service_GetPermissionsForRole_Call) RunAndReturn ¶ added in v0.2.0
func (_c *Service_GetPermissionsForRole_Call) RunAndReturn(run func(context.Context, string, string, string) ([]*graph.Permission, error)) *Service_GetPermissionsForRole_Call
type Service_RemoveFromEntity_Call ¶
Service_RemoveFromEntity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveFromEntity'
func (*Service_RemoveFromEntity_Call) Return ¶
func (_c *Service_RemoveFromEntity_Call) Return(_a0 error) *Service_RemoveFromEntity_Call
func (*Service_RemoveFromEntity_Call) Run ¶
func (_c *Service_RemoveFromEntity_Call) Run(run func(ctx context.Context, tenantID string, entityType string, entityID string, userID string)) *Service_RemoveFromEntity_Call
func (*Service_RemoveFromEntity_Call) RunAndReturn ¶
func (_c *Service_RemoveFromEntity_Call) RunAndReturn(run func(context.Context, string, string, string, string) error) *Service_RemoveFromEntity_Call
type Service_UserIdFromToken_Call ¶ added in v0.7.1
Service_UserIdFromToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserIdFromToken'
func (*Service_UserIdFromToken_Call) Return ¶ added in v0.7.1
func (_c *Service_UserIdFromToken_Call) Return(_a0 string) *Service_UserIdFromToken_Call
func (*Service_UserIdFromToken_Call) Run ¶ added in v0.7.1
func (_c *Service_UserIdFromToken_Call) Run(run func(token jwt.WebToken, userIdClaim string)) *Service_UserIdFromToken_Call
func (*Service_UserIdFromToken_Call) RunAndReturn ¶ added in v0.7.1
func (_c *Service_UserIdFromToken_Call) RunAndReturn(run func(jwt.WebToken, string) string) *Service_UserIdFromToken_Call
type Service_UsersForEntityRolefilter_Call ¶
Service_UsersForEntityRolefilter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UsersForEntityRolefilter'
func (*Service_UsersForEntityRolefilter_Call) Return ¶
func (_c *Service_UsersForEntityRolefilter_Call) Return(_a0 types.UserIDToRoles, _a1 error) *Service_UsersForEntityRolefilter_Call
func (*Service_UsersForEntityRolefilter_Call) Run ¶
func (_c *Service_UsersForEntityRolefilter_Call) Run(run func(ctx context.Context, tenantID string, entityID string, entityType string, rolefilter []*graph.RoleInput)) *Service_UsersForEntityRolefilter_Call
func (*Service_UsersForEntityRolefilter_Call) RunAndReturn ¶
func (_c *Service_UsersForEntityRolefilter_Call) RunAndReturn(run func(context.Context, string, string, string, []*graph.RoleInput) (types.UserIDToRoles, error)) *Service_UsersForEntityRolefilter_Call
type Service_UsersForEntity_Call ¶
Service_UsersForEntity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UsersForEntity'
func (*Service_UsersForEntity_Call) Return ¶
func (_c *Service_UsersForEntity_Call) Return(_a0 types.UserIDToRoles, _a1 error) *Service_UsersForEntity_Call
func (*Service_UsersForEntity_Call) Run ¶
func (_c *Service_UsersForEntity_Call) Run(run func(ctx context.Context, tenantID string, entityID string, entityType string)) *Service_UsersForEntity_Call
func (*Service_UsersForEntity_Call) RunAndReturn ¶
func (_c *Service_UsersForEntity_Call) RunAndReturn(run func(context.Context, string, string, string) (types.UserIDToRoles, error)) *Service_UsersForEntity_Call