member

package
v0.0.0-...-cc6ace1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 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 Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. 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 (*Manager) AddProjectMember

func (_m *Manager) AddProjectMember(ctx context.Context, _a1 models.Member) (int, error)

AddProjectMember provides a mock function with given fields: ctx, _a1

func (*Manager) Delete

func (_m *Manager) Delete(ctx context.Context, projectID int64, memberID int) error

Delete provides a mock function with given fields: ctx, projectID, memberID

func (*Manager) DeleteMemberByProjectID

func (_m *Manager) DeleteMemberByProjectID(ctx context.Context, projectID int64) error

DeleteMemberByProjectID provides a mock function with given fields: ctx, projectID

func (*Manager) DeleteMemberByUserID

func (_m *Manager) DeleteMemberByUserID(ctx context.Context, uid int) error

DeleteMemberByUserID provides a mock function with given fields: ctx, uid

func (*Manager) Get

func (_m *Manager) Get(ctx context.Context, projectID int64, memberID int) (*models.Member, error)

Get provides a mock function with given fields: ctx, projectID, memberID

func (*Manager) GetTotalOfProjectMembers

func (_m *Manager) GetTotalOfProjectMembers(ctx context.Context, projectID int64, query *q.Query, roles ...int) (int, error)

GetTotalOfProjectMembers provides a mock function with given fields: ctx, projectID, query, roles

func (*Manager) List

func (_m *Manager) List(ctx context.Context, queryMember models.Member, query *q.Query) ([]*models.Member, error)

List provides a mock function with given fields: ctx, queryMember, query

func (*Manager) ListRoles

func (_m *Manager) ListRoles(ctx context.Context, user *models.User, projectID int64) ([]int, error)

ListRoles provides a mock function with given fields: ctx, user, projectID

func (*Manager) SearchMemberByName

func (_m *Manager) SearchMemberByName(ctx context.Context, projectID int64, entityName string) ([]*models.Member, error)

SearchMemberByName provides a mock function with given fields: ctx, projectID, entityName

func (*Manager) UpdateRole

func (_m *Manager) UpdateRole(ctx context.Context, projectID int64, pmID int, role int) error

UpdateRole provides a mock function with given fields: ctx, projectID, pmID, role

Jump to

Keyboard shortcuts

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