Documentation
¶
Index ¶
- type AuditRecordService
- func (_m *AuditRecordService) Create(ctx context.Context, record auditrecord.AuditRecord) (auditrecord.AuditRecord, bool, error)
- func (_m *AuditRecordService) EXPECT() *AuditRecordService_Expecter
- func (_m *AuditRecordService) Export(ctx context.Context, query *rql.Query) (io.Reader, string, error)
- func (_m *AuditRecordService) List(ctx context.Context, query *rql.Query) (auditrecord.AuditRecordsList, error)
- type AuditRecordService_Create_Call
- func (_c *AuditRecordService_Create_Call) Return(_a0 auditrecord.AuditRecord, _a1 bool, _a2 error) *AuditRecordService_Create_Call
- func (_c *AuditRecordService_Create_Call) Run(run func(ctx context.Context, record auditrecord.AuditRecord)) *AuditRecordService_Create_Call
- func (_c *AuditRecordService_Create_Call) RunAndReturn(...) *AuditRecordService_Create_Call
- type AuditRecordService_Expecter
- func (_e *AuditRecordService_Expecter) Create(ctx interface{}, record interface{}) *AuditRecordService_Create_Call
- func (_e *AuditRecordService_Expecter) Export(ctx interface{}, query interface{}) *AuditRecordService_Export_Call
- func (_e *AuditRecordService_Expecter) List(ctx interface{}, query interface{}) *AuditRecordService_List_Call
- type AuditRecordService_Export_Call
- func (_c *AuditRecordService_Export_Call) Return(_a0 io.Reader, _a1 string, _a2 error) *AuditRecordService_Export_Call
- func (_c *AuditRecordService_Export_Call) Run(run func(ctx context.Context, query *rql.Query)) *AuditRecordService_Export_Call
- func (_c *AuditRecordService_Export_Call) RunAndReturn(run func(context.Context, *rql.Query) (io.Reader, string, error)) *AuditRecordService_Export_Call
- type AuditRecordService_List_Call
- func (_c *AuditRecordService_List_Call) Return(_a0 auditrecord.AuditRecordsList, _a1 error) *AuditRecordService_List_Call
- func (_c *AuditRecordService_List_Call) Run(run func(ctx context.Context, query *rql.Query)) *AuditRecordService_List_Call
- func (_c *AuditRecordService_List_Call) RunAndReturn(run func(context.Context, *rql.Query) (auditrecord.AuditRecordsList, error)) *AuditRecordService_List_Call
- type CheckoutService
- func (_m *CheckoutService) Apply(ctx context.Context, ch checkout.Checkout) (*subscription.Subscription, *product.Product, error)
- func (_m *CheckoutService) Create(ctx context.Context, ch checkout.Checkout) (checkout.Checkout, error)
- func (_m *CheckoutService) CreateSessionForCustomerPortal(ctx context.Context, ch checkout.Checkout) (checkout.Checkout, error)
- func (_m *CheckoutService) CreateSessionForPaymentMethod(ctx context.Context, ch checkout.Checkout) (checkout.Checkout, error)
- func (_m *CheckoutService) EXPECT() *CheckoutService_Expecter
- func (_m *CheckoutService) GetByID(ctx context.Context, id string) (checkout.Checkout, error)
- func (_m *CheckoutService) List(ctx context.Context, filter checkout.Filter) ([]checkout.Checkout, error)
- type CheckoutService_Apply_Call
- func (_c *CheckoutService_Apply_Call) Return(_a0 *subscription.Subscription, _a1 *product.Product, _a2 error) *CheckoutService_Apply_Call
- func (_c *CheckoutService_Apply_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_Apply_Call
- func (_c *CheckoutService_Apply_Call) RunAndReturn(...) *CheckoutService_Apply_Call
- type CheckoutService_CreateSessionForCustomerPortal_Call
- func (_c *CheckoutService_CreateSessionForCustomerPortal_Call) Return(_a0 checkout.Checkout, _a1 error) *CheckoutService_CreateSessionForCustomerPortal_Call
- func (_c *CheckoutService_CreateSessionForCustomerPortal_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_CreateSessionForCustomerPortal_Call
- func (_c *CheckoutService_CreateSessionForCustomerPortal_Call) RunAndReturn(run func(context.Context, checkout.Checkout) (checkout.Checkout, error)) *CheckoutService_CreateSessionForCustomerPortal_Call
- type CheckoutService_CreateSessionForPaymentMethod_Call
- func (_c *CheckoutService_CreateSessionForPaymentMethod_Call) Return(_a0 checkout.Checkout, _a1 error) *CheckoutService_CreateSessionForPaymentMethod_Call
- func (_c *CheckoutService_CreateSessionForPaymentMethod_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_CreateSessionForPaymentMethod_Call
- func (_c *CheckoutService_CreateSessionForPaymentMethod_Call) RunAndReturn(run func(context.Context, checkout.Checkout) (checkout.Checkout, error)) *CheckoutService_CreateSessionForPaymentMethod_Call
- type CheckoutService_Create_Call
- func (_c *CheckoutService_Create_Call) Return(_a0 checkout.Checkout, _a1 error) *CheckoutService_Create_Call
- func (_c *CheckoutService_Create_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_Create_Call
- func (_c *CheckoutService_Create_Call) RunAndReturn(run func(context.Context, checkout.Checkout) (checkout.Checkout, error)) *CheckoutService_Create_Call
- type CheckoutService_Expecter
- func (_e *CheckoutService_Expecter) Apply(ctx interface{}, ch interface{}) *CheckoutService_Apply_Call
- func (_e *CheckoutService_Expecter) Create(ctx interface{}, ch interface{}) *CheckoutService_Create_Call
- func (_e *CheckoutService_Expecter) CreateSessionForCustomerPortal(ctx interface{}, ch interface{}) *CheckoutService_CreateSessionForCustomerPortal_Call
- func (_e *CheckoutService_Expecter) CreateSessionForPaymentMethod(ctx interface{}, ch interface{}) *CheckoutService_CreateSessionForPaymentMethod_Call
- func (_e *CheckoutService_Expecter) GetByID(ctx interface{}, id interface{}) *CheckoutService_GetByID_Call
- func (_e *CheckoutService_Expecter) List(ctx interface{}, filter interface{}) *CheckoutService_List_Call
- type CheckoutService_GetByID_Call
- func (_c *CheckoutService_GetByID_Call) Return(_a0 checkout.Checkout, _a1 error) *CheckoutService_GetByID_Call
- func (_c *CheckoutService_GetByID_Call) Run(run func(ctx context.Context, id string)) *CheckoutService_GetByID_Call
- func (_c *CheckoutService_GetByID_Call) RunAndReturn(run func(context.Context, string) (checkout.Checkout, error)) *CheckoutService_GetByID_Call
- 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 EventService
- type EventService_BillingWebhook_Call
- func (_c *EventService_BillingWebhook_Call) Return(_a0 error) *EventService_BillingWebhook_Call
- func (_c *EventService_BillingWebhook_Call) Run(run func(ctx context.Context, _a1 event.ProviderWebhookEvent)) *EventService_BillingWebhook_Call
- func (_c *EventService_BillingWebhook_Call) RunAndReturn(run func(context.Context, event.ProviderWebhookEvent) error) *EventService_BillingWebhook_Call
- type EventService_Expecter
- type InvoiceService
- func (_m *InvoiceService) EXPECT() *InvoiceService_Expecter
- func (_m *InvoiceService) GetUpcoming(ctx context.Context, customerID string) (invoice.Invoice, error)
- func (_m *InvoiceService) List(ctx context.Context, filter invoice.Filter) ([]invoice.Invoice, error)
- func (_m *InvoiceService) ListAll(ctx context.Context, filter invoice.Filter) ([]invoice.Invoice, error)
- func (_m *InvoiceService) SearchInvoices(ctx context.Context, rqlQuery *rql.Query) ([]invoice.InvoiceWithOrganization, error)
- func (_m *InvoiceService) TriggerCreditOverdraftInvoices(ctx context.Context) error
- type InvoiceService_Expecter
- func (_e *InvoiceService_Expecter) GetUpcoming(ctx interface{}, customerID interface{}) *InvoiceService_GetUpcoming_Call
- func (_e *InvoiceService_Expecter) List(ctx interface{}, filter interface{}) *InvoiceService_List_Call
- func (_e *InvoiceService_Expecter) ListAll(ctx interface{}, filter interface{}) *InvoiceService_ListAll_Call
- func (_e *InvoiceService_Expecter) SearchInvoices(ctx interface{}, rqlQuery interface{}) *InvoiceService_SearchInvoices_Call
- func (_e *InvoiceService_Expecter) TriggerCreditOverdraftInvoices(ctx interface{}) *InvoiceService_TriggerCreditOverdraftInvoices_Call
- type InvoiceService_GetUpcoming_Call
- func (_c *InvoiceService_GetUpcoming_Call) Return(_a0 invoice.Invoice, _a1 error) *InvoiceService_GetUpcoming_Call
- func (_c *InvoiceService_GetUpcoming_Call) Run(run func(ctx context.Context, customerID string)) *InvoiceService_GetUpcoming_Call
- func (_c *InvoiceService_GetUpcoming_Call) RunAndReturn(run func(context.Context, string) (invoice.Invoice, error)) *InvoiceService_GetUpcoming_Call
- type InvoiceService_ListAll_Call
- func (_c *InvoiceService_ListAll_Call) Return(_a0 []invoice.Invoice, _a1 error) *InvoiceService_ListAll_Call
- func (_c *InvoiceService_ListAll_Call) Run(run func(ctx context.Context, filter invoice.Filter)) *InvoiceService_ListAll_Call
- func (_c *InvoiceService_ListAll_Call) RunAndReturn(run func(context.Context, invoice.Filter) ([]invoice.Invoice, error)) *InvoiceService_ListAll_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, filter invoice.Filter)) *InvoiceService_List_Call
- func (_c *InvoiceService_List_Call) RunAndReturn(run func(context.Context, invoice.Filter) ([]invoice.Invoice, error)) *InvoiceService_List_Call
- type InvoiceService_SearchInvoices_Call
- func (_c *InvoiceService_SearchInvoices_Call) Return(_a0 []invoice.InvoiceWithOrganization, _a1 error) *InvoiceService_SearchInvoices_Call
- func (_c *InvoiceService_SearchInvoices_Call) Run(run func(ctx context.Context, rqlQuery *rql.Query)) *InvoiceService_SearchInvoices_Call
- func (_c *InvoiceService_SearchInvoices_Call) RunAndReturn(...) *InvoiceService_SearchInvoices_Call
- type InvoiceService_TriggerCreditOverdraftInvoices_Call
- func (_c *InvoiceService_TriggerCreditOverdraftInvoices_Call) Return(_a0 error) *InvoiceService_TriggerCreditOverdraftInvoices_Call
- func (_c *InvoiceService_TriggerCreditOverdraftInvoices_Call) Run(run func(ctx context.Context)) *InvoiceService_TriggerCreditOverdraftInvoices_Call
- func (_c *InvoiceService_TriggerCreditOverdraftInvoices_Call) RunAndReturn(run func(context.Context) error) *InvoiceService_TriggerCreditOverdraftInvoices_Call
- type PlanService
- func (_m *PlanService) Create(ctx context.Context, _a1 plan.Plan) (plan.Plan, error)
- func (_m *PlanService) EXPECT() *PlanService_Expecter
- func (_m *PlanService) GetByID(ctx context.Context, id string) (plan.Plan, error)
- func (_m *PlanService) List(ctx context.Context, filter plan.Filter) ([]plan.Plan, error)
- func (_m *PlanService) UpsertPlans(ctx context.Context, planFile plan.File) error
- type PlanService_Create_Call
- func (_c *PlanService_Create_Call) Return(_a0 plan.Plan, _a1 error) *PlanService_Create_Call
- func (_c *PlanService_Create_Call) Run(run func(ctx context.Context, _a1 plan.Plan)) *PlanService_Create_Call
- func (_c *PlanService_Create_Call) RunAndReturn(run func(context.Context, plan.Plan) (plan.Plan, error)) *PlanService_Create_Call
- type PlanService_Expecter
- func (_e *PlanService_Expecter) Create(ctx interface{}, _a1 interface{}) *PlanService_Create_Call
- func (_e *PlanService_Expecter) GetByID(ctx interface{}, id interface{}) *PlanService_GetByID_Call
- func (_e *PlanService_Expecter) List(ctx interface{}, filter interface{}) *PlanService_List_Call
- func (_e *PlanService_Expecter) UpsertPlans(ctx interface{}, planFile interface{}) *PlanService_UpsertPlans_Call
- 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 PlanService_List_Call
- func (_c *PlanService_List_Call) Return(_a0 []plan.Plan, _a1 error) *PlanService_List_Call
- func (_c *PlanService_List_Call) Run(run func(ctx context.Context, filter plan.Filter)) *PlanService_List_Call
- func (_c *PlanService_List_Call) RunAndReturn(run func(context.Context, plan.Filter) ([]plan.Plan, error)) *PlanService_List_Call
- type PlanService_UpsertPlans_Call
- func (_c *PlanService_UpsertPlans_Call) Return(_a0 error) *PlanService_UpsertPlans_Call
- func (_c *PlanService_UpsertPlans_Call) Run(run func(ctx context.Context, planFile plan.File)) *PlanService_UpsertPlans_Call
- func (_c *PlanService_UpsertPlans_Call) RunAndReturn(run func(context.Context, plan.File) error) *PlanService_UpsertPlans_Call
- type PolicyService
- func (_m *PolicyService) Create(ctx context.Context, pol policy.Policy) (policy.Policy, error)
- func (_m *PolicyService) Delete(ctx context.Context, id string) error
- func (_m *PolicyService) EXPECT() *PolicyService_Expecter
- func (_m *PolicyService) Get(ctx context.Context, id string) (policy.Policy, error)
- func (_m *PolicyService) List(ctx context.Context, f policy.Filter) ([]policy.Policy, error)
- func (_m *PolicyService) ListRoles(ctx context.Context, principalType string, principalID string, ...) ([]role.Role, error)
- type PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) Return(_a0 policy.Policy, _a1 error) *PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) Run(run func(ctx context.Context, pol policy.Policy)) *PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) RunAndReturn(run func(context.Context, policy.Policy) (policy.Policy, error)) *PolicyService_Create_Call
- 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
- func (_e *PolicyService_Expecter) Create(ctx interface{}, pol interface{}) *PolicyService_Create_Call
- func (_e *PolicyService_Expecter) Delete(ctx interface{}, id interface{}) *PolicyService_Delete_Call
- func (_e *PolicyService_Expecter) Get(ctx interface{}, id interface{}) *PolicyService_Get_Call
- func (_e *PolicyService_Expecter) List(ctx interface{}, f interface{}) *PolicyService_List_Call
- func (_e *PolicyService_Expecter) ListRoles(ctx interface{}, principalType interface{}, principalID interface{}, ...) *PolicyService_ListRoles_Call
- type PolicyService_Get_Call
- func (_c *PolicyService_Get_Call) Return(_a0 policy.Policy, _a1 error) *PolicyService_Get_Call
- func (_c *PolicyService_Get_Call) Run(run func(ctx context.Context, id string)) *PolicyService_Get_Call
- func (_c *PolicyService_Get_Call) RunAndReturn(run func(context.Context, string) (policy.Policy, error)) *PolicyService_Get_Call
- type PolicyService_ListRoles_Call
- func (_c *PolicyService_ListRoles_Call) Return(_a0 []role.Role, _a1 error) *PolicyService_ListRoles_Call
- func (_c *PolicyService_ListRoles_Call) Run(run func(ctx context.Context, principalType string, principalID string, ...)) *PolicyService_ListRoles_Call
- func (_c *PolicyService_ListRoles_Call) RunAndReturn(run func(context.Context, string, string, string, string) ([]role.Role, error)) *PolicyService_ListRoles_Call
- 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, f policy.Filter)) *PolicyService_List_Call
- func (_c *PolicyService_List_Call) RunAndReturn(run func(context.Context, policy.Filter) ([]policy.Policy, error)) *PolicyService_List_Call
- type ProductService
- func (_m *ProductService) Create(ctx context.Context, _a1 product.Product) (product.Product, error)
- func (_m *ProductService) EXPECT() *ProductService_Expecter
- func (_m *ProductService) GetByID(ctx context.Context, id string) (product.Product, error)
- func (_m *ProductService) GetFeatureByID(ctx context.Context, id string) (product.Feature, error)
- func (_m *ProductService) List(ctx context.Context, filter product.Filter) ([]product.Product, error)
- func (_m *ProductService) ListFeatures(ctx context.Context, filter product.Filter) ([]product.Feature, error)
- func (_m *ProductService) Update(ctx context.Context, _a1 product.Product) (product.Product, error)
- func (_m *ProductService) UpsertFeature(ctx context.Context, feature product.Feature) (product.Feature, error)
- type ProductService_Create_Call
- func (_c *ProductService_Create_Call) Return(_a0 product.Product, _a1 error) *ProductService_Create_Call
- func (_c *ProductService_Create_Call) Run(run func(ctx context.Context, _a1 product.Product)) *ProductService_Create_Call
- func (_c *ProductService_Create_Call) RunAndReturn(run func(context.Context, product.Product) (product.Product, error)) *ProductService_Create_Call
- type ProductService_Expecter
- func (_e *ProductService_Expecter) Create(ctx interface{}, _a1 interface{}) *ProductService_Create_Call
- func (_e *ProductService_Expecter) GetByID(ctx interface{}, id interface{}) *ProductService_GetByID_Call
- func (_e *ProductService_Expecter) GetFeatureByID(ctx interface{}, id interface{}) *ProductService_GetFeatureByID_Call
- func (_e *ProductService_Expecter) List(ctx interface{}, filter interface{}) *ProductService_List_Call
- func (_e *ProductService_Expecter) ListFeatures(ctx interface{}, filter interface{}) *ProductService_ListFeatures_Call
- func (_e *ProductService_Expecter) Update(ctx interface{}, _a1 interface{}) *ProductService_Update_Call
- func (_e *ProductService_Expecter) UpsertFeature(ctx interface{}, feature interface{}) *ProductService_UpsertFeature_Call
- type ProductService_GetByID_Call
- func (_c *ProductService_GetByID_Call) Return(_a0 product.Product, _a1 error) *ProductService_GetByID_Call
- func (_c *ProductService_GetByID_Call) Run(run func(ctx context.Context, id string)) *ProductService_GetByID_Call
- func (_c *ProductService_GetByID_Call) RunAndReturn(run func(context.Context, string) (product.Product, error)) *ProductService_GetByID_Call
- type ProductService_GetFeatureByID_Call
- func (_c *ProductService_GetFeatureByID_Call) Return(_a0 product.Feature, _a1 error) *ProductService_GetFeatureByID_Call
- func (_c *ProductService_GetFeatureByID_Call) Run(run func(ctx context.Context, id string)) *ProductService_GetFeatureByID_Call
- func (_c *ProductService_GetFeatureByID_Call) RunAndReturn(run func(context.Context, string) (product.Feature, error)) *ProductService_GetFeatureByID_Call
- type ProductService_ListFeatures_Call
- func (_c *ProductService_ListFeatures_Call) Return(_a0 []product.Feature, _a1 error) *ProductService_ListFeatures_Call
- func (_c *ProductService_ListFeatures_Call) Run(run func(ctx context.Context, filter product.Filter)) *ProductService_ListFeatures_Call
- func (_c *ProductService_ListFeatures_Call) RunAndReturn(run func(context.Context, product.Filter) ([]product.Feature, error)) *ProductService_ListFeatures_Call
- type ProductService_List_Call
- func (_c *ProductService_List_Call) Return(_a0 []product.Product, _a1 error) *ProductService_List_Call
- func (_c *ProductService_List_Call) Run(run func(ctx context.Context, filter product.Filter)) *ProductService_List_Call
- func (_c *ProductService_List_Call) RunAndReturn(run func(context.Context, product.Filter) ([]product.Product, error)) *ProductService_List_Call
- type ProductService_Update_Call
- func (_c *ProductService_Update_Call) Return(_a0 product.Product, _a1 error) *ProductService_Update_Call
- func (_c *ProductService_Update_Call) Run(run func(ctx context.Context, _a1 product.Product)) *ProductService_Update_Call
- func (_c *ProductService_Update_Call) RunAndReturn(run func(context.Context, product.Product) (product.Product, error)) *ProductService_Update_Call
- type ProductService_UpsertFeature_Call
- func (_c *ProductService_UpsertFeature_Call) Return(_a0 product.Feature, _a1 error) *ProductService_UpsertFeature_Call
- func (_c *ProductService_UpsertFeature_Call) Run(run func(ctx context.Context, feature product.Feature)) *ProductService_UpsertFeature_Call
- func (_c *ProductService_UpsertFeature_Call) RunAndReturn(run func(context.Context, product.Feature) (product.Feature, error)) *ProductService_UpsertFeature_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditRecordService ¶
AuditRecordService is an autogenerated mock type for the AuditRecordService type
func NewAuditRecordService ¶
func NewAuditRecordService(t interface {
mock.TestingT
Cleanup(func())
}) *AuditRecordService
NewAuditRecordService creates a new instance of AuditRecordService. 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 (*AuditRecordService) Create ¶
func (_m *AuditRecordService) Create(ctx context.Context, record auditrecord.AuditRecord) (auditrecord.AuditRecord, bool, error)
Create provides a mock function with given fields: ctx, record
func (*AuditRecordService) EXPECT ¶
func (_m *AuditRecordService) EXPECT() *AuditRecordService_Expecter
func (*AuditRecordService) Export ¶ added in v0.75.0
func (_m *AuditRecordService) Export(ctx context.Context, query *rql.Query) (io.Reader, string, error)
Export provides a mock function with given fields: ctx, query
func (*AuditRecordService) List ¶ added in v0.75.0
func (_m *AuditRecordService) List(ctx context.Context, query *rql.Query) (auditrecord.AuditRecordsList, error)
List provides a mock function with given fields: ctx, query
type AuditRecordService_Create_Call ¶
AuditRecordService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*AuditRecordService_Create_Call) Return ¶
func (_c *AuditRecordService_Create_Call) Return(_a0 auditrecord.AuditRecord, _a1 bool, _a2 error) *AuditRecordService_Create_Call
func (*AuditRecordService_Create_Call) Run ¶
func (_c *AuditRecordService_Create_Call) Run(run func(ctx context.Context, record auditrecord.AuditRecord)) *AuditRecordService_Create_Call
func (*AuditRecordService_Create_Call) RunAndReturn ¶
func (_c *AuditRecordService_Create_Call) RunAndReturn(run func(context.Context, auditrecord.AuditRecord) (auditrecord.AuditRecord, bool, error)) *AuditRecordService_Create_Call
type AuditRecordService_Expecter ¶
type AuditRecordService_Expecter struct {
// contains filtered or unexported fields
}
func (*AuditRecordService_Expecter) Create ¶
func (_e *AuditRecordService_Expecter) Create(ctx interface{}, record interface{}) *AuditRecordService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- record auditrecord.AuditRecord
func (*AuditRecordService_Expecter) Export ¶ added in v0.75.0
func (_e *AuditRecordService_Expecter) Export(ctx interface{}, query interface{}) *AuditRecordService_Export_Call
Export is a helper method to define mock.On call
- ctx context.Context
- query *rql.Query
func (*AuditRecordService_Expecter) List ¶ added in v0.75.0
func (_e *AuditRecordService_Expecter) List(ctx interface{}, query interface{}) *AuditRecordService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- query *rql.Query
type AuditRecordService_Export_Call ¶ added in v0.75.0
AuditRecordService_Export_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Export'
func (*AuditRecordService_Export_Call) Return ¶ added in v0.75.0
func (_c *AuditRecordService_Export_Call) Return(_a0 io.Reader, _a1 string, _a2 error) *AuditRecordService_Export_Call
func (*AuditRecordService_Export_Call) Run ¶ added in v0.75.0
func (_c *AuditRecordService_Export_Call) Run(run func(ctx context.Context, query *rql.Query)) *AuditRecordService_Export_Call
func (*AuditRecordService_Export_Call) RunAndReturn ¶ added in v0.75.0
func (_c *AuditRecordService_Export_Call) RunAndReturn(run func(context.Context, *rql.Query) (io.Reader, string, error)) *AuditRecordService_Export_Call
type AuditRecordService_List_Call ¶ added in v0.75.0
AuditRecordService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*AuditRecordService_List_Call) Return ¶ added in v0.75.0
func (_c *AuditRecordService_List_Call) Return(_a0 auditrecord.AuditRecordsList, _a1 error) *AuditRecordService_List_Call
func (*AuditRecordService_List_Call) Run ¶ added in v0.75.0
func (_c *AuditRecordService_List_Call) Run(run func(ctx context.Context, query *rql.Query)) *AuditRecordService_List_Call
func (*AuditRecordService_List_Call) RunAndReturn ¶ added in v0.75.0
func (_c *AuditRecordService_List_Call) RunAndReturn(run func(context.Context, *rql.Query) (auditrecord.AuditRecordsList, error)) *AuditRecordService_List_Call
type CheckoutService ¶ added in v0.76.0
CheckoutService is an autogenerated mock type for the CheckoutService type
func NewCheckoutService ¶ added in v0.76.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) Apply ¶ added in v0.76.0
func (_m *CheckoutService) Apply(ctx context.Context, ch checkout.Checkout) (*subscription.Subscription, *product.Product, error)
Apply provides a mock function with given fields: ctx, ch
func (*CheckoutService) Create ¶ added in v0.76.0
func (_m *CheckoutService) Create(ctx context.Context, ch checkout.Checkout) (checkout.Checkout, error)
Create provides a mock function with given fields: ctx, ch
func (*CheckoutService) CreateSessionForCustomerPortal ¶ added in v0.76.0
func (_m *CheckoutService) CreateSessionForCustomerPortal(ctx context.Context, ch checkout.Checkout) (checkout.Checkout, error)
CreateSessionForCustomerPortal provides a mock function with given fields: ctx, ch
func (*CheckoutService) CreateSessionForPaymentMethod ¶ added in v0.76.0
func (_m *CheckoutService) CreateSessionForPaymentMethod(ctx context.Context, ch checkout.Checkout) (checkout.Checkout, error)
CreateSessionForPaymentMethod provides a mock function with given fields: ctx, ch
func (*CheckoutService) EXPECT ¶ added in v0.76.0
func (_m *CheckoutService) EXPECT() *CheckoutService_Expecter
type CheckoutService_Apply_Call ¶ added in v0.76.0
CheckoutService_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'
func (*CheckoutService_Apply_Call) Return ¶ added in v0.76.0
func (_c *CheckoutService_Apply_Call) Return(_a0 *subscription.Subscription, _a1 *product.Product, _a2 error) *CheckoutService_Apply_Call
func (*CheckoutService_Apply_Call) Run ¶ added in v0.76.0
func (_c *CheckoutService_Apply_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_Apply_Call
func (*CheckoutService_Apply_Call) RunAndReturn ¶ added in v0.76.0
func (_c *CheckoutService_Apply_Call) RunAndReturn(run func(context.Context, checkout.Checkout) (*subscription.Subscription, *product.Product, error)) *CheckoutService_Apply_Call
type CheckoutService_CreateSessionForCustomerPortal_Call ¶ added in v0.76.0
CheckoutService_CreateSessionForCustomerPortal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSessionForCustomerPortal'
func (*CheckoutService_CreateSessionForCustomerPortal_Call) Return ¶ added in v0.76.0
func (_c *CheckoutService_CreateSessionForCustomerPortal_Call) Return(_a0 checkout.Checkout, _a1 error) *CheckoutService_CreateSessionForCustomerPortal_Call
func (*CheckoutService_CreateSessionForCustomerPortal_Call) Run ¶ added in v0.76.0
func (_c *CheckoutService_CreateSessionForCustomerPortal_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_CreateSessionForCustomerPortal_Call
func (*CheckoutService_CreateSessionForCustomerPortal_Call) RunAndReturn ¶ added in v0.76.0
func (_c *CheckoutService_CreateSessionForCustomerPortal_Call) RunAndReturn(run func(context.Context, checkout.Checkout) (checkout.Checkout, error)) *CheckoutService_CreateSessionForCustomerPortal_Call
type CheckoutService_CreateSessionForPaymentMethod_Call ¶ added in v0.76.0
CheckoutService_CreateSessionForPaymentMethod_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSessionForPaymentMethod'
func (*CheckoutService_CreateSessionForPaymentMethod_Call) Return ¶ added in v0.76.0
func (_c *CheckoutService_CreateSessionForPaymentMethod_Call) Return(_a0 checkout.Checkout, _a1 error) *CheckoutService_CreateSessionForPaymentMethod_Call
func (*CheckoutService_CreateSessionForPaymentMethod_Call) Run ¶ added in v0.76.0
func (_c *CheckoutService_CreateSessionForPaymentMethod_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_CreateSessionForPaymentMethod_Call
func (*CheckoutService_CreateSessionForPaymentMethod_Call) RunAndReturn ¶ added in v0.76.0
func (_c *CheckoutService_CreateSessionForPaymentMethod_Call) RunAndReturn(run func(context.Context, checkout.Checkout) (checkout.Checkout, error)) *CheckoutService_CreateSessionForPaymentMethod_Call
type CheckoutService_Create_Call ¶ added in v0.76.0
CheckoutService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*CheckoutService_Create_Call) Return ¶ added in v0.76.0
func (_c *CheckoutService_Create_Call) Return(_a0 checkout.Checkout, _a1 error) *CheckoutService_Create_Call
func (*CheckoutService_Create_Call) Run ¶ added in v0.76.0
func (_c *CheckoutService_Create_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_Create_Call
func (*CheckoutService_Create_Call) RunAndReturn ¶ added in v0.76.0
func (_c *CheckoutService_Create_Call) RunAndReturn(run func(context.Context, checkout.Checkout) (checkout.Checkout, error)) *CheckoutService_Create_Call
type CheckoutService_Expecter ¶ added in v0.76.0
type CheckoutService_Expecter struct {
// contains filtered or unexported fields
}
func (*CheckoutService_Expecter) Apply ¶ added in v0.76.0
func (_e *CheckoutService_Expecter) Apply(ctx interface{}, ch interface{}) *CheckoutService_Apply_Call
Apply is a helper method to define mock.On call
- ctx context.Context
- ch checkout.Checkout
func (*CheckoutService_Expecter) Create ¶ added in v0.76.0
func (_e *CheckoutService_Expecter) Create(ctx interface{}, ch interface{}) *CheckoutService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- ch checkout.Checkout
func (*CheckoutService_Expecter) CreateSessionForCustomerPortal ¶ added in v0.76.0
func (_e *CheckoutService_Expecter) CreateSessionForCustomerPortal(ctx interface{}, ch interface{}) *CheckoutService_CreateSessionForCustomerPortal_Call
CreateSessionForCustomerPortal is a helper method to define mock.On call
- ctx context.Context
- ch checkout.Checkout
func (*CheckoutService_Expecter) CreateSessionForPaymentMethod ¶ added in v0.76.0
func (_e *CheckoutService_Expecter) CreateSessionForPaymentMethod(ctx interface{}, ch interface{}) *CheckoutService_CreateSessionForPaymentMethod_Call
CreateSessionForPaymentMethod is a helper method to define mock.On call
- ctx context.Context
- ch checkout.Checkout
func (*CheckoutService_Expecter) GetByID ¶ added in v0.76.0
func (_e *CheckoutService_Expecter) GetByID(ctx interface{}, id interface{}) *CheckoutService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*CheckoutService_Expecter) List ¶ added in v0.76.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_GetByID_Call ¶ added in v0.76.0
CheckoutService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*CheckoutService_GetByID_Call) Return ¶ added in v0.76.0
func (_c *CheckoutService_GetByID_Call) Return(_a0 checkout.Checkout, _a1 error) *CheckoutService_GetByID_Call
func (*CheckoutService_GetByID_Call) Run ¶ added in v0.76.0
func (_c *CheckoutService_GetByID_Call) Run(run func(ctx context.Context, id string)) *CheckoutService_GetByID_Call
func (*CheckoutService_GetByID_Call) RunAndReturn ¶ added in v0.76.0
func (_c *CheckoutService_GetByID_Call) RunAndReturn(run func(context.Context, string) (checkout.Checkout, error)) *CheckoutService_GetByID_Call
type CheckoutService_List_Call ¶ added in v0.76.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.76.0
func (_c *CheckoutService_List_Call) Return(_a0 []checkout.Checkout, _a1 error) *CheckoutService_List_Call
func (*CheckoutService_List_Call) Run ¶ added in v0.76.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.76.0
func (_c *CheckoutService_List_Call) RunAndReturn(run func(context.Context, checkout.Filter) ([]checkout.Checkout, error)) *CheckoutService_List_Call
type EventService ¶ added in v0.76.0
EventService is an autogenerated mock type for the EventService type
func NewEventService ¶ added in v0.76.0
func NewEventService(t interface {
mock.TestingT
Cleanup(func())
}) *EventService
NewEventService creates a new instance of EventService. 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 (*EventService) BillingWebhook ¶ added in v0.76.0
func (_m *EventService) BillingWebhook(ctx context.Context, _a1 event.ProviderWebhookEvent) error
BillingWebhook provides a mock function with given fields: ctx, _a1
func (*EventService) EXPECT ¶ added in v0.76.0
func (_m *EventService) EXPECT() *EventService_Expecter
type EventService_BillingWebhook_Call ¶ added in v0.76.0
EventService_BillingWebhook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BillingWebhook'
func (*EventService_BillingWebhook_Call) Return ¶ added in v0.76.0
func (_c *EventService_BillingWebhook_Call) Return(_a0 error) *EventService_BillingWebhook_Call
func (*EventService_BillingWebhook_Call) Run ¶ added in v0.76.0
func (_c *EventService_BillingWebhook_Call) Run(run func(ctx context.Context, _a1 event.ProviderWebhookEvent)) *EventService_BillingWebhook_Call
func (*EventService_BillingWebhook_Call) RunAndReturn ¶ added in v0.76.0
func (_c *EventService_BillingWebhook_Call) RunAndReturn(run func(context.Context, event.ProviderWebhookEvent) error) *EventService_BillingWebhook_Call
type EventService_Expecter ¶ added in v0.76.0
type EventService_Expecter struct {
// contains filtered or unexported fields
}
func (*EventService_Expecter) BillingWebhook ¶ added in v0.76.0
func (_e *EventService_Expecter) BillingWebhook(ctx interface{}, _a1 interface{}) *EventService_BillingWebhook_Call
BillingWebhook is a helper method to define mock.On call
- ctx context.Context
- _a1 event.ProviderWebhookEvent
type InvoiceService ¶ added in v0.76.0
InvoiceService is an autogenerated mock type for the InvoiceService type
func NewInvoiceService ¶ added in v0.76.0
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) EXPECT ¶ added in v0.76.0
func (_m *InvoiceService) EXPECT() *InvoiceService_Expecter
func (*InvoiceService) GetUpcoming ¶ added in v0.76.0
func (_m *InvoiceService) GetUpcoming(ctx context.Context, customerID string) (invoice.Invoice, error)
GetUpcoming provides a mock function with given fields: ctx, customerID
func (*InvoiceService) List ¶ added in v0.76.0
func (_m *InvoiceService) List(ctx context.Context, filter invoice.Filter) ([]invoice.Invoice, error)
List provides a mock function with given fields: ctx, filter
func (*InvoiceService) ListAll ¶ added in v0.76.0
func (_m *InvoiceService) ListAll(ctx context.Context, filter invoice.Filter) ([]invoice.Invoice, error)
ListAll provides a mock function with given fields: ctx, filter
func (*InvoiceService) SearchInvoices ¶ added in v0.76.0
func (_m *InvoiceService) SearchInvoices(ctx context.Context, rqlQuery *rql.Query) ([]invoice.InvoiceWithOrganization, error)
SearchInvoices provides a mock function with given fields: ctx, rqlQuery
func (*InvoiceService) TriggerCreditOverdraftInvoices ¶ added in v0.76.0
func (_m *InvoiceService) TriggerCreditOverdraftInvoices(ctx context.Context) error
TriggerCreditOverdraftInvoices provides a mock function with given fields: ctx
type InvoiceService_Expecter ¶ added in v0.76.0
type InvoiceService_Expecter struct {
// contains filtered or unexported fields
}
func (*InvoiceService_Expecter) GetUpcoming ¶ added in v0.76.0
func (_e *InvoiceService_Expecter) GetUpcoming(ctx interface{}, customerID interface{}) *InvoiceService_GetUpcoming_Call
GetUpcoming is a helper method to define mock.On call
- ctx context.Context
- customerID string
func (*InvoiceService_Expecter) List ¶ added in v0.76.0
func (_e *InvoiceService_Expecter) List(ctx interface{}, filter interface{}) *InvoiceService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter invoice.Filter
func (*InvoiceService_Expecter) ListAll ¶ added in v0.76.0
func (_e *InvoiceService_Expecter) ListAll(ctx interface{}, filter interface{}) *InvoiceService_ListAll_Call
ListAll is a helper method to define mock.On call
- ctx context.Context
- filter invoice.Filter
func (*InvoiceService_Expecter) SearchInvoices ¶ added in v0.76.0
func (_e *InvoiceService_Expecter) SearchInvoices(ctx interface{}, rqlQuery interface{}) *InvoiceService_SearchInvoices_Call
SearchInvoices is a helper method to define mock.On call
- ctx context.Context
- rqlQuery *rql.Query
func (*InvoiceService_Expecter) TriggerCreditOverdraftInvoices ¶ added in v0.76.0
func (_e *InvoiceService_Expecter) TriggerCreditOverdraftInvoices(ctx interface{}) *InvoiceService_TriggerCreditOverdraftInvoices_Call
TriggerCreditOverdraftInvoices is a helper method to define mock.On call
- ctx context.Context
type InvoiceService_GetUpcoming_Call ¶ added in v0.76.0
InvoiceService_GetUpcoming_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUpcoming'
func (*InvoiceService_GetUpcoming_Call) Return ¶ added in v0.76.0
func (_c *InvoiceService_GetUpcoming_Call) Return(_a0 invoice.Invoice, _a1 error) *InvoiceService_GetUpcoming_Call
func (*InvoiceService_GetUpcoming_Call) Run ¶ added in v0.76.0
func (_c *InvoiceService_GetUpcoming_Call) Run(run func(ctx context.Context, customerID string)) *InvoiceService_GetUpcoming_Call
func (*InvoiceService_GetUpcoming_Call) RunAndReturn ¶ added in v0.76.0
func (_c *InvoiceService_GetUpcoming_Call) RunAndReturn(run func(context.Context, string) (invoice.Invoice, error)) *InvoiceService_GetUpcoming_Call
type InvoiceService_ListAll_Call ¶ added in v0.76.0
InvoiceService_ListAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAll'
func (*InvoiceService_ListAll_Call) Return ¶ added in v0.76.0
func (_c *InvoiceService_ListAll_Call) Return(_a0 []invoice.Invoice, _a1 error) *InvoiceService_ListAll_Call
func (*InvoiceService_ListAll_Call) Run ¶ added in v0.76.0
func (_c *InvoiceService_ListAll_Call) Run(run func(ctx context.Context, filter invoice.Filter)) *InvoiceService_ListAll_Call
func (*InvoiceService_ListAll_Call) RunAndReturn ¶ added in v0.76.0
func (_c *InvoiceService_ListAll_Call) RunAndReturn(run func(context.Context, invoice.Filter) ([]invoice.Invoice, error)) *InvoiceService_ListAll_Call
type InvoiceService_List_Call ¶ added in v0.76.0
InvoiceService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*InvoiceService_List_Call) Return ¶ added in v0.76.0
func (_c *InvoiceService_List_Call) Return(_a0 []invoice.Invoice, _a1 error) *InvoiceService_List_Call
func (*InvoiceService_List_Call) Run ¶ added in v0.76.0
func (_c *InvoiceService_List_Call) Run(run func(ctx context.Context, filter invoice.Filter)) *InvoiceService_List_Call
func (*InvoiceService_List_Call) RunAndReturn ¶ added in v0.76.0
func (_c *InvoiceService_List_Call) RunAndReturn(run func(context.Context, invoice.Filter) ([]invoice.Invoice, error)) *InvoiceService_List_Call
type InvoiceService_SearchInvoices_Call ¶ added in v0.76.0
InvoiceService_SearchInvoices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchInvoices'
func (*InvoiceService_SearchInvoices_Call) Return ¶ added in v0.76.0
func (_c *InvoiceService_SearchInvoices_Call) Return(_a0 []invoice.InvoiceWithOrganization, _a1 error) *InvoiceService_SearchInvoices_Call
func (*InvoiceService_SearchInvoices_Call) Run ¶ added in v0.76.0
func (_c *InvoiceService_SearchInvoices_Call) Run(run func(ctx context.Context, rqlQuery *rql.Query)) *InvoiceService_SearchInvoices_Call
func (*InvoiceService_SearchInvoices_Call) RunAndReturn ¶ added in v0.76.0
func (_c *InvoiceService_SearchInvoices_Call) RunAndReturn(run func(context.Context, *rql.Query) ([]invoice.InvoiceWithOrganization, error)) *InvoiceService_SearchInvoices_Call
type InvoiceService_TriggerCreditOverdraftInvoices_Call ¶ added in v0.76.0
InvoiceService_TriggerCreditOverdraftInvoices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerCreditOverdraftInvoices'
func (*InvoiceService_TriggerCreditOverdraftInvoices_Call) Run ¶ added in v0.76.0
func (_c *InvoiceService_TriggerCreditOverdraftInvoices_Call) Run(run func(ctx context.Context)) *InvoiceService_TriggerCreditOverdraftInvoices_Call
func (*InvoiceService_TriggerCreditOverdraftInvoices_Call) RunAndReturn ¶ added in v0.76.0
func (_c *InvoiceService_TriggerCreditOverdraftInvoices_Call) RunAndReturn(run func(context.Context) error) *InvoiceService_TriggerCreditOverdraftInvoices_Call
type PlanService ¶ added in v0.76.0
PlanService is an autogenerated mock type for the PlanService type
func NewPlanService ¶ added in v0.76.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) Create ¶ added in v0.76.0
Create provides a mock function with given fields: ctx, _a1
func (*PlanService) EXPECT ¶ added in v0.76.0
func (_m *PlanService) EXPECT() *PlanService_Expecter
func (*PlanService) GetByID ¶ added in v0.76.0
GetByID provides a mock function with given fields: ctx, id
func (*PlanService) List ¶ added in v0.76.0
List provides a mock function with given fields: ctx, filter
func (*PlanService) UpsertPlans ¶ added in v0.76.0
UpsertPlans provides a mock function with given fields: ctx, planFile
type PlanService_Create_Call ¶ added in v0.76.0
PlanService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*PlanService_Create_Call) Return ¶ added in v0.76.0
func (_c *PlanService_Create_Call) Return(_a0 plan.Plan, _a1 error) *PlanService_Create_Call
func (*PlanService_Create_Call) Run ¶ added in v0.76.0
func (_c *PlanService_Create_Call) Run(run func(ctx context.Context, _a1 plan.Plan)) *PlanService_Create_Call
func (*PlanService_Create_Call) RunAndReturn ¶ added in v0.76.0
func (_c *PlanService_Create_Call) RunAndReturn(run func(context.Context, plan.Plan) (plan.Plan, error)) *PlanService_Create_Call
type PlanService_Expecter ¶ added in v0.76.0
type PlanService_Expecter struct {
// contains filtered or unexported fields
}
func (*PlanService_Expecter) Create ¶ added in v0.76.0
func (_e *PlanService_Expecter) Create(ctx interface{}, _a1 interface{}) *PlanService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- _a1 plan.Plan
func (*PlanService_Expecter) GetByID ¶ added in v0.76.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
func (*PlanService_Expecter) List ¶ added in v0.76.0
func (_e *PlanService_Expecter) List(ctx interface{}, filter interface{}) *PlanService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter plan.Filter
func (*PlanService_Expecter) UpsertPlans ¶ added in v0.76.0
func (_e *PlanService_Expecter) UpsertPlans(ctx interface{}, planFile interface{}) *PlanService_UpsertPlans_Call
UpsertPlans is a helper method to define mock.On call
- ctx context.Context
- planFile plan.File
type PlanService_GetByID_Call ¶ added in v0.76.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.76.0
func (_c *PlanService_GetByID_Call) Return(_a0 plan.Plan, _a1 error) *PlanService_GetByID_Call
func (*PlanService_GetByID_Call) Run ¶ added in v0.76.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.76.0
func (_c *PlanService_GetByID_Call) RunAndReturn(run func(context.Context, string) (plan.Plan, error)) *PlanService_GetByID_Call
type PlanService_List_Call ¶ added in v0.76.0
PlanService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*PlanService_List_Call) Return ¶ added in v0.76.0
func (_c *PlanService_List_Call) Return(_a0 []plan.Plan, _a1 error) *PlanService_List_Call
func (*PlanService_List_Call) Run ¶ added in v0.76.0
func (_c *PlanService_List_Call) Run(run func(ctx context.Context, filter plan.Filter)) *PlanService_List_Call
func (*PlanService_List_Call) RunAndReturn ¶ added in v0.76.0
func (_c *PlanService_List_Call) RunAndReturn(run func(context.Context, plan.Filter) ([]plan.Plan, error)) *PlanService_List_Call
type PlanService_UpsertPlans_Call ¶ added in v0.76.0
PlanService_UpsertPlans_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertPlans'
func (*PlanService_UpsertPlans_Call) Return ¶ added in v0.76.0
func (_c *PlanService_UpsertPlans_Call) Return(_a0 error) *PlanService_UpsertPlans_Call
func (*PlanService_UpsertPlans_Call) Run ¶ added in v0.76.0
func (_c *PlanService_UpsertPlans_Call) Run(run func(ctx context.Context, planFile plan.File)) *PlanService_UpsertPlans_Call
func (*PlanService_UpsertPlans_Call) RunAndReturn ¶ added in v0.76.0
func (_c *PlanService_UpsertPlans_Call) RunAndReturn(run func(context.Context, plan.File) error) *PlanService_UpsertPlans_Call
type PolicyService ¶ added in v0.76.0
PolicyService is an autogenerated mock type for the PolicyService type
func NewPolicyService ¶ added in v0.76.0
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) Create ¶ added in v0.76.0
Create provides a mock function with given fields: ctx, pol
func (*PolicyService) Delete ¶ added in v0.76.0
func (_m *PolicyService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*PolicyService) EXPECT ¶ added in v0.76.0
func (_m *PolicyService) EXPECT() *PolicyService_Expecter
func (*PolicyService) Get ¶ added in v0.76.0
Get provides a mock function with given fields: ctx, id
func (*PolicyService) List ¶ added in v0.76.0
List provides a mock function with given fields: ctx, f
func (*PolicyService) ListRoles ¶ added in v0.76.0
func (_m *PolicyService) ListRoles(ctx context.Context, principalType string, principalID string, objectNamespace string, objectID string) ([]role.Role, error)
ListRoles provides a mock function with given fields: ctx, principalType, principalID, objectNamespace, objectID
type PolicyService_Create_Call ¶ added in v0.76.0
PolicyService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*PolicyService_Create_Call) Return ¶ added in v0.76.0
func (_c *PolicyService_Create_Call) Return(_a0 policy.Policy, _a1 error) *PolicyService_Create_Call
func (*PolicyService_Create_Call) Run ¶ added in v0.76.0
func (_c *PolicyService_Create_Call) Run(run func(ctx context.Context, pol policy.Policy)) *PolicyService_Create_Call
func (*PolicyService_Create_Call) RunAndReturn ¶ added in v0.76.0
func (_c *PolicyService_Create_Call) RunAndReturn(run func(context.Context, policy.Policy) (policy.Policy, error)) *PolicyService_Create_Call
type PolicyService_Delete_Call ¶ added in v0.76.0
PolicyService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*PolicyService_Delete_Call) Return ¶ added in v0.76.0
func (_c *PolicyService_Delete_Call) Return(_a0 error) *PolicyService_Delete_Call
func (*PolicyService_Delete_Call) Run ¶ added in v0.76.0
func (_c *PolicyService_Delete_Call) Run(run func(ctx context.Context, id string)) *PolicyService_Delete_Call
func (*PolicyService_Delete_Call) RunAndReturn ¶ added in v0.76.0
func (_c *PolicyService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *PolicyService_Delete_Call
type PolicyService_Expecter ¶ added in v0.76.0
type PolicyService_Expecter struct {
// contains filtered or unexported fields
}
func (*PolicyService_Expecter) Create ¶ added in v0.76.0
func (_e *PolicyService_Expecter) Create(ctx interface{}, pol interface{}) *PolicyService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- pol policy.Policy
func (*PolicyService_Expecter) Delete ¶ added in v0.76.0
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) Get ¶ added in v0.76.0
func (_e *PolicyService_Expecter) Get(ctx interface{}, id interface{}) *PolicyService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*PolicyService_Expecter) List ¶ added in v0.76.0
func (_e *PolicyService_Expecter) List(ctx interface{}, f interface{}) *PolicyService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- f policy.Filter
func (*PolicyService_Expecter) ListRoles ¶ added in v0.76.0
func (_e *PolicyService_Expecter) ListRoles(ctx interface{}, principalType interface{}, principalID interface{}, objectNamespace interface{}, objectID interface{}) *PolicyService_ListRoles_Call
ListRoles is a helper method to define mock.On call
- ctx context.Context
- principalType string
- principalID string
- objectNamespace string
- objectID string
type PolicyService_Get_Call ¶ added in v0.76.0
PolicyService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*PolicyService_Get_Call) Return ¶ added in v0.76.0
func (_c *PolicyService_Get_Call) Return(_a0 policy.Policy, _a1 error) *PolicyService_Get_Call
func (*PolicyService_Get_Call) Run ¶ added in v0.76.0
func (_c *PolicyService_Get_Call) Run(run func(ctx context.Context, id string)) *PolicyService_Get_Call
func (*PolicyService_Get_Call) RunAndReturn ¶ added in v0.76.0
func (_c *PolicyService_Get_Call) RunAndReturn(run func(context.Context, string) (policy.Policy, error)) *PolicyService_Get_Call
type PolicyService_ListRoles_Call ¶ added in v0.76.0
PolicyService_ListRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRoles'
func (*PolicyService_ListRoles_Call) Return ¶ added in v0.76.0
func (_c *PolicyService_ListRoles_Call) Return(_a0 []role.Role, _a1 error) *PolicyService_ListRoles_Call
func (*PolicyService_ListRoles_Call) Run ¶ added in v0.76.0
func (_c *PolicyService_ListRoles_Call) Run(run func(ctx context.Context, principalType string, principalID string, objectNamespace string, objectID string)) *PolicyService_ListRoles_Call
func (*PolicyService_ListRoles_Call) RunAndReturn ¶ added in v0.76.0
type PolicyService_List_Call ¶ added in v0.76.0
PolicyService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*PolicyService_List_Call) Return ¶ added in v0.76.0
func (_c *PolicyService_List_Call) Return(_a0 []policy.Policy, _a1 error) *PolicyService_List_Call
func (*PolicyService_List_Call) Run ¶ added in v0.76.0
func (_c *PolicyService_List_Call) Run(run func(ctx context.Context, f policy.Filter)) *PolicyService_List_Call
func (*PolicyService_List_Call) RunAndReturn ¶ added in v0.76.0
func (_c *PolicyService_List_Call) RunAndReturn(run func(context.Context, policy.Filter) ([]policy.Policy, error)) *PolicyService_List_Call
type ProductService ¶ added in v0.76.0
ProductService is an autogenerated mock type for the ProductService type
func NewProductService ¶ added in v0.76.0
func NewProductService(t interface {
mock.TestingT
Cleanup(func())
}) *ProductService
NewProductService creates a new instance of ProductService. 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 (*ProductService) Create ¶ added in v0.76.0
Create provides a mock function with given fields: ctx, _a1
func (*ProductService) EXPECT ¶ added in v0.76.0
func (_m *ProductService) EXPECT() *ProductService_Expecter
func (*ProductService) GetByID ¶ added in v0.76.0
GetByID provides a mock function with given fields: ctx, id
func (*ProductService) GetFeatureByID ¶ added in v0.76.0
GetFeatureByID provides a mock function with given fields: ctx, id
func (*ProductService) List ¶ added in v0.76.0
func (_m *ProductService) List(ctx context.Context, filter product.Filter) ([]product.Product, error)
List provides a mock function with given fields: ctx, filter
func (*ProductService) ListFeatures ¶ added in v0.76.0
func (_m *ProductService) ListFeatures(ctx context.Context, filter product.Filter) ([]product.Feature, error)
ListFeatures provides a mock function with given fields: ctx, filter
func (*ProductService) Update ¶ added in v0.76.0
Update provides a mock function with given fields: ctx, _a1
func (*ProductService) UpsertFeature ¶ added in v0.76.0
func (_m *ProductService) UpsertFeature(ctx context.Context, feature product.Feature) (product.Feature, error)
UpsertFeature provides a mock function with given fields: ctx, feature
type ProductService_Create_Call ¶ added in v0.76.0
ProductService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ProductService_Create_Call) Return ¶ added in v0.76.0
func (_c *ProductService_Create_Call) Return(_a0 product.Product, _a1 error) *ProductService_Create_Call
func (*ProductService_Create_Call) Run ¶ added in v0.76.0
func (_c *ProductService_Create_Call) Run(run func(ctx context.Context, _a1 product.Product)) *ProductService_Create_Call
func (*ProductService_Create_Call) RunAndReturn ¶ added in v0.76.0
func (_c *ProductService_Create_Call) RunAndReturn(run func(context.Context, product.Product) (product.Product, error)) *ProductService_Create_Call
type ProductService_Expecter ¶ added in v0.76.0
type ProductService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProductService_Expecter) Create ¶ added in v0.76.0
func (_e *ProductService_Expecter) Create(ctx interface{}, _a1 interface{}) *ProductService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- _a1 product.Product
func (*ProductService_Expecter) GetByID ¶ added in v0.76.0
func (_e *ProductService_Expecter) GetByID(ctx interface{}, id interface{}) *ProductService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*ProductService_Expecter) GetFeatureByID ¶ added in v0.76.0
func (_e *ProductService_Expecter) GetFeatureByID(ctx interface{}, id interface{}) *ProductService_GetFeatureByID_Call
GetFeatureByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*ProductService_Expecter) List ¶ added in v0.76.0
func (_e *ProductService_Expecter) List(ctx interface{}, filter interface{}) *ProductService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter product.Filter
func (*ProductService_Expecter) ListFeatures ¶ added in v0.76.0
func (_e *ProductService_Expecter) ListFeatures(ctx interface{}, filter interface{}) *ProductService_ListFeatures_Call
ListFeatures is a helper method to define mock.On call
- ctx context.Context
- filter product.Filter
func (*ProductService_Expecter) Update ¶ added in v0.76.0
func (_e *ProductService_Expecter) Update(ctx interface{}, _a1 interface{}) *ProductService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- _a1 product.Product
func (*ProductService_Expecter) UpsertFeature ¶ added in v0.76.0
func (_e *ProductService_Expecter) UpsertFeature(ctx interface{}, feature interface{}) *ProductService_UpsertFeature_Call
UpsertFeature is a helper method to define mock.On call
- ctx context.Context
- feature product.Feature
type ProductService_GetByID_Call ¶ added in v0.76.0
ProductService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*ProductService_GetByID_Call) Return ¶ added in v0.76.0
func (_c *ProductService_GetByID_Call) Return(_a0 product.Product, _a1 error) *ProductService_GetByID_Call
func (*ProductService_GetByID_Call) Run ¶ added in v0.76.0
func (_c *ProductService_GetByID_Call) Run(run func(ctx context.Context, id string)) *ProductService_GetByID_Call
func (*ProductService_GetByID_Call) RunAndReturn ¶ added in v0.76.0
func (_c *ProductService_GetByID_Call) RunAndReturn(run func(context.Context, string) (product.Product, error)) *ProductService_GetByID_Call
type ProductService_GetFeatureByID_Call ¶ added in v0.76.0
ProductService_GetFeatureByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFeatureByID'
func (*ProductService_GetFeatureByID_Call) Return ¶ added in v0.76.0
func (_c *ProductService_GetFeatureByID_Call) Return(_a0 product.Feature, _a1 error) *ProductService_GetFeatureByID_Call
func (*ProductService_GetFeatureByID_Call) Run ¶ added in v0.76.0
func (_c *ProductService_GetFeatureByID_Call) Run(run func(ctx context.Context, id string)) *ProductService_GetFeatureByID_Call
func (*ProductService_GetFeatureByID_Call) RunAndReturn ¶ added in v0.76.0
func (_c *ProductService_GetFeatureByID_Call) RunAndReturn(run func(context.Context, string) (product.Feature, error)) *ProductService_GetFeatureByID_Call
type ProductService_ListFeatures_Call ¶ added in v0.76.0
ProductService_ListFeatures_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListFeatures'
func (*ProductService_ListFeatures_Call) Return ¶ added in v0.76.0
func (_c *ProductService_ListFeatures_Call) Return(_a0 []product.Feature, _a1 error) *ProductService_ListFeatures_Call
func (*ProductService_ListFeatures_Call) Run ¶ added in v0.76.0
func (_c *ProductService_ListFeatures_Call) Run(run func(ctx context.Context, filter product.Filter)) *ProductService_ListFeatures_Call
func (*ProductService_ListFeatures_Call) RunAndReturn ¶ added in v0.76.0
func (_c *ProductService_ListFeatures_Call) RunAndReturn(run func(context.Context, product.Filter) ([]product.Feature, error)) *ProductService_ListFeatures_Call
type ProductService_List_Call ¶ added in v0.76.0
ProductService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ProductService_List_Call) Return ¶ added in v0.76.0
func (_c *ProductService_List_Call) Return(_a0 []product.Product, _a1 error) *ProductService_List_Call
func (*ProductService_List_Call) Run ¶ added in v0.76.0
func (_c *ProductService_List_Call) Run(run func(ctx context.Context, filter product.Filter)) *ProductService_List_Call
func (*ProductService_List_Call) RunAndReturn ¶ added in v0.76.0
func (_c *ProductService_List_Call) RunAndReturn(run func(context.Context, product.Filter) ([]product.Product, error)) *ProductService_List_Call
type ProductService_Update_Call ¶ added in v0.76.0
ProductService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ProductService_Update_Call) Return ¶ added in v0.76.0
func (_c *ProductService_Update_Call) Return(_a0 product.Product, _a1 error) *ProductService_Update_Call
func (*ProductService_Update_Call) Run ¶ added in v0.76.0
func (_c *ProductService_Update_Call) Run(run func(ctx context.Context, _a1 product.Product)) *ProductService_Update_Call
func (*ProductService_Update_Call) RunAndReturn ¶ added in v0.76.0
func (_c *ProductService_Update_Call) RunAndReturn(run func(context.Context, product.Product) (product.Product, error)) *ProductService_Update_Call
type ProductService_UpsertFeature_Call ¶ added in v0.76.0
ProductService_UpsertFeature_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertFeature'
func (*ProductService_UpsertFeature_Call) Return ¶ added in v0.76.0
func (_c *ProductService_UpsertFeature_Call) Return(_a0 product.Feature, _a1 error) *ProductService_UpsertFeature_Call
func (*ProductService_UpsertFeature_Call) Run ¶ added in v0.76.0
func (_c *ProductService_UpsertFeature_Call) Run(run func(ctx context.Context, feature product.Feature)) *ProductService_UpsertFeature_Call
func (*ProductService_UpsertFeature_Call) RunAndReturn ¶ added in v0.76.0
func (_c *ProductService_UpsertFeature_Call) RunAndReturn(run func(context.Context, product.Feature) (product.Feature, error)) *ProductService_UpsertFeature_Call