mocks

package
v0.10.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 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 AppealService

type AppealService struct {
	mock.Mock
}

AppealService is an autogenerated mock type for the appealService type

func (*AppealService) Find

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

func (*AppealService) Revoke

func (_m *AppealService) Revoke(ctx context.Context, id string, actor string, reason string) (*domain.Appeal, error)

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

type GrantService

type GrantService struct {
	mock.Mock
}

GrantService is an autogenerated mock type for the grantService type

func NewGrantService added in v0.7.5

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 added in v0.7.5

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) DormancyCheck added in v0.7.5

func (_m *GrantService) DormancyCheck(_a0 context.Context, _a1 domain.DormancyCheckCriteria) error

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

func (*GrantService) EXPECT added in v0.7.5

func (_m *GrantService) EXPECT() *GrantService_Expecter

func (*GrantService) List

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

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 added in v0.7.5

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 added in v0.7.5

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 added in v0.7.5

func (*GrantService_BulkRevoke_Call) Run added in v0.7.5

func (*GrantService_BulkRevoke_Call) RunAndReturn added in v0.7.5

type GrantService_DormancyCheck_Call added in v0.7.5

type GrantService_DormancyCheck_Call struct {
	*mock.Call
}

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

func (*GrantService_DormancyCheck_Call) Return added in v0.7.5

func (*GrantService_DormancyCheck_Call) Run added in v0.7.5

func (*GrantService_DormancyCheck_Call) RunAndReturn added in v0.7.5

type GrantService_Expecter added in v0.7.5

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

func (*GrantService_Expecter) BulkRevoke added in v0.7.5

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) DormancyCheck added in v0.7.5

func (_e *GrantService_Expecter) DormancyCheck(_a0 interface{}, _a1 interface{}) *GrantService_DormancyCheck_Call

DormancyCheck is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.DormancyCheckCriteria

func (*GrantService_Expecter) List added in v0.7.5

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) Revoke added in v0.7.5

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 added in v0.7.5

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_List_Call added in v0.7.5

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 added in v0.7.5

func (*GrantService_List_Call) Run added in v0.7.5

func (*GrantService_List_Call) RunAndReturn added in v0.7.5

type GrantService_Revoke_Call added in v0.7.5

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 added in v0.7.5

func (*GrantService_Revoke_Call) Run added in v0.7.5

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 added in v0.7.5

type GrantService_Update_Call added in v0.7.5

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 added in v0.7.5

func (*GrantService_Update_Call) Run added in v0.7.5

func (*GrantService_Update_Call) RunAndReturn added in v0.7.5

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) FetchResources

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

FetchResources provides a mock function with given fields: _a0

func (*ProviderService) Find added in v0.7.5

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

Find provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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