mocks

package
v0.11.0-alpha.15 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityService

type ActivityService struct {
	mock.Mock
}

ActivityService is an autogenerated mock type for the activityService type

func NewActivityService added in v0.7.5

func NewActivityService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ActivityService

NewActivityService creates a new instance of ActivityService. 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 (*ActivityService) EXPECT

func (*ActivityService) Find

Find provides a mock function with given fields: _a0, _a1

func (*ActivityService) GetOne

func (_m *ActivityService) GetOne(_a0 context.Context, _a1 string) (*domain.Activity, error)

GetOne provides a mock function with given fields: _a0, _a1

func (*ActivityService) Import

Import provides a mock function with given fields: _a0, _a1

type ActivityService_Expecter

type ActivityService_Expecter struct {
	// contains filtered or unexported fields
}

func (*ActivityService_Expecter) Find

func (_e *ActivityService_Expecter) Find(_a0 interface{}, _a1 interface{}) *ActivityService_Find_Call

Find is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.ListProviderActivitiesFilter

func (*ActivityService_Expecter) GetOne

func (_e *ActivityService_Expecter) GetOne(_a0 interface{}, _a1 interface{}) *ActivityService_GetOne_Call

GetOne is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*ActivityService_Expecter) Import

func (_e *ActivityService_Expecter) Import(_a0 interface{}, _a1 interface{}) *ActivityService_Import_Call

Import is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.ListActivitiesFilter

type ActivityService_Find_Call

type ActivityService_Find_Call struct {
	*mock.Call
}

ActivityService_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'

func (*ActivityService_Find_Call) Return

func (*ActivityService_Find_Call) Run

func (*ActivityService_Find_Call) RunAndReturn added in v0.7.5

type ActivityService_GetOne_Call

type ActivityService_GetOne_Call struct {
	*mock.Call
}

ActivityService_GetOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOne'

func (*ActivityService_GetOne_Call) Return

func (*ActivityService_GetOne_Call) Run

func (*ActivityService_GetOne_Call) RunAndReturn added in v0.7.5

type ActivityService_Import_Call

type ActivityService_Import_Call struct {
	*mock.Call
}

ActivityService_Import_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Import'

func (*ActivityService_Import_Call) Return

func (*ActivityService_Import_Call) Run

func (*ActivityService_Import_Call) RunAndReturn added in v0.7.5

type AppealService

type AppealService struct {
	mock.Mock
}

AppealService is an autogenerated mock type for the appealService type

func NewAppealService

func NewAppealService(t interface {
	mock.TestingT
	Cleanup(func())
}) *AppealService

NewAppealService creates a new instance of AppealService. 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 (*AppealService) AddApprover

func (_m *AppealService) AddApprover(ctx context.Context, appealID string, approvalID string, email string) (*domain.Appeal, error)

AddApprover provides a mock function with given fields: ctx, appealID, approvalID, email

func (*AppealService) Cancel

func (_m *AppealService) Cancel(_a0 context.Context, _a1 string) (*domain.Appeal, error)

Cancel provides a mock function with given fields: _a0, _a1

func (*AppealService) Create

func (_m *AppealService) Create(_a0 context.Context, _a1 []*domain.Appeal, _a2 ...appeal.CreateAppealOption) error

Create provides a mock function with given fields: _a0, _a1, _a2

func (*AppealService) CreateComment added in v0.10.0

func (_m *AppealService) CreateComment(_a0 context.Context, _a1 *domain.Comment) error

CreateComment provides a mock function with given fields: _a0, _a1

func (*AppealService) DeleteApprover

func (_m *AppealService) DeleteApprover(ctx context.Context, appealID string, approvalID string, email string) (*domain.Appeal, error)

DeleteApprover provides a mock function with given fields: ctx, appealID, approvalID, email

func (*AppealService) EXPECT

func (_m *AppealService) EXPECT() *AppealService_Expecter

func (*AppealService) Find

Find provides a mock function with given fields: _a0, _a1

func (*AppealService) GetAppealsTotalCount added in v0.7.5

func (_m *AppealService) GetAppealsTotalCount(_a0 context.Context, _a1 *domain.ListAppealsFilter) (int64, error)

GetAppealsTotalCount provides a mock function with given fields: _a0, _a1

func (*AppealService) GetByID

func (_m *AppealService) GetByID(_a0 context.Context, _a1 string) (*domain.Appeal, error)

GetByID provides a mock function with given fields: _a0, _a1

func (*AppealService) ListActivities added in v0.11.0

func (_m *AppealService) ListActivities(_a0 context.Context, _a1 string) ([]*domain.Event, error)

ListActivities provides a mock function with given fields: _a0, _a1

func (*AppealService) ListComments added in v0.10.0

func (_m *AppealService) ListComments(_a0 context.Context, _a1 domain.ListCommentsFilter) ([]*domain.Comment, error)

ListComments provides a mock function with given fields: _a0, _a1

func (*AppealService) Patch added in v0.11.0

func (_m *AppealService) Patch(_a0 context.Context, _a1 *domain.Appeal) error

Patch provides a mock function with given fields: _a0, _a1

func (*AppealService) UpdateApproval

func (_m *AppealService) UpdateApproval(ctx context.Context, approvalAction domain.ApprovalAction) (*domain.Appeal, error)

UpdateApproval provides a mock function with given fields: ctx, approvalAction

type AppealService_AddApprover_Call

type AppealService_AddApprover_Call struct {
	*mock.Call
}

AppealService_AddApprover_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddApprover'

func (*AppealService_AddApprover_Call) Return

func (*AppealService_AddApprover_Call) Run

