mocks

package
v0.117.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckoutService added in v0.114.0

type CheckoutService struct {
	mock.Mock
}

CheckoutService is an autogenerated mock type for the CheckoutService type

func NewCheckoutService added in v0.114.0

func NewCheckoutService(t interface {
	mock.TestingT
	Cleanup(func())
}) *CheckoutService

NewCheckoutService creates a new instance of CheckoutService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CheckoutService) DeleteByCustomer added in v0.114.0

func (_m *CheckoutService) DeleteByCustomer(ctx context.Context, customerID string) error

DeleteByCustomer provides a mock function with given fields: ctx, customerID

func (*CheckoutService) EXPECT added in v0.114.0

func (*CheckoutService) List added in v0.114.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_DeleteByCustomer_Call added in v0.114.0

type CheckoutService_DeleteByCustomer_Call struct {
	*mock.Call
}

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

func (*CheckoutService_DeleteByCustomer_Call) Return added in v0.114.0

func (*CheckoutService_DeleteByCustomer_Call) Run added in v0.114.0

func (*CheckoutService_DeleteByCustomer_Call) RunAndReturn added in v0.114.0

type CheckoutService_Expecter added in v0.114.0

type CheckoutService_Expecter struct {
	// contains filtered or unexported fields
}

func (*CheckoutService_Expecter) DeleteByCustomer added in v0.114.0

func (_e *CheckoutService_Expecter) DeleteByCustomer(ctx interface{}, customerID interface{}) *CheckoutService_DeleteByCustomer_Call

DeleteByCustomer is a helper method to define mock.On call

  • ctx context.Context
  • customerID string

func (*CheckoutService_Expecter) List added in v0.114.0

func (_e *CheckoutService_Expecter) List(ctx interface{}, filter interface{}) *CheckoutService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • filter checkout.Filter

type CheckoutService_List_Call added in v0.114.0

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.114.0

func (*CheckoutService_List_Call) Run added in v0.114.0

func (*CheckoutService_List_Call) RunAndReturn added in v0.114.0

type CreditService added in v0.114.0

type CreditService struct {
	mock.Mock
}

CreditService is an autogenerated mock type for the CreditService type

func NewCreditService added in v0.114.0

func NewCreditService(t interface {
	mock.TestingT
	Cleanup(func())
}) *CreditService

NewCreditService creates a new instance of CreditService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CreditService) DeleteByAccountID added in v0.114.0

func (_m *CreditService) DeleteByAccountID(ctx context.Context, accountID string) error

DeleteByAccountID provides a mock function with given fields: ctx, accountID

func (*CreditService) EXPECT added in v0.114.0

func (_m *CreditService) EXPECT() *CreditService_Expecter

func (*CreditService) GetBalance added in v0.116.0

func (_m *CreditService) GetBalance(ctx context.Context, accountID string) (int64, error)

GetBalance provides a mock function with given fields: ctx, accountID

func (*CreditService) List added in v0.116.0

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

type CreditService_DeleteByAccountID_Call added in v0.114.0

type CreditService_DeleteByAccountID_Call struct {
	*mock.Call
}

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

func (*CreditService_DeleteByAccountID_Call) Return added in v0.114.0

func (*CreditService_DeleteByAccountID_Call) Run added in v0.114.0

func (*CreditService_DeleteByAccountID_Call) RunAndReturn added in v0.114.0

type CreditService_Expecter added in v0.114.0

type CreditService_Expecter struct {
	// contains filtered or unexported fields
}

func (*CreditService_Expecter) DeleteByAccountID added in v0.114.0

func (_e *CreditService_Expecter) DeleteByAccountID(ctx interface{}, accountID interface{}) *CreditService_DeleteByAccountID_Call

DeleteByAccountID is a helper method to define mock.On call

  • ctx context.Context
  • accountID string

func (*CreditService_Expecter) GetBalance added in v0.116.0

func (_e *CreditService_Expecter) GetBalance(ctx interface{}, accountID interface{}) *CreditService_GetBalance_Call

GetBalance is a helper method to define mock.On call

  • ctx context.Context
  • accountID string

func (*CreditService_Expecter) List added in v0.116.0

func (_e *CreditService_Expecter) List(ctx interface{}, flt interface{}) *CreditService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt credit.Filter

type CreditService_GetBalance_Call added in v0.116.0

type CreditService_GetBalance_Call struct {
	*mock.Call
}

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

func (*CreditService_GetBalance_Call) Return added in v0.116.0

func (*CreditService_GetBalance_Call) Run added in v0.116.0

