mock_roles

package
v0.0.79 Latest Latest
Warning

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

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

Documentation

Overview

Package mock_roles is a generated GoMock package.

Index

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

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.

Jump to

Keyboard shortcuts

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