func (_c *AppealService_AddApprover_Call) Run(run func(ctx context.Context, appealID string, approvalID string, email string)) *AppealService_AddApprover_Call

func (*AppealService_AddApprover_Call) RunAndReturn added in v0.7.5

type AppealService_Cancel_Call

type AppealService_Cancel_Call struct {
	*mock.Call
}

AppealService_Cancel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cancel'

func (*AppealService_Cancel_Call) Return

func (*AppealService_Cancel_Call) Run

func (*AppealService_Cancel_Call) RunAndReturn added in v0.7.5

type AppealService_CreateComment_Call added in v0.10.0

type AppealService_CreateComment_Call struct {
	*mock.Call
}

AppealService_CreateComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateComment'

func (*AppealService_CreateComment_Call) Return added in v0.10.0

func (*AppealService_CreateComment_Call) Run added in v0.10.0

func (*AppealService_CreateComment_Call) RunAndReturn added in v0.10.0

type AppealService_Create_Call

type AppealService_Create_Call struct {
	*mock.Call
}

AppealService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*AppealService_Create_Call) Return

func (*AppealService_Create_Call) Run

func (*AppealService_Create_Call) RunAndReturn added in v0.7.5

type AppealService_DeleteApprover_Call

type AppealService_DeleteApprover_Call struct {
	*mock.Call
}

AppealService_DeleteApprover_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteApprover'

func (*AppealService_DeleteApprover_Call) Return

func (*AppealService_DeleteApprover_Call) Run

func (_c *AppealService_DeleteApprover_Call) Run(run func(ctx context.Context, appealID string, approvalID string, email string)) *AppealService_DeleteApprover_Call

func (*AppealService_DeleteApprover_Call) RunAndReturn added in v0.7.5

type AppealService_Expecter

type AppealService_Expecter struct {
	// contains filtered or unexported fields
}

func (*AppealService_Expecter) AddApprover

func (_e *AppealService_Expecter) AddApprover(ctx interface{}, appealID interface{}, approvalID interface{}, email interface{}) *AppealService_AddApprover_Call

AddApprover is a helper method to define mock.On call

  • ctx context.Context
  • appealID string
  • approvalID string
  • email string

func (*AppealService_Expecter) Cancel

func (_e *AppealService_Expecter) Cancel(_a0 interface{}, _a1 interface{}) *AppealService_Cancel_Call

Cancel is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*AppealService_Expecter) Create

func (_e *AppealService_Expecter) Create(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *AppealService_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []*domain.Appeal
  • _a2 ...appeal.CreateAppealOption

func (*AppealService_Expecter) CreateComment added in v0.10.0

func (_e *AppealService_Expecter) CreateComment(_a0 interface{}, _a1 interface{}) *AppealService_CreateComment_Call

CreateComment is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.Comment

func (*AppealService_Expecter) DeleteApprover

func (_e *AppealService_Expecter) DeleteApprover(ctx interface{}, appealID interface{}, approvalID interface{}, email interface{}) *AppealService_DeleteApprover_Call

DeleteApprover is a helper method to define mock.On call

  • ctx context.Context
  • appealID string
  • approvalID string
  • email string

func (*AppealService_Expecter) Find

func (_e *AppealService_Expecter) Find(_a0 interface{}, _a1 interface{}) *AppealService_Find_Call

Find is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.ListAppealsFilter

func (*AppealService_Expecter) GetAppealsTotalCount added in v0.7.5

func (_e *AppealService_Expecter) GetAppealsTotalCount(_a0 interface{}, _a1 interface{}) *AppealService_GetAppealsTotalCount_Call

GetAppealsTotalCount is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.ListAppealsFilter

func (*AppealService_Expecter) GetByID

func (_e *AppealService_Expecter) GetByID(_a0 interface{}, _a1 interface{}) *AppealService_GetByID_Call

GetByID is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*AppealService_Expecter) ListActivities added in v0.11.0

func (_e *AppealService_Expecter) ListActivities(_a0 interface{}, _a1 interface{}) *AppealService_ListActivities_Call

ListActivities is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*AppealService_Expecter) ListComments added in v0.10.0

func (_e *AppealService_Expecter) ListComments(_a0 interface{}, _a1 interface{}) *AppealService_ListComments_Call

ListComments is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.ListCommentsFilter

func (*AppealService_Expecter) Patch added in v0.11.0

func (_e *AppealService_Expecter) Patch(_a0 interface{}, _a1 interface{}) *AppealService_Patch_Call

Patch is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.Appeal

func (*AppealService_Expecter) UpdateApproval

func (_e *AppealService_Expecter) UpdateApproval(ctx interface{}, approvalAction interface{}) *AppealService_UpdateApproval_Call

UpdateApproval is a helper method to define mock.On call

  • ctx context.Context
  • approvalAction domain.ApprovalAction

type AppealService_Find_Call

type AppealService_Find_Call struct {
	*mock.Call
}

AppealService_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'

func (*AppealService_Find_Call) Return

func (*AppealService_Find_Call) Run

func (*AppealService_Find_Call) RunAndReturn added in v0.7.5

type AppealService_GetAppealsTotalCount_Call added in v0.7.5

type AppealService_GetAppealsTotalCount_Call struct {
	*mock.Call
}

AppealService_GetAppealsTotalCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAppealsTotalCount'

func (*AppealService_GetAppealsTotalCount_Call) Return added in v0.7.5

func (*AppealService_GetAppealsTotalCount_Call) Run added in v0.7.5

func (*AppealService_GetAppealsTotalCount_Call) RunAndReturn added in v0.7.5

type AppealService_GetByID_Call

type AppealService_GetByID_Call struct {
	*mock.Call
}

AppealService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'

func (*AppealService_GetByID_Call) Return

