Documentation
¶
Index ¶
- type CheckoutService
- type CheckoutService_DeleteByCustomer_Call
- func (_c *CheckoutService_DeleteByCustomer_Call) Return(_a0 error) *CheckoutService_DeleteByCustomer_Call
- func (_c *CheckoutService_DeleteByCustomer_Call) Run(run func(ctx context.Context, customerID string)) *CheckoutService_DeleteByCustomer_Call
- func (_c *CheckoutService_DeleteByCustomer_Call) RunAndReturn(run func(context.Context, string) error) *CheckoutService_DeleteByCustomer_Call
- type CheckoutService_Expecter
- type CheckoutService_List_Call
- func (_c *CheckoutService_List_Call) Return(_a0 []checkout.Checkout, _a1 error) *CheckoutService_List_Call
- func (_c *CheckoutService_List_Call) Run(run func(ctx context.Context, filter checkout.Filter)) *CheckoutService_List_Call
- func (_c *CheckoutService_List_Call) RunAndReturn(run func(context.Context, checkout.Filter) ([]checkout.Checkout, error)) *CheckoutService_List_Call
- type CreditService
- func (_m *CreditService) DeleteByAccountID(ctx context.Context, accountID string) error
- func (_m *CreditService) EXPECT() *CreditService_Expecter
- func (_m *CreditService) GetBalance(ctx context.Context, accountID string) (int64, error)
- func (_m *CreditService) List(ctx context.Context, flt credit.Filter) ([]credit.Transaction, error)
- type CreditService_DeleteByAccountID_Call
- func (_c *CreditService_DeleteByAccountID_Call) Return(_a0 error) *CreditService_DeleteByAccountID_Call
- func (_c *CreditService_DeleteByAccountID_Call) Run(run func(ctx context.Context, accountID string)) *CreditService_DeleteByAccountID_Call
- func (_c *CreditService_DeleteByAccountID_Call) RunAndReturn(run func(context.Context, string) error) *CreditService_DeleteByAccountID_Call
- type CreditService_Expecter
- func (_e *CreditService_Expecter) DeleteByAccountID(ctx interface{}, accountID interface{}) *CreditService_DeleteByAccountID_Call
- func (_e *CreditService_Expecter) GetBalance(ctx interface{}, accountID interface{}) *CreditService_GetBalance_Call
- func (_e *CreditService_Expecter) List(ctx interface{}, flt interface{}) *CreditService_List_Call
- type CreditService_GetBalance_Call
- func (_c *CreditService_GetBalance_Call) Return(_a0 int64, _a1 error) *CreditService_GetBalance_Call
- func (_c *CreditService_GetBalance_Call) Run(run func(ctx context.Context, accountID string)) *CreditService_GetBalance_Call
- func (_c *CreditService_GetBalance_Call) RunAndReturn(run func(context.Context, string) (int64, error)) *CreditService_GetBalance_Call
- type CreditService_List_Call
- func (_c *CreditService_List_Call) Return(_a0 []credit.Transaction, _a1 error) *CreditService_List_Call
- func (_c *CreditService_List_Call) Run(run func(ctx context.Context, flt credit.Filter)) *CreditService_List_Call
- func (_c *CreditService_List_Call) RunAndReturn(run func(context.Context, credit.Filter) ([]credit.Transaction, error)) *CreditService_List_Call
- 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
- type GroupService_DeleteModel_Call
- func (_c *GroupService_DeleteModel_Call) Return(_a0 error) *GroupService_DeleteModel_Call
- func (_c *GroupService_DeleteModel_Call) Run(run func(ctx context.Context, id string)) *GroupService_DeleteModel_Call
- func (_c *GroupService_DeleteModel_Call) RunAndReturn(run func(context.Context, string) error) *GroupService_DeleteModel_Call
- type GroupService_Expecter
- 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 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
- func (_m *InvoiceService) DeleteByCustomer(ctx context.Context, customr customer.Customer) error
- func (_m *InvoiceService) EXPECT() *InvoiceService_Expecter
- func (_m *InvoiceService) List(ctx context.Context, flt invoice.Filter) ([]invoice.Invoice, error)
- func (_m *InvoiceService) ListPayableOnProvider(ctx context.Context, customr customer.Customer) ([]invoice.Invoice, error)
- 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
- func (_e *InvoiceService_Expecter) DeleteByCustomer(ctx interface{}, customr interface{}) *InvoiceService_DeleteByCustomer_Call
- func (_e *InvoiceService_Expecter) List(ctx interface{}, flt interface{}) *InvoiceService_List_Call
- func (_e *InvoiceService_Expecter) ListPayableOnProvider(ctx interface{}, customr interface{}) *InvoiceService_ListPayableOnProvider_Call
- type InvoiceService_ListPayableOnProvider_Call
- func (_c *InvoiceService_ListPayableOnProvider_Call) Return(_a0 []invoice.Invoice, _a1 error) *InvoiceService_ListPayableOnProvider_Call
- func (_c *InvoiceService_ListPayableOnProvider_Call) Run(run func(ctx context.Context, customr customer.Customer)) *InvoiceService_ListPayableOnProvider_Call
- func (_c *InvoiceService_ListPayableOnProvider_Call) RunAndReturn(run func(context.Context, customer.Customer) ([]invoice.Invoice, error)) *InvoiceService_ListPayableOnProvider_Call
- 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 KycService
- type KycService_DeleteKyc_Call
- func (_c *KycService_DeleteKyc_Call) Return(_a0 error) *KycService_DeleteKyc_Call
- func (_c *KycService_DeleteKyc_Call) Run(run func(ctx context.Context, orgID string)) *KycService_DeleteKyc_Call
- func (_c *KycService_DeleteKyc_Call) RunAndReturn(run func(context.Context, string) error) *KycService_DeleteKyc_Call
- type KycService_Expecter
- type MembershipService
- func (_m *MembershipService) EXPECT() *MembershipService_Expecter
- func (_m *MembershipService) ForceRemoveOrganizationMember(ctx context.Context, orgID string, principalID string, principalType string) error
- func (_m *MembershipService) ListPrincipalsByResource(ctx context.Context, resourceID string, resourceType string, ...) ([]membership.Member, error)
- func (_m *MembershipService) ListResourcesByPrincipal(ctx context.Context, principal authenticate.Principal, resourceType string, ...) ([]string, error)
- func (_m *MembershipService) OnGroupDeleted(ctx context.Context, groupID string) error
- type MembershipService_Expecter
- func (_e *MembershipService_Expecter) ForceRemoveOrganizationMember(ctx interface{}, orgID interface{}, principalID interface{}, ...) *MembershipService_ForceRemoveOrganizationMember_Call
- func (_e *MembershipService_Expecter) ListPrincipalsByResource(ctx interface{}, resourceID interface{}, resourceType interface{}, ...) *MembershipService_ListPrincipalsByResource_Call
- func (_e *MembershipService_Expecter) ListResourcesByPrincipal(ctx interface{}, principal interface{}, resourceType interface{}, ...) *MembershipService_ListResourcesByPrincipal_Call
- func (_e *MembershipService_Expecter) OnGroupDeleted(ctx interface{}, groupID interface{}) *MembershipService_OnGroupDeleted_Call
- type MembershipService_ForceRemoveOrganizationMember_Call
- func (_c *MembershipService_ForceRemoveOrganizationMember_Call) Return(_a0 error) *MembershipService_ForceRemoveOrganizationMember_Call
- func (_c *MembershipService_ForceRemoveOrganizationMember_Call) Run(...) *MembershipService_ForceRemoveOrganizationMember_Call
- func (_c *MembershipService_ForceRemoveOrganizationMember_Call) RunAndReturn(run func(context.Context, string, string, string) error) *MembershipService_ForceRemoveOrganizationMember_Call
- type MembershipService_ListPrincipalsByResource_Call
- func (_c *MembershipService_ListPrincipalsByResource_Call) Return(_a0 []membership.Member, _a1 error) *MembershipService_ListPrincipalsByResource_Call
- func (_c *MembershipService_ListPrincipalsByResource_Call) Run(run func(ctx context.Context, resourceID string, resourceType string, ...)) *MembershipService_ListPrincipalsByResource_Call
- func (_c *MembershipService_ListPrincipalsByResource_Call) RunAndReturn(...) *MembershipService_ListPrincipalsByResource_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 MembershipService_OnGroupDeleted_Call
- func (_c *MembershipService_OnGroupDeleted_Call) Return(_a0 error) *MembershipService_OnGroupDeleted_Call
- func (_c *MembershipService_OnGroupDeleted_Call) Run(run func(ctx context.Context, groupID string)) *MembershipService_OnGroupDeleted_Call
- func (_c *MembershipService_OnGroupDeleted_Call) RunAndReturn(run func(context.Context, string) error) *MembershipService_OnGroupDeleted_Call
- type OrganizationService
- 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
- type OrganizationService_GetRaw_Call
- func (_c *OrganizationService_GetRaw_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_GetRaw_Call
- func (_c *OrganizationService_GetRaw_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_GetRaw_Call
- func (_c *OrganizationService_GetRaw_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrganizationService_GetRaw_Call
- type PlanService
- type PlanService_Expecter
- type PlanService_GetByID_Call
- func (_c *PlanService_GetByID_Call) Return(_a0 plan.Plan, _a1 error) *PlanService_GetByID_Call
- func (_c *PlanService_GetByID_Call) Run(run func(ctx context.Context, id string)) *PlanService_GetByID_Call
- func (_c *PlanService_GetByID_Call) RunAndReturn(run func(context.Context, string) (plan.Plan, error)) *PlanService_GetByID_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
- 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
- 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_Get_Call
- func (_c *RoleService_Get_Call) Return(_a0 role.Role, _a1 error) *RoleService_Get_Call
- func (_c *RoleService_Get_Call) Run(run func(ctx context.Context, id string)) *RoleService_Get_Call
- func (_c *RoleService_Get_Call) RunAndReturn(run func(context.Context, string) (role.Role, error)) *RoleService_Get_Call
- 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 ServiceUserService
- type ServiceUserService_Delete_Call
- func (_c *ServiceUserService_Delete_Call) Return(_a0 error) *ServiceUserService_Delete_Call
- func (_c *ServiceUserService_Delete_Call) Run(run func(ctx context.Context, id string)) *ServiceUserService_Delete_Call
- func (_c *ServiceUserService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *ServiceUserService_Delete_Call
- type ServiceUserService_Expecter
- type ServiceUserService_List_Call
- func (_c *ServiceUserService_List_Call) Return(_a0 []serviceuser.ServiceUser, _a1 error) *ServiceUserService_List_Call
- func (_c *ServiceUserService_List_Call) Run(run func(ctx context.Context, flt serviceuser.Filter)) *ServiceUserService_List_Call
- func (_c *ServiceUserService_List_Call) RunAndReturn(...) *ServiceUserService_List_Call
- type SubscriptionService
- func (_m *SubscriptionService) Cancel(ctx context.Context, id string, immediate bool) (subscription.Subscription, error)
- func (_m *SubscriptionService) DeleteByCustomer(ctx context.Context, customr customer.Customer) error
- func (_m *SubscriptionService) EXPECT() *SubscriptionService_Expecter
- func (_m *SubscriptionService) List(ctx context.Context, filter subscription.Filter) ([]subscription.Subscription, error)
- type SubscriptionService_Cancel_Call
- func (_c *SubscriptionService_Cancel_Call) Return(_a0 subscription.Subscription, _a1 error) *SubscriptionService_Cancel_Call
- func (_c *SubscriptionService_Cancel_Call) Run(run func(ctx context.Context, id string, immediate bool)) *SubscriptionService_Cancel_Call
- func (_c *SubscriptionService_Cancel_Call) RunAndReturn(run func(context.Context, string, bool) (subscription.Subscription, error)) *SubscriptionService_Cancel_Call
- 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
- func (_e *SubscriptionService_Expecter) Cancel(ctx interface{}, id interface{}, immediate interface{}) *SubscriptionService_Cancel_Call
- func (_e *SubscriptionService_Expecter) DeleteByCustomer(ctx interface{}, customr interface{}) *SubscriptionService_DeleteByCustomer_Call
- func (_e *SubscriptionService_Expecter) List(ctx interface{}, filter interface{}) *SubscriptionService_List_Call
- type SubscriptionService_List_Call
- func (_c *SubscriptionService_List_Call) Return(_a0 []subscription.Subscription, _a1 error) *SubscriptionService_List_Call
- func (_c *SubscriptionService_List_Call) Run(run func(ctx context.Context, filter subscription.Filter)) *SubscriptionService_List_Call
- func (_c *SubscriptionService_List_Call) RunAndReturn(...) *SubscriptionService_List_Call
- type UserPATService
- type UserPATService_DeleteAllByUser_Call
- func (_c *UserPATService_DeleteAllByUser_Call) Return(_a0 error) *UserPATService_DeleteAllByUser_Call
- func (_c *UserPATService_DeleteAllByUser_Call) Run(run func(ctx context.Context, userID string)) *UserPATService_DeleteAllByUser_Call
- func (_c *UserPATService_DeleteAllByUser_Call) RunAndReturn(run func(context.Context, string) error) *UserPATService_DeleteAllByUser_Call
- type UserPATService_Expecter
- type UserService
- type UserService_Delete_Call
- type UserService_Expecter
- type UserService_GetByIDs_Call
- func (_c *UserService_GetByIDs_Call) Return(_a0 []user.User, _a1 error) *UserService_GetByIDs_Call
- func (_c *UserService_GetByIDs_Call) Run(run func(ctx context.Context, userIDs []string)) *UserService_GetByIDs_Call
- func (_c *UserService_GetByIDs_Call) RunAndReturn(run func(context.Context, []string) ([]user.User, error)) *UserService_GetByIDs_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckoutService ¶ added in v0.114.0
CheckoutService is an autogenerated mock type for the CheckoutService type
func NewCheckoutService ¶ added in v0.114.0
func NewCheckoutService(t interface {
mock.TestingT
Cleanup(func())
}) *CheckoutService
NewCheckoutService creates a new instance of CheckoutService. 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 (*CheckoutService) DeleteByCustomer ¶ added in v0.114.0
func (_m *CheckoutService) DeleteByCustomer(ctx context.Context, customerID string) error
DeleteByCustomer provides a mock function with given fields: ctx, customerID
func (*CheckoutService) EXPECT ¶ added in v0.114.0
func (_m *CheckoutService) EXPECT() *CheckoutService_Expecter
type CheckoutService_DeleteByCustomer_Call ¶ added in v0.114.0
CheckoutService_DeleteByCustomer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByCustomer'
func (*CheckoutService_DeleteByCustomer_Call) Return ¶ added in v0.114.0
func (_c *CheckoutService_DeleteByCustomer_Call) Return(_a0 error) *CheckoutService_DeleteByCustomer_Call
func (*CheckoutService_DeleteByCustomer_Call) Run ¶ added in v0.114.0
func (_c *CheckoutService_DeleteByCustomer_Call) Run(run func(ctx context.Context, customerID string)) *CheckoutService_DeleteByCustomer_Call
func (*CheckoutService_DeleteByCustomer_Call) RunAndReturn ¶ added in v0.114.0
func (_c *CheckoutService_DeleteByCustomer_Call) RunAndReturn(run func(context.Context, string) error) *CheckoutService_DeleteByCustomer_Call
type CheckoutService_Expecter ¶ added in v0.114.0
type CheckoutService_Expecter struct {
// contains filtered or unexported fields
}
func (*CheckoutService_Expecter) DeleteByCustomer ¶ added in v0.114.0
func (_e *CheckoutService_Expecter) DeleteByCustomer(ctx interface{}, customerID interface{}) *CheckoutService_DeleteByCustomer_Call
DeleteByCustomer is a helper method to define mock.On call
- ctx context.Context
- customerID string
func (*CheckoutService_Expecter) List ¶ added in v0.114.0
func (_e *CheckoutService_Expecter) List(ctx interface{}, filter interface{}) *CheckoutService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter checkout.Filter
type CheckoutService_List_Call ¶ added in v0.114.0
CheckoutService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*CheckoutService_List_Call) Return ¶ added in v0.114.0
func (_c *CheckoutService_List_Call) Return(_a0 []checkout.Checkout, _a1 error) *CheckoutService_List_Call
func (*CheckoutService_List_Call) Run ¶ added in v0.114.0
func (_c *CheckoutService_List_Call) Run(run func(ctx context.Context, filter checkout.Filter)) *CheckoutService_List_Call
func (*CheckoutService_List_Call) RunAndReturn ¶ added in v0.114.0
func (_c *CheckoutService_List_Call) RunAndReturn(run func(context.Context, checkout.Filter) ([]checkout.Checkout, error)) *CheckoutService_List_Call
type CreditService ¶ added in v0.114.0
CreditService is an autogenerated mock type for the CreditService type
func NewCreditService ¶ added in v0.114.0
func NewCreditService(t interface {
mock.TestingT
Cleanup(func())
}) *CreditService
NewCreditService creates a new instance of CreditService. 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 (*CreditService) DeleteByAccountID ¶ added in v0.114.0
func (_m *CreditService) DeleteByAccountID(ctx context.Context, accountID string) error
DeleteByAccountID provides a mock function with given fields: ctx, accountID
func (*CreditService) EXPECT ¶ added in v0.114.0
func (_m *CreditService) EXPECT() *CreditService_Expecter
func (*CreditService) GetBalance ¶ added in v0.116.0
GetBalance provides a mock function with given fields: ctx, accountID
func (*CreditService) List ¶ added in v0.116.0
func (_m *CreditService) List(ctx context.Context, flt credit.Filter) ([]credit.Transaction, error)
List provides a mock function with given fields: ctx, flt
type CreditService_DeleteByAccountID_Call ¶ added in v0.114.0
CreditService_DeleteByAccountID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByAccountID'
func (*CreditService_DeleteByAccountID_Call) Return ¶ added in v0.114.0
func (_c *CreditService_DeleteByAccountID_Call) Return(_a0 error) *CreditService_DeleteByAccountID_Call
func (*CreditService_DeleteByAccountID_Call) Run ¶ added in v0.114.0
func (_c *CreditService_DeleteByAccountID_Call) Run(run func(ctx context.Context, accountID string)) *CreditService_DeleteByAccountID_Call
func (*CreditService_DeleteByAccountID_Call) RunAndReturn ¶ added in v0.114.0
func (_c *CreditService_DeleteByAccountID_Call) RunAndReturn(run func(context.Context, string) error) *CreditService_DeleteByAccountID_Call
type CreditService_Expecter ¶ added in v0.114.0
type CreditService_Expecter struct {
// contains filtered or unexported fields
}
func (*CreditService_Expecter) DeleteByAccountID ¶ added in v0.114.0
func (_e *CreditService_Expecter) DeleteByAccountID(ctx interface{}, accountID interface{}) *CreditService_DeleteByAccountID_Call
DeleteByAccountID is a helper method to define mock.On call
- ctx context.Context
- accountID string
func (*CreditService_Expecter) GetBalance ¶ added in v0.116.0
func (_e *CreditService_Expecter) GetBalance(ctx interface{}, accountID interface{}) *CreditService_GetBalance_Call
GetBalance is a helper method to define mock.On call
- ctx context.Context
- accountID string
func (*CreditService_Expecter) List ¶ added in v0.116.0
func (_e *CreditService_Expecter) List(ctx interface{}, flt interface{}) *CreditService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt credit.Filter
type CreditService_GetBalance_Call ¶ added in v0.116.0
CreditService_GetBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBalance'
func (*CreditService_GetBalance_Call) Return ¶ added in v0.116.0
func (_c *CreditService_GetBalance_Call) Return(_a0 int64, _a1 error) *CreditService_GetBalance_Call
func (*CreditService_GetBalance_Call) Run ¶ added in v0.116.0
func (_c *CreditService_GetBalance_Call) Run(run func(ctx context.Context, accountID string)) *CreditService_GetBalance_Call
func (*CreditService_GetBalance_Call) RunAndReturn ¶ added in v0.116.0
func (_c *CreditService_GetBalance_Call) RunAndReturn(run func(context.Context, string) (int64, error)) *CreditService_GetBalance_Call
type CreditService_List_Call ¶ added in v0.116.0
CreditService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*CreditService_List_Call) Return ¶ added in v0.116.0
func (_c *CreditService_List_Call) Return(_a0 []credit.Transaction, _a1 error) *CreditService_List_Call
func (*CreditService_List_Call) Run ¶ added in v0.116.0
func (_c *CreditService_List_Call) Run(run func(ctx context.Context, flt credit.Filter)) *CreditService_List_Call
func (*CreditService_List_Call) RunAndReturn ¶ added in v0.116.0
func (_c *CreditService_List_Call) RunAndReturn(run func(context.Context, credit.Filter) ([]credit.Transaction, error)) *CreditService_List_Call
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) DeleteModel ¶ added in v0.103.0
func (_m *GroupService) DeleteModel(ctx context.Context, id string) error
DeleteModel provides a mock function with given fields: ctx, id
func (*GroupService) EXPECT ¶
func (_m *GroupService) EXPECT() *GroupService_Expecter
type GroupService_DeleteModel_Call ¶ added in v0.103.0
GroupService_DeleteModel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteModel'
func (*GroupService_DeleteModel_Call) Return ¶ added in v0.103.0
func (_c *GroupService_DeleteModel_Call) Return(_a0 error) *GroupService_DeleteModel_Call
func (*GroupService_DeleteModel_Call) Run ¶ added in v0.103.0
func (_c *GroupService_DeleteModel_Call) Run(run func(ctx context.Context, id string)) *GroupService_DeleteModel_Call
func (*GroupService_DeleteModel_Call) RunAndReturn ¶ added in v0.103.0
func (_c *GroupService_DeleteModel_Call) RunAndReturn(run func(context.Context, string) error) *GroupService_DeleteModel_Call
type GroupService_Expecter ¶
type GroupService_Expecter struct {
// contains filtered or unexported fields
}
func (*GroupService_Expecter) DeleteModel ¶ added in v0.103.0
func (_e *GroupService_Expecter) DeleteModel(ctx interface{}, id interface{}) *GroupService_DeleteModel_Call
DeleteModel 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
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 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
func (*InvoiceService) ListPayableOnProvider ¶ added in v0.116.0
func (_m *InvoiceService) ListPayableOnProvider(ctx context.Context, customr customer.Customer) ([]invoice.Invoice, error)
ListPayableOnProvider provides a mock function with given fields: ctx, customr
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
func (*InvoiceService_Expecter) ListPayableOnProvider ¶ added in v0.116.0
func (_e *InvoiceService_Expecter) ListPayableOnProvider(ctx interface{}, customr interface{}) *InvoiceService_ListPayableOnProvider_Call
ListPayableOnProvider is a helper method to define mock.On call
- ctx context.Context
- customr customer.Customer
type InvoiceService_ListPayableOnProvider_Call ¶ added in v0.116.0
InvoiceService_ListPayableOnProvider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPayableOnProvider'
func (*InvoiceService_ListPayableOnProvider_Call) Return ¶ added in v0.116.0
func (_c *InvoiceService_ListPayableOnProvider_Call) Return(_a0 []invoice.Invoice, _a1 error) *InvoiceService_ListPayableOnProvider_Call
func (*InvoiceService_ListPayableOnProvider_Call) Run ¶ added in v0.116.0
func (_c *InvoiceService_ListPayableOnProvider_Call) Run(run func(ctx context.Context, customr customer.Customer)) *InvoiceService_ListPayableOnProvider_Call
func (*InvoiceService_ListPayableOnProvider_Call) RunAndReturn ¶ added in v0.116.0
func (_c *InvoiceService_ListPayableOnProvider_Call) RunAndReturn(run func(context.Context, customer.Customer) ([]invoice.Invoice, error)) *InvoiceService_ListPayableOnProvider_Call
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 KycService ¶ added in v0.114.0
KycService is an autogenerated mock type for the KycService type
func NewKycService ¶ added in v0.114.0
func NewKycService(t interface {
mock.TestingT
Cleanup(func())
}) *KycService
NewKycService creates a new instance of KycService. 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 (*KycService) DeleteKyc ¶ added in v0.114.0
func (_m *KycService) DeleteKyc(ctx context.Context, orgID string) error
DeleteKyc provides a mock function with given fields: ctx, orgID
func (*KycService) EXPECT ¶ added in v0.114.0
func (_m *KycService) EXPECT() *KycService_Expecter
type KycService_DeleteKyc_Call ¶ added in v0.114.0
KycService_DeleteKyc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteKyc'
func (*KycService_DeleteKyc_Call) Return ¶ added in v0.114.0
func (_c *KycService_DeleteKyc_Call) Return(_a0 error) *KycService_DeleteKyc_Call
func (*KycService_DeleteKyc_Call) Run ¶ added in v0.114.0
func (_c *KycService_DeleteKyc_Call) Run(run func(ctx context.Context, orgID string)) *KycService_DeleteKyc_Call
func (*KycService_DeleteKyc_Call) RunAndReturn ¶ added in v0.114.0
func (_c *KycService_DeleteKyc_Call) RunAndReturn(run func(context.Context, string) error) *KycService_DeleteKyc_Call
type KycService_Expecter ¶ added in v0.114.0
type KycService_Expecter struct {
// contains filtered or unexported fields
}
func (*KycService_Expecter) DeleteKyc ¶ added in v0.114.0
func (_e *KycService_Expecter) DeleteKyc(ctx interface{}, orgID interface{}) *KycService_DeleteKyc_Call
DeleteKyc is a helper method to define mock.On call
- ctx context.Context
- orgID string
type MembershipService ¶ added in v0.103.0
MembershipService is an autogenerated mock type for the MembershipService type
func NewMembershipService ¶ added in v0.103.0
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) EXPECT ¶ added in v0.103.0
func (_m *MembershipService) EXPECT() *MembershipService_Expecter
func (*MembershipService) ForceRemoveOrganizationMember ¶ added in v0.107.0
func (_m *MembershipService) ForceRemoveOrganizationMember(ctx context.Context, orgID string, principalID string, principalType string) error
ForceRemoveOrganizationMember provides a mock function with given fields: ctx, orgID, principalID, principalType
func (*MembershipService) ListPrincipalsByResource ¶ added in v0.116.0
func (_m *MembershipService) ListPrincipalsByResource(ctx context.Context, resourceID string, resourceType string, filter membership.MemberFilter) ([]membership.Member, error)
ListPrincipalsByResource provides a mock function with given fields: ctx, resourceID, resourceType, filter
func (*MembershipService) ListResourcesByPrincipal ¶ added in v0.104.0
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
func (*MembershipService) OnGroupDeleted ¶ added in v0.103.0
func (_m *MembershipService) OnGroupDeleted(ctx context.Context, groupID string) error
OnGroupDeleted provides a mock function with given fields: ctx, groupID
type MembershipService_Expecter ¶ added in v0.103.0
type MembershipService_Expecter struct {
// contains filtered or unexported fields
}
func (*MembershipService_Expecter) ForceRemoveOrganizationMember ¶ added in v0.107.0
func (_e *MembershipService_Expecter) ForceRemoveOrganizationMember(ctx interface{}, orgID interface{}, principalID interface{}, principalType interface{}) *MembershipService_ForceRemoveOrganizationMember_Call
ForceRemoveOrganizationMember is a helper method to define mock.On call
- ctx context.Context
- orgID string
- principalID string
- principalType string
func (*MembershipService_Expecter) ListPrincipalsByResource ¶ added in v0.116.0
func (_e *MembershipService_Expecter) ListPrincipalsByResource(ctx interface{}, resourceID interface{}, resourceType interface{}, filter interface{}) *MembershipService_ListPrincipalsByResource_Call
ListPrincipalsByResource is a helper method to define mock.On call
- ctx context.Context
- resourceID string
- resourceType string
- filter membership.MemberFilter
func (*MembershipService_Expecter) ListResourcesByPrincipal ¶ added in v0.104.0
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
func (*MembershipService_Expecter) OnGroupDeleted ¶ added in v0.103.0
func (_e *MembershipService_Expecter) OnGroupDeleted(ctx interface{}, groupID interface{}) *MembershipService_OnGroupDeleted_Call
OnGroupDeleted is a helper method to define mock.On call
- ctx context.Context
- groupID string
type MembershipService_ForceRemoveOrganizationMember_Call ¶ added in v0.107.0
MembershipService_ForceRemoveOrganizationMember_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForceRemoveOrganizationMember'
func (*MembershipService_ForceRemoveOrganizationMember_Call) Run ¶ added in v0.107.0
func (_c *MembershipService_ForceRemoveOrganizationMember_Call) Run(run func(ctx context.Context, orgID string, principalID string, principalType string)) *MembershipService_ForceRemoveOrganizationMember_Call
func (*MembershipService_ForceRemoveOrganizationMember_Call) RunAndReturn ¶ added in v0.107.0
func (_c *MembershipService_ForceRemoveOrganizationMember_Call) RunAndReturn(run func(context.Context, string, string, string) error) *MembershipService_ForceRemoveOrganizationMember_Call
type MembershipService_ListPrincipalsByResource_Call ¶ added in v0.116.0
MembershipService_ListPrincipalsByResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPrincipalsByResource'
func (*MembershipService_ListPrincipalsByResource_Call) Return ¶ added in v0.116.0
func (_c *MembershipService_ListPrincipalsByResource_Call) Return(_a0 []membership.Member, _a1 error) *MembershipService_ListPrincipalsByResource_Call
func (*MembershipService_ListPrincipalsByResource_Call) Run ¶ added in v0.116.0
func (_c *MembershipService_ListPrincipalsByResource_Call) Run(run func(ctx context.Context, resourceID string, resourceType string, filter membership.MemberFilter)) *MembershipService_ListPrincipalsByResource_Call
func (*MembershipService_ListPrincipalsByResource_Call) RunAndReturn ¶ added in v0.116.0
func (_c *MembershipService_ListPrincipalsByResource_Call) RunAndReturn(run func(context.Context, string, string, membership.MemberFilter) ([]membership.Member, error)) *MembershipService_ListPrincipalsByResource_Call
type MembershipService_ListResourcesByPrincipal_Call ¶ added in v0.104.0
MembershipService_ListResourcesByPrincipal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListResourcesByPrincipal'
func (*MembershipService_ListResourcesByPrincipal_Call) Return ¶ added in v0.104.0
func (_c *MembershipService_ListResourcesByPrincipal_Call) Return(_a0 []string, _a1 error) *MembershipService_ListResourcesByPrincipal_Call
func (*MembershipService_ListResourcesByPrincipal_Call) Run ¶ added in v0.104.0
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 ¶ added in v0.104.0
func (_c *MembershipService_ListResourcesByPrincipal_Call) RunAndReturn(run func(context.Context, authenticate.Principal, string, membership.ResourceFilter) ([]string, error)) *MembershipService_ListResourcesByPrincipal_Call
type MembershipService_OnGroupDeleted_Call ¶ added in v0.103.0
MembershipService_OnGroupDeleted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnGroupDeleted'
func (*MembershipService_OnGroupDeleted_Call) Return ¶ added in v0.103.0
func (_c *MembershipService_OnGroupDeleted_Call) Return(_a0 error) *MembershipService_OnGroupDeleted_Call
func (*MembershipService_OnGroupDeleted_Call) Run ¶ added in v0.103.0
func (_c *MembershipService_OnGroupDeleted_Call) Run(run func(ctx context.Context, groupID string)) *MembershipService_OnGroupDeleted_Call
func (*MembershipService_OnGroupDeleted_Call) RunAndReturn ¶ added in v0.103.0
func (_c *MembershipService_OnGroupDeleted_Call) RunAndReturn(run func(context.Context, string) error) *MembershipService_OnGroupDeleted_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) GetRaw ¶ added in v0.116.0
func (_m *OrganizationService) GetRaw(ctx context.Context, id string) (organization.Organization, error)
GetRaw provides a mock function with given fields: ctx, id
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) GetRaw ¶ added in v0.116.0
func (_e *OrganizationService_Expecter) GetRaw(ctx interface{}, id interface{}) *OrganizationService_GetRaw_Call
GetRaw is a helper method to define mock.On call
- ctx context.Context
- id string
type OrganizationService_GetRaw_Call ¶ added in v0.116.0
OrganizationService_GetRaw_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRaw'
func (*OrganizationService_GetRaw_Call) Return ¶ added in v0.116.0
func (_c *OrganizationService_GetRaw_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_GetRaw_Call
func (*OrganizationService_GetRaw_Call) Run ¶ added in v0.116.0
func (_c *OrganizationService_GetRaw_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_GetRaw_Call
func (*OrganizationService_GetRaw_Call) RunAndReturn ¶ added in v0.116.0
func (_c *OrganizationService_GetRaw_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrganizationService_GetRaw_Call
type PlanService ¶ added in v0.116.0
PlanService is an autogenerated mock type for the PlanService type
func NewPlanService ¶ added in v0.116.0
func NewPlanService(t interface {
mock.TestingT
Cleanup(func())
}) *PlanService
NewPlanService creates a new instance of PlanService. 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 (*PlanService) EXPECT ¶ added in v0.116.0
func (_m *PlanService) EXPECT() *PlanService_Expecter
type PlanService_Expecter ¶ added in v0.116.0
type PlanService_Expecter struct {
// contains filtered or unexported fields
}
func (*PlanService_Expecter) GetByID ¶ added in v0.116.0
func (_e *PlanService_Expecter) GetByID(ctx interface{}, id interface{}) *PlanService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
type PlanService_GetByID_Call ¶ added in v0.116.0
PlanService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*PlanService_GetByID_Call) Return ¶ added in v0.116.0
func (_c *PlanService_GetByID_Call) Return(_a0 plan.Plan, _a1 error) *PlanService_GetByID_Call
func (*PlanService_GetByID_Call) Run ¶ added in v0.116.0
func (_c *PlanService_GetByID_Call) Run(run func(ctx context.Context, id string)) *PlanService_GetByID_Call
func (*PlanService_GetByID_Call) RunAndReturn ¶ added in v0.116.0
func (_c *PlanService_GetByID_Call) RunAndReturn(run func(context.Context, string) (plan.Plan, error)) *PlanService_GetByID_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) 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_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) Get ¶ added in v0.116.0
func (_e *RoleService_Expecter) Get(ctx interface{}, id interface{}) *RoleService_Get_Call
Get 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_Get_Call ¶ added in v0.116.0
RoleService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*RoleService_Get_Call) Return ¶ added in v0.116.0
func (_c *RoleService_Get_Call) Return(_a0 role.Role, _a1 error) *RoleService_Get_Call
func (*RoleService_Get_Call) Run ¶ added in v0.116.0
func (_c *RoleService_Get_Call) Run(run func(ctx context.Context, id string)) *RoleService_Get_Call
func (*RoleService_Get_Call) RunAndReturn ¶ added in v0.116.0
func (_c *RoleService_Get_Call) RunAndReturn(run func(context.Context, string) (role.Role, error)) *RoleService_Get_Call
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 ServiceUserService ¶ added in v0.100.0
ServiceUserService is an autogenerated mock type for the ServiceUserService type
func NewServiceUserService ¶ added in v0.100.0
func NewServiceUserService(t interface {
mock.TestingT
Cleanup(func())
}) *ServiceUserService
NewServiceUserService creates a new instance of ServiceUserService. 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 (*ServiceUserService) Delete ¶ added in v0.100.0
func (_m *ServiceUserService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*ServiceUserService) EXPECT ¶ added in v0.100.0
func (_m *ServiceUserService) EXPECT() *ServiceUserService_Expecter
func (*ServiceUserService) List ¶ added in v0.100.0
func (_m *ServiceUserService) List(ctx context.Context, flt serviceuser.Filter) ([]serviceuser.ServiceUser, error)
List provides a mock function with given fields: ctx, flt
type ServiceUserService_Delete_Call ¶ added in v0.100.0
ServiceUserService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ServiceUserService_Delete_Call) Return ¶ added in v0.100.0
func (_c *ServiceUserService_Delete_Call) Return(_a0 error) *ServiceUserService_Delete_Call
func (*ServiceUserService_Delete_Call) Run ¶ added in v0.100.0
func (_c *ServiceUserService_Delete_Call) Run(run func(ctx context.Context, id string)) *ServiceUserService_Delete_Call
func (*ServiceUserService_Delete_Call) RunAndReturn ¶ added in v0.100.0
func (_c *ServiceUserService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *ServiceUserService_Delete_Call
type ServiceUserService_Expecter ¶ added in v0.100.0
type ServiceUserService_Expecter struct {
// contains filtered or unexported fields
}
func (*ServiceUserService_Expecter) Delete ¶ added in v0.100.0
func (_e *ServiceUserService_Expecter) Delete(ctx interface{}, id interface{}) *ServiceUserService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*ServiceUserService_Expecter) List ¶ added in v0.100.0
func (_e *ServiceUserService_Expecter) List(ctx interface{}, flt interface{}) *ServiceUserService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt serviceuser.Filter
type ServiceUserService_List_Call ¶ added in v0.100.0
ServiceUserService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ServiceUserService_List_Call) Return ¶ added in v0.100.0
func (_c *ServiceUserService_List_Call) Return(_a0 []serviceuser.ServiceUser, _a1 error) *ServiceUserService_List_Call
func (*ServiceUserService_List_Call) Run ¶ added in v0.100.0
func (_c *ServiceUserService_List_Call) Run(run func(ctx context.Context, flt serviceuser.Filter)) *ServiceUserService_List_Call
func (*ServiceUserService_List_Call) RunAndReturn ¶ added in v0.100.0
func (_c *ServiceUserService_List_Call) RunAndReturn(run func(context.Context, serviceuser.Filter) ([]serviceuser.ServiceUser, error)) *ServiceUserService_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) Cancel ¶ added in v0.116.0
func (_m *SubscriptionService) Cancel(ctx context.Context, id string, immediate bool) (subscription.Subscription, error)
Cancel provides a mock function with given fields: ctx, id, immediate
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
func (*SubscriptionService) List ¶ added in v0.116.0
func (_m *SubscriptionService) List(ctx context.Context, filter subscription.Filter) ([]subscription.Subscription, error)
List provides a mock function with given fields: ctx, filter
type SubscriptionService_Cancel_Call ¶ added in v0.116.0
SubscriptionService_Cancel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cancel'
func (*SubscriptionService_Cancel_Call) Return ¶ added in v0.116.0
func (_c *SubscriptionService_Cancel_Call) Return(_a0 subscription.Subscription, _a1 error) *SubscriptionService_Cancel_Call
func (*SubscriptionService_Cancel_Call) Run ¶ added in v0.116.0
func (_c *SubscriptionService_Cancel_Call) Run(run func(ctx context.Context, id string, immediate bool)) *SubscriptionService_Cancel_Call
func (*SubscriptionService_Cancel_Call) RunAndReturn ¶ added in v0.116.0
func (_c *SubscriptionService_Cancel_Call) RunAndReturn(run func(context.Context, string, bool) (subscription.Subscription, error)) *SubscriptionService_Cancel_Call
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) Cancel ¶ added in v0.116.0
func (_e *SubscriptionService_Expecter) Cancel(ctx interface{}, id interface{}, immediate interface{}) *SubscriptionService_Cancel_Call
Cancel is a helper method to define mock.On call
- ctx context.Context
- id string
- immediate bool
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
func (*SubscriptionService_Expecter) List ¶ added in v0.116.0
func (_e *SubscriptionService_Expecter) List(ctx interface{}, filter interface{}) *SubscriptionService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter subscription.Filter
type SubscriptionService_List_Call ¶ added in v0.116.0
SubscriptionService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*SubscriptionService_List_Call) Return ¶ added in v0.116.0
func (_c *SubscriptionService_List_Call) Return(_a0 []subscription.Subscription, _a1 error) *SubscriptionService_List_Call
func (*SubscriptionService_List_Call) Run ¶ added in v0.116.0
func (_c *SubscriptionService_List_Call) Run(run func(ctx context.Context, filter subscription.Filter)) *SubscriptionService_List_Call
func (*SubscriptionService_List_Call) RunAndReturn ¶ added in v0.116.0
func (_c *SubscriptionService_List_Call) RunAndReturn(run func(context.Context, subscription.Filter) ([]subscription.Subscription, error)) *SubscriptionService_List_Call
type UserPATService ¶ added in v0.106.0
UserPATService is an autogenerated mock type for the UserPATService type
func NewUserPATService ¶ added in v0.106.0
func NewUserPATService(t interface {
mock.TestingT
Cleanup(func())
}) *UserPATService
NewUserPATService creates a new instance of UserPATService. 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 (*UserPATService) DeleteAllByUser ¶ added in v0.106.0
func (_m *UserPATService) DeleteAllByUser(ctx context.Context, userID string) error
DeleteAllByUser provides a mock function with given fields: ctx, userID
func (*UserPATService) EXPECT ¶ added in v0.106.0
func (_m *UserPATService) EXPECT() *UserPATService_Expecter
type UserPATService_DeleteAllByUser_Call ¶ added in v0.106.0
UserPATService_DeleteAllByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAllByUser'
func (*UserPATService_DeleteAllByUser_Call) Return ¶ added in v0.106.0
func (_c *UserPATService_DeleteAllByUser_Call) Return(_a0 error) *UserPATService_DeleteAllByUser_Call
func (*UserPATService_DeleteAllByUser_Call) Run ¶ added in v0.106.0
func (_c *UserPATService_DeleteAllByUser_Call) Run(run func(ctx context.Context, userID string)) *UserPATService_DeleteAllByUser_Call
func (*UserPATService_DeleteAllByUser_Call) RunAndReturn ¶ added in v0.106.0
func (_c *UserPATService_DeleteAllByUser_Call) RunAndReturn(run func(context.Context, string) error) *UserPATService_DeleteAllByUser_Call
type UserPATService_Expecter ¶ added in v0.106.0
type UserPATService_Expecter struct {
// contains filtered or unexported fields
}
func (*UserPATService_Expecter) DeleteAllByUser ¶ added in v0.106.0
func (_e *UserPATService_Expecter) DeleteAllByUser(ctx interface{}, userID interface{}) *UserPATService_DeleteAllByUser_Call
DeleteAllByUser is a helper method to define mock.On call
- ctx context.Context
- userID string
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
func (*UserService_Expecter) GetByIDs ¶ added in v0.116.0
func (_e *UserService_Expecter) GetByIDs(ctx interface{}, userIDs interface{}) *UserService_GetByIDs_Call
GetByIDs is a helper method to define mock.On call
- ctx context.Context
- userIDs []string
type UserService_GetByIDs_Call ¶ added in v0.116.0
UserService_GetByIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByIDs'
func (*UserService_GetByIDs_Call) Return ¶ added in v0.116.0
func (_c *UserService_GetByIDs_Call) Return(_a0 []user.User, _a1 error) *UserService_GetByIDs_Call
func (*UserService_GetByIDs_Call) Run ¶ added in v0.116.0
func (_c *UserService_GetByIDs_Call) Run(run func(ctx context.Context, userIDs []string)) *UserService_GetByIDs_Call
func (*UserService_GetByIDs_Call) RunAndReturn ¶ added in v0.116.0
func (_c *UserService_GetByIDs_Call) RunAndReturn(run func(context.Context, []string) ([]user.User, error)) *UserService_GetByIDs_Call
Source Files
¶
- checkout_service.go
- credit_service.go
- customer_service.go
- group_service.go
- invitation_service.go
- invoice_service.go
- kyc_service.go
- membership_service.go
- organization_service.go
- plan_service.go
- policy_service.go
- project_service.go
- resource_service.go
- role_service.go
- service_user_service.go
- subscription_service.go
- user_pat_service.go
- user_service.go