Documentation ¶
Index ¶
- Variables
- type CostForServiceParams
- type CostForTeamParams
- type CostMonthlyTeam
- type CostUpsertBatchResults
- type CostUpsertParams
- type DBTX
- type DailyCostForTeamEnvironmentParams
- type DailyCostForTeamEnvironmentRow
- type DailyCostForTeamParams
- type DailyCostForTeamRow
- type DailyCostForWorkloadParams
- type DailyCostForWorkloadRow
- type DailyEnvCostForTeamParams
- type DailyEnvCostForTeamRow
- type MockQuerier
- func (_m *MockQuerier) CostForService(ctx context.Context, arg CostForServiceParams) (float32, error)
- func (_m *MockQuerier) CostForTeam(ctx context.Context, arg CostForTeamParams) (float32, error)
- func (_m *MockQuerier) CostUpsert(ctx context.Context, arg []CostUpsertParams) *CostUpsertBatchResults
- func (_m *MockQuerier) DailyCostForTeam(ctx context.Context, arg DailyCostForTeamParams) ([]*DailyCostForTeamRow, error)
- func (_m *MockQuerier) DailyCostForTeamEnvironment(ctx context.Context, arg DailyCostForTeamEnvironmentParams) ([]*DailyCostForTeamEnvironmentRow, error)
- func (_m *MockQuerier) DailyCostForWorkload(ctx context.Context, arg DailyCostForWorkloadParams) ([]*DailyCostForWorkloadRow, error)
- func (_m *MockQuerier) DailyEnvCostForTeam(ctx context.Context, arg DailyEnvCostForTeamParams) ([]*DailyEnvCostForTeamRow, error)
- func (_m *MockQuerier) EXPECT() *MockQuerier_Expecter
- func (_m *MockQuerier) LastCostDate(ctx context.Context) (pgtype.Date, error)
- func (_m *MockQuerier) ListTeamSlugsForCostUpdater(ctx context.Context) ([]slug.Slug, error)
- func (_m *MockQuerier) MonthlyCostForTeam(ctx context.Context, teamSlug slug.Slug) ([]*CostMonthlyTeam, error)
- func (_m *MockQuerier) MonthlyCostForWorkload(ctx context.Context, arg MonthlyCostForWorkloadParams) ([]*MonthlyCostForWorkloadRow, error)
- func (_m *MockQuerier) RefreshCostMonthlyTeam(ctx context.Context) error
- type MockQuerier_CostForService_Call
- func (_c *MockQuerier_CostForService_Call) Return(_a0 float32, _a1 error) *MockQuerier_CostForService_Call
- func (_c *MockQuerier_CostForService_Call) Run(run func(ctx context.Context, arg CostForServiceParams)) *MockQuerier_CostForService_Call
- func (_c *MockQuerier_CostForService_Call) RunAndReturn(run func(context.Context, CostForServiceParams) (float32, error)) *MockQuerier_CostForService_Call
- type MockQuerier_CostForTeam_Call
- func (_c *MockQuerier_CostForTeam_Call) Return(_a0 float32, _a1 error) *MockQuerier_CostForTeam_Call
- func (_c *MockQuerier_CostForTeam_Call) Run(run func(ctx context.Context, arg CostForTeamParams)) *MockQuerier_CostForTeam_Call
- func (_c *MockQuerier_CostForTeam_Call) RunAndReturn(run func(context.Context, CostForTeamParams) (float32, error)) *MockQuerier_CostForTeam_Call
- type MockQuerier_CostUpsert_Call
- func (_c *MockQuerier_CostUpsert_Call) Return(_a0 *CostUpsertBatchResults) *MockQuerier_CostUpsert_Call
- func (_c *MockQuerier_CostUpsert_Call) Run(run func(ctx context.Context, arg []CostUpsertParams)) *MockQuerier_CostUpsert_Call
- func (_c *MockQuerier_CostUpsert_Call) RunAndReturn(run func(context.Context, []CostUpsertParams) *CostUpsertBatchResults) *MockQuerier_CostUpsert_Call
- type MockQuerier_DailyCostForTeamEnvironment_Call
- func (_c *MockQuerier_DailyCostForTeamEnvironment_Call) Return(_a0 []*DailyCostForTeamEnvironmentRow, _a1 error) *MockQuerier_DailyCostForTeamEnvironment_Call
- func (_c *MockQuerier_DailyCostForTeamEnvironment_Call) Run(run func(ctx context.Context, arg DailyCostForTeamEnvironmentParams)) *MockQuerier_DailyCostForTeamEnvironment_Call
- func (_c *MockQuerier_DailyCostForTeamEnvironment_Call) RunAndReturn(...) *MockQuerier_DailyCostForTeamEnvironment_Call
- type MockQuerier_DailyCostForTeam_Call
- func (_c *MockQuerier_DailyCostForTeam_Call) Return(_a0 []*DailyCostForTeamRow, _a1 error) *MockQuerier_DailyCostForTeam_Call
- func (_c *MockQuerier_DailyCostForTeam_Call) Run(run func(ctx context.Context, arg DailyCostForTeamParams)) *MockQuerier_DailyCostForTeam_Call
- func (_c *MockQuerier_DailyCostForTeam_Call) RunAndReturn(...) *MockQuerier_DailyCostForTeam_Call
- type MockQuerier_DailyCostForWorkload_Call
- func (_c *MockQuerier_DailyCostForWorkload_Call) Return(_a0 []*DailyCostForWorkloadRow, _a1 error) *MockQuerier_DailyCostForWorkload_Call
- func (_c *MockQuerier_DailyCostForWorkload_Call) Run(run func(ctx context.Context, arg DailyCostForWorkloadParams)) *MockQuerier_DailyCostForWorkload_Call
- func (_c *MockQuerier_DailyCostForWorkload_Call) RunAndReturn(...) *MockQuerier_DailyCostForWorkload_Call
- type MockQuerier_DailyEnvCostForTeam_Call
- func (_c *MockQuerier_DailyEnvCostForTeam_Call) Return(_a0 []*DailyEnvCostForTeamRow, _a1 error) *MockQuerier_DailyEnvCostForTeam_Call
- func (_c *MockQuerier_DailyEnvCostForTeam_Call) Run(run func(ctx context.Context, arg DailyEnvCostForTeamParams)) *MockQuerier_DailyEnvCostForTeam_Call
- func (_c *MockQuerier_DailyEnvCostForTeam_Call) RunAndReturn(...) *MockQuerier_DailyEnvCostForTeam_Call
- type MockQuerier_Expecter
- func (_e *MockQuerier_Expecter) CostForService(ctx interface{}, arg interface{}) *MockQuerier_CostForService_Call
- func (_e *MockQuerier_Expecter) CostForTeam(ctx interface{}, arg interface{}) *MockQuerier_CostForTeam_Call
- func (_e *MockQuerier_Expecter) CostUpsert(ctx interface{}, arg interface{}) *MockQuerier_CostUpsert_Call
- func (_e *MockQuerier_Expecter) DailyCostForTeam(ctx interface{}, arg interface{}) *MockQuerier_DailyCostForTeam_Call
- func (_e *MockQuerier_Expecter) DailyCostForTeamEnvironment(ctx interface{}, arg interface{}) *MockQuerier_DailyCostForTeamEnvironment_Call
- func (_e *MockQuerier_Expecter) DailyCostForWorkload(ctx interface{}, arg interface{}) *MockQuerier_DailyCostForWorkload_Call
- func (_e *MockQuerier_Expecter) DailyEnvCostForTeam(ctx interface{}, arg interface{}) *MockQuerier_DailyEnvCostForTeam_Call
- func (_e *MockQuerier_Expecter) LastCostDate(ctx interface{}) *MockQuerier_LastCostDate_Call
- func (_e *MockQuerier_Expecter) ListTeamSlugsForCostUpdater(ctx interface{}) *MockQuerier_ListTeamSlugsForCostUpdater_Call
- func (_e *MockQuerier_Expecter) MonthlyCostForTeam(ctx interface{}, teamSlug interface{}) *MockQuerier_MonthlyCostForTeam_Call
- func (_e *MockQuerier_Expecter) MonthlyCostForWorkload(ctx interface{}, arg interface{}) *MockQuerier_MonthlyCostForWorkload_Call
- func (_e *MockQuerier_Expecter) RefreshCostMonthlyTeam(ctx interface{}) *MockQuerier_RefreshCostMonthlyTeam_Call
- type MockQuerier_LastCostDate_Call
- func (_c *MockQuerier_LastCostDate_Call) Return(_a0 pgtype.Date, _a1 error) *MockQuerier_LastCostDate_Call
- func (_c *MockQuerier_LastCostDate_Call) Run(run func(ctx context.Context)) *MockQuerier_LastCostDate_Call
- func (_c *MockQuerier_LastCostDate_Call) RunAndReturn(run func(context.Context) (pgtype.Date, error)) *MockQuerier_LastCostDate_Call
- type MockQuerier_ListTeamSlugsForCostUpdater_Call
- func (_c *MockQuerier_ListTeamSlugsForCostUpdater_Call) Return(_a0 []slug.Slug, _a1 error) *MockQuerier_ListTeamSlugsForCostUpdater_Call
- func (_c *MockQuerier_ListTeamSlugsForCostUpdater_Call) Run(run func(ctx context.Context)) *MockQuerier_ListTeamSlugsForCostUpdater_Call
- func (_c *MockQuerier_ListTeamSlugsForCostUpdater_Call) RunAndReturn(run func(context.Context) ([]slug.Slug, error)) *MockQuerier_ListTeamSlugsForCostUpdater_Call
- type MockQuerier_MonthlyCostForTeam_Call
- func (_c *MockQuerier_MonthlyCostForTeam_Call) Return(_a0 []*CostMonthlyTeam, _a1 error) *MockQuerier_MonthlyCostForTeam_Call
- func (_c *MockQuerier_MonthlyCostForTeam_Call) Run(run func(ctx context.Context, teamSlug slug.Slug)) *MockQuerier_MonthlyCostForTeam_Call
- func (_c *MockQuerier_MonthlyCostForTeam_Call) RunAndReturn(run func(context.Context, slug.Slug) ([]*CostMonthlyTeam, error)) *MockQuerier_MonthlyCostForTeam_Call
- type MockQuerier_MonthlyCostForWorkload_Call
- func (_c *MockQuerier_MonthlyCostForWorkload_Call) Return(_a0 []*MonthlyCostForWorkloadRow, _a1 error) *MockQuerier_MonthlyCostForWorkload_Call
- func (_c *MockQuerier_MonthlyCostForWorkload_Call) Run(run func(ctx context.Context, arg MonthlyCostForWorkloadParams)) *MockQuerier_MonthlyCostForWorkload_Call
- func (_c *MockQuerier_MonthlyCostForWorkload_Call) RunAndReturn(...) *MockQuerier_MonthlyCostForWorkload_Call
- type MockQuerier_RefreshCostMonthlyTeam_Call
- func (_c *MockQuerier_RefreshCostMonthlyTeam_Call) Return(_a0 error) *MockQuerier_RefreshCostMonthlyTeam_Call
- func (_c *MockQuerier_RefreshCostMonthlyTeam_Call) Run(run func(ctx context.Context)) *MockQuerier_RefreshCostMonthlyTeam_Call
- func (_c *MockQuerier_RefreshCostMonthlyTeam_Call) RunAndReturn(run func(context.Context) error) *MockQuerier_RefreshCostMonthlyTeam_Call
- type MonthlyCostForWorkloadParams
- type MonthlyCostForWorkloadRow
- type Querier
- type Queries
- func (q *Queries) CostForService(ctx context.Context, arg CostForServiceParams) (float32, error)
- func (q *Queries) CostForTeam(ctx context.Context, arg CostForTeamParams) (float32, error)
- func (q *Queries) CostUpsert(ctx context.Context, arg []CostUpsertParams) *CostUpsertBatchResults
- func (q *Queries) DailyCostForTeam(ctx context.Context, arg DailyCostForTeamParams) ([]*DailyCostForTeamRow, error)
- func (q *Queries) DailyCostForTeamEnvironment(ctx context.Context, arg DailyCostForTeamEnvironmentParams) ([]*DailyCostForTeamEnvironmentRow, error)
- func (q *Queries) DailyCostForWorkload(ctx context.Context, arg DailyCostForWorkloadParams) ([]*DailyCostForWorkloadRow, error)
- func (q *Queries) DailyEnvCostForTeam(ctx context.Context, arg DailyEnvCostForTeamParams) ([]*DailyEnvCostForTeamRow, error)
- func (q *Queries) LastCostDate(ctx context.Context) (pgtype.Date, error)
- func (q *Queries) ListTeamSlugsForCostUpdater(ctx context.Context) ([]slug.Slug, error)
- func (q *Queries) MonthlyCostForTeam(ctx context.Context, teamSlug slug.Slug) ([]*CostMonthlyTeam, error)
- func (q *Queries) MonthlyCostForWorkload(ctx context.Context, arg MonthlyCostForWorkloadParams) ([]*MonthlyCostForWorkloadRow, error)
- func (q *Queries) RefreshCostMonthlyTeam(ctx context.Context) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
Constants ¶
This section is empty.
Variables ¶
var (
ErrBatchAlreadyClosed = errors.New("batch already closed")
)
Functions ¶
This section is empty.
Types ¶
type CostForServiceParams ¶
type CostForTeamParams ¶
type CostMonthlyTeam ¶
type CostUpsertBatchResults ¶
type CostUpsertBatchResults struct {
// contains filtered or unexported fields
}
func (*CostUpsertBatchResults) Close ¶
func (b *CostUpsertBatchResults) Close() error
func (*CostUpsertBatchResults) Exec ¶
func (b *CostUpsertBatchResults) Exec(f func(int, error))
type CostUpsertParams ¶
type DailyCostForTeamParams ¶
type DailyCostForTeamRow ¶
type DailyCostForWorkloadRow ¶
type DailyEnvCostForTeamRow ¶
type MockQuerier ¶
MockQuerier is an autogenerated mock type for the Querier type
func NewMockQuerier ¶
func NewMockQuerier(t interface { mock.TestingT Cleanup(func()) }, ) *MockQuerier
NewMockQuerier creates a new instance of MockQuerier. 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 (*MockQuerier) CostForService ¶
func (_m *MockQuerier) CostForService(ctx context.Context, arg CostForServiceParams) (float32, error)
CostForService provides a mock function with given fields: ctx, arg
func (*MockQuerier) CostForTeam ¶
func (_m *MockQuerier) CostForTeam(ctx context.Context, arg CostForTeamParams) (float32, error)
CostForTeam provides a mock function with given fields: ctx, arg
func (*MockQuerier) CostUpsert ¶
func (_m *MockQuerier) CostUpsert(ctx context.Context, arg []CostUpsertParams) *CostUpsertBatchResults
CostUpsert provides a mock function with given fields: ctx, arg
func (*MockQuerier) DailyCostForTeam ¶
func (_m *MockQuerier) DailyCostForTeam(ctx context.Context, arg DailyCostForTeamParams) ([]*DailyCostForTeamRow, error)
DailyCostForTeam provides a mock function with given fields: ctx, arg
func (*MockQuerier) DailyCostForTeamEnvironment ¶
func (_m *MockQuerier) DailyCostForTeamEnvironment(ctx context.Context, arg DailyCostForTeamEnvironmentParams) ([]*DailyCostForTeamEnvironmentRow, error)
DailyCostForTeamEnvironment provides a mock function with given fields: ctx, arg
func (*MockQuerier) DailyCostForWorkload ¶
func (_m *MockQuerier) DailyCostForWorkload(ctx context.Context, arg DailyCostForWorkloadParams) ([]*DailyCostForWorkloadRow, error)
DailyCostForWorkload provides a mock function with given fields: ctx, arg
func (*MockQuerier) DailyEnvCostForTeam ¶
func (_m *MockQuerier) DailyEnvCostForTeam(ctx context.Context, arg DailyEnvCostForTeamParams) ([]*DailyEnvCostForTeamRow, error)
DailyEnvCostForTeam provides a mock function with given fields: ctx, arg
func (*MockQuerier) EXPECT ¶
func (_m *MockQuerier) EXPECT() *MockQuerier_Expecter
func (*MockQuerier) LastCostDate ¶
LastCostDate provides a mock function with given fields: ctx
func (*MockQuerier) ListTeamSlugsForCostUpdater ¶
ListTeamSlugsForCostUpdater provides a mock function with given fields: ctx
func (*MockQuerier) MonthlyCostForTeam ¶
func (_m *MockQuerier) MonthlyCostForTeam(ctx context.Context, teamSlug slug.Slug) ([]*CostMonthlyTeam, error)
MonthlyCostForTeam provides a mock function with given fields: ctx, teamSlug
func (*MockQuerier) MonthlyCostForWorkload ¶
func (_m *MockQuerier) MonthlyCostForWorkload(ctx context.Context, arg MonthlyCostForWorkloadParams) ([]*MonthlyCostForWorkloadRow, error)
MonthlyCostForWorkload provides a mock function with given fields: ctx, arg
func (*MockQuerier) RefreshCostMonthlyTeam ¶
func (_m *MockQuerier) RefreshCostMonthlyTeam(ctx context.Context) error
RefreshCostMonthlyTeam provides a mock function with given fields: ctx
type MockQuerier_CostForService_Call ¶
MockQuerier_CostForService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CostForService'
func (*MockQuerier_CostForService_Call) Return ¶
func (_c *MockQuerier_CostForService_Call) Return(_a0 float32, _a1 error) *MockQuerier_CostForService_Call
func (*MockQuerier_CostForService_Call) Run ¶
func (_c *MockQuerier_CostForService_Call) Run(run func(ctx context.Context, arg CostForServiceParams)) *MockQuerier_CostForService_Call
func (*MockQuerier_CostForService_Call) RunAndReturn ¶
func (_c *MockQuerier_CostForService_Call) RunAndReturn(run func(context.Context, CostForServiceParams) (float32, error)) *MockQuerier_CostForService_Call
type MockQuerier_CostForTeam_Call ¶
MockQuerier_CostForTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CostForTeam'
func (*MockQuerier_CostForTeam_Call) Return ¶
func (_c *MockQuerier_CostForTeam_Call) Return(_a0 float32, _a1 error) *MockQuerier_CostForTeam_Call
func (*MockQuerier_CostForTeam_Call) Run ¶
func (_c *MockQuerier_CostForTeam_Call) Run(run func(ctx context.Context, arg CostForTeamParams)) *MockQuerier_CostForTeam_Call
func (*MockQuerier_CostForTeam_Call) RunAndReturn ¶
func (_c *MockQuerier_CostForTeam_Call) RunAndReturn(run func(context.Context, CostForTeamParams) (float32, error)) *MockQuerier_CostForTeam_Call
type MockQuerier_CostUpsert_Call ¶
MockQuerier_CostUpsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CostUpsert'
func (*MockQuerier_CostUpsert_Call) Return ¶
func (_c *MockQuerier_CostUpsert_Call) Return(_a0 *CostUpsertBatchResults) *MockQuerier_CostUpsert_Call
func (*MockQuerier_CostUpsert_Call) Run ¶
func (_c *MockQuerier_CostUpsert_Call) Run(run func(ctx context.Context, arg []CostUpsertParams)) *MockQuerier_CostUpsert_Call
func (*MockQuerier_CostUpsert_Call) RunAndReturn ¶
func (_c *MockQuerier_CostUpsert_Call) RunAndReturn(run func(context.Context, []CostUpsertParams) *CostUpsertBatchResults) *MockQuerier_CostUpsert_Call
type MockQuerier_DailyCostForTeamEnvironment_Call ¶
MockQuerier_DailyCostForTeamEnvironment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DailyCostForTeamEnvironment'
func (*MockQuerier_DailyCostForTeamEnvironment_Call) Return ¶
func (_c *MockQuerier_DailyCostForTeamEnvironment_Call) Return(_a0 []*DailyCostForTeamEnvironmentRow, _a1 error) *MockQuerier_DailyCostForTeamEnvironment_Call
func (*MockQuerier_DailyCostForTeamEnvironment_Call) Run ¶
func (_c *MockQuerier_DailyCostForTeamEnvironment_Call) Run(run func(ctx context.Context, arg DailyCostForTeamEnvironmentParams)) *MockQuerier_DailyCostForTeamEnvironment_Call
func (*MockQuerier_DailyCostForTeamEnvironment_Call) RunAndReturn ¶
func (_c *MockQuerier_DailyCostForTeamEnvironment_Call) RunAndReturn(run func(context.Context, DailyCostForTeamEnvironmentParams) ([]*DailyCostForTeamEnvironmentRow, error)) *MockQuerier_DailyCostForTeamEnvironment_Call
type MockQuerier_DailyCostForTeam_Call ¶
MockQuerier_DailyCostForTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DailyCostForTeam'
func (*MockQuerier_DailyCostForTeam_Call) Return ¶
func (_c *MockQuerier_DailyCostForTeam_Call) Return(_a0 []*DailyCostForTeamRow, _a1 error) *MockQuerier_DailyCostForTeam_Call
func (*MockQuerier_DailyCostForTeam_Call) Run ¶
func (_c *MockQuerier_DailyCostForTeam_Call) Run(run func(ctx context.Context, arg DailyCostForTeamParams)) *MockQuerier_DailyCostForTeam_Call
func (*MockQuerier_DailyCostForTeam_Call) RunAndReturn ¶
func (_c *MockQuerier_DailyCostForTeam_Call) RunAndReturn(run func(context.Context, DailyCostForTeamParams) ([]*DailyCostForTeamRow, error)) *MockQuerier_DailyCostForTeam_Call
type MockQuerier_DailyCostForWorkload_Call ¶
MockQuerier_DailyCostForWorkload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DailyCostForWorkload'
func (*MockQuerier_DailyCostForWorkload_Call) Return ¶
func (_c *MockQuerier_DailyCostForWorkload_Call) Return(_a0 []*DailyCostForWorkloadRow, _a1 error) *MockQuerier_DailyCostForWorkload_Call
func (*MockQuerier_DailyCostForWorkload_Call) Run ¶
func (_c *MockQuerier_DailyCostForWorkload_Call) Run(run func(ctx context.Context, arg DailyCostForWorkloadParams)) *MockQuerier_DailyCostForWorkload_Call
func (*MockQuerier_DailyCostForWorkload_Call) RunAndReturn ¶
func (_c *MockQuerier_DailyCostForWorkload_Call) RunAndReturn(run func(context.Context, DailyCostForWorkloadParams) ([]*DailyCostForWorkloadRow, error)) *MockQuerier_DailyCostForWorkload_Call
type MockQuerier_DailyEnvCostForTeam_Call ¶
MockQuerier_DailyEnvCostForTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DailyEnvCostForTeam'
func (*MockQuerier_DailyEnvCostForTeam_Call) Return ¶
func (_c *MockQuerier_DailyEnvCostForTeam_Call) Return(_a0 []*DailyEnvCostForTeamRow, _a1 error) *MockQuerier_DailyEnvCostForTeam_Call
func (*MockQuerier_DailyEnvCostForTeam_Call) Run ¶
func (_c *MockQuerier_DailyEnvCostForTeam_Call) Run(run func(ctx context.Context, arg DailyEnvCostForTeamParams)) *MockQuerier_DailyEnvCostForTeam_Call
func (*MockQuerier_DailyEnvCostForTeam_Call) RunAndReturn ¶
func (_c *MockQuerier_DailyEnvCostForTeam_Call) RunAndReturn(run func(context.Context, DailyEnvCostForTeamParams) ([]*DailyEnvCostForTeamRow, error)) *MockQuerier_DailyEnvCostForTeam_Call
type MockQuerier_Expecter ¶
type MockQuerier_Expecter struct {
// contains filtered or unexported fields
}
func (*MockQuerier_Expecter) CostForService ¶
func (_e *MockQuerier_Expecter) CostForService(ctx interface{}, arg interface{}) *MockQuerier_CostForService_Call
CostForService is a helper method to define mock.On call
- ctx context.Context
- arg CostForServiceParams
func (*MockQuerier_Expecter) CostForTeam ¶
func (_e *MockQuerier_Expecter) CostForTeam(ctx interface{}, arg interface{}) *MockQuerier_CostForTeam_Call
CostForTeam is a helper method to define mock.On call
- ctx context.Context
- arg CostForTeamParams
func (*MockQuerier_Expecter) CostUpsert ¶
func (_e *MockQuerier_Expecter) CostUpsert(ctx interface{}, arg interface{}) *MockQuerier_CostUpsert_Call
CostUpsert is a helper method to define mock.On call
- ctx context.Context
- arg []CostUpsertParams
func (*MockQuerier_Expecter) DailyCostForTeam ¶
func (_e *MockQuerier_Expecter) DailyCostForTeam(ctx interface{}, arg interface{}) *MockQuerier_DailyCostForTeam_Call
DailyCostForTeam is a helper method to define mock.On call
- ctx context.Context
- arg DailyCostForTeamParams
func (*MockQuerier_Expecter) DailyCostForTeamEnvironment ¶
func (_e *MockQuerier_Expecter) DailyCostForTeamEnvironment(ctx interface{}, arg interface{}) *MockQuerier_DailyCostForTeamEnvironment_Call
DailyCostForTeamEnvironment is a helper method to define mock.On call
- ctx context.Context
- arg DailyCostForTeamEnvironmentParams
func (*MockQuerier_Expecter) DailyCostForWorkload ¶
func (_e *MockQuerier_Expecter) DailyCostForWorkload(ctx interface{}, arg interface{}) *MockQuerier_DailyCostForWorkload_Call
DailyCostForWorkload is a helper method to define mock.On call
- ctx context.Context
- arg DailyCostForWorkloadParams
func (*MockQuerier_Expecter) DailyEnvCostForTeam ¶
func (_e *MockQuerier_Expecter) DailyEnvCostForTeam(ctx interface{}, arg interface{}) *MockQuerier_DailyEnvCostForTeam_Call
DailyEnvCostForTeam is a helper method to define mock.On call
- ctx context.Context
- arg DailyEnvCostForTeamParams
func (*MockQuerier_Expecter) LastCostDate ¶
func (_e *MockQuerier_Expecter) LastCostDate(ctx interface{}) *MockQuerier_LastCostDate_Call
LastCostDate is a helper method to define mock.On call
- ctx context.Context
func (*MockQuerier_Expecter) ListTeamSlugsForCostUpdater ¶
func (_e *MockQuerier_Expecter) ListTeamSlugsForCostUpdater(ctx interface{}) *MockQuerier_ListTeamSlugsForCostUpdater_Call
ListTeamSlugsForCostUpdater is a helper method to define mock.On call
- ctx context.Context
func (*MockQuerier_Expecter) MonthlyCostForTeam ¶
func (_e *MockQuerier_Expecter) MonthlyCostForTeam(ctx interface{}, teamSlug interface{}) *MockQuerier_MonthlyCostForTeam_Call
MonthlyCostForTeam is a helper method to define mock.On call
- ctx context.Context
- teamSlug slug.Slug
func (*MockQuerier_Expecter) MonthlyCostForWorkload ¶
func (_e *MockQuerier_Expecter) MonthlyCostForWorkload(ctx interface{}, arg interface{}) *MockQuerier_MonthlyCostForWorkload_Call
MonthlyCostForWorkload is a helper method to define mock.On call
- ctx context.Context
- arg MonthlyCostForWorkloadParams
func (*MockQuerier_Expecter) RefreshCostMonthlyTeam ¶
func (_e *MockQuerier_Expecter) RefreshCostMonthlyTeam(ctx interface{}) *MockQuerier_RefreshCostMonthlyTeam_Call
RefreshCostMonthlyTeam is a helper method to define mock.On call
- ctx context.Context
type MockQuerier_LastCostDate_Call ¶
MockQuerier_LastCostDate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LastCostDate'
func (*MockQuerier_LastCostDate_Call) Return ¶
func (_c *MockQuerier_LastCostDate_Call) Return(_a0 pgtype.Date, _a1 error) *MockQuerier_LastCostDate_Call
func (*MockQuerier_LastCostDate_Call) Run ¶
func (_c *MockQuerier_LastCostDate_Call) Run(run func(ctx context.Context)) *MockQuerier_LastCostDate_Call
func (*MockQuerier_LastCostDate_Call) RunAndReturn ¶
func (_c *MockQuerier_LastCostDate_Call) RunAndReturn(run func(context.Context) (pgtype.Date, error)) *MockQuerier_LastCostDate_Call
type MockQuerier_ListTeamSlugsForCostUpdater_Call ¶
MockQuerier_ListTeamSlugsForCostUpdater_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTeamSlugsForCostUpdater'
func (*MockQuerier_ListTeamSlugsForCostUpdater_Call) Return ¶
func (_c *MockQuerier_ListTeamSlugsForCostUpdater_Call) Return(_a0 []slug.Slug, _a1 error) *MockQuerier_ListTeamSlugsForCostUpdater_Call
func (*MockQuerier_ListTeamSlugsForCostUpdater_Call) Run ¶
func (_c *MockQuerier_ListTeamSlugsForCostUpdater_Call) Run(run func(ctx context.Context)) *MockQuerier_ListTeamSlugsForCostUpdater_Call
func (*MockQuerier_ListTeamSlugsForCostUpdater_Call) RunAndReturn ¶
func (_c *MockQuerier_ListTeamSlugsForCostUpdater_Call) RunAndReturn(run func(context.Context) ([]slug.Slug, error)) *MockQuerier_ListTeamSlugsForCostUpdater_Call
type MockQuerier_MonthlyCostForTeam_Call ¶
MockQuerier_MonthlyCostForTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MonthlyCostForTeam'
func (*MockQuerier_MonthlyCostForTeam_Call) Return ¶
func (_c *MockQuerier_MonthlyCostForTeam_Call) Return(_a0 []*CostMonthlyTeam, _a1 error) *MockQuerier_MonthlyCostForTeam_Call
func (*MockQuerier_MonthlyCostForTeam_Call) Run ¶
func (_c *MockQuerier_MonthlyCostForTeam_Call) Run(run func(ctx context.Context, teamSlug slug.Slug)) *MockQuerier_MonthlyCostForTeam_Call
func (*MockQuerier_MonthlyCostForTeam_Call) RunAndReturn ¶
func (_c *MockQuerier_MonthlyCostForTeam_Call) RunAndReturn(run func(context.Context, slug.Slug) ([]*CostMonthlyTeam, error)) *MockQuerier_MonthlyCostForTeam_Call
type MockQuerier_MonthlyCostForWorkload_Call ¶
MockQuerier_MonthlyCostForWorkload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MonthlyCostForWorkload'
func (*MockQuerier_MonthlyCostForWorkload_Call) Return ¶
func (_c *MockQuerier_MonthlyCostForWorkload_Call) Return(_a0 []*MonthlyCostForWorkloadRow, _a1 error) *MockQuerier_MonthlyCostForWorkload_Call
func (*MockQuerier_MonthlyCostForWorkload_Call) Run ¶
func (_c *MockQuerier_MonthlyCostForWorkload_Call) Run(run func(ctx context.Context, arg MonthlyCostForWorkloadParams)) *MockQuerier_MonthlyCostForWorkload_Call
func (*MockQuerier_MonthlyCostForWorkload_Call) RunAndReturn ¶
func (_c *MockQuerier_MonthlyCostForWorkload_Call) RunAndReturn(run func(context.Context, MonthlyCostForWorkloadParams) ([]*MonthlyCostForWorkloadRow, error)) *MockQuerier_MonthlyCostForWorkload_Call
type MockQuerier_RefreshCostMonthlyTeam_Call ¶
MockQuerier_RefreshCostMonthlyTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshCostMonthlyTeam'
func (*MockQuerier_RefreshCostMonthlyTeam_Call) Return ¶
func (_c *MockQuerier_RefreshCostMonthlyTeam_Call) Return(_a0 error) *MockQuerier_RefreshCostMonthlyTeam_Call
func (*MockQuerier_RefreshCostMonthlyTeam_Call) Run ¶
func (_c *MockQuerier_RefreshCostMonthlyTeam_Call) Run(run func(ctx context.Context)) *MockQuerier_RefreshCostMonthlyTeam_Call
func (*MockQuerier_RefreshCostMonthlyTeam_Call) RunAndReturn ¶
func (_c *MockQuerier_RefreshCostMonthlyTeam_Call) RunAndReturn(run func(context.Context) error) *MockQuerier_RefreshCostMonthlyTeam_Call
type Querier ¶
type Querier interface { CostForService(ctx context.Context, arg CostForServiceParams) (float32, error) CostForTeam(ctx context.Context, arg CostForTeamParams) (float32, error) CostUpsert(ctx context.Context, arg []CostUpsertParams) *CostUpsertBatchResults DailyCostForTeam(ctx context.Context, arg DailyCostForTeamParams) ([]*DailyCostForTeamRow, error) DailyCostForTeamEnvironment(ctx context.Context, arg DailyCostForTeamEnvironmentParams) ([]*DailyCostForTeamEnvironmentRow, error) DailyCostForWorkload(ctx context.Context, arg DailyCostForWorkloadParams) ([]*DailyCostForWorkloadRow, error) DailyEnvCostForTeam(ctx context.Context, arg DailyEnvCostForTeamParams) ([]*DailyEnvCostForTeamRow, error) LastCostDate(ctx context.Context) (pgtype.Date, error) ListTeamSlugsForCostUpdater(ctx context.Context) ([]slug.Slug, error) MonthlyCostForTeam(ctx context.Context, teamSlug slug.Slug) ([]*CostMonthlyTeam, error) MonthlyCostForWorkload(ctx context.Context, arg MonthlyCostForWorkloadParams) ([]*MonthlyCostForWorkloadRow, error) RefreshCostMonthlyTeam(ctx context.Context) error }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CostForService ¶
func (*Queries) CostForTeam ¶
func (*Queries) CostUpsert ¶
func (q *Queries) CostUpsert(ctx context.Context, arg []CostUpsertParams) *CostUpsertBatchResults
func (*Queries) DailyCostForTeam ¶
func (q *Queries) DailyCostForTeam(ctx context.Context, arg DailyCostForTeamParams) ([]*DailyCostForTeamRow, error)
func (*Queries) DailyCostForTeamEnvironment ¶
func (q *Queries) DailyCostForTeamEnvironment(ctx context.Context, arg DailyCostForTeamEnvironmentParams) ([]*DailyCostForTeamEnvironmentRow, error)
func (*Queries) DailyCostForWorkload ¶
func (q *Queries) DailyCostForWorkload(ctx context.Context, arg DailyCostForWorkloadParams) ([]*DailyCostForWorkloadRow, error)
func (*Queries) DailyEnvCostForTeam ¶
func (q *Queries) DailyEnvCostForTeam(ctx context.Context, arg DailyEnvCostForTeamParams) ([]*DailyEnvCostForTeamRow, error)
func (*Queries) LastCostDate ¶
func (*Queries) ListTeamSlugsForCostUpdater ¶
func (*Queries) MonthlyCostForTeam ¶
func (*Queries) MonthlyCostForWorkload ¶
func (q *Queries) MonthlyCostForWorkload(ctx context.Context, arg MonthlyCostForWorkloadParams) ([]*MonthlyCostForWorkloadRow, error)