func (*AppealService_GetByID_Call) Run

func (*AppealService_GetByID_Call) RunAndReturn added in v0.7.5

type AppealService_ListActivities_Call added in v0.11.0

type AppealService_ListActivities_Call struct {
	*mock.Call
}

AppealService_ListActivities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListActivities'

func (*AppealService_ListActivities_Call) Return added in v0.11.0

func (*AppealService_ListActivities_Call) Run added in v0.11.0

func (*AppealService_ListActivities_Call) RunAndReturn added in v0.11.0

type AppealService_ListComments_Call added in v0.10.0

type AppealService_ListComments_Call struct {
	*mock.Call
}

AppealService_ListComments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListComments'

func (*AppealService_ListComments_Call) Return added in v0.10.0

func (*AppealService_ListComments_Call) Run added in v0.10.0

func (*AppealService_ListComments_Call) RunAndReturn added in v0.10.0

type AppealService_Patch_Call added in v0.11.0

type AppealService_Patch_Call struct {
	*mock.Call
}

AppealService_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'

func (*AppealService_Patch_Call) Return added in v0.11.0

func (*AppealService_Patch_Call) Run added in v0.11.0

func (*AppealService_Patch_Call) RunAndReturn added in v0.11.0

type AppealService_UpdateApproval_Call

type AppealService_UpdateApproval_Call struct {
	*mock.Call
}

AppealService_UpdateApproval_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateApproval'

func (*AppealService_UpdateApproval_Call) Return

func (*AppealService_UpdateApproval_Call) Run

func (*AppealService_UpdateApproval_Call) RunAndReturn added in v0.7.5

type ApprovalService

type ApprovalService struct {
	mock.Mock
}

ApprovalService is an autogenerated mock type for the approvalService type

func NewApprovalService

func NewApprovalService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApprovalService

NewApprovalService creates a new instance of ApprovalService. 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 (*ApprovalService) BulkInsert

func (_m *ApprovalService) BulkInsert(_a0 context.Context, _a1 []*domain.Approval) error

BulkInsert provides a mock function with given fields: _a0, _a1

func (*ApprovalService) EXPECT

func (*ApprovalService) GetApprovalsTotalCount added in v0.7.5

func (_m *ApprovalService) GetApprovalsTotalCount(_a0 context.Context, _a1 *domain.ListApprovalsFilter) (int64, error)

GetApprovalsTotalCount provides a mock function with given fields: _a0, _a1

func (*ApprovalService) ListApprovals

func (_m *ApprovalService) ListApprovals(_a0 context.Context, _a1 *domain.ListApprovalsFilter) ([]*domain.Approval, error)

ListApprovals provides a mock function with given fields: _a0, _a1

type ApprovalService_BulkInsert_Call

type ApprovalService_BulkInsert_Call struct {
	*mock.Call
}

ApprovalService_BulkInsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkInsert'

func (*ApprovalService_BulkInsert_Call) Return

func (*ApprovalService_BulkInsert_Call) Run

func (*ApprovalService_BulkInsert_Call) RunAndReturn added in v0.7.5

type ApprovalService_Expecter

type ApprovalService_Expecter struct {
	// contains filtered or unexported fields
}

func (*ApprovalService_Expecter) BulkInsert

func (_e *ApprovalService_Expecter) BulkInsert(_a0 interface{}, _a1 interface{}) *ApprovalService_BulkInsert_Call

BulkInsert is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []*domain.Approval

func (*ApprovalService_Expecter) GetApprovalsTotalCount added in v0.7.5

func (_e *ApprovalService_Expecter) GetApprovalsTotalCount(_a0 interface{}, _a1 interface{}) *ApprovalService_GetApprovalsTotalCount_Call

GetApprovalsTotalCount is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.ListApprovalsFilter

func (*ApprovalService_Expecter) ListApprovals

func (_e *ApprovalService_Expecter) ListApprovals(_a0 interface{}, _a1 interface{}) *ApprovalService_ListApprovals_Call

ListApprovals is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.ListApprovalsFilter

type ApprovalService_GetApprovalsTotalCount_Call added in v0.7.5

type ApprovalService_GetApprovalsTotalCount_Call struct {
	*mock.Call
}

ApprovalService_GetApprovalsTotalCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetApprovalsTotalCount'

func (*ApprovalService_GetApprovalsTotalCount_Call) Return added in v0.7.5

func (*ApprovalService_GetApprovalsTotalCount_Call) Run added in v0.7.5

func (*ApprovalService_GetApprovalsTotalCount_Call) RunAndReturn added in v0.7.5

type ApprovalService_ListApprovals_Call

type ApprovalService_ListApprovals_Call struct {
	*mock.Call
}

ApprovalService_ListApprovals_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListApprovals'

func (*ApprovalService_ListApprovals_Call) Return

func (*ApprovalService_ListApprovals_Call) Run

func (*ApprovalService_ListApprovals_Call) RunAndReturn added in v0.7.5

type GrantService

type GrantService struct {
	mock.Mock
}

GrantService is an autogenerated mock type for the grantService type

func NewGrantService

func NewGrantService(t interface {
	mock.TestingT
	Cleanup(func())
}) *GrantService

NewGrantService creates a new instance of GrantService. 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 (*GrantService) BulkRevoke

func (_m *GrantService) BulkRevoke(ctx context.Context, filter domain.RevokeGrantsFilter, actor string, reason string) ([]*domain.Grant, error)

BulkRevoke provides a mock function with given fields: ctx, filter, actor, reason

func (*GrantService) EXPECT

func (_m *GrantService) EXPECT() *GrantService_Expecter

func (*GrantService) GetByID