func (*CreditService_GetBalance_Call) RunAndReturn added in v0.116.0

type CreditService_List_Call added in v0.116.0

type CreditService_List_Call struct {
	*mock.Call
}

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

func (*CreditService_List_Call) Return added in v0.116.0

func (*CreditService_List_Call) Run added in v0.116.0

func (*CreditService_List_Call) RunAndReturn added in v0.116.0

type CustomerService

type CustomerService struct {
	mock.Mock
}

CustomerService is an autogenerated mock type for the CustomerService type

func NewCustomerService

func NewCustomerService(t interface {
	mock.TestingT
	Cleanup(func())
}) *CustomerService

NewCustomerService creates a new instance of CustomerService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CustomerService) Delete

func (_m *CustomerService) Delete(ctx context.Context, id string) error

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

func (*CustomerService) EXPECT

func (*CustomerService) List

func (_m *CustomerService) List(ctx context.Context, filter customer.Filter) ([]customer.Customer, error)

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

type CustomerService_Delete_Call

type CustomerService_Delete_Call struct {
	*mock.Call
}

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

func (*CustomerService_Delete_Call) Return

func (*CustomerService_Delete_Call) Run

func (*CustomerService_Delete_Call) RunAndReturn

type CustomerService_Expecter

type CustomerService_Expecter struct {
	// contains filtered or unexported fields
}

func (*CustomerService_Expecter) Delete

func (_e *CustomerService_Expecter) Delete(ctx interface{}, id interface{}) *CustomerService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*CustomerService_Expecter) List

func (_e *CustomerService_Expecter) List(ctx interface{}, filter interface{}) *CustomerService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • filter customer.Filter

type CustomerService_List_Call

type CustomerService_List_Call struct {
	*mock.Call
}

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

func (*CustomerService_List_Call) Return

func (*CustomerService_List_Call) Run

func (*CustomerService_List_Call) RunAndReturn

type GroupService

type GroupService struct {
	mock.Mock
}

GroupService is an autogenerated mock type for the GroupService type

func NewGroupService

func NewGroupService(t interface {
	mock.TestingT
	Cleanup(func())
}) *GroupService

NewGroupService creates a new instance of GroupService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*GroupService) DeleteModel added in v0.103.0

func (_m *GroupService) DeleteModel(ctx context.Context, id string) error

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

func (*GroupService) EXPECT

func (_m *GroupService) EXPECT() *GroupService_Expecter

func (*GroupService) List

func (_m *GroupService) List(ctx context.Context, flt group.Filter) ([]group.Group, error)

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

type GroupService_DeleteModel_Call added in v0.103.0

type GroupService_DeleteModel_Call struct {
	*mock.Call
}

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

func (*GroupService_DeleteModel_Call) Return added in v0.103.0

func (*GroupService_DeleteModel_Call) Run added in v0.103.0

func (*GroupService_DeleteModel_Call) RunAndReturn added in v0.103.0

type GroupService_Expecter

type GroupService_Expecter struct {
	// contains filtered or unexported fields
}

func (*GroupService_Expecter) DeleteModel added in v0.103.0

func (_e *GroupService_Expecter) DeleteModel(ctx interface{}, id interface{}) *GroupService_DeleteModel_Call

DeleteModel is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*GroupService_Expecter) List

func (_e *GroupService_Expecter) List(ctx interface{}, flt interface{}) *GroupService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt group.Filter

type GroupService_List_Call

type GroupService_List_Call struct {
	*mock.Call
}

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

func (*GroupService_List_Call) Return

func (*GroupService_List_Call) Run

func (*GroupService_List_Call) RunAndReturn

type InvitationService

type InvitationService struct {
	mock.Mock
}

InvitationService is an autogenerated mock type for the InvitationService type

func NewInvitationService

func NewInvitationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *InvitationService

NewInvitationService creates a new instance of InvitationService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*InvitationService) Delete

func (_m *InvitationService) Delete(ctx context.Context, id uuid.UUID) error

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

func (*InvitationService) EXPECT

func (*InvitationService) List

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

type InvitationService_Delete_Call

type InvitationService_Delete_Call struct {
	*mock.Call
}

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

func (*InvitationService_Delete_Call) Return

func (*InvitationService_Delete_Call) Run

func (*InvitationService_Delete_Call) RunAndReturn

type InvitationService_Expecter

type InvitationService_Expecter struct {
	// contains filtered or unexported fields
}

func (*InvitationService_Expecter) Delete

func (_e *InvitationService_Expecter) Delete(ctx interface{}, id interface{}) *InvitationService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*InvitationService_Expecter) List

