Documentation ¶
Overview ¶
Package mock_roles is a generated GoMock package.
Index ¶
- type MockRoleService
- func (m *MockRoleService) CreateRoleAssignment(ctx context.Context, qtx db.Querier, authzClient authz.Client, ...) (*v1.RoleAssignment, error)
- func (m *MockRoleService) EXPECT() *MockRoleServiceMockRecorder
- func (m *MockRoleService) RemoveRoleAssignment(ctx context.Context, qtx db.Querier, authzClient authz.Client, ...) (*v1.RoleAssignment, error)
- func (m *MockRoleService) UpdateRoleAssignment(ctx context.Context, qtx db.Querier, authzClient authz.Client, ...) (*v1.RoleAssignment, error)
- type MockRoleServiceMockRecorder
- func (mr *MockRoleServiceMockRecorder) CreateRoleAssignment(ctx, qtx, authzClient, idClient, targetProject, subject, authzRole any) *gomock.Call
- func (mr *MockRoleServiceMockRecorder) RemoveRoleAssignment(ctx, qtx, authzClient, idClient, targetProject, subject, roleToRemove any) *gomock.Call
- func (mr *MockRoleServiceMockRecorder) UpdateRoleAssignment(ctx, qtx, authzClient, idClient, targetProject, subject, authzRole any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRoleService ¶
type MockRoleService struct {
// contains filtered or unexported fields
}
MockRoleService is a mock of RoleService interface.
func NewMockRoleService ¶
func NewMockRoleService(ctrl *gomock.Controller) *MockRoleService
NewMockRoleService creates a new mock instance.
func (*MockRoleService) CreateRoleAssignment ¶
func (m *MockRoleService) CreateRoleAssignment(ctx context.Context, qtx db.Querier, authzClient authz.Client, idClient auth.Resolver, targetProject uuid.UUID, subject string, authzRole authz.Role) (*v1.RoleAssignment, error)
CreateRoleAssignment mocks base method.
func (*MockRoleService) EXPECT ¶
func (m *MockRoleService) EXPECT() *MockRoleServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRoleService) RemoveRoleAssignment ¶
func (m *MockRoleService) RemoveRoleAssignment(ctx context.Context, qtx db.Querier, authzClient authz.Client, idClient auth.Resolver, targetProject uuid.UUID, subject string, roleToRemove authz.Role) (*v1.RoleAssignment, error)
RemoveRoleAssignment mocks base method.
func (*MockRoleService) UpdateRoleAssignment ¶
func (m *MockRoleService) UpdateRoleAssignment(ctx context.Context, qtx db.Querier, authzClient authz.Client, idClient auth.Resolver, targetProject uuid.UUID, subject string, authzRole authz.Role) (*v1.RoleAssignment, error)
UpdateRoleAssignment mocks base method.
type MockRoleServiceMockRecorder ¶
type MockRoleServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockRoleServiceMockRecorder is the mock recorder for MockRoleService.
func (*MockRoleServiceMockRecorder) CreateRoleAssignment ¶
func (mr *MockRoleServiceMockRecorder) CreateRoleAssignment(ctx, qtx, authzClient, idClient, targetProject, subject, authzRole any) *gomock.Call
CreateRoleAssignment indicates an expected call of CreateRoleAssignment.
func (*MockRoleServiceMockRecorder) RemoveRoleAssignment ¶
func (mr *MockRoleServiceMockRecorder) RemoveRoleAssignment(ctx, qtx, authzClient, idClient, targetProject, subject, roleToRemove any) *gomock.Call
RemoveRoleAssignment indicates an expected call of RemoveRoleAssignment.
func (*MockRoleServiceMockRecorder) UpdateRoleAssignment ¶
func (mr *MockRoleServiceMockRecorder) UpdateRoleAssignment(ctx, qtx, authzClient, idClient, targetProject, subject, authzRole any) *gomock.Call
UpdateRoleAssignment indicates an expected call of UpdateRoleAssignment.