Documentation
¶
Index ¶
- type MembershipService
- func (_m *MembershipService) AddOrganizationMember(ctx context.Context, orgID string, principalID string, principalType string, ...) error
- func (_m *MembershipService) EXPECT() *MembershipService_Expecter
- func (_m *MembershipService) ListResourcesByPrincipal(ctx context.Context, principal authenticate.Principal, resourceType string, ...) ([]string, error)
- type MembershipService_AddOrganizationMember_Call
- func (_c *MembershipService_AddOrganizationMember_Call) Return(_a0 error) *MembershipService_AddOrganizationMember_Call
- func (_c *MembershipService_AddOrganizationMember_Call) Run(...) *MembershipService_AddOrganizationMember_Call
- func (_c *MembershipService_AddOrganizationMember_Call) RunAndReturn(run func(context.Context, string, string, string, string) error) *MembershipService_AddOrganizationMember_Call
- type MembershipService_Expecter
- func (_e *MembershipService_Expecter) AddOrganizationMember(ctx interface{}, orgID interface{}, principalID interface{}, ...) *MembershipService_AddOrganizationMember_Call
- func (_e *MembershipService_Expecter) ListResourcesByPrincipal(ctx interface{}, principal interface{}, resourceType interface{}, ...) *MembershipService_ListResourcesByPrincipal_Call
- type MembershipService_ListResourcesByPrincipal_Call
- func (_c *MembershipService_ListResourcesByPrincipal_Call) Return(_a0 []string, _a1 error) *MembershipService_ListResourcesByPrincipal_Call
- func (_c *MembershipService_ListResourcesByPrincipal_Call) Run(...) *MembershipService_ListResourcesByPrincipal_Call
- func (_c *MembershipService_ListResourcesByPrincipal_Call) RunAndReturn(...) *MembershipService_ListResourcesByPrincipal_Call
- type OrgService
- type OrgService_Expecter
- type OrgService_Get_Call
- func (_c *OrgService_Get_Call) Return(_a0 organization.Organization, _a1 error) *OrgService_Get_Call
- func (_c *OrgService_Get_Call) Run(run func(ctx context.Context, id string)) *OrgService_Get_Call
- func (_c *OrgService_Get_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrgService_Get_Call
- type Repository
- func (_m *Repository) Create(ctx context.Context, _a1 domain.Domain) (domain.Domain, error)
- func (_m *Repository) Delete(ctx context.Context, id string) error
- func (_m *Repository) DeleteExpiredDomainRequests(ctx context.Context) error
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) Get(ctx context.Context, id string) (domain.Domain, error)
- func (_m *Repository) List(ctx context.Context, flt domain.Filter) ([]domain.Domain, error)
- func (_m *Repository) Update(ctx context.Context, _a1 domain.Domain) (domain.Domain, error)
- type Repository_Create_Call
- func (_c *Repository_Create_Call) Return(_a0 domain.Domain, _a1 error) *Repository_Create_Call
- func (_c *Repository_Create_Call) Run(run func(ctx context.Context, _a1 domain.Domain)) *Repository_Create_Call
- func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, domain.Domain) (domain.Domain, error)) *Repository_Create_Call
- type Repository_DeleteExpiredDomainRequests_Call
- func (_c *Repository_DeleteExpiredDomainRequests_Call) Return(_a0 error) *Repository_DeleteExpiredDomainRequests_Call
- func (_c *Repository_DeleteExpiredDomainRequests_Call) Run(run func(ctx context.Context)) *Repository_DeleteExpiredDomainRequests_Call
- func (_c *Repository_DeleteExpiredDomainRequests_Call) RunAndReturn(run func(context.Context) error) *Repository_DeleteExpiredDomainRequests_Call
- type Repository_Delete_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) Create(ctx interface{}, _a1 interface{}) *Repository_Create_Call
- func (_e *Repository_Expecter) Delete(ctx interface{}, id interface{}) *Repository_Delete_Call
- func (_e *Repository_Expecter) DeleteExpiredDomainRequests(ctx interface{}) *Repository_DeleteExpiredDomainRequests_Call
- func (_e *Repository_Expecter) Get(ctx interface{}, id interface{}) *Repository_Get_Call
- func (_e *Repository_Expecter) List(ctx interface{}, flt interface{}) *Repository_List_Call
- func (_e *Repository_Expecter) Update(ctx interface{}, _a1 interface{}) *Repository_Update_Call
- type Repository_Get_Call
- func (_c *Repository_Get_Call) Return(_a0 domain.Domain, _a1 error) *Repository_Get_Call
- func (_c *Repository_Get_Call) Run(run func(ctx context.Context, id string)) *Repository_Get_Call
- func (_c *Repository_Get_Call) RunAndReturn(run func(context.Context, string) (domain.Domain, error)) *Repository_Get_Call
- type Repository_List_Call
- func (_c *Repository_List_Call) Return(_a0 []domain.Domain, _a1 error) *Repository_List_Call
- func (_c *Repository_List_Call) Run(run func(ctx context.Context, flt domain.Filter)) *Repository_List_Call
- func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, domain.Filter) ([]domain.Domain, error)) *Repository_List_Call
- type Repository_Update_Call
- func (_c *Repository_Update_Call) Return(_a0 domain.Domain, _a1 error) *Repository_Update_Call
- func (_c *Repository_Update_Call) Run(run func(ctx context.Context, _a1 domain.Domain)) *Repository_Update_Call
- func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, domain.Domain) (domain.Domain, error)) *Repository_Update_Call
- type UserService
- type UserService_Expecter
- type UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) Return(_a0 user.User, _a1 error) *UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) Run(run func(ctx context.Context, id string)) *UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserService_GetByID_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MembershipService ¶
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 (_m *MembershipService) EXPECT() *MembershipService_Expecter
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 ¶
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 (_c *MembershipService_AddOrganizationMember_Call) Return(_a0 error) *MembershipService_AddOrganizationMember_Call
func (*MembershipService_AddOrganizationMember_Call) Run ¶
func (_c *MembershipService_AddOrganizationMember_Call) Run(run func(ctx context.Context, orgID string, principalID string, principalType string, roleID string)) *MembershipService_AddOrganizationMember_Call
func (*MembershipService_AddOrganizationMember_Call) RunAndReturn ¶
func (_c *MembershipService_AddOrganizationMember_Call) RunAndReturn(run func(context.Context, string, string, string, string) error) *MembershipService_AddOrganizationMember_Call
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 ¶
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 (_c *MembershipService_ListResourcesByPrincipal_Call) Return(_a0 []string, _a1 error) *MembershipService_ListResourcesByPrincipal_Call
func (*MembershipService_ListResourcesByPrincipal_Call) Run ¶
func (_c *MembershipService_ListResourcesByPrincipal_Call) Run(run func(ctx context.Context, principal authenticate.Principal, resourceType string, filter membership.ResourceFilter)) *MembershipService_ListResourcesByPrincipal_Call
func (*MembershipService_ListResourcesByPrincipal_Call) RunAndReturn ¶
func (_c *MembershipService_ListResourcesByPrincipal_Call) RunAndReturn(run func(context.Context, authenticate.Principal, string, membership.ResourceFilter) ([]string, error)) *MembershipService_ListResourcesByPrincipal_Call
type OrgService ¶
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 ¶
func (_m *OrgService) Get(ctx context.Context, id string) (organization.Organization, error)
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 ¶
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 (_c *OrgService_Get_Call) Return(_a0 organization.Organization, _a1 error) *OrgService_Get_Call
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 ¶
func (_c *OrgService_Get_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrgService_Get_Call
type Repository ¶
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) 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
type Repository_Create_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 (_c *Repository_Create_Call) Return(_a0 domain.Domain, _a1 error) *Repository_Create_Call
func (*Repository_Create_Call) Run ¶
func (_c *Repository_Create_Call) Run(run func(ctx context.Context, _a1 domain.Domain)) *Repository_Create_Call
func (*Repository_Create_Call) RunAndReturn ¶
func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, domain.Domain) (domain.Domain, error)) *Repository_Create_Call
type Repository_DeleteExpiredDomainRequests_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 (_c *Repository_DeleteExpiredDomainRequests_Call) Return(_a0 error) *Repository_DeleteExpiredDomainRequests_Call
func (*Repository_DeleteExpiredDomainRequests_Call) Run ¶
func (_c *Repository_DeleteExpiredDomainRequests_Call) Run(run func(ctx context.Context)) *Repository_DeleteExpiredDomainRequests_Call
func (*Repository_DeleteExpiredDomainRequests_Call) RunAndReturn ¶
func (_c *Repository_DeleteExpiredDomainRequests_Call) RunAndReturn(run func(context.Context) error) *Repository_DeleteExpiredDomainRequests_Call
type Repository_Delete_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 (_c *Repository_Delete_Call) Return(_a0 error) *Repository_Delete_Call
func (*Repository_Delete_Call) Run ¶
func (_c *Repository_Delete_Call) Run(run func(ctx context.Context, id string)) *Repository_Delete_Call
func (*Repository_Delete_Call) RunAndReturn ¶
func (_c *Repository_Delete_Call) RunAndReturn(run func(context.Context, string) error) *Repository_Delete_Call
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 ¶
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 (_c *Repository_Get_Call) Return(_a0 domain.Domain, _a1 error) *Repository_Get_Call
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 ¶
func (_c *Repository_Get_Call) RunAndReturn(run func(context.Context, string) (domain.Domain, error)) *Repository_Get_Call
type Repository_List_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 (_c *Repository_List_Call) Return(_a0 []domain.Domain, _a1 error) *Repository_List_Call
func (*Repository_List_Call) Run ¶
func (_c *Repository_List_Call) Run(run func(ctx context.Context, flt domain.Filter)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶
func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, domain.Filter) ([]domain.Domain, error)) *Repository_List_Call
type Repository_Update_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 (_c *Repository_Update_Call) Return(_a0 domain.Domain, _a1 error) *Repository_Update_Call
func (*Repository_Update_Call) Run ¶
func (_c *Repository_Update_Call) Run(run func(ctx context.Context, _a1 domain.Domain)) *Repository_Update_Call
func (*Repository_Update_Call) RunAndReturn ¶
func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, domain.Domain) (domain.Domain, error)) *Repository_Update_Call
type UserService ¶
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
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 ¶
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 (_c *UserService_GetByID_Call) Return(_a0 user.User, _a1 error) *UserService_GetByID_Call
func (*UserService_GetByID_Call) Run ¶
func (_c *UserService_GetByID_Call) Run(run func(ctx context.Context, id string)) *UserService_GetByID_Call
func (*UserService_GetByID_Call) RunAndReturn ¶
func (_c *UserService_GetByID_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserService_GetByID_Call