mocks

package
v0.106.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MembershipService

type MembershipService struct {
	mock.Mock
}

MembershipService is an autogenerated mock type for the MembershipService type

func NewMembershipService

func NewMembershipService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MembershipService

NewMembershipService creates a new instance of MembershipService. 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 (*MembershipService) AddOrganizationMember

func (_m *MembershipService) AddOrganizationMember(ctx context.Context, orgID string, principalID string, principalType string, roleID string) error

AddOrganizationMember provides a mock function with given fields: ctx, orgID, principalID, principalType, roleID

func (*MembershipService) EXPECT

func (*MembershipService) ListResourcesByPrincipal

func (_m *MembershipService) ListResourcesByPrincipal(ctx context.Context, principal authenticate.Principal, resourceType string, filter membership.ResourceFilter) ([]string, error)

ListResourcesByPrincipal provides a mock function with given fields: ctx, principal, resourceType, filter

type MembershipService_AddOrganizationMember_Call

type MembershipService_AddOrganizationMember_Call struct {
	*mock.Call
}

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

func (*MembershipService_AddOrganizationMember_Call) Return

func (*MembershipService_AddOrganizationMember_Call) Run

func (*MembershipService_AddOrganizationMember_Call) RunAndReturn

type MembershipService_Expecter

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

func (*MembershipService_Expecter) AddOrganizationMember

func (_e *MembershipService_Expecter) AddOrganizationMember(ctx interface{}, orgID interface{}, principalID interface{}, principalType interface{}, roleID interface{}) *MembershipService_AddOrganizationMember_Call

AddOrganizationMember is a helper method to define mock.On call

  • ctx context.Context
  • orgID string
  • principalID string
  • principalType string
  • roleID string

func (*MembershipService_Expecter) ListResourcesByPrincipal

func (_e *MembershipService_Expecter) ListResourcesByPrincipal(ctx interface{}, principal interface{}, resourceType interface{}, filter interface{}) *MembershipService_ListResourcesByPrincipal_Call

ListResourcesByPrincipal is a helper method to define mock.On call

  • ctx context.Context
  • principal authenticate.Principal
  • resourceType string
  • filter membership.ResourceFilter

type MembershipService_ListResourcesByPrincipal_Call

type MembershipService_ListResourcesByPrincipal_Call struct {
	*mock.Call
}

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

func (*MembershipService_ListResourcesByPrincipal_Call) Return

func (*MembershipService_ListResourcesByPrincipal_Call) Run

type OrgService

type OrgService struct {
	mock.Mock
}

OrgService is an autogenerated mock type for the OrgService type

func NewOrgService

func NewOrgService(t interface {
	mock.TestingT
	Cleanup(func())
}) *OrgService

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

func (_m *OrgService) EXPECT() *OrgService_Expecter

func (*OrgService) Get

Get provides a mock function with given fields: ctx, id

type OrgService_Expecter

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

func (*OrgService_Expecter) Get

func (_e *OrgService_Expecter) Get(ctx interface{}, id interface{}) *OrgService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

type OrgService_Get_Call

type OrgService_Get_Call struct {
	*mock.Call
}

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

func (*OrgService_Get_Call) Return

func (*OrgService_Get_Call) Run

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

func (*OrgService_Get_Call) RunAndReturn

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

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

func (_m *Repository) Create(ctx context.Context, _a1 domain.Domain) (domain.Domain, error)

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

func (*Repository) Delete

func (_m *Repository) Delete(ctx context.Context, id string) error

Delete provides a mock function with given fields: ctx, id

func (*Repository) DeleteExpiredDomainRequests

func (_m *Repository) DeleteExpiredDomainRequests(ctx context.Context) error

DeleteExpiredDomainRequests provides a mock function with given fields: ctx

func (*Repository) EXPECT

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) Get

func (_m *Repository) Get(ctx context.Context, id string) (domain.Domain, error)

Get provides a mock function with given fields: ctx, id

func (*Repository) List

func (_m *Repository) List(ctx context.Context, flt domain.Filter) ([]domain.Domain, error)

List provides a mock function with given fields: ctx, flt

func (*Repository) Update

func (_m *Repository) Update(ctx context.Context, _a1 domain.Domain) (domain.Domain, error)

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

type Repository_Create_Call

type Repository_Create_Call struct {
	*mock.Call
}

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

func (*Repository_Create_Call) Return

func (*Repository_Create_Call) Run

func (*Repository_Create_Call) RunAndReturn

type Repository_DeleteExpiredDomainRequests_Call

type Repository_DeleteExpiredDomainRequests_Call struct {
	*mock.Call
}

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

func (*Repository_DeleteExpiredDomainRequests_Call) Return

func (*Repository_DeleteExpiredDomainRequests_Call) Run

func (*Repository_DeleteExpiredDomainRequests_Call) RunAndReturn

type Repository_Delete_Call

type Repository_Delete_Call struct {
	*mock.Call
}

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

func (*Repository_Delete_Call) Return

func (*Repository_Delete_Call) Run

func (*Repository_Delete_Call) RunAndReturn

type Repository_Expecter

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

func (*Repository_Expecter) Create

func (_e *Repository_Expecter) Create(ctx interface{}, _a1 interface{}) *Repository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • _a1 domain.Domain

func (*Repository_Expecter) Delete

func (_e *Repository_Expecter) Delete(ctx interface{}, id interface{}) *Repository_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Repository_Expecter) DeleteExpiredDomainRequests

func (_e *Repository_Expecter) DeleteExpiredDomainRequests(ctx interface{}) *Repository_DeleteExpiredDomainRequests_Call

DeleteExpiredDomainRequests is a helper method to define mock.On call

  • ctx context.Context

func (*Repository_Expecter) Get

func (_e *Repository_Expecter) Get(ctx interface{}, id interface{}) *Repository_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Repository_Expecter) List

func (_e *Repository_Expecter) List(ctx interface{}, flt interface{}) *Repository_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt domain.Filter

func (*Repository_Expecter) Update

func (_e *Repository_Expecter) Update(ctx interface{}, _a1 interface{}) *Repository_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • _a1 domain.Domain

type Repository_Get_Call

type Repository_Get_Call struct {
	*mock.Call
}

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

func (*Repository_Get_Call) Return

func (*Repository_Get_Call) Run

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

func (*Repository_Get_Call) RunAndReturn

type Repository_List_Call

type Repository_List_Call struct {
	*mock.Call
}

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

func (*Repository_List_Call) Return

func (*Repository_List_Call) Run

func (*Repository_List_Call) RunAndReturn

type Repository_Update_Call

type Repository_Update_Call struct {
	*mock.Call
}

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

func (*Repository_Update_Call) Return

func (*Repository_Update_Call) Run

func (*Repository_Update_Call) RunAndReturn

type UserService

type UserService struct {
	mock.Mock
}

UserService is an autogenerated mock type for the UserService type

func NewUserService

func NewUserService(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserService

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

func (_m *UserService) EXPECT() *UserService_Expecter

func (*UserService) GetByID

func (_m *UserService) GetByID(ctx context.Context, id string) (user.User, error)

GetByID provides a mock function with given fields: ctx, id

type UserService_Expecter

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

func (*UserService_Expecter) GetByID

func (_e *UserService_Expecter) GetByID(ctx interface{}, id interface{}) *UserService_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

type UserService_GetByID_Call

type UserService_GetByID_Call struct {
	*mock.Call
}

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

func (*UserService_GetByID_Call) Return

func (*UserService_GetByID_Call) Run

func (*UserService_GetByID_Call) RunAndReturn

Jump to

Keyboard shortcuts

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