func (_m *GrantService) GetByID(_a0 context.Context, _a1 string) (*domain.Grant, error)

GetByID provides a mock function with given fields: _a0, _a1

func (*GrantService) GetGrantsTotalCount added in v0.7.5

func (_m *GrantService) GetGrantsTotalCount(_a0 context.Context, _a1 domain.ListGrantsFilter) (int64, error)

GetGrantsTotalCount provides a mock function with given fields: _a0, _a1

func (*GrantService) ImportFromProvider

func (_m *GrantService) ImportFromProvider(ctx context.Context, criteria grant.ImportFromProviderCriteria) ([]*domain.Grant, error)

ImportFromProvider provides a mock function with given fields: ctx, criteria

func (*GrantService) List

List provides a mock function with given fields: _a0, _a1

func (*GrantService) ListUserRoles added in v0.7.6

func (_m *GrantService) ListUserRoles(_a0 context.Context, _a1 string) ([]string, error)

ListUserRoles provides a mock function with given fields: _a0, _a1

func (*GrantService) Restore added in v0.11.0

func (_m *GrantService) Restore(ctx context.Context, id string, actor string, reason string) (*domain.Grant, error)

Restore provides a mock function with given fields: ctx, id, actor, reason

func (*GrantService) Revoke

func (_m *GrantService) Revoke(ctx context.Context, id string, actor string, reason string, opts ...grant.Option) (*domain.Grant, error)

Revoke provides a mock function with given fields: ctx, id, actor, reason, opts

func (*GrantService) Update

func (_m *GrantService) Update(_a0 context.Context, _a1 *domain.Grant) error

Update provides a mock function with given fields: _a0, _a1

type GrantService_BulkRevoke_Call

type GrantService_BulkRevoke_Call struct {
	*mock.Call
}

GrantService_BulkRevoke_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkRevoke'

func (*GrantService_BulkRevoke_Call) Return

func (*GrantService_BulkRevoke_Call) Run

func (*GrantService_BulkRevoke_Call) RunAndReturn

type GrantService_Expecter

type GrantService_Expecter struct {
	// contains filtered or unexported fields
}

func (*GrantService_Expecter) BulkRevoke

func (_e *GrantService_Expecter) BulkRevoke(ctx interface{}, filter interface{}, actor interface{}, reason interface{}) *GrantService_BulkRevoke_Call

BulkRevoke is a helper method to define mock.On call

  • ctx context.Context
  • filter domain.RevokeGrantsFilter
  • actor string
  • reason string

func (*GrantService_Expecter) GetByID

func (_e *GrantService_Expecter) GetByID(_a0 interface{}, _a1 interface{}) *GrantService_GetByID_Call

GetByID is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*GrantService_Expecter) GetGrantsTotalCount added in v0.7.5

func (_e *GrantService_Expecter) GetGrantsTotalCount(_a0 interface{}, _a1 interface{}) *GrantService_GetGrantsTotalCount_Call

GetGrantsTotalCount is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.ListGrantsFilter

func (*GrantService_Expecter) ImportFromProvider

func (_e *GrantService_Expecter) ImportFromProvider(ctx interface{}, criteria interface{}) *GrantService_ImportFromProvider_Call

ImportFromProvider is a helper method to define mock.On call

  • ctx context.Context
  • criteria grant.ImportFromProviderCriteria

func (*GrantService_Expecter) List

func (_e *GrantService_Expecter) List(_a0 interface{}, _a1 interface{}) *GrantService_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.ListGrantsFilter

func (*GrantService_Expecter) ListUserRoles added in v0.7.6

func (_e *GrantService_Expecter) ListUserRoles(_a0 interface{}, _a1 interface{}) *GrantService_ListUserRoles_Call

ListUserRoles is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*GrantService_Expecter) Restore added in v0.11.0

func (_e *GrantService_Expecter) Restore(ctx interface{}, id interface{}, actor interface{}, reason interface{}) *GrantService_Restore_Call

Restore is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • actor string
  • reason string

func (*GrantService_Expecter) Revoke

func (_e *GrantService_Expecter) Revoke(ctx interface{}, id interface{}, actor interface{}, reason interface{}, opts ...interface{}) *GrantService_Revoke_Call

Revoke is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • actor string
  • reason string
  • opts ...grant.Option

func (*GrantService_Expecter) Update

func (_e *GrantService_Expecter) Update(_a0 interface{}, _a1 interface{}) *GrantService_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.Grant

type GrantService_GetByID_Call

type GrantService_GetByID_Call struct {
	*mock.Call
}

GrantService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'

func (*GrantService_GetByID_Call) Return

func (*GrantService_GetByID_Call) Run

func (*GrantService_GetByID_Call) RunAndReturn

type GrantService_GetGrantsTotalCount_Call added in v0.7.5

type GrantService_GetGrantsTotalCount_Call struct {
	*mock.Call
}

GrantService_GetGrantsTotalCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGrantsTotalCount'

func (*GrantService_GetGrantsTotalCount_Call) Return added in v0.7.5

func (*GrantService_GetGrantsTotalCount_Call) Run added in v0.7.5

func (*GrantService_GetGrantsTotalCount_Call) RunAndReturn added in v0.7.5

type GrantService_ImportFromProvider_Call

type GrantService_ImportFromProvider_Call struct {
	*mock.Call
}

GrantService_ImportFromProvider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImportFromProvider'

func (*GrantService_ImportFromProvider_Call) Return

func (*GrantService_ImportFromProvider_Call) Run

func (*GrantService_ImportFromProvider_Call) RunAndReturn

type GrantService_ListUserRoles_Call added in v0.7.6

type GrantService_ListUserRoles_Call struct {
	*mock.Call
}