func (_e *InvitationService_Expecter) List(ctx interface{}, flt interface{}) *InvitationService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt invitation.Filter

type InvitationService_List_Call

type InvitationService_List_Call struct {
	*mock.Call
}

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

func (*InvitationService_List_Call) Return

func (*InvitationService_List_Call) Run

func (*InvitationService_List_Call) RunAndReturn

type InvoiceService

type InvoiceService struct {
	mock.Mock
}

InvoiceService is an autogenerated mock type for the InvoiceService type

func NewInvoiceService

func NewInvoiceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *InvoiceService

NewInvoiceService creates a new instance of InvoiceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*InvoiceService) DeleteByCustomer

func (_m *InvoiceService) DeleteByCustomer(ctx context.Context, customr customer.Customer) error

DeleteByCustomer provides a mock function with given fields: ctx, customr

func (*InvoiceService) EXPECT

func (*InvoiceService) List

func (_m *InvoiceService) List(ctx context.Context, flt invoice.Filter) ([]invoice.Invoice, error)

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

func (*InvoiceService) ListPayableOnProvider added in v0.116.0

func (_m *InvoiceService) ListPayableOnProvider(ctx context.Context, customr customer.Customer) ([]invoice.Invoice, error)

ListPayableOnProvider provides a mock function with given fields: ctx, customr

type InvoiceService_DeleteByCustomer_Call

type InvoiceService_DeleteByCustomer_Call struct {
	*mock.Call
}

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

func (*InvoiceService_DeleteByCustomer_Call) Return

func (*InvoiceService_DeleteByCustomer_Call) Run

func (*InvoiceService_DeleteByCustomer_Call) RunAndReturn

type InvoiceService_Expecter

type InvoiceService_Expecter struct {
	// contains filtered or unexported fields
}

func (*InvoiceService_Expecter) DeleteByCustomer

func (_e *InvoiceService_Expecter) DeleteByCustomer(ctx interface{}, customr interface{}) *InvoiceService_DeleteByCustomer_Call

DeleteByCustomer is a helper method to define mock.On call

  • ctx context.Context
  • customr customer.Customer

func (*InvoiceService_Expecter) List

func (_e *InvoiceService_Expecter) List(ctx interface{}, flt interface{}) *InvoiceService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt invoice.Filter

func (*InvoiceService_Expecter) ListPayableOnProvider added in v0.116.0

func (_e *InvoiceService_Expecter) ListPayableOnProvider(ctx interface{}, customr interface{}) *InvoiceService_ListPayableOnProvider_Call

ListPayableOnProvider is a helper method to define mock.On call

  • ctx context.Context
  • customr customer.Customer

type InvoiceService_ListPayableOnProvider_Call added in v0.116.0

type InvoiceService_ListPayableOnProvider_Call struct {
	*mock.Call
}

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

func (*InvoiceService_ListPayableOnProvider_Call) Return added in v0.116.0

func (*InvoiceService_ListPayableOnProvider_Call) Run added in v0.116.0

func (*InvoiceService_ListPayableOnProvider_Call) RunAndReturn added in v0.116.0

type InvoiceService_List_Call

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

func (*InvoiceService_List_Call) Run

func (*InvoiceService_List_Call) RunAndReturn

type KycService added in v0.114.0

type KycService struct {
	mock.Mock
}

KycService is an autogenerated mock type for the KycService type

func NewKycService added in v0.114.0

func NewKycService(t interface {
	mock.TestingT
	Cleanup(func())
}) *KycService

NewKycService creates a new instance of KycService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*KycService) DeleteKyc added in v0.114.0

func (_m *KycService) DeleteKyc(ctx context.Context, orgID string) error

DeleteKyc provides a mock function with given fields: ctx, orgID

func (*KycService) EXPECT added in v0.114.0

func (_m *KycService) EXPECT() *KycService_Expecter

type KycService_DeleteKyc_Call added in v0.114.0

type KycService_DeleteKyc_Call struct {
	*mock.Call
}

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

func (*KycService_DeleteKyc_Call) Return added in v0.114.0

func (*KycService_DeleteKyc_Call) Run added in v0.114.0

func (*KycService_DeleteKyc_Call) RunAndReturn added in v0.114.0

type KycService_Expecter added in v0.114.0

type KycService_Expecter struct {
	// contains filtered or unexported fields
}

func (*KycService_Expecter) DeleteKyc added in v0.114.0

func (_e *KycService_Expecter) DeleteKyc(ctx interface{}, orgID interface{}) *KycService_DeleteKyc_Call

DeleteKyc is a helper method to define mock.On call

  • ctx context.Context
  • orgID string

