Documentation ¶
Index ¶
- type Provider
- func (_m *Provider) AddDefaultPlan(ctx context.Context, accountId uuid.UUID) (bool, error)
- func (_m *Provider) AddPlan(ctx context.Context, accountId uuid.UUID, planId uuid.UUID) (bool, error)
- func (_m *Provider) CreateAccount(ctx context.Context, namespaceId string, name string) (uuid.UUID, error)
- func (_m *Provider) EXPECT() *Provider_Expecter
- func (_m *Provider) GetInvoiceById(ctx context.Context, accountId uuid.UUID, invoiceId string) (*api.ListInvoicesResponse, error)
- func (_m *Provider) GetInvoices(ctx context.Context, accountId uuid.UUID, r *api.ListInvoicesRequest) (*api.ListInvoicesResponse, error)
- func (_m *Provider) PushStorageEvents(ctx context.Context, events []*billing.StorageEvent) error
- func (_m *Provider) PushUsageEvents(ctx context.Context, events []*billing.UsageEvent) error
- type Provider_AddDefaultPlan_Call
- func (_c *Provider_AddDefaultPlan_Call) Return(_a0 bool, _a1 error) *Provider_AddDefaultPlan_Call
- func (_c *Provider_AddDefaultPlan_Call) Run(run func(ctx context.Context, accountId uuid.UUID)) *Provider_AddDefaultPlan_Call
- func (_c *Provider_AddDefaultPlan_Call) RunAndReturn(run func(context.Context, uuid.UUID) (bool, error)) *Provider_AddDefaultPlan_Call
- type Provider_AddPlan_Call
- func (_c *Provider_AddPlan_Call) Return(_a0 bool, _a1 error) *Provider_AddPlan_Call
- func (_c *Provider_AddPlan_Call) Run(run func(ctx context.Context, accountId uuid.UUID, planId uuid.UUID)) *Provider_AddPlan_Call
- func (_c *Provider_AddPlan_Call) RunAndReturn(run func(context.Context, uuid.UUID, uuid.UUID) (bool, error)) *Provider_AddPlan_Call
- type Provider_CreateAccount_Call
- func (_c *Provider_CreateAccount_Call) Return(_a0 uuid.UUID, _a1 error) *Provider_CreateAccount_Call
- func (_c *Provider_CreateAccount_Call) Run(run func(ctx context.Context, namespaceId string, name string)) *Provider_CreateAccount_Call
- func (_c *Provider_CreateAccount_Call) RunAndReturn(run func(context.Context, string, string) (uuid.UUID, error)) *Provider_CreateAccount_Call
- type Provider_Expecter
- func (_e *Provider_Expecter) AddDefaultPlan(ctx interface{}, accountId interface{}) *Provider_AddDefaultPlan_Call
- func (_e *Provider_Expecter) AddPlan(ctx interface{}, accountId interface{}, planId interface{}) *Provider_AddPlan_Call
- func (_e *Provider_Expecter) CreateAccount(ctx interface{}, namespaceId interface{}, name interface{}) *Provider_CreateAccount_Call
- func (_e *Provider_Expecter) GetInvoiceById(ctx interface{}, accountId interface{}, invoiceId interface{}) *Provider_GetInvoiceById_Call
- func (_e *Provider_Expecter) GetInvoices(ctx interface{}, accountId interface{}, r interface{}) *Provider_GetInvoices_Call
- func (_e *Provider_Expecter) PushStorageEvents(ctx interface{}, events interface{}) *Provider_PushStorageEvents_Call
- func (_e *Provider_Expecter) PushUsageEvents(ctx interface{}, events interface{}) *Provider_PushUsageEvents_Call
- type Provider_GetInvoiceById_Call
- func (_c *Provider_GetInvoiceById_Call) Return(_a0 *api.ListInvoicesResponse, _a1 error) *Provider_GetInvoiceById_Call
- func (_c *Provider_GetInvoiceById_Call) Run(run func(ctx context.Context, accountId uuid.UUID, invoiceId string)) *Provider_GetInvoiceById_Call
- func (_c *Provider_GetInvoiceById_Call) RunAndReturn(...) *Provider_GetInvoiceById_Call
- type Provider_GetInvoices_Call
- func (_c *Provider_GetInvoices_Call) Return(_a0 *api.ListInvoicesResponse, _a1 error) *Provider_GetInvoices_Call
- func (_c *Provider_GetInvoices_Call) Run(run func(ctx context.Context, accountId uuid.UUID, r *api.ListInvoicesRequest)) *Provider_GetInvoices_Call
- func (_c *Provider_GetInvoices_Call) RunAndReturn(...) *Provider_GetInvoices_Call
- type Provider_PushStorageEvents_Call
- func (_c *Provider_PushStorageEvents_Call) Return(_a0 error) *Provider_PushStorageEvents_Call
- func (_c *Provider_PushStorageEvents_Call) Run(run func(ctx context.Context, events []*billing.StorageEvent)) *Provider_PushStorageEvents_Call
- func (_c *Provider_PushStorageEvents_Call) RunAndReturn(run func(context.Context, []*billing.StorageEvent) error) *Provider_PushStorageEvents_Call
- type Provider_PushUsageEvents_Call
- func (_c *Provider_PushUsageEvents_Call) Return(_a0 error) *Provider_PushUsageEvents_Call
- func (_c *Provider_PushUsageEvents_Call) Run(run func(ctx context.Context, events []*billing.UsageEvent)) *Provider_PushUsageEvents_Call
- func (_c *Provider_PushUsageEvents_Call) RunAndReturn(run func(context.Context, []*billing.UsageEvent) error) *Provider_PushUsageEvents_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
Provider is an autogenerated mock type for the Provider type
func NewProvider ¶
func NewProvider(t mockConstructorTestingTNewProvider) *Provider
NewProvider creates a new instance of Provider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Provider) AddDefaultPlan ¶
AddDefaultPlan provides a mock function with given fields: ctx, accountId
func (*Provider) AddPlan ¶
func (_m *Provider) AddPlan(ctx context.Context, accountId uuid.UUID, planId uuid.UUID) (bool, error)
AddPlan provides a mock function with given fields: ctx, accountId, planId
func (*Provider) CreateAccount ¶
func (_m *Provider) CreateAccount(ctx context.Context, namespaceId string, name string) (uuid.UUID, error)
CreateAccount provides a mock function with given fields: ctx, namespaceId, name
func (*Provider) EXPECT ¶
func (_m *Provider) EXPECT() *Provider_Expecter
func (*Provider) GetInvoiceById ¶
func (_m *Provider) GetInvoiceById(ctx context.Context, accountId uuid.UUID, invoiceId string) (*api.ListInvoicesResponse, error)
GetInvoiceById provides a mock function with given fields: ctx, accountId, invoiceId
func (*Provider) GetInvoices ¶
func (_m *Provider) GetInvoices(ctx context.Context, accountId uuid.UUID, r *api.ListInvoicesRequest) (*api.ListInvoicesResponse, error)
GetInvoices provides a mock function with given fields: ctx, accountId, r
func (*Provider) PushStorageEvents ¶
PushStorageEvents provides a mock function with given fields: ctx, events
func (*Provider) PushUsageEvents ¶
PushUsageEvents provides a mock function with given fields: ctx, events
type Provider_AddDefaultPlan_Call ¶
Provider_AddDefaultPlan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddDefaultPlan'
func (*Provider_AddDefaultPlan_Call) Return ¶
func (_c *Provider_AddDefaultPlan_Call) Return(_a0 bool, _a1 error) *Provider_AddDefaultPlan_Call
func (*Provider_AddDefaultPlan_Call) Run ¶
func (_c *Provider_AddDefaultPlan_Call) Run(run func(ctx context.Context, accountId uuid.UUID)) *Provider_AddDefaultPlan_Call
func (*Provider_AddDefaultPlan_Call) RunAndReturn ¶
func (_c *Provider_AddDefaultPlan_Call) RunAndReturn(run func(context.Context, uuid.UUID) (bool, error)) *Provider_AddDefaultPlan_Call
type Provider_AddPlan_Call ¶
Provider_AddPlan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddPlan'
func (*Provider_AddPlan_Call) Return ¶
func (_c *Provider_AddPlan_Call) Return(_a0 bool, _a1 error) *Provider_AddPlan_Call
func (*Provider_AddPlan_Call) Run ¶
func (_c *Provider_AddPlan_Call) Run(run func(ctx context.Context, accountId uuid.UUID, planId uuid.UUID)) *Provider_AddPlan_Call
func (*Provider_AddPlan_Call) RunAndReturn ¶
func (_c *Provider_AddPlan_Call) RunAndReturn(run func(context.Context, uuid.UUID, uuid.UUID) (bool, error)) *Provider_AddPlan_Call
type Provider_CreateAccount_Call ¶
Provider_CreateAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAccount'
func (*Provider_CreateAccount_Call) Return ¶
func (_c *Provider_CreateAccount_Call) Return(_a0 uuid.UUID, _a1 error) *Provider_CreateAccount_Call
func (*Provider_CreateAccount_Call) Run ¶
func (_c *Provider_CreateAccount_Call) Run(run func(ctx context.Context, namespaceId string, name string)) *Provider_CreateAccount_Call
func (*Provider_CreateAccount_Call) RunAndReturn ¶
func (_c *Provider_CreateAccount_Call) RunAndReturn(run func(context.Context, string, string) (uuid.UUID, error)) *Provider_CreateAccount_Call
type Provider_Expecter ¶
type Provider_Expecter struct {
// contains filtered or unexported fields
}
func (*Provider_Expecter) AddDefaultPlan ¶
func (_e *Provider_Expecter) AddDefaultPlan(ctx interface{}, accountId interface{}) *Provider_AddDefaultPlan_Call
AddDefaultPlan is a helper method to define mock.On call
- ctx context.Context
- accountId uuid.UUID
func (*Provider_Expecter) AddPlan ¶
func (_e *Provider_Expecter) AddPlan(ctx interface{}, accountId interface{}, planId interface{}) *Provider_AddPlan_Call
AddPlan is a helper method to define mock.On call
- ctx context.Context
- accountId uuid.UUID
- planId uuid.UUID
func (*Provider_Expecter) CreateAccount ¶
func (_e *Provider_Expecter) CreateAccount(ctx interface{}, namespaceId interface{}, name interface{}) *Provider_CreateAccount_Call
CreateAccount is a helper method to define mock.On call
- ctx context.Context
- namespaceId string
- name string
func (*Provider_Expecter) GetInvoiceById ¶
func (_e *Provider_Expecter) GetInvoiceById(ctx interface{}, accountId interface{}, invoiceId interface{}) *Provider_GetInvoiceById_Call
GetInvoiceById is a helper method to define mock.On call
- ctx context.Context
- accountId uuid.UUID
- invoiceId string
func (*Provider_Expecter) GetInvoices ¶
func (_e *Provider_Expecter) GetInvoices(ctx interface{}, accountId interface{}, r interface{}) *Provider_GetInvoices_Call
GetInvoices is a helper method to define mock.On call
- ctx context.Context
- accountId uuid.UUID
- r *api.ListInvoicesRequest
func (*Provider_Expecter) PushStorageEvents ¶
func (_e *Provider_Expecter) PushStorageEvents(ctx interface{}, events interface{}) *Provider_PushStorageEvents_Call
PushStorageEvents is a helper method to define mock.On call
- ctx context.Context
- events []*billing.StorageEvent
func (*Provider_Expecter) PushUsageEvents ¶
func (_e *Provider_Expecter) PushUsageEvents(ctx interface{}, events interface{}) *Provider_PushUsageEvents_Call
PushUsageEvents is a helper method to define mock.On call
- ctx context.Context
- events []*billing.UsageEvent
type Provider_GetInvoiceById_Call ¶
Provider_GetInvoiceById_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInvoiceById'
func (*Provider_GetInvoiceById_Call) Return ¶
func (_c *Provider_GetInvoiceById_Call) Return(_a0 *api.ListInvoicesResponse, _a1 error) *Provider_GetInvoiceById_Call
func (*Provider_GetInvoiceById_Call) Run ¶
func (_c *Provider_GetInvoiceById_Call) Run(run func(ctx context.Context, accountId uuid.UUID, invoiceId string)) *Provider_GetInvoiceById_Call
func (*Provider_GetInvoiceById_Call) RunAndReturn ¶
func (_c *Provider_GetInvoiceById_Call) RunAndReturn(run func(context.Context, uuid.UUID, string) (*api.ListInvoicesResponse, error)) *Provider_GetInvoiceById_Call
type Provider_GetInvoices_Call ¶
Provider_GetInvoices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInvoices'
func (*Provider_GetInvoices_Call) Return ¶
func (_c *Provider_GetInvoices_Call) Return(_a0 *api.ListInvoicesResponse, _a1 error) *Provider_GetInvoices_Call
func (*Provider_GetInvoices_Call) Run ¶
func (_c *Provider_GetInvoices_Call) Run(run func(ctx context.Context, accountId uuid.UUID, r *api.ListInvoicesRequest)) *Provider_GetInvoices_Call
func (*Provider_GetInvoices_Call) RunAndReturn ¶
func (_c *Provider_GetInvoices_Call) RunAndReturn(run func(context.Context, uuid.UUID, *api.ListInvoicesRequest) (*api.ListInvoicesResponse, error)) *Provider_GetInvoices_Call
type Provider_PushStorageEvents_Call ¶
Provider_PushStorageEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PushStorageEvents'
func (*Provider_PushStorageEvents_Call) Return ¶
func (_c *Provider_PushStorageEvents_Call) Return(_a0 error) *Provider_PushStorageEvents_Call
func (*Provider_PushStorageEvents_Call) Run ¶
func (_c *Provider_PushStorageEvents_Call) Run(run func(ctx context.Context, events []*billing.StorageEvent)) *Provider_PushStorageEvents_Call
func (*Provider_PushStorageEvents_Call) RunAndReturn ¶
func (_c *Provider_PushStorageEvents_Call) RunAndReturn(run func(context.Context, []*billing.StorageEvent) error) *Provider_PushStorageEvents_Call
type Provider_PushUsageEvents_Call ¶
Provider_PushUsageEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PushUsageEvents'
func (*Provider_PushUsageEvents_Call) Return ¶
func (_c *Provider_PushUsageEvents_Call) Return(_a0 error) *Provider_PushUsageEvents_Call
func (*Provider_PushUsageEvents_Call) Run ¶
func (_c *Provider_PushUsageEvents_Call) Run(run func(ctx context.Context, events []*billing.UsageEvent)) *Provider_PushUsageEvents_Call
func (*Provider_PushUsageEvents_Call) RunAndReturn ¶
func (_c *Provider_PushUsageEvents_Call) RunAndReturn(run func(context.Context, []*billing.UsageEvent) error) *Provider_PushUsageEvents_Call