Documentation
¶
Index ¶
- type CustomerService
- type CustomerService_Delete_Call
- func (_c *CustomerService_Delete_Call) Return(_a0 error) *CustomerService_Delete_Call
- func (_c *CustomerService_Delete_Call) Run(run func(ctx context.Context, id string)) *CustomerService_Delete_Call
- func (_c *CustomerService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *CustomerService_Delete_Call
- type CustomerService_Expecter
- type CustomerService_List_Call
- func (_c *CustomerService_List_Call) Return(_a0 []customer.Customer, _a1 error) *CustomerService_List_Call
- func (_c *CustomerService_List_Call) Run(run func(ctx context.Context, filter customer.Filter)) *CustomerService_List_Call
- func (_c *CustomerService_List_Call) RunAndReturn(run func(context.Context, customer.Filter) ([]customer.Customer, error)) *CustomerService_List_Call
- type GroupService
- func (_m *GroupService) Delete(ctx context.Context, id string) error
- func (_m *GroupService) EXPECT() *GroupService_Expecter
- func (_m *GroupService) List(ctx context.Context, flt group.Filter) ([]group.Group, error)
- func (_m *GroupService) RemoveUsers(ctx context.Context, groupID string, userIDs []string) error
- type GroupService_Delete_Call
- func (_c *GroupService_Delete_Call) Return(_a0 error) *GroupService_Delete_Call
- func (_c *GroupService_Delete_Call) Run(run func(ctx context.Context, id string)) *GroupService_Delete_Call
- func (_c *GroupService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *GroupService_Delete_Call
- type GroupService_Expecter
- func (_e *GroupService_Expecter) Delete(ctx interface{}, id interface{}) *GroupService_Delete_Call
- func (_e *GroupService_Expecter) List(ctx interface{}, flt interface{}) *GroupService_List_Call
- func (_e *GroupService_Expecter) RemoveUsers(ctx interface{}, groupID interface{}, userIDs interface{}) *GroupService_RemoveUsers_Call
- type GroupService_List_Call
- func (_c *GroupService_List_Call) Return(_a0 []group.Group, _a1 error) *GroupService_List_Call
- func (_c *GroupService_List_Call) Run(run func(ctx context.Context, flt group.Filter)) *GroupService_List_Call
- func (_c *GroupService_List_Call) RunAndReturn(run func(context.Context, group.Filter) ([]group.Group, error)) *GroupService_List_Call
- type GroupService_RemoveUsers_Call
- func (_c *GroupService_RemoveUsers_Call) Return(_a0 error) *GroupService_RemoveUsers_Call
- func (_c *GroupService_RemoveUsers_Call) Run(run func(ctx context.Context, groupID string, userIDs []string)) *GroupService_RemoveUsers_Call
- func (_c *GroupService_RemoveUsers_Call) RunAndReturn(run func(context.Context, string, []string) error) *GroupService_RemoveUsers_Call
- type InvitationService
- type InvitationService_Delete_Call
- func (_c *InvitationService_Delete_Call) Return(_a0 error) *InvitationService_Delete_Call
- func (_c *InvitationService_Delete_Call) Run(run func(ctx context.Context, id uuid.UUID)) *InvitationService_Delete_Call
- func (_c *InvitationService_Delete_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *InvitationService_Delete_Call
- type InvitationService_Expecter
- type InvitationService_List_Call
- func (_c *InvitationService_List_Call) Return(_a0 []invitation.Invitation, _a1 error) *InvitationService_List_Call
- func (_c *InvitationService_List_Call) Run(run func(ctx context.Context, flt invitation.Filter)) *InvitationService_List_Call
- func (_c *InvitationService_List_Call) RunAndReturn(run func(context.Context, invitation.Filter) ([]invitation.Invitation, error)) *InvitationService_List_Call
- type InvoiceService
- type InvoiceService_DeleteByCustomer_Call
- func (_c *InvoiceService_DeleteByCustomer_Call) Return(_a0 error) *InvoiceService_DeleteByCustomer_Call
- func (_c *InvoiceService_DeleteByCustomer_Call) Run(run func(ctx context.Context, customr customer.Customer)) *InvoiceService_DeleteByCustomer_Call
- func (_c *InvoiceService_DeleteByCustomer_Call) RunAndReturn(run func(context.Context, customer.Customer) error) *InvoiceService_DeleteByCustomer_Call
- type InvoiceService_Expecter
- type InvoiceService_List_Call
- func (_c *InvoiceService_List_Call) Return(_a0 []invoice.Invoice, _a1 error) *InvoiceService_List_Call
- func (_c *InvoiceService_List_Call) Run(run func(ctx context.Context, flt invoice.Filter)) *InvoiceService_List_Call
- func (_c *InvoiceService_List_Call) RunAndReturn(run func(context.Context, invoice.Filter) ([]invoice.Invoice, error)) *InvoiceService_List_Call
- type OrganizationService
- func (_m *OrganizationService) DeleteModel(ctx context.Context, id string) error
- func (_m *OrganizationService) EXPECT() *OrganizationService_Expecter
- func (_m *OrganizationService) Get(ctx context.Context, id string) (organization.Organization, error)
- func (_m *OrganizationService) ListByUser(ctx context.Context, principal authenticate.Principal, f organization.Filter) ([]organization.Organization, error)
- func (_m *OrganizationService) RemoveUsers(ctx context.Context, orgID string, userIDs []string) error
- type OrganizationService_DeleteModel_Call
- func (_c *OrganizationService_DeleteModel_Call) Return(_a0 error) *OrganizationService_DeleteModel_Call
- func (_c *OrganizationService_DeleteModel_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_DeleteModel_Call
- func (_c *OrganizationService_DeleteModel_Call) RunAndReturn(run func(context.Context, string) error) *OrganizationService_DeleteModel_Call
- type OrganizationService_Expecter
- func (_e *OrganizationService_Expecter) DeleteModel(ctx interface{}, id interface{}) *OrganizationService_DeleteModel_Call
- func (_e *OrganizationService_Expecter) Get(ctx interface{}, id interface{}) *OrganizationService_Get_Call
- func (_e *OrganizationService_Expecter) ListByUser(ctx interface{}, principal interface{}, f interface{}) *OrganizationService_ListByUser_Call
- func (_e *OrganizationService_Expecter) RemoveUsers(ctx interface{}, orgID interface{}, userIDs interface{}) *OrganizationService_RemoveUsers_Call
- type OrganizationService_Get_Call
- func (_c *OrganizationService_Get_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_Get_Call
- func (_c *OrganizationService_Get_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_Get_Call
- func (_c *OrganizationService_Get_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrganizationService_Get_Call
- type OrganizationService_ListByUser_Call
- func (_c *OrganizationService_ListByUser_Call) Return(_a0 []organization.Organization, _a1 error) *OrganizationService_ListByUser_Call
- func (_c *OrganizationService_ListByUser_Call) Run(...) *OrganizationService_ListByUser_Call
- func (_c *OrganizationService_ListByUser_Call) RunAndReturn(...) *OrganizationService_ListByUser_Call
- type OrganizationService_RemoveUsers_Call
- func (_c *OrganizationService_RemoveUsers_Call) Return(_a0 error) *OrganizationService_RemoveUsers_Call
- func (_c *OrganizationService_RemoveUsers_Call) Run(run func(ctx context.Context, orgID string, userIDs []string)) *OrganizationService_RemoveUsers_Call
- func (_c *OrganizationService_RemoveUsers_Call) RunAndReturn(run func(context.Context, string, []string) error) *OrganizationService_RemoveUsers_Call
- type PolicyService
- type PolicyService_Delete_Call
- func (_c *PolicyService_Delete_Call) Return(_a0 error) *PolicyService_Delete_Call
- func (_c *PolicyService_Delete_Call) Run(run func(ctx context.Context, id string)) *PolicyService_Delete_Call
- func (_c *PolicyService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *PolicyService_Delete_Call
- type PolicyService_Expecter
- type PolicyService_List_Call
- func (_c *PolicyService_List_Call) Return(_a0 []policy.Policy, _a1 error) *PolicyService_List_Call
- func (_c *PolicyService_List_Call) Run(run func(ctx context.Context, flt policy.Filter)) *PolicyService_List_Call
- func (_c *PolicyService_List_Call) RunAndReturn(run func(context.Context, policy.Filter) ([]policy.Policy, error)) *PolicyService_List_Call
- type ProjectService
- type ProjectService_DeleteModel_Call
- func (_c *ProjectService_DeleteModel_Call) Return(_a0 error) *ProjectService_DeleteModel_Call
- func (_c *ProjectService_DeleteModel_Call) Run(run func(ctx context.Context, id string)) *ProjectService_DeleteModel_Call
- func (_c *ProjectService_DeleteModel_Call) RunAndReturn(run func(context.Context, string) error) *ProjectService_DeleteModel_Call
- type ProjectService_Expecter
- type ProjectService_List_Call
- func (_c *ProjectService_List_Call) Return(_a0 []project.Project, _a1 error) *ProjectService_List_Call
- func (_c *ProjectService_List_Call) Run(run func(ctx context.Context, flt project.Filter)) *ProjectService_List_Call
- func (_c *ProjectService_List_Call) RunAndReturn(run func(context.Context, project.Filter) ([]project.Project, error)) *ProjectService_List_Call
- type ResourceService
- func (_m *ResourceService) Delete(ctx context.Context, namespaceID string, id string) error
- func (_m *ResourceService) EXPECT() *ResourceService_Expecter
- func (_m *ResourceService) Get(ctx context.Context, id string) (resource.Resource, error)
- func (_m *ResourceService) List(ctx context.Context, flt resource.Filter) ([]resource.Resource, error)
- type ResourceService_Delete_Call
- func (_c *ResourceService_Delete_Call) Return(_a0 error) *ResourceService_Delete_Call
- func (_c *ResourceService_Delete_Call) Run(run func(ctx context.Context, namespaceID string, id string)) *ResourceService_Delete_Call
- func (_c *ResourceService_Delete_Call) RunAndReturn(run func(context.Context, string, string) error) *ResourceService_Delete_Call
- type ResourceService_Expecter
- func (_e *ResourceService_Expecter) Delete(ctx interface{}, namespaceID interface{}, id interface{}) *ResourceService_Delete_Call
- func (_e *ResourceService_Expecter) Get(ctx interface{}, id interface{}) *ResourceService_Get_Call
- func (_e *ResourceService_Expecter) List(ctx interface{}, flt interface{}) *ResourceService_List_Call
- type ResourceService_Get_Call
- func (_c *ResourceService_Get_Call) Return(_a0 resource.Resource, _a1 error) *ResourceService_Get_Call
- func (_c *ResourceService_Get_Call) Run(run func(ctx context.Context, id string)) *ResourceService_Get_Call
- func (_c *ResourceService_Get_Call) RunAndReturn(run func(context.Context, string) (resource.Resource, error)) *ResourceService_Get_Call
- type ResourceService_List_Call
- func (_c *ResourceService_List_Call) Return(_a0 []resource.Resource, _a1 error) *ResourceService_List_Call
- func (_c *ResourceService_List_Call) Run(run func(ctx context.Context, flt resource.Filter)) *ResourceService_List_Call
- func (_c *ResourceService_List_Call) RunAndReturn(run func(context.Context, resource.Filter) ([]resource.Resource, error)) *ResourceService_List_Call
- type RoleService
- type RoleService_Delete_Call
- type RoleService_Expecter
- type RoleService_List_Call
- func (_c *RoleService_List_Call) Return(_a0 []role.Role, _a1 error) *RoleService_List_Call
- func (_c *RoleService_List_Call) Run(run func(ctx context.Context, flt role.Filter)) *RoleService_List_Call
- func (_c *RoleService_List_Call) RunAndReturn(run func(context.Context, role.Filter) ([]role.Role, error)) *RoleService_List_Call
- type SubscriptionService
- type SubscriptionService_DeleteByCustomer_Call
- func (_c *SubscriptionService_DeleteByCustomer_Call) Return(_a0 error) *SubscriptionService_DeleteByCustomer_Call
- func (_c *SubscriptionService_DeleteByCustomer_Call) Run(run func(ctx context.Context, customr customer.Customer)) *SubscriptionService_DeleteByCustomer_Call
- func (_c *SubscriptionService_DeleteByCustomer_Call) RunAndReturn(run func(context.Context, customer.Customer) error) *SubscriptionService_DeleteByCustomer_Call
- type SubscriptionService_Expecter
- type UserService
- type UserService_Delete_Call
- type UserService_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerService ¶
CustomerService is an autogenerated mock type for the CustomerService type
func NewCustomerService ¶
func NewCustomerService(t interface {
mock.TestingT
Cleanup(func())
}) *CustomerService
NewCustomerService creates a new instance of CustomerService. 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 (*CustomerService) Delete ¶
func (_m *CustomerService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*CustomerService) EXPECT ¶
func (_m *CustomerService) EXPECT() *CustomerService_Expecter
type CustomerService_Delete_Call ¶
CustomerService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*CustomerService_Delete_Call) Return ¶
func (_c *CustomerService_Delete_Call) Return(_a0 error) *CustomerService_Delete_Call
func (*CustomerService_Delete_Call) Run ¶
func (_c *CustomerService_Delete_Call) Run(run func(ctx context.Context, id string)) *CustomerService_Delete_Call
func (*CustomerService_Delete_Call) RunAndReturn ¶
func (_c *CustomerService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *CustomerService_Delete_Call
type CustomerService_Expecter ¶
type CustomerService_Expecter struct {
// contains filtered or unexported fields
}
func (*CustomerService_Expecter) Delete ¶
func (_e *CustomerService_Expecter) Delete(ctx interface{}, id interface{}) *CustomerService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*CustomerService_Expecter) List ¶
func (_e *CustomerService_Expecter) List(ctx interface{}, filter interface{}) *CustomerService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter customer.Filter
type CustomerService_List_Call ¶
CustomerService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*CustomerService_List_Call) Return ¶
func (_c *CustomerService_List_Call) Return(_a0 []customer.Customer, _a1 error) *CustomerService_List_Call
func (*CustomerService_List_Call) Run ¶
func (_c *CustomerService_List_Call) Run(run func(ctx context.Context, filter customer.Filter)) *CustomerService_List_Call
func (*CustomerService_List_Call) RunAndReturn ¶
func (_c *CustomerService_List_Call) RunAndReturn(run func(context.Context, customer.Filter) ([]customer.Customer, error)) *CustomerService_List_Call
type GroupService ¶
GroupService is an autogenerated mock type for the GroupService type
func NewGroupService ¶
func NewGroupService(t interface {
mock.TestingT
Cleanup(func())
}) *GroupService
NewGroupService creates a new instance of GroupService. 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 (*GroupService) Delete ¶
func (_m *GroupService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*GroupService) EXPECT ¶
func (_m *GroupService) EXPECT() *GroupService_Expecter
func (*GroupService) RemoveUsers ¶
RemoveUsers provides a mock function with given fields: ctx, groupID, userIDs
type GroupService_Delete_Call ¶
GroupService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*GroupService_Delete_Call) Return ¶
func (_c *GroupService_Delete_Call) Return(_a0 error) *GroupService_Delete_Call
func (*GroupService_Delete_Call) Run ¶
func (_c *GroupService_Delete_Call) Run(run func(ctx context.Context, id string)) *GroupService_Delete_Call
func (*GroupService_Delete_Call) RunAndReturn ¶
func (_c *GroupService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *GroupService_Delete_Call
type GroupService_Expecter ¶
type GroupService_Expecter struct {
// contains filtered or unexported fields
}
func (*GroupService_Expecter) Delete ¶
func (_e *GroupService_Expecter) Delete(ctx interface{}, id interface{}) *GroupService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*GroupService_Expecter) List ¶
func (_e *GroupService_Expecter) List(ctx interface{}, flt interface{}) *GroupService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt group.Filter
func (*GroupService_Expecter) RemoveUsers ¶
func (_e *GroupService_Expecter) RemoveUsers(ctx interface{}, groupID interface{}, userIDs interface{}) *GroupService_RemoveUsers_Call
RemoveUsers is a helper method to define mock.On call
- ctx context.Context
- groupID string
- userIDs []string
type GroupService_List_Call ¶
GroupService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*GroupService_List_Call) Return ¶
func (_c *GroupService_List_Call) Return(_a0 []group.Group, _a1 error) *GroupService_List_Call
func (*GroupService_List_Call) Run ¶
func (_c *GroupService_List_Call) Run(run func(ctx context.Context, flt group.Filter)) *GroupService_List_Call
func (*GroupService_List_Call) RunAndReturn ¶
func (_c *GroupService_List_Call) RunAndReturn(run func(context.Context, group.Filter) ([]group.Group, error)) *GroupService_List_Call
type GroupService_RemoveUsers_Call ¶
GroupService_RemoveUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveUsers'
func (*GroupService_RemoveUsers_Call) Return ¶
func (_c *GroupService_RemoveUsers_Call) Return(_a0 error) *GroupService_RemoveUsers_Call
func (*GroupService_RemoveUsers_Call) Run ¶
func (_c *GroupService_RemoveUsers_Call) Run(run func(ctx context.Context, groupID string, userIDs []string)) *GroupService_RemoveUsers_Call
func (*GroupService_RemoveUsers_Call) RunAndReturn ¶
func (_c *GroupService_RemoveUsers_Call) RunAndReturn(run func(context.Context, string, []string) error) *GroupService_RemoveUsers_Call
type InvitationService ¶
InvitationService is an autogenerated mock type for the InvitationService type
func NewInvitationService ¶
func NewInvitationService(t interface {
mock.TestingT
Cleanup(func())
}) *InvitationService
NewInvitationService creates a new instance of InvitationService. 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 (*InvitationService) EXPECT ¶
func (_m *InvitationService) EXPECT() *InvitationService_Expecter
func (*InvitationService) List ¶
func (_m *InvitationService) List(ctx context.Context, flt invitation.Filter) ([]invitation.Invitation, error)
List provides a mock function with given fields: ctx, flt
type InvitationService_Delete_Call ¶
InvitationService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*InvitationService_Delete_Call) Return ¶
func (_c *InvitationService_Delete_Call) Return(_a0 error) *InvitationService_Delete_Call
func (*InvitationService_Delete_Call) Run ¶
func (_c *InvitationService_Delete_Call) Run(run func(ctx context.Context, id uuid.UUID)) *InvitationService_Delete_Call
func (*InvitationService_Delete_Call) RunAndReturn ¶
func (_c *InvitationService_Delete_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *InvitationService_Delete_Call
type InvitationService_Expecter ¶
type InvitationService_Expecter struct {
// contains filtered or unexported fields
}
func (*InvitationService_Expecter) Delete ¶
func (_e *InvitationService_Expecter) Delete(ctx interface{}, id interface{}) *InvitationService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*InvitationService_Expecter) List ¶
func (_e *InvitationService_Expecter) List(ctx interface{}, flt interface{}) *InvitationService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt invitation.Filter
type InvitationService_List_Call ¶
InvitationService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*InvitationService_List_Call) Return ¶
func (_c *InvitationService_List_Call) Return(_a0 []invitation.Invitation, _a1 error) *InvitationService_List_Call
func (*InvitationService_List_Call) Run ¶
func (_c *InvitationService_List_Call) Run(run func(ctx context.Context, flt invitation.Filter)) *InvitationService_List_Call
func (*InvitationService_List_Call) RunAndReturn ¶
func (_c *InvitationService_List_Call) RunAndReturn(run func(context.Context, invitation.Filter) ([]invitation.Invitation, error)) *InvitationService_List_Call
type InvoiceService ¶
InvoiceService is an autogenerated mock type for the InvoiceService type
func NewInvoiceService ¶
func NewInvoiceService(t interface {
mock.TestingT
Cleanup(func())
}) *InvoiceService
NewInvoiceService creates a new instance of InvoiceService. 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 (*InvoiceService) DeleteByCustomer ¶
DeleteByCustomer provides a mock function with given fields: ctx, customr
func (*InvoiceService) EXPECT ¶
func (_m *InvoiceService) EXPECT() *InvoiceService_Expecter
type InvoiceService_DeleteByCustomer_Call ¶
InvoiceService_DeleteByCustomer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByCustomer'
func (*InvoiceService_DeleteByCustomer_Call) Return ¶
func (_c *InvoiceService_DeleteByCustomer_Call) Return(_a0 error) *InvoiceService_DeleteByCustomer_Call
func (*InvoiceService_DeleteByCustomer_Call) Run ¶
func (_c *InvoiceService_DeleteByCustomer_Call) Run(run func(ctx context.Context, customr customer.Customer)) *InvoiceService_DeleteByCustomer_Call
func (*InvoiceService_DeleteByCustomer_Call) RunAndReturn ¶
func (_c *InvoiceService_DeleteByCustomer_Call) RunAndReturn(run func(context.Context, customer.Customer) error) *InvoiceService_DeleteByCustomer_Call
type InvoiceService_Expecter ¶
type InvoiceService_Expecter struct {
// contains filtered or unexported fields
}
func (*InvoiceService_Expecter) DeleteByCustomer ¶
func (_e *InvoiceService_Expecter) DeleteByCustomer(ctx interface{}, customr interface{}) *InvoiceService_DeleteByCustomer_Call
DeleteByCustomer is a helper method to define mock.On call
- ctx context.Context
- customr customer.Customer
func (*InvoiceService_Expecter) List ¶
func (_e *InvoiceService_Expecter) List(ctx interface{}, flt interface{}) *InvoiceService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt invoice.Filter
type InvoiceService_List_Call ¶
InvoiceService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*InvoiceService_List_Call) Return ¶
func (_c *InvoiceService_List_Call) Return(_a0 []invoice.Invoice, _a1 error) *InvoiceService_List_Call
func (*InvoiceService_List_Call) Run ¶
func (_c *InvoiceService_List_Call) Run(run func(ctx context.Context, flt invoice.Filter)) *InvoiceService_List_Call
func (*InvoiceService_List_Call) RunAndReturn ¶
func (_c *InvoiceService_List_Call) RunAndReturn(run func(context.Context, invoice.Filter) ([]invoice.Invoice, error)) *InvoiceService_List_Call
type OrganizationService ¶
OrganizationService is an autogenerated mock type for the OrganizationService type
func NewOrganizationService ¶
func NewOrganizationService(t interface {
mock.TestingT
Cleanup(func())
}) *OrganizationService
NewOrganizationService creates a new instance of OrganizationService. 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 (*OrganizationService) DeleteModel ¶
func (_m *OrganizationService) DeleteModel(ctx context.Context, id string) error
DeleteModel provides a mock function with given fields: ctx, id
func (*OrganizationService) EXPECT ¶
func (_m *OrganizationService) EXPECT() *OrganizationService_Expecter
func (*OrganizationService) Get ¶
func (_m *OrganizationService) Get(ctx context.Context, id string) (organization.Organization, error)
Get provides a mock function with given fields: ctx, id
func (*OrganizationService) ListByUser ¶
func (_m *OrganizationService) ListByUser(ctx context.Context, principal authenticate.Principal, f organization.Filter) ([]organization.Organization, error)
ListByUser provides a mock function with given fields: ctx, principal, f
func (*OrganizationService) RemoveUsers ¶
func (_m *OrganizationService) RemoveUsers(ctx context.Context, orgID string, userIDs []string) error
RemoveUsers provides a mock function with given fields: ctx, orgID, userIDs
type OrganizationService_DeleteModel_Call ¶
OrganizationService_DeleteModel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteModel'
func (*OrganizationService_DeleteModel_Call) Return ¶
func (_c *OrganizationService_DeleteModel_Call) Return(_a0 error) *OrganizationService_DeleteModel_Call
func (*OrganizationService_DeleteModel_Call) Run ¶
func (_c *OrganizationService_DeleteModel_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_DeleteModel_Call
func (*OrganizationService_DeleteModel_Call) RunAndReturn ¶
func (_c *OrganizationService_DeleteModel_Call) RunAndReturn(run func(context.Context, string) error) *OrganizationService_DeleteModel_Call
type OrganizationService_Expecter ¶
type OrganizationService_Expecter struct {
// contains filtered or unexported fields
}
func (*OrganizationService_Expecter) DeleteModel ¶
func (_e *OrganizationService_Expecter) DeleteModel(ctx interface{}, id interface{}) *OrganizationService_DeleteModel_Call
DeleteModel is a helper method to define mock.On call
- ctx context.Context
- id string
func (*OrganizationService_Expecter) Get ¶
func (_e *OrganizationService_Expecter) Get(ctx interface{}, id interface{}) *OrganizationService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*OrganizationService_Expecter) ListByUser ¶
func (_e *OrganizationService_Expecter) ListByUser(ctx interface{}, principal interface{}, f interface{}) *OrganizationService_ListByUser_Call
ListByUser is a helper method to define mock.On call
- ctx context.Context
- principal authenticate.Principal
- f organization.Filter
func (*OrganizationService_Expecter) RemoveUsers ¶
func (_e *OrganizationService_Expecter) RemoveUsers(ctx interface{}, orgID interface{}, userIDs interface{}) *OrganizationService_RemoveUsers_Call
RemoveUsers is a helper method to define mock.On call
- ctx context.Context
- orgID string
- userIDs []string
type OrganizationService_Get_Call ¶
OrganizationService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*OrganizationService_Get_Call) Return ¶
func (_c *OrganizationService_Get_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_Get_Call
func (*OrganizationService_Get_Call) Run ¶
func (_c *OrganizationService_Get_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_Get_Call
func (*OrganizationService_Get_Call) RunAndReturn ¶
func (_c *OrganizationService_Get_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrganizationService_Get_Call
type OrganizationService_ListByUser_Call ¶
OrganizationService_ListByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByUser'
func (*OrganizationService_ListByUser_Call) Return ¶
func (_c *OrganizationService_ListByUser_Call) Return(_a0 []organization.Organization, _a1 error) *OrganizationService_ListByUser_Call
func (*OrganizationService_ListByUser_Call) Run ¶
func (_c *OrganizationService_ListByUser_Call) Run(run func(ctx context.Context, principal authenticate.Principal, f organization.Filter)) *OrganizationService_ListByUser_Call
func (*OrganizationService_ListByUser_Call) RunAndReturn ¶
func (_c *OrganizationService_ListByUser_Call) RunAndReturn(run func(context.Context, authenticate.Principal, organization.Filter) ([]organization.Organization, error)) *OrganizationService_ListByUser_Call
type OrganizationService_RemoveUsers_Call ¶
OrganizationService_RemoveUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveUsers'
func (*OrganizationService_RemoveUsers_Call) Return ¶
func (_c *OrganizationService_RemoveUsers_Call) Return(_a0 error) *OrganizationService_RemoveUsers_Call
func (*OrganizationService_RemoveUsers_Call) Run ¶
func (_c *OrganizationService_RemoveUsers_Call) Run(run func(ctx context.Context, orgID string, userIDs []string)) *OrganizationService_RemoveUsers_Call
func (*OrganizationService_RemoveUsers_Call) RunAndReturn ¶
func (_c *OrganizationService_RemoveUsers_Call) RunAndReturn(run func(context.Context, string, []string) error) *OrganizationService_RemoveUsers_Call
type PolicyService ¶
PolicyService is an autogenerated mock type for the PolicyService type
func NewPolicyService ¶
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) Delete ¶
func (_m *PolicyService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*PolicyService) EXPECT ¶
func (_m *PolicyService) EXPECT() *PolicyService_Expecter
type PolicyService_Delete_Call ¶
PolicyService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*PolicyService_Delete_Call) Return ¶
func (_c *PolicyService_Delete_Call) Return(_a0 error) *PolicyService_Delete_Call
func (*PolicyService_Delete_Call) Run ¶
func (_c *PolicyService_Delete_Call) Run(run func(ctx context.Context, id string)) *PolicyService_Delete_Call
func (*PolicyService_Delete_Call) RunAndReturn ¶
func (_c *PolicyService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *PolicyService_Delete_Call
type PolicyService_Expecter ¶
type PolicyService_Expecter struct {
// contains filtered or unexported fields
}
func (*PolicyService_Expecter) Delete ¶
func (_e *PolicyService_Expecter) Delete(ctx interface{}, id interface{}) *PolicyService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*PolicyService_Expecter) List ¶
func (_e *PolicyService_Expecter) List(ctx interface{}, flt interface{}) *PolicyService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt policy.Filter
type PolicyService_List_Call ¶
PolicyService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*PolicyService_List_Call) Return ¶
func (_c *PolicyService_List_Call) Return(_a0 []policy.Policy, _a1 error) *PolicyService_List_Call
func (*PolicyService_List_Call) Run ¶
func (_c *PolicyService_List_Call) Run(run func(ctx context.Context, flt policy.Filter)) *PolicyService_List_Call
func (*PolicyService_List_Call) RunAndReturn ¶
func (_c *PolicyService_List_Call) RunAndReturn(run func(context.Context, policy.Filter) ([]policy.Policy, error)) *PolicyService_List_Call
type ProjectService ¶
ProjectService is an autogenerated mock type for the ProjectService type
func NewProjectService ¶
func NewProjectService(t interface {
mock.TestingT
Cleanup(func())
}) *ProjectService
NewProjectService creates a new instance of ProjectService. 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 (*ProjectService) DeleteModel ¶
func (_m *ProjectService) DeleteModel(ctx context.Context, id string) error
DeleteModel provides a mock function with given fields: ctx, id
func (*ProjectService) EXPECT ¶
func (_m *ProjectService) EXPECT() *ProjectService_Expecter
type ProjectService_DeleteModel_Call ¶
ProjectService_DeleteModel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteModel'
func (*ProjectService_DeleteModel_Call) Return ¶
func (_c *ProjectService_DeleteModel_Call) Return(_a0 error) *ProjectService_DeleteModel_Call
func (*ProjectService_DeleteModel_Call) Run ¶
func (_c *ProjectService_DeleteModel_Call) Run(run func(ctx context.Context, id string)) *ProjectService_DeleteModel_Call
func (*ProjectService_DeleteModel_Call) RunAndReturn ¶
func (_c *ProjectService_DeleteModel_Call) RunAndReturn(run func(context.Context, string) error) *ProjectService_DeleteModel_Call
type ProjectService_Expecter ¶
type ProjectService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProjectService_Expecter) DeleteModel ¶
func (_e *ProjectService_Expecter) DeleteModel(ctx interface{}, id interface{}) *ProjectService_DeleteModel_Call
DeleteModel is a helper method to define mock.On call
- ctx context.Context
- id string
func (*ProjectService_Expecter) List ¶
func (_e *ProjectService_Expecter) List(ctx interface{}, flt interface{}) *ProjectService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt project.Filter
type ProjectService_List_Call ¶
ProjectService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ProjectService_List_Call) Return ¶
func (_c *ProjectService_List_Call) Return(_a0 []project.Project, _a1 error) *ProjectService_List_Call
func (*ProjectService_List_Call) Run ¶
func (_c *ProjectService_List_Call) Run(run func(ctx context.Context, flt project.Filter)) *ProjectService_List_Call
func (*ProjectService_List_Call) RunAndReturn ¶
func (_c *ProjectService_List_Call) RunAndReturn(run func(context.Context, project.Filter) ([]project.Project, error)) *ProjectService_List_Call
type ResourceService ¶
ResourceService is an autogenerated mock type for the ResourceService type
func NewResourceService ¶
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) Delete ¶
Delete provides a mock function with given fields: ctx, namespaceID, id
func (*ResourceService) EXPECT ¶
func (_m *ResourceService) EXPECT() *ResourceService_Expecter
type ResourceService_Delete_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 (_c *ResourceService_Delete_Call) Return(_a0 error) *ResourceService_Delete_Call
func (*ResourceService_Delete_Call) Run ¶
func (_c *ResourceService_Delete_Call) Run(run func(ctx context.Context, namespaceID string, id string)) *ResourceService_Delete_Call
func (*ResourceService_Delete_Call) RunAndReturn ¶
func (_c *ResourceService_Delete_Call) RunAndReturn(run func(context.Context, string, string) error) *ResourceService_Delete_Call
type ResourceService_Expecter ¶
type ResourceService_Expecter struct {
// contains filtered or unexported fields
}
func (*ResourceService_Expecter) Delete ¶
func (_e *ResourceService_Expecter) Delete(ctx interface{}, namespaceID interface{}, id interface{}) *ResourceService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- namespaceID string
- id string
func (*ResourceService_Expecter) Get ¶
func (_e *ResourceService_Expecter) Get(ctx interface{}, id interface{}) *ResourceService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*ResourceService_Expecter) List ¶
func (_e *ResourceService_Expecter) List(ctx interface{}, flt interface{}) *ResourceService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt resource.Filter
type ResourceService_Get_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 (_c *ResourceService_Get_Call) Return(_a0 resource.Resource, _a1 error) *ResourceService_Get_Call
func (*ResourceService_Get_Call) Run ¶
func (_c *ResourceService_Get_Call) Run(run func(ctx context.Context, id string)) *ResourceService_Get_Call
func (*ResourceService_Get_Call) RunAndReturn ¶
func (_c *ResourceService_Get_Call) RunAndReturn(run func(context.Context, string) (resource.Resource, error)) *ResourceService_Get_Call
type ResourceService_List_Call ¶
ResourceService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ResourceService_List_Call) Return ¶
func (_c *ResourceService_List_Call) Return(_a0 []resource.Resource, _a1 error) *ResourceService_List_Call
func (*ResourceService_List_Call) Run ¶
func (_c *ResourceService_List_Call) Run(run func(ctx context.Context, flt resource.Filter)) *ResourceService_List_Call
func (*ResourceService_List_Call) RunAndReturn ¶
func (_c *ResourceService_List_Call) RunAndReturn(run func(context.Context, resource.Filter) ([]resource.Resource, error)) *ResourceService_List_Call
type RoleService ¶
RoleService is an autogenerated mock type for the RoleService type
func NewRoleService ¶
func NewRoleService(t interface {
mock.TestingT
Cleanup(func())
}) *RoleService
NewRoleService creates a new instance of RoleService. 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 (*RoleService) Delete ¶
func (_m *RoleService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*RoleService) EXPECT ¶
func (_m *RoleService) EXPECT() *RoleService_Expecter
type RoleService_Delete_Call ¶
RoleService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*RoleService_Delete_Call) Return ¶
func (_c *RoleService_Delete_Call) Return(_a0 error) *RoleService_Delete_Call
func (*RoleService_Delete_Call) Run ¶
func (_c *RoleService_Delete_Call) Run(run func(ctx context.Context, id string)) *RoleService_Delete_Call
func (*RoleService_Delete_Call) RunAndReturn ¶
func (_c *RoleService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *RoleService_Delete_Call
type RoleService_Expecter ¶
type RoleService_Expecter struct {
// contains filtered or unexported fields
}
func (*RoleService_Expecter) Delete ¶
func (_e *RoleService_Expecter) Delete(ctx interface{}, id interface{}) *RoleService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*RoleService_Expecter) List ¶
func (_e *RoleService_Expecter) List(ctx interface{}, flt interface{}) *RoleService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt role.Filter
type RoleService_List_Call ¶
RoleService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*RoleService_List_Call) Return ¶
func (_c *RoleService_List_Call) Return(_a0 []role.Role, _a1 error) *RoleService_List_Call
func (*RoleService_List_Call) Run ¶
func (_c *RoleService_List_Call) Run(run func(ctx context.Context, flt role.Filter)) *RoleService_List_Call
func (*RoleService_List_Call) RunAndReturn ¶
func (_c *RoleService_List_Call) RunAndReturn(run func(context.Context, role.Filter) ([]role.Role, error)) *RoleService_List_Call
type SubscriptionService ¶
SubscriptionService is an autogenerated mock type for the SubscriptionService type
func NewSubscriptionService ¶
func NewSubscriptionService(t interface {
mock.TestingT
Cleanup(func())
}) *SubscriptionService
NewSubscriptionService creates a new instance of SubscriptionService. 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 (*SubscriptionService) DeleteByCustomer ¶
func (_m *SubscriptionService) DeleteByCustomer(ctx context.Context, customr customer.Customer) error
DeleteByCustomer provides a mock function with given fields: ctx, customr
func (*SubscriptionService) EXPECT ¶
func (_m *SubscriptionService) EXPECT() *SubscriptionService_Expecter
type SubscriptionService_DeleteByCustomer_Call ¶
SubscriptionService_DeleteByCustomer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByCustomer'
func (*SubscriptionService_DeleteByCustomer_Call) Return ¶
func (_c *SubscriptionService_DeleteByCustomer_Call) Return(_a0 error) *SubscriptionService_DeleteByCustomer_Call
func (*SubscriptionService_DeleteByCustomer_Call) Run ¶
func (_c *SubscriptionService_DeleteByCustomer_Call) Run(run func(ctx context.Context, customr customer.Customer)) *SubscriptionService_DeleteByCustomer_Call
func (*SubscriptionService_DeleteByCustomer_Call) RunAndReturn ¶
func (_c *SubscriptionService_DeleteByCustomer_Call) RunAndReturn(run func(context.Context, customer.Customer) error) *SubscriptionService_DeleteByCustomer_Call
type SubscriptionService_Expecter ¶
type SubscriptionService_Expecter struct {
// contains filtered or unexported fields
}
func (*SubscriptionService_Expecter) DeleteByCustomer ¶
func (_e *SubscriptionService_Expecter) DeleteByCustomer(ctx interface{}, customr interface{}) *SubscriptionService_DeleteByCustomer_Call
DeleteByCustomer is a helper method to define mock.On call
- ctx context.Context
- customr customer.Customer
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) Delete ¶
func (_m *UserService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*UserService) EXPECT ¶
func (_m *UserService) EXPECT() *UserService_Expecter
type UserService_Delete_Call ¶
UserService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*UserService_Delete_Call) Return ¶
func (_c *UserService_Delete_Call) Return(_a0 error) *UserService_Delete_Call
func (*UserService_Delete_Call) Run ¶
func (_c *UserService_Delete_Call) Run(run func(ctx context.Context, id string)) *UserService_Delete_Call
func (*UserService_Delete_Call) RunAndReturn ¶
func (_c *UserService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *UserService_Delete_Call
type UserService_Expecter ¶
type UserService_Expecter struct {
// contains filtered or unexported fields
}
func (*UserService_Expecter) Delete ¶
func (_e *UserService_Expecter) Delete(ctx interface{}, id interface{}) *UserService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string