type MembershipService added in v0.103.0

type MembershipService struct {
	mock.Mock
}

MembershipService is an autogenerated mock type for the MembershipService type

func NewMembershipService added in v0.103.0

func NewMembershipService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MembershipService

NewMembershipService creates a new instance of MembershipService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MembershipService) EXPECT added in v0.103.0

func (*MembershipService) ForceRemoveOrganizationMember added in v0.107.0

func (_m *MembershipService) ForceRemoveOrganizationMember(ctx context.Context, orgID string, principalID string, principalType string) error

ForceRemoveOrganizationMember provides a mock function with given fields: ctx, orgID, principalID, principalType

func (*MembershipService) ListPrincipalsByResource added in v0.116.0

func (_m *MembershipService) ListPrincipalsByResource(ctx context.Context, resourceID string, resourceType string, filter membership.MemberFilter) ([]membership.Member, error)

ListPrincipalsByResource provides a mock function with given fields: ctx, resourceID, resourceType, filter

func (*MembershipService) ListResourcesByPrincipal added in v0.104.0

func (_m *MembershipService) ListResourcesByPrincipal(ctx context.Context, principal authenticate.Principal, resourceType string, filter membership.ResourceFilter) ([]string, error)

ListResourcesByPrincipal provides a mock function with given fields: ctx, principal, resourceType, filter

func (*MembershipService) OnGroupDeleted added in v0.103.0

func (_m *MembershipService) OnGroupDeleted(ctx context.Context, groupID string) error

OnGroupDeleted provides a mock function with given fields: ctx, groupID

type MembershipService_Expecter added in v0.103.0

type MembershipService_Expecter struct {
	// contains filtered or unexported fields
}

func (*MembershipService_Expecter) ForceRemoveOrganizationMember added in v0.107.0

func (_e *MembershipService_Expecter) ForceRemoveOrganizationMember(ctx interface{}, orgID interface{}, principalID interface{}, principalType interface{}) *MembershipService_ForceRemoveOrganizationMember_Call

ForceRemoveOrganizationMember is a helper method to define mock.On call

  • ctx context.Context
  • orgID string
  • principalID string
  • principalType string

func (*MembershipService_Expecter) ListPrincipalsByResource added in v0.116.0

func (_e *MembershipService_Expecter) ListPrincipalsByResource(ctx interface{}, resourceID interface{}, resourceType interface{}, filter interface{}) *MembershipService_ListPrincipalsByResource_Call

ListPrincipalsByResource is a helper method to define mock.On call

  • ctx context.Context
  • resourceID string
  • resourceType string
  • filter membership.MemberFilter

func (*MembershipService_Expecter) ListResourcesByPrincipal added in v0.104.0

func (_e *MembershipService_Expecter) ListResourcesByPrincipal(ctx interface{}, principal interface{}, resourceType interface{}, filter interface{}) *MembershipService_ListResourcesByPrincipal_Call

ListResourcesByPrincipal is a helper method to define mock.On call

  • ctx context.Context
  • principal authenticate.Principal
  • resourceType string
  • filter membership.ResourceFilter

func (*MembershipService_Expecter) OnGroupDeleted added in v0.103.0

func (_e *MembershipService_Expecter) OnGroupDeleted(ctx interface{}, groupID interface{}) *MembershipService_OnGroupDeleted_Call

OnGroupDeleted is a helper method to define mock.On call

  • ctx context.Context
  • groupID string

type MembershipService_ForceRemoveOrganizationMember_Call added in v0.107.0

type MembershipService_ForceRemoveOrganizationMember_Call struct {
	*mock.Call
}

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

func (*MembershipService_ForceRemoveOrganizationMember_Call) Return added in v0.107.0

func (*MembershipService_ForceRemoveOrganizationMember_Call) Run added in v0.107.0

func (*MembershipService_ForceRemoveOrganizationMember_Call) RunAndReturn added in v0.107.0

type MembershipService_ListPrincipalsByResource_Call added in v0.116.0

type MembershipService_ListPrincipalsByResource_Call struct {
	*mock.Call
}

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

func (*MembershipService_ListPrincipalsByResource_Call) Return added in v0.116.0

func (*MembershipService_ListPrincipalsByResource_Call) Run added in v0.116.0

func (*MembershipService_ListPrincipalsByResource_Call) RunAndReturn added in v0.116.0

type MembershipService_ListResourcesByPrincipal_Call added in v0.104.0

type MembershipService_ListResourcesByPrincipal_Call struct {
	*mock.Call
}

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

func (*MembershipService_ListResourcesByPrincipal_Call) Return added in v0.104.0

func (*MembershipService_ListResourcesByPrincipal_Call) Run added in v0.104.0

func (*MembershipService_ListResourcesByPrincipal_Call) RunAndReturn added in v0.104.0

type MembershipService_OnGroupDeleted_Call added in v0.103.0

type MembershipService_OnGroupDeleted_Call struct {
	*mock.Call
}

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

func (*MembershipService_OnGroupDeleted_Call) Return added in v0.103.0

func (*MembershipService_OnGroupDeleted_Call) Run added in v0.103.0

func (*MembershipService_OnGroupDeleted_Call) RunAndReturn added in v0.103.0

type OrganizationService

type OrganizationService struct {
	mock.Mock
}

OrganizationService is an autogenerated mock type for the OrganizationService type

func NewOrganizationService

func NewOrganizationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *OrganizationService

NewOrganizationService creates a new instance of OrganizationService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*OrganizationService) DeleteModel

func (_m *OrganizationService) DeleteModel(ctx context.Context, id string) error

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

func (*OrganizationService) EXPECT

func (*OrganizationService) GetRaw added in v0.116.0

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

type OrganizationService_DeleteModel_Call

type OrganizationService_DeleteModel_Call struct {
	*mock.Call
}

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

func (*OrganizationService_DeleteModel_Call) Return

func (*OrganizationService_DeleteModel_Call) Run

func (*OrganizationService_DeleteModel_Call) RunAndReturn

type OrganizationService_Expecter

type OrganizationService_Expecter struct {
	// contains filtered or unexported fields
}

func (*OrganizationService_Expecter) DeleteModel

func (_e *OrganizationService_Expecter) DeleteModel(ctx interface{}, id interface{}) *OrganizationService_DeleteModel_Call

DeleteModel is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*OrganizationService_Expecter) GetRaw added in v0.116.0

func (_e *OrganizationService_Expecter) GetRaw(ctx interface{}, id interface{}) *OrganizationService_GetRaw_Call

GetRaw is a helper method to define mock.On call

  • ctx context.Context
  • id string

type OrganizationService_GetRaw_Call added in v0.116.0

type OrganizationService_GetRaw_Call struct {
	*mock.Call
}

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

func (*OrganizationService_GetRaw_Call) Return added in v0.116.0

func (*OrganizationService_GetRaw_Call) Run added in v0.116.0

func (*OrganizationService_GetRaw_Call) RunAndReturn added in v0.116.0

type PlanService added in v0.116.0

type PlanService struct {
	mock.Mock
}

PlanService is an autogenerated mock type for the PlanService type

func NewPlanService added in v0.116.0

func NewPlanService(t interface {
	mock.TestingT
	Cleanup(func())
}) *PlanService

NewPlanService creates a new instance of PlanService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PlanService) EXPECT added in v0.116.0

func (_m *PlanService) EXPECT() *PlanService_Expecter

func (*PlanService) GetByID added in v0.116.0

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

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

type PlanService_Expecter added in v0.116.0

type PlanService_Expecter struct {
	// contains filtered or unexported fields
}

func (*PlanService_Expecter) GetByID added in v0.116.0

func (_e *PlanService_Expecter) GetByID(ctx interface{}, id interface{}) *PlanService_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

type PlanService_GetByID_Call added in v0.116.0

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.116.0

func (*PlanService_GetByID_Call) Run added in v0.116.0

func (*PlanService_GetByID_Call) RunAndReturn added in v0.116.0

type PolicyService

type PolicyService struct {
	mock.Mock
}

PolicyService is an autogenerated mock type for the PolicyService type

func NewPolicyService

func NewPolicyService(t interface {
	mock.TestingT
	Cleanup(func())
}) *PolicyService

NewPolicyService creates a new instance of PolicyService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PolicyService) Delete

func (_m *PolicyService) Delete(ctx context.Context, id string) error

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

func (*PolicyService) EXPECT

func (_m *PolicyService) EXPECT() *PolicyService_Expecter

func (*PolicyService) List

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

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

type PolicyService_Delete_Call

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

func (*PolicyService_Delete_Call) Run

func (*PolicyService_Delete_Call) RunAndReturn

type PolicyService_Expecter

type PolicyService_Expecter struct {
	// contains filtered or unexported fields
}

func (*PolicyService_Expecter) Delete

func (_e *PolicyService_Expecter) Delete(ctx interface{}, id interface{}) *PolicyService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*PolicyService_Expecter) List

func (_e *PolicyService_Expecter) List(ctx interface{}, flt interface{}) *PolicyService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt policy.Filter

type PolicyService_List_Call

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

func (*PolicyService_List_Call) Run

func (*PolicyService_List_Call) RunAndReturn

type ProjectService

type ProjectService struct {
	mock.Mock
}

ProjectService is an autogenerated mock type for the ProjectService type

func NewProjectService

func NewProjectService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProjectService

NewProjectService creates a new instance of ProjectService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ProjectService) DeleteModel

func (_m *ProjectService) DeleteModel(ctx context.Context, id string) error

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

func (*ProjectService) EXPECT

func (*ProjectService) List

func (_m *ProjectService) List(ctx context.Context, flt project.Filter) ([]project.Project, error)

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

type ProjectService_DeleteModel_Call

type ProjectService_DeleteModel_Call struct {
	*mock.Call
}

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

func (*ProjectService_DeleteModel_Call) Return

func (*ProjectService_DeleteModel_Call) Run

func (*ProjectService_DeleteModel_Call) RunAndReturn

type ProjectService_Expecter

type ProjectService_Expecter struct {
	// contains filtered or unexported fields
}

func (*ProjectService_Expecter) DeleteModel

func (_e *ProjectService_Expecter) DeleteModel(ctx interface{}, id interface{}) *ProjectService_DeleteModel_Call

DeleteModel is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*ProjectService_Expecter) List

func (_e *ProjectService_Expecter) List(ctx interface{}, flt interface{}) *ProjectService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt project.Filter

type ProjectService_List_Call

type ProjectService_List_Call struct {
	*mock.Call
}

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

func (*ProjectService_List_Call) Return

func (*ProjectService_List_Call) Run

func (*ProjectService_List_Call) RunAndReturn

type ResourceService

type ResourceService struct {
	mock.Mock
}

ResourceService is an autogenerated mock type for the ResourceService type

func NewResourceService

func NewResourceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResourceService

NewResourceService creates a new instance of ResourceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ResourceService) Delete

func (_m *ResourceService) Delete(ctx context.Context, namespaceID string, id string) error

Delete provides a mock function with given fields: ctx, namespaceID, id

func (*ResourceService) EXPECT

func (*ResourceService) List

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

type ResourceService_Delete_Call

type ResourceService_Delete_Call struct {
	*mock.Call
}

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

func (*ResourceService_Delete_Call) Return

func (*ResourceService_Delete_Call) Run

func (_c *ResourceService_Delete_Call) Run(run func(ctx context.Context, namespaceID string, id string)) *ResourceService_Delete_Call

func (*ResourceService_Delete_Call) RunAndReturn

type ResourceService_Expecter

type ResourceService_Expecter struct {
	// contains filtered or unexported fields
}

func (*ResourceService_Expecter) Delete

func (_e *ResourceService_Expecter) Delete(ctx interface{}, namespaceID interface{}, id interface{}) *ResourceService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • namespaceID string
  • id string

func (*ResourceService_Expecter) List

func (_e *ResourceService_Expecter) List(ctx interface{}, flt interface{}) *ResourceService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt resource.Filter

type ResourceService_List_Call

type ResourceService_List_Call struct {
	*mock.Call
}

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

func (*ResourceService_List_Call) Return

func (*ResourceService_List_Call) Run

func (*ResourceService_List_Call) RunAndReturn

type RoleService

type RoleService struct {
	mock.Mock
}

RoleService is an autogenerated mock type for the RoleService type

func NewRoleService

func NewRoleService(t interface {
	mock.TestingT
	Cleanup(func())
}) *RoleService

NewRoleService creates a new instance of RoleService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RoleService) Delete

func (_m *RoleService) Delete(ctx context.Context, id string) error

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

func (*RoleService) EXPECT

func (_m *RoleService) EXPECT() *RoleService_Expecter

func (*RoleService) Get added in v0.116.0

func (_m *RoleService) Get(ctx context.Context, id string) (role.Role, error)

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

func (*RoleService) List

func (_m *RoleService) List(ctx context.Context, flt role.Filter) ([]role.Role, error)

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

type RoleService_Delete_Call

type RoleService_Delete_Call struct {
	*mock.Call
}

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

func (*RoleService_Delete_Call) Return

func (*RoleService_Delete_Call) Run

func (*RoleService_Delete_Call) RunAndReturn

type RoleService_Expecter

type RoleService_Expecter struct {
	// contains filtered or unexported fields
}

func (*RoleService_Expecter) Delete

func (_e *RoleService_Expecter) Delete(ctx interface{}, id interface{}) *RoleService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*RoleService_Expecter) Get added in v0.116.0

func (_e *RoleService_Expecter) Get(ctx interface{}, id interface{}) *RoleService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*RoleService_Expecter) List

func (_e *RoleService_Expecter) List(ctx interface{}, flt interface{}) *RoleService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt role.Filter

type RoleService_Get_Call added in v0.116.0

type RoleService_Get_Call struct {
	*mock.Call
}

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

func (*RoleService_Get_Call) Return added in v0.116.0

func (*RoleService_Get_Call) Run added in v0.116.0

func (_c *RoleService_Get_Call) Run(run func(ctx context.Context, id string)) *RoleService_Get_Call

func (*RoleService_Get_Call) RunAndReturn added in v0.116.0

func (_c *RoleService_Get_Call) RunAndReturn(run func(context.Context, string) (role.Role, error)) *RoleService_Get_Call

type RoleService_List_Call

type RoleService_List_Call struct {
	*mock.Call
}

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

func (*RoleService_List_Call) Return

func (_c *RoleService_List_Call) Return(_a0 []role.Role, _a1 error) *RoleService_List_Call

func (*RoleService_List_Call) Run

func (*RoleService_List_Call) RunAndReturn

type ServiceUserService added in v0.100.0

type ServiceUserService struct {
	mock.Mock
}

ServiceUserService is an autogenerated mock type for the ServiceUserService type

func NewServiceUserService added in v0.100.0

func NewServiceUserService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServiceUserService

NewServiceUserService creates a new instance of ServiceUserService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ServiceUserService) Delete added in v0.100.0

func (_m *ServiceUserService) Delete(ctx context.Context, id string) error

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

func (*ServiceUserService) EXPECT added in v0.100.0

func (*ServiceUserService) List added in v0.100.0

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

type ServiceUserService_Delete_Call added in v0.100.0

type ServiceUserService_Delete_Call struct {
	*mock.Call
}

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

func (*ServiceUserService_Delete_Call) Return added in v0.100.0

func (*ServiceUserService_Delete_Call) Run added in v0.100.0

func (*ServiceUserService_Delete_Call) RunAndReturn added in v0.100.0

type ServiceUserService_Expecter added in v0.100.0

type ServiceUserService_Expecter struct {
	// contains filtered or unexported fields
}

func (*ServiceUserService_Expecter) Delete added in v0.100.0

func (_e *ServiceUserService_Expecter) Delete(ctx interface{}, id interface{}) *ServiceUserService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*ServiceUserService_Expecter) List added in v0.100.0

func (_e *ServiceUserService_Expecter) List(ctx interface{}, flt interface{}) *ServiceUserService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt serviceuser.Filter

type ServiceUserService_List_Call added in v0.100.0

type ServiceUserService_List_Call struct {
	*mock.Call
}

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

func (*ServiceUserService_List_Call) Return added in v0.100.0

func (*ServiceUserService_List_Call) Run added in v0.100.0

func (*ServiceUserService_List_Call) RunAndReturn added in v0.100.0

type SubscriptionService

type SubscriptionService struct {
	mock.Mock
}

SubscriptionService is an autogenerated mock type for the SubscriptionService type

func NewSubscriptionService

func NewSubscriptionService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SubscriptionService

NewSubscriptionService creates a new instance of SubscriptionService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SubscriptionService) Cancel added in v0.116.0

func (_m *SubscriptionService) Cancel(ctx context.Context, id string, immediate bool) (subscription.Subscription, error)

Cancel provides a mock function with given fields: ctx, id, immediate

func (*SubscriptionService) DeleteByCustomer

func (_m *SubscriptionService) DeleteByCustomer(ctx context.Context, customr customer.Customer) error

DeleteByCustomer provides a mock function with given fields: ctx, customr

func (*SubscriptionService) EXPECT

func (*SubscriptionService) List added in v0.116.0

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

type SubscriptionService_Cancel_Call added in v0.116.0

type SubscriptionService_Cancel_Call struct {
	*mock.Call
}

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

func (*SubscriptionService_Cancel_Call) Return added in v0.116.0

func (*SubscriptionService_Cancel_Call) Run added in v0.116.0

func (*SubscriptionService_Cancel_Call) RunAndReturn added in v0.116.0

type SubscriptionService_DeleteByCustomer_Call

type SubscriptionService_DeleteByCustomer_Call struct {
	*mock.Call
}

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

func (*SubscriptionService_DeleteByCustomer_Call) Return

func (*SubscriptionService_DeleteByCustomer_Call) Run

func (*SubscriptionService_DeleteByCustomer_Call) RunAndReturn

type SubscriptionService_Expecter

type SubscriptionService_Expecter struct {
	// contains filtered or unexported fields
}

func (*SubscriptionService_Expecter) Cancel added in v0.116.0

func (_e *SubscriptionService_Expecter) Cancel(ctx interface{}, id interface{}, immediate interface{}) *SubscriptionService_Cancel_Call

Cancel is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • immediate bool

func (*SubscriptionService_Expecter) DeleteByCustomer

func (_e *SubscriptionService_Expecter) DeleteByCustomer(ctx interface{}, customr interface{}) *SubscriptionService_DeleteByCustomer_Call

DeleteByCustomer is a helper method to define mock.On call

  • ctx context.Context
  • customr customer.Customer

func (*SubscriptionService_Expecter) List added in v0.116.0

func (_e *SubscriptionService_Expecter) List(ctx interface{}, filter interface{}) *SubscriptionService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • filter subscription.Filter

type SubscriptionService_List_Call added in v0.116.0

type SubscriptionService_List_Call struct {
	*mock.Call
}

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

func (*SubscriptionService_List_Call) Return added in v0.116.0

func (*SubscriptionService_List_Call) Run added in v0.116.0

func (*SubscriptionService_List_Call) RunAndReturn added in v0.116.0

type UserPATService added in v0.106.0

type UserPATService struct {
	mock.Mock
}

UserPATService is an autogenerated mock type for the UserPATService type

func NewUserPATService added in v0.106.0

func NewUserPATService(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserPATService

NewUserPATService creates a new instance of UserPATService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*UserPATService) DeleteAllByUser added in v0.106.0

func (_m *UserPATService) DeleteAllByUser(ctx context.Context, userID string) error

DeleteAllByUser provides a mock function with given fields: ctx, userID

func (*UserPATService) EXPECT added in v0.106.0

type UserPATService_DeleteAllByUser_Call added in v0.106.0

type UserPATService_DeleteAllByUser_Call struct {
	*mock.Call
}

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

func (*UserPATService_DeleteAllByUser_Call) Return added in v0.106.0

func (*UserPATService_DeleteAllByUser_Call) Run added in v0.106.0

func (*UserPATService_DeleteAllByUser_Call) RunAndReturn added in v0.106.0

type UserPATService_Expecter added in v0.106.0

type UserPATService_Expecter struct {
	// contains filtered or unexported fields
}

func (*UserPATService_Expecter) DeleteAllByUser added in v0.106.0

func (_e *UserPATService_Expecter) DeleteAllByUser(ctx interface{}, userID interface{}) *UserPATService_DeleteAllByUser_Call

DeleteAllByUser is a helper method to define mock.On call

  • ctx context.Context
  • userID string

type UserService

type UserService struct {
	mock.Mock
}

UserService is an autogenerated mock type for the UserService type

func NewUserService

func NewUserService(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserService

NewUserService creates a new instance of UserService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*UserService) Delete

func (_m *UserService) Delete(ctx context.Context, id string) error

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

func (*UserService) EXPECT

func (_m *UserService) EXPECT() *UserService_Expecter

func (*UserService) GetByIDs added in v0.116.0

func (_m *UserService) GetByIDs(ctx context.Context, userIDs []string) ([]user.User, error)

GetByIDs provides a mock function with given fields: ctx, userIDs

type UserService_Delete_Call

type UserService_Delete_Call struct {
	*mock.Call
}

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

func (*UserService_Delete_Call) Return

func (*UserService_Delete_Call) Run

func (*UserService_Delete_Call) RunAndReturn

type UserService_Expecter

type UserService_Expecter struct {
	// contains filtered or unexported fields
}

func (*UserService_Expecter) Delete

func (_e *UserService_Expecter) Delete(ctx interface{}, id interface{}) *UserService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*UserService_Expecter) GetByIDs added in v0.116.0

func (_e *UserService_Expecter) GetByIDs(ctx interface{}, userIDs interface{}) *UserService_GetByIDs_Call

GetByIDs is a helper method to define mock.On call

  • ctx context.Context
  • userIDs []string

type UserService_GetByIDs_Call added in v0.116.0

type UserService_GetByIDs_Call struct {
	*mock.Call
}

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

func (*UserService_GetByIDs_Call) Return added in v0.116.0

func (*UserService_GetByIDs_Call) Run added in v0.116.0

func (_c *UserService_GetByIDs_Call) Run(run func(ctx context.Context, userIDs []string)) *UserService_GetByIDs_Call

func (*UserService_GetByIDs_Call) RunAndReturn added in v0.116.0

Jump to

Keyboard shortcuts

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