GrantService_ListUserRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUserRoles'

func (*GrantService_ListUserRoles_Call) Return added in v0.7.6

func (*GrantService_ListUserRoles_Call) Run added in v0.7.6

func (*GrantService_ListUserRoles_Call) RunAndReturn added in v0.7.6

type GrantService_List_Call

type GrantService_List_Call struct {
	*mock.Call
}

GrantService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*GrantService_List_Call) Return

func (*GrantService_List_Call) Run

func (*GrantService_List_Call) RunAndReturn

type GrantService_Restore_Call added in v0.11.0

type GrantService_Restore_Call struct {
	*mock.Call
}

GrantService_Restore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Restore'

func (*GrantService_Restore_Call) Return added in v0.11.0

func (*GrantService_Restore_Call) Run added in v0.11.0

func (_c *GrantService_Restore_Call) Run(run func(ctx context.Context, id string, actor string, reason string)) *GrantService_Restore_Call

func (*GrantService_Restore_Call) RunAndReturn added in v0.11.0

type GrantService_Revoke_Call

type GrantService_Revoke_Call struct {
	*mock.Call
}

GrantService_Revoke_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Revoke'

func (*GrantService_Revoke_Call) Return

func (*GrantService_Revoke_Call) Run

func (_c *GrantService_Revoke_Call) Run(run func(ctx context.Context, id string, actor string, reason string, opts ...grant.Option)) *GrantService_Revoke_Call

func (*GrantService_Revoke_Call) RunAndReturn

type GrantService_Update_Call

type GrantService_Update_Call struct {
	*mock.Call
}

GrantService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*GrantService_Update_Call) Return

func (*GrantService_Update_Call) Run

func (*GrantService_Update_Call) RunAndReturn

type PolicyService

type PolicyService struct {
	mock.Mock
}

PolicyService is an autogenerated mock type for the policyService type

func NewPolicyService added in v0.7.5

func NewPolicyService(t interface {
	mock.TestingT
	Cleanup(func())
}) *PolicyService

NewPolicyService creates a new instance of PolicyService. 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 (*PolicyService) Create

func (_m *PolicyService) Create(_a0 context.Context, _a1 *domain.Policy) error

Create provides a mock function with given fields: _a0, _a1

func (*PolicyService) EXPECT

func (_m *PolicyService) EXPECT() *PolicyService_Expecter

func (*PolicyService) Find

func (_m *PolicyService) Find(_a0 context.Context) ([]*domain.Policy, error)

Find provides a mock function with given fields: _a0

func (*PolicyService) GetOne

func (_m *PolicyService) GetOne(ctx context.Context, id string, version uint) (*domain.Policy, error)

GetOne provides a mock function with given fields: ctx, id, version

func (*PolicyService) Update

func (_m *PolicyService) Update(_a0 context.Context, _a1 *domain.Policy) error

Update provides a mock function with given fields: _a0, _a1

type PolicyService_Create_Call

type PolicyService_Create_Call struct {
	*mock.Call
}

PolicyService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*PolicyService_Create_Call) Return

func (*PolicyService_Create_Call) Run

func (*PolicyService_Create_Call) RunAndReturn added in v0.7.5

type PolicyService_Expecter

type PolicyService_Expecter struct {
	// contains filtered or unexported fields
}

func (*PolicyService_Expecter) Create

func (_e *PolicyService_Expecter) Create(_a0 interface{}, _a1 interface{}) *PolicyService_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.Policy

func (*PolicyService_Expecter) Find

func (_e *PolicyService_Expecter) Find(_a0 interface{}) *PolicyService_Find_Call

Find is a helper method to define mock.On call

  • _a0 context.Context

func (*PolicyService_Expecter) GetOne

func (_e *PolicyService_Expecter) GetOne(ctx interface{}, id interface{}, version interface{}) *PolicyService_GetOne_Call

GetOne is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • version uint

func (*PolicyService_Expecter) Update

func (_e *PolicyService_Expecter) Update(_a0 interface{}, _a1 interface{}) *PolicyService_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.Policy

type PolicyService_Find_Call

type PolicyService_Find_Call struct {
	*mock.Call
}

PolicyService_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'

func (*PolicyService_Find_Call) Return

func (*PolicyService_Find_Call) Run

func (*PolicyService_Find_Call) RunAndReturn added in v0.7.5

type PolicyService_GetOne_Call

type PolicyService_GetOne_Call struct {
	*mock.Call
}

PolicyService_GetOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOne'

func (*PolicyService_GetOne_Call) Return

func (*PolicyService_GetOne_Call) Run

func (_c *PolicyService_GetOne_Call) Run(run func(ctx context.Context, id string, version uint)) *PolicyService_GetOne_Call

func (*PolicyService_GetOne_Call) RunAndReturn added in v0.7.5

type PolicyService_Update_Call

type PolicyService_Update_Call struct {
	*mock.Call
}

PolicyService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*PolicyService_Update_Call) Return

func (*PolicyService_Update_Call) Run

func (*PolicyService_Update_Call) RunAndReturn added in v0.7.5

type ProviderActivityService

type ProviderActivityService struct {
	mock.Mock
}

ProviderActivityService is an autogenerated mock type for the providerActivityService type

func (*ProviderActivityService) EXPECT

func (*ProviderActivityService) Find

Find provides a mock function with given fields: _a0, _a1

func (*ProviderActivityService) GetOne

GetOne provides a mock function with given fields: _a0, _a1

func (*ProviderActivityService) Import

Import provides a mock function with given fields: _a0, _a1

type ProviderActivityService_Expecter

type ProviderActivityService_Expecter struct {
	// contains filtered or unexported fields
}

func (*ProviderActivityService_Expecter) Find

func (_e *ProviderActivityService_Expecter) Find(_a0 interface{}, _a1 interface{}) *ProviderActivityService_Find_Call

Find is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.ListProviderActivitiesFilter

func (*ProviderActivityService_Expecter) GetOne

func (_e *ProviderActivityService_Expecter) GetOne(_a0 interface{}, _a1 interface{}) *ProviderActivityService_GetOne_Call

GetOne is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*ProviderActivityService_Expecter) Import

func (_e *ProviderActivityService_Expecter) Import(_a0 interface{}, _a1 interface{}) *ProviderActivityService_Import_Call

Import is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.ImportActivitiesFilter

type ProviderActivityService_Find_Call

type ProviderActivityService_Find_Call struct {
	*mock.Call
}

ProviderActivityService_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'

func (*ProviderActivityService_Find_Call) Return

func (*ProviderActivityService_Find_Call) Run

type ProviderActivityService_GetOne_Call

type ProviderActivityService_GetOne_Call struct {
	*mock.Call
}

ProviderActivityService_GetOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOne'

func (*ProviderActivityService_GetOne_Call) Return

func (*ProviderActivityService_GetOne_Call) Run

type ProviderActivityService_Import_Call

type ProviderActivityService_Import_Call struct {
	*mock.Call
}

ProviderActivityService_Import_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Import'

func (*ProviderActivityService_Import_Call) Return

func (*ProviderActivityService_Import_Call) Run

type ProviderService

type ProviderService struct {
	mock.Mock
}

ProviderService is an autogenerated mock type for the providerService type

func NewProviderService added in v0.7.5

func NewProviderService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProviderService

NewProviderService creates a new instance of ProviderService. 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 (*ProviderService) Create

func (_m *ProviderService) Create(_a0 context.Context, _a1 *domain.Provider) error

Create provides a mock function with given fields: _a0, _a1

func (*ProviderService) Delete

func (_m *ProviderService) Delete(_a0 context.Context, _a1 string) error

Delete provides a mock function with given fields: _a0, _a1

func (*ProviderService) EXPECT

func (*ProviderService) FetchResources

func (_m *ProviderService) FetchResources(_a0 context.Context) error

FetchResources provides a mock function with given fields: _a0

func (*ProviderService) Find

func (_m *ProviderService) Find(_a0 context.Context) ([]*domain.Provider, error)

Find provides a mock function with given fields: _a0

func (*ProviderService) GetByID

func (_m *ProviderService) GetByID(_a0 context.Context, _a1 string) (*domain.Provider, error)

GetByID provides a mock function with given fields: _a0, _a1

func (*ProviderService) GetOne

func (_m *ProviderService) GetOne(ctx context.Context, pType string, urn string) (*domain.Provider, error)

GetOne provides a mock function with given fields: ctx, pType, urn

func (*ProviderService) GetRoles

func (_m *ProviderService) GetRoles(ctx context.Context, id string, resourceType string) ([]*domain.Role, error)

GetRoles provides a mock function with given fields: ctx, id, resourceType

func (*ProviderService) GetTypes

func (_m *ProviderService) GetTypes(_a0 context.Context) ([]domain.ProviderType, error)

GetTypes provides a mock function with given fields: _a0

func (*ProviderService) GrantAccess

func (_m *ProviderService) GrantAccess(_a0 context.Context, _a1 domain.Grant) error

GrantAccess provides a mock function with given fields: _a0, _a1

func (*ProviderService) RevokeAccess

func (_m *ProviderService) RevokeAccess(_a0 context.Context, _a1 domain.Grant) error

RevokeAccess provides a mock function with given fields: _a0, _a1

func (*ProviderService) Update

func (_m *ProviderService) Update(_a0 context.Context, _a1 *domain.Provider) error

Update provides a mock function with given fields: _a0, _a1

func (*ProviderService) ValidateAppeal

func (_m *ProviderService) ValidateAppeal(_a0 context.Context, _a1 *domain.Appeal, _a2 *domain.Provider, _a3 *domain.Policy) error

ValidateAppeal provides a mock function with given fields: _a0, _a1, _a2, _a3

type ProviderService_Create_Call

type ProviderService_Create_Call struct {
	*mock.Call
}

ProviderService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*ProviderService_Create_Call) Return

func (*ProviderService_Create_Call) Run

func (*ProviderService_Create_Call) RunAndReturn added in v0.7.5

type ProviderService_Delete_Call

type ProviderService_Delete_Call struct {
	*mock.Call
}

ProviderService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*ProviderService_Delete_Call) Return

func (*ProviderService_Delete_Call) Run

func (*ProviderService_Delete_Call) RunAndReturn added in v0.7.5

type ProviderService_Expecter

type ProviderService_Expecter struct {
	// contains filtered or unexported fields
}

func (*ProviderService_Expecter) Create

func (_e *ProviderService_Expecter) Create(_a0 interface{}, _a1 interface{}) *ProviderService_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.Provider

func (*ProviderService_Expecter) Delete

func (_e *ProviderService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *ProviderService_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*ProviderService_Expecter) FetchResources

func (_e *ProviderService_Expecter) FetchResources(_a0 interface{}) *ProviderService_FetchResources_Call

FetchResources is a helper method to define mock.On call

  • _a0 context.Context

func (*ProviderService_Expecter) Find

func (_e *ProviderService_Expecter) Find(_a0 interface{}) *ProviderService_Find_Call

Find is a helper method to define mock.On call

  • _a0 context.Context

func (*ProviderService_Expecter) GetByID

func (_e *ProviderService_Expecter) GetByID(_a0 interface{}, _a1 interface{}) *ProviderService_GetByID_Call

GetByID is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*ProviderService_Expecter) GetOne

func (_e *ProviderService_Expecter) GetOne(ctx interface{}, pType interface{}, urn interface{}) *ProviderService_GetOne_Call

GetOne is a helper method to define mock.On call

  • ctx context.Context
  • pType string
  • urn string

func (*ProviderService_Expecter) GetRoles

func (_e *ProviderService_Expecter) GetRoles(ctx interface{}, id interface{}, resourceType interface{}) *ProviderService_GetRoles_Call

GetRoles is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • resourceType string

func (*ProviderService_Expecter) GetTypes

func (_e *ProviderService_Expecter) GetTypes(_a0 interface{}) *ProviderService_GetTypes_Call

GetTypes is a helper method to define mock.On call

  • _a0 context.Context

func (*ProviderService_Expecter) GrantAccess

func (_e *ProviderService_Expecter) GrantAccess(_a0 interface{}, _a1 interface{}) *ProviderService_GrantAccess_Call

GrantAccess is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.Grant

func (*ProviderService_Expecter) RevokeAccess

func (_e *ProviderService_Expecter) RevokeAccess(_a0 interface{}, _a1 interface{}) *ProviderService_RevokeAccess_Call

RevokeAccess is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.Grant

func (*ProviderService_Expecter) Update

func (_e *ProviderService_Expecter) Update(_a0 interface{}, _a1 interface{}) *ProviderService_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.Provider

func (*ProviderService_Expecter) ValidateAppeal

func (_e *ProviderService_Expecter) ValidateAppeal(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *ProviderService_ValidateAppeal_Call

ValidateAppeal is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.Appeal
  • _a2 *domain.Provider
  • _a3 *domain.Policy

type ProviderService_FetchResources_Call

type ProviderService_FetchResources_Call struct {
	*mock.Call
}

ProviderService_FetchResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FetchResources'

func (*ProviderService_FetchResources_Call) Return

func (*ProviderService_FetchResources_Call) Run

func (*ProviderService_FetchResources_Call) RunAndReturn added in v0.7.5

type ProviderService_Find_Call

type ProviderService_Find_Call struct {
	*mock.Call
}

ProviderService_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'

func (*ProviderService_Find_Call) Return

func (*ProviderService_Find_Call) Run

func (*ProviderService_Find_Call) RunAndReturn added in v0.7.5

type ProviderService_GetByID_Call

type ProviderService_GetByID_Call struct {
	*mock.Call
}

ProviderService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'

func (*ProviderService_GetByID_Call) Return

func (*ProviderService_GetByID_Call) Run

func (*ProviderService_GetByID_Call) RunAndReturn added in v0.7.5

type ProviderService_GetOne_Call

type ProviderService_GetOne_Call struct {
	*mock.Call
}

ProviderService_GetOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOne'

func (*ProviderService_GetOne_Call) Return

func (*ProviderService_GetOne_Call) Run

func (*ProviderService_GetOne_Call) RunAndReturn added in v0.7.5

type ProviderService_GetRoles_Call

type ProviderService_GetRoles_Call struct {
	*mock.Call
}

ProviderService_GetRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRoles'

func (*ProviderService_GetRoles_Call) Return

func (*ProviderService_GetRoles_Call) Run

func (_c *ProviderService_GetRoles_Call) Run(run func(ctx context.Context, id string, resourceType string)) *ProviderService_GetRoles_Call

func (*ProviderService_GetRoles_Call) RunAndReturn added in v0.7.5

type ProviderService_GetTypes_Call

type ProviderService_GetTypes_Call struct {
	*mock.Call
}

ProviderService_GetTypes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTypes'

func (*ProviderService_GetTypes_Call) Return

func (*ProviderService_GetTypes_Call) Run

func (*ProviderService_GetTypes_Call) RunAndReturn added in v0.7.5

type ProviderService_GrantAccess_Call

type ProviderService_GrantAccess_Call struct {
	*mock.Call
}

ProviderService_GrantAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrantAccess'

func (*ProviderService_GrantAccess_Call) Return

func (*ProviderService_GrantAccess_Call) Run

func (*ProviderService_GrantAccess_Call) RunAndReturn added in v0.7.5

type ProviderService_RevokeAccess_Call

type ProviderService_RevokeAccess_Call struct {
	*mock.Call
}

ProviderService_RevokeAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeAccess'

func (*ProviderService_RevokeAccess_Call) Return

func (*ProviderService_RevokeAccess_Call) Run

func (*ProviderService_RevokeAccess_Call) RunAndReturn added in v0.7.5

type ProviderService_Update_Call

type ProviderService_Update_Call struct {
	*mock.Call
}

ProviderService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*ProviderService_Update_Call) Return

func (*ProviderService_Update_Call) Run

func (*ProviderService_Update_Call) RunAndReturn added in v0.7.5

type ProviderService_ValidateAppeal_Call

type ProviderService_ValidateAppeal_Call struct {
	*mock.Call
}

ProviderService_ValidateAppeal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateAppeal'

func (*ProviderService_ValidateAppeal_Call) Return

func (*ProviderService_ValidateAppeal_Call) Run

func (*ProviderService_ValidateAppeal_Call) RunAndReturn added in v0.7.5

type ResourceService

type ResourceService struct {
	mock.Mock
}

ResourceService is an autogenerated mock type for the resourceService type

func NewResourceService added in v0.7.5

func NewResourceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResourceService

NewResourceService creates a new instance of ResourceService. 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 (*ResourceService) BatchDelete

func (_m *ResourceService) BatchDelete(_a0 context.Context, _a1 []string) error

BatchDelete provides a mock function with given fields: _a0, _a1

func (*ResourceService) BulkUpsert

func (_m *ResourceService) BulkUpsert(_a0 context.Context, _a1 []*domain.Resource) error

BulkUpsert provides a mock function with given fields: _a0, _a1

func (*ResourceService) Delete

func (_m *ResourceService) Delete(_a0 context.Context, _a1 string) error

Delete provides a mock function with given fields: _a0, _a1

func (*ResourceService) EXPECT

func (*ResourceService) Find

Find provides a mock function with given fields: _a0, _a1

func (*ResourceService) Get

Get provides a mock function with given fields: _a0, _a1

func (*ResourceService) GetOne

func (_m *ResourceService) GetOne(_a0 context.Context, _a1 string) (*domain.Resource, error)

GetOne provides a mock function with given fields: _a0, _a1

func (*ResourceService) GetResourcesTotalCount added in v0.7.7

func (_m *ResourceService) GetResourcesTotalCount(_a0 context.Context, _a1 domain.ListResourcesFilter) (int64, error)

GetResourcesTotalCount provides a mock function with given fields: _a0, _a1

func (*ResourceService) Update

func (_m *ResourceService) Update(_a0 context.Context, _a1 *domain.Resource) error

Update provides a mock function with given fields: _a0, _a1

type ResourceService_BatchDelete_Call

type ResourceService_BatchDelete_Call struct {
	*mock.Call
}

ResourceService_BatchDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchDelete'

func (*ResourceService_BatchDelete_Call) Return

func (*ResourceService_BatchDelete_Call) Run

func (*ResourceService_BatchDelete_Call) RunAndReturn added in v0.7.5

type ResourceService_BulkUpsert_Call

type ResourceService_BulkUpsert_Call struct {
	*mock.Call
}

ResourceService_BulkUpsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkUpsert'

func (*ResourceService_BulkUpsert_Call) Return

func (*ResourceService_BulkUpsert_Call) Run

func (*ResourceService_BulkUpsert_Call) RunAndReturn added in v0.7.5

type ResourceService_Delete_Call

type ResourceService_Delete_Call struct {
	*mock.Call
}

ResourceService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*ResourceService_Delete_Call) Return

func (*ResourceService_Delete_Call) Run

func (*ResourceService_Delete_Call) RunAndReturn added in v0.7.5

type ResourceService_Expecter

type ResourceService_Expecter struct {
	// contains filtered or unexported fields
}

func (*ResourceService_Expecter) BatchDelete

func (_e *ResourceService_Expecter) BatchDelete(_a0 interface{}, _a1 interface{}) *ResourceService_BatchDelete_Call

BatchDelete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []string

func (*ResourceService_Expecter) BulkUpsert

func (_e *ResourceService_Expecter) BulkUpsert(_a0 interface{}, _a1 interface{}) *ResourceService_BulkUpsert_Call

BulkUpsert is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []*domain.Resource

func (*ResourceService_Expecter) Delete

func (_e *ResourceService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *ResourceService_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*ResourceService_Expecter) Find

func (_e *ResourceService_Expecter) Find(_a0 interface{}, _a1 interface{}) *ResourceService_Find_Call

Find is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.ListResourcesFilter

func (*ResourceService_Expecter) Get

func (_e *ResourceService_Expecter) Get(_a0 interface{}, _a1 interface{}) *ResourceService_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.ResourceIdentifier

func (*ResourceService_Expecter) GetOne

func (_e *ResourceService_Expecter) GetOne(_a0 interface{}, _a1 interface{}) *ResourceService_GetOne_Call

GetOne is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*ResourceService_Expecter) GetResourcesTotalCount added in v0.7.7

func (_e *ResourceService_Expecter) GetResourcesTotalCount(_a0 interface{}, _a1 interface{}) *ResourceService_GetResourcesTotalCount_Call

GetResourcesTotalCount is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.ListResourcesFilter

func (*ResourceService_Expecter) Update

func (_e *ResourceService_Expecter) Update(_a0 interface{}, _a1 interface{}) *ResourceService_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.Resource

type ResourceService_Find_Call

type ResourceService_Find_Call struct {
	*mock.Call
}

ResourceService_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'

func (*ResourceService_Find_Call) Return

func (*ResourceService_Find_Call) Run

func (*ResourceService_Find_Call) RunAndReturn added in v0.7.5

type ResourceService_GetOne_Call

type ResourceService_GetOne_Call struct {
	*mock.Call
}

ResourceService_GetOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOne'

func (*ResourceService_GetOne_Call) Return

func (*ResourceService_GetOne_Call) Run

func (*ResourceService_GetOne_Call) RunAndReturn added in v0.7.5

type ResourceService_GetResourcesTotalCount_Call added in v0.7.7

type ResourceService_GetResourcesTotalCount_Call struct {
	*mock.Call
}

ResourceService_GetResourcesTotalCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResourcesTotalCount'

func (*ResourceService_GetResourcesTotalCount_Call) Return added in v0.7.7

func (*ResourceService_GetResourcesTotalCount_Call) Run added in v0.7.7

func (*ResourceService_GetResourcesTotalCount_Call) RunAndReturn added in v0.7.7

type ResourceService_Get_Call

type ResourceService_Get_Call struct {
	*mock.Call
}

ResourceService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*ResourceService_Get_Call) Return

func (*ResourceService_Get_Call) Run

func (*ResourceService_Get_Call) RunAndReturn added in v0.7.5

type ResourceService_Update_Call

type ResourceService_Update_Call struct {
	*mock.Call
}

ResourceService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*ResourceService_Update_Call) Return

func (*ResourceService_Update_Call) Run

func (*ResourceService_Update_Call) RunAndReturn added in v0.7.5

Jump to

Keyboard shortcuts

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