mocks

package
v0.78.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditRecordService

type AuditRecordService struct {
	mock.Mock
}

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

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

func (*AuditRecordService) EXPECT

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

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

type AuditRecordService_Create_Call

type AuditRecordService_Create_Call struct {
	*mock.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 (*AuditRecordService_Create_Call) Run

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

type AuditRecordService_Export_Call struct {
	*mock.Call
}

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 (*AuditRecordService_Export_Call) Run added in v0.75.0

func (*AuditRecordService_Export_Call) RunAndReturn added in v0.75.0

type AuditRecordService_List_Call added in v0.75.0

type AuditRecordService_List_Call struct {
	*mock.Call
}

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 (*AuditRecordService_List_Call) Run added in v0.75.0

func (*AuditRecordService_List_Call) RunAndReturn added in v0.75.0

type CheckoutService added in v0.76.0

type CheckoutService struct {
	mock.Mock
}

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

Apply provides a mock function with given fields: ctx, ch

func (*CheckoutService) Create added in v0.76.0

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 (*CheckoutService) GetByID added in v0.76.0

func (_m *CheckoutService) GetByID(ctx context.Context, id string) (checkout.Checkout, error)

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

func (*CheckoutService) List added in v0.76.0

func (_m *CheckoutService) List(ctx context.Context, filter checkout.Filter) ([]checkout.Checkout, error)

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

type CheckoutService_Apply_Call added in v0.76.0

type CheckoutService_Apply_Call struct {
	*mock.Call
}

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 (*CheckoutService_Apply_Call) Run added in v0.76.0

func (*CheckoutService_Apply_Call) RunAndReturn added in v0.76.0

type CheckoutService_CreateSessionForCustomerPortal_Call added in v0.76.0

type CheckoutService_CreateSessionForCustomerPortal_Call struct {
	*mock.Call
}

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 (*CheckoutService_CreateSessionForCustomerPortal_Call) Run added in v0.76.0

func (*CheckoutService_CreateSessionForCustomerPortal_Call) RunAndReturn added in v0.76.0

type CheckoutService_CreateSessionForPaymentMethod_Call added in v0.76.0

type CheckoutService_CreateSessionForPaymentMethod_Call struct {
	*mock.Call
}

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 (*CheckoutService_CreateSessionForPaymentMethod_Call) Run added in v0.76.0

func (*CheckoutService_CreateSessionForPaymentMethod_Call) RunAndReturn added in v0.76.0

type CheckoutService_Create_Call added in v0.76.0

type CheckoutService_Create_Call struct {
	*mock.Call
}

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 (*CheckoutService_Create_Call) Run added in v0.76.0

func (*CheckoutService_Create_Call) RunAndReturn added in v0.76.0

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

type CheckoutService_GetByID_Call struct {
	*mock.Call
}

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 (*CheckoutService_GetByID_Call) Run added in v0.76.0

func (*CheckoutService_GetByID_Call) RunAndReturn added in v0.76.0

type CheckoutService_List_Call added in v0.76.0

type CheckoutService_List_Call struct {
	*mock.Call
}

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 (*CheckoutService_List_Call) Run added in v0.76.0

func (*CheckoutService_List_Call) RunAndReturn added in v0.76.0

type EventService added in v0.76.0

type EventService struct {
	mock.Mock
}

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

type EventService_BillingWebhook_Call struct {
	*mock.Call
}

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 (*EventService_BillingWebhook_Call) Run added in v0.76.0

func (*EventService_BillingWebhook_Call) RunAndReturn added in v0.76.0

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

type InvoiceService struct {
	mock.Mock
}

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 (*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

type InvoiceService_GetUpcoming_Call struct {
	*mock.Call
}

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 (*InvoiceService_GetUpcoming_Call) Run added in v0.76.0

func (*InvoiceService_GetUpcoming_Call) RunAndReturn added in v0.76.0

type InvoiceService_ListAll_Call added in v0.76.0

type InvoiceService_ListAll_Call struct {
	*mock.Call
}

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 (*InvoiceService_ListAll_Call) Run added in v0.76.0

func (*InvoiceService_ListAll_Call) RunAndReturn added in v0.76.0

type InvoiceService_List_Call added in v0.76.0

type InvoiceService_List_Call struct {
	*mock.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 added in v0.76.0

func (*InvoiceService_List_Call) Run added in v0.76.0

func (*InvoiceService_List_Call) RunAndReturn added in v0.76.0

type InvoiceService_SearchInvoices_Call added in v0.76.0

type InvoiceService_SearchInvoices_Call struct {
	*mock.Call
}

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 (*InvoiceService_SearchInvoices_Call) Run added in v0.76.0

func (*InvoiceService_SearchInvoices_Call) RunAndReturn added in v0.76.0

type InvoiceService_TriggerCreditOverdraftInvoices_Call added in v0.76.0

type InvoiceService_TriggerCreditOverdraftInvoices_Call struct {
	*mock.Call
}

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

func (*InvoiceService_TriggerCreditOverdraftInvoices_Call) Return added in v0.76.0

func (*InvoiceService_TriggerCreditOverdraftInvoices_Call) Run added in v0.76.0

func (*InvoiceService_TriggerCreditOverdraftInvoices_Call) RunAndReturn added in v0.76.0

type PlanService added in v0.76.0

type PlanService struct {
	mock.Mock
}

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

func (_m *PlanService) Create(ctx context.Context, _a1 plan.Plan) (plan.Plan, error)

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

func (_m *PlanService) GetByID(ctx context.Context, id string) (plan.Plan, error)

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

func (*PlanService) List added in v0.76.0

func (_m *PlanService) List(ctx context.Context, filter plan.Filter) ([]plan.Plan, error)

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

func (*PlanService) UpsertPlans added in v0.76.0

func (_m *PlanService) UpsertPlans(ctx context.Context, planFile plan.File) error

UpsertPlans provides a mock function with given fields: ctx, planFile

type PlanService_Create_Call added in v0.76.0

type PlanService_Create_Call struct {
	*mock.Call
}

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 (*PlanService_Create_Call) Run added in v0.76.0

func (*PlanService_Create_Call) RunAndReturn added in v0.76.0

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

type PlanService_GetByID_Call struct {
	*mock.Call
}

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 (*PlanService_GetByID_Call) Run added in v0.76.0

func (*PlanService_GetByID_Call) RunAndReturn added in v0.76.0

type PlanService_List_Call added in v0.76.0

type PlanService_List_Call struct {
	*mock.Call
}

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

type PlanService_UpsertPlans_Call added in v0.76.0

type PlanService_UpsertPlans_Call struct {
	*mock.Call
}

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 (*PlanService_UpsertPlans_Call) Run added in v0.76.0

func (*PlanService_UpsertPlans_Call) RunAndReturn added in v0.76.0

type PolicyService added in v0.76.0

type PolicyService struct {
	mock.Mock
}

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

func (_m *PolicyService) Create(ctx context.Context, pol policy.Policy) (policy.Policy, error)

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

func (_m *PolicyService) Get(ctx context.Context, id string) (policy.Policy, error)

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

func (*PolicyService) List added in v0.76.0

func (_m *PolicyService) List(ctx context.Context, f policy.Filter) ([]policy.Policy, error)

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

type PolicyService_Create_Call struct {
	*mock.Call
}

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 (*PolicyService_Create_Call) Run added in v0.76.0

func (*PolicyService_Create_Call) RunAndReturn added in v0.76.0

type PolicyService_Delete_Call added in v0.76.0

type PolicyService_Delete_Call struct {
	*mock.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 added in v0.76.0

func (*PolicyService_Delete_Call) Run added in v0.76.0

func (*PolicyService_Delete_Call) RunAndReturn added in v0.76.0

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

type PolicyService_Get_Call struct {
	*mock.Call
}

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 (*PolicyService_Get_Call) Run added in v0.76.0

func (*PolicyService_Get_Call) RunAndReturn added in v0.76.0

type PolicyService_ListRoles_Call added in v0.76.0

type PolicyService_ListRoles_Call struct {
	*mock.Call
}

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 (*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

type PolicyService_List_Call struct {
	*mock.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 added in v0.76.0

func (*PolicyService_List_Call) Run added in v0.76.0

func (*PolicyService_List_Call) RunAndReturn added in v0.76.0

type ProductService added in v0.76.0

type ProductService struct {
	mock.Mock
}

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 (*ProductService) GetByID added in v0.76.0

func (_m *ProductService) GetByID(ctx context.Context, id string) (product.Product, error)

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

func (*ProductService) GetFeatureByID added in v0.76.0

func (_m *ProductService) GetFeatureByID(ctx context.Context, id string) (product.Feature, error)

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

type ProductService_Create_Call struct {
	*mock.Call
}

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 (*ProductService_Create_Call) Run added in v0.76.0

func (*ProductService_Create_Call) RunAndReturn added in v0.76.0

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

type ProductService_GetByID_Call struct {
	*mock.Call
}

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 (*ProductService_GetByID_Call) Run added in v0.76.0

func (*ProductService_GetByID_Call) RunAndReturn added in v0.76.0

type ProductService_GetFeatureByID_Call added in v0.76.0

type ProductService_GetFeatureByID_Call struct {
	*mock.Call
}

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 (*ProductService_GetFeatureByID_Call) Run added in v0.76.0

func (*ProductService_GetFeatureByID_Call) RunAndReturn added in v0.76.0

type ProductService_ListFeatures_Call added in v0.76.0

type ProductService_ListFeatures_Call struct {
	*mock.Call
}

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 (*ProductService_ListFeatures_Call) Run added in v0.76.0

func (*ProductService_ListFeatures_Call) RunAndReturn added in v0.76.0

type ProductService_List_Call added in v0.76.0

type ProductService_List_Call struct {
	*mock.Call
}

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 (*ProductService_List_Call) Run added in v0.76.0

func (*ProductService_List_Call) RunAndReturn added in v0.76.0

type ProductService_Update_Call added in v0.76.0

type ProductService_Update_Call struct {
	*mock.Call
}

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 (*ProductService_Update_Call) Run added in v0.76.0

func (*ProductService_Update_Call) RunAndReturn added in v0.76.0

type ProductService_UpsertFeature_Call added in v0.76.0

type ProductService_UpsertFeature_Call struct {
	*mock.Call
}

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 (*ProductService_UpsertFeature_Call) Run added in v0.76.0

func (*ProductService_UpsertFeature_Call) RunAndReturn added in v0.76.0

Jump to

Keyboard shortcuts

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