Documentation
¶
Index ¶
- type Handler
- type Input
- type MockHandler
- func (_m *MockHandler) Close()
- func (_m *MockHandler) DeleteTeam(teamSlug slug.Slug, correlationID uuid.UUID) error
- func (_m *MockHandler) EXPECT() *MockHandler_Expecter
- func (_m *MockHandler) InitReconcilers(ctx context.Context) error
- func (_m *MockHandler) RemoveReconciler(reconcilerName sqlc.ReconcilerName)
- func (_m *MockHandler) Schedule(input Input) error
- func (_m *MockHandler) ScheduleAllTeams(ctx context.Context, correlationID uuid.UUID) ([]*db.Team, error)
- func (_m *MockHandler) SetReconcilerFactories(factories ReconcilerFactories)
- func (_m *MockHandler) SyncTeams(ctx context.Context)
- func (_m *MockHandler) UpdateMetrics(ctx context.Context)
- func (_m *MockHandler) UseReconciler(reconciler db.Reconciler) error
- type MockHandler_Close_Call
- type MockHandler_DeleteTeam_Call
- func (_c *MockHandler_DeleteTeam_Call) Return(_a0 error) *MockHandler_DeleteTeam_Call
- func (_c *MockHandler_DeleteTeam_Call) Run(run func(teamSlug slug.Slug, correlationID uuid.UUID)) *MockHandler_DeleteTeam_Call
- func (_c *MockHandler_DeleteTeam_Call) RunAndReturn(run func(slug.Slug, uuid.UUID) error) *MockHandler_DeleteTeam_Call
- type MockHandler_Expecter
- func (_e *MockHandler_Expecter) Close() *MockHandler_Close_Call
- func (_e *MockHandler_Expecter) DeleteTeam(teamSlug interface{}, correlationID interface{}) *MockHandler_DeleteTeam_Call
- func (_e *MockHandler_Expecter) InitReconcilers(ctx interface{}) *MockHandler_InitReconcilers_Call
- func (_e *MockHandler_Expecter) RemoveReconciler(reconcilerName interface{}) *MockHandler_RemoveReconciler_Call
- func (_e *MockHandler_Expecter) Schedule(input interface{}) *MockHandler_Schedule_Call
- func (_e *MockHandler_Expecter) ScheduleAllTeams(ctx interface{}, correlationID interface{}) *MockHandler_ScheduleAllTeams_Call
- func (_e *MockHandler_Expecter) SetReconcilerFactories(factories interface{}) *MockHandler_SetReconcilerFactories_Call
- func (_e *MockHandler_Expecter) SyncTeams(ctx interface{}) *MockHandler_SyncTeams_Call
- func (_e *MockHandler_Expecter) UpdateMetrics(ctx interface{}) *MockHandler_UpdateMetrics_Call
- func (_e *MockHandler_Expecter) UseReconciler(reconciler interface{}) *MockHandler_UseReconciler_Call
- type MockHandler_InitReconcilers_Call
- func (_c *MockHandler_InitReconcilers_Call) Return(_a0 error) *MockHandler_InitReconcilers_Call
- func (_c *MockHandler_InitReconcilers_Call) Run(run func(ctx context.Context)) *MockHandler_InitReconcilers_Call
- func (_c *MockHandler_InitReconcilers_Call) RunAndReturn(run func(context.Context) error) *MockHandler_InitReconcilers_Call
- type MockHandler_RemoveReconciler_Call
- func (_c *MockHandler_RemoveReconciler_Call) Return() *MockHandler_RemoveReconciler_Call
- func (_c *MockHandler_RemoveReconciler_Call) Run(run func(reconcilerName sqlc.ReconcilerName)) *MockHandler_RemoveReconciler_Call
- func (_c *MockHandler_RemoveReconciler_Call) RunAndReturn(run func(sqlc.ReconcilerName)) *MockHandler_RemoveReconciler_Call
- type MockHandler_ScheduleAllTeams_Call
- func (_c *MockHandler_ScheduleAllTeams_Call) Return(_a0 []*db.Team, _a1 error) *MockHandler_ScheduleAllTeams_Call
- func (_c *MockHandler_ScheduleAllTeams_Call) Run(run func(ctx context.Context, correlationID uuid.UUID)) *MockHandler_ScheduleAllTeams_Call
- func (_c *MockHandler_ScheduleAllTeams_Call) RunAndReturn(run func(context.Context, uuid.UUID) ([]*db.Team, error)) *MockHandler_ScheduleAllTeams_Call
- type MockHandler_Schedule_Call
- type MockHandler_SetReconcilerFactories_Call
- func (_c *MockHandler_SetReconcilerFactories_Call) Return() *MockHandler_SetReconcilerFactories_Call
- func (_c *MockHandler_SetReconcilerFactories_Call) Run(run func(factories ReconcilerFactories)) *MockHandler_SetReconcilerFactories_Call
- func (_c *MockHandler_SetReconcilerFactories_Call) RunAndReturn(run func(ReconcilerFactories)) *MockHandler_SetReconcilerFactories_Call
- type MockHandler_SyncTeams_Call
- type MockHandler_UpdateMetrics_Call
- func (_c *MockHandler_UpdateMetrics_Call) Return() *MockHandler_UpdateMetrics_Call
- func (_c *MockHandler_UpdateMetrics_Call) Run(run func(ctx context.Context)) *MockHandler_UpdateMetrics_Call
- func (_c *MockHandler_UpdateMetrics_Call) RunAndReturn(run func(context.Context)) *MockHandler_UpdateMetrics_Call
- type MockHandler_UseReconciler_Call
- func (_c *MockHandler_UseReconciler_Call) Return(_a0 error) *MockHandler_UseReconciler_Call
- func (_c *MockHandler_UseReconciler_Call) Run(run func(reconciler db.Reconciler)) *MockHandler_UseReconciler_Call
- func (_c *MockHandler_UseReconciler_Call) RunAndReturn(run func(db.Reconciler) error) *MockHandler_UseReconciler_Call
- type MockQueue
- type MockQueue_Add_Call
- type MockQueue_Close_Call
- type MockQueue_Expecter
- type Queue
- type ReconcilerFactories
- type ReconcilerWithRunOrder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { SetReconcilerFactories(factories ReconcilerFactories) Schedule(input Input) error ScheduleAllTeams(ctx context.Context, correlationID uuid.UUID) ([]*db.Team, error) InitReconcilers(ctx context.Context) error UseReconciler(reconciler db.Reconciler) error RemoveReconciler(reconcilerName sqlc.ReconcilerName) SyncTeams(ctx context.Context) UpdateMetrics(ctx context.Context) DeleteTeam(teamSlug slug.Slug, correlationID uuid.UUID) error Close() }
type MockHandler ¶
MockHandler is an autogenerated mock type for the Handler type
func NewMockHandler ¶
func NewMockHandler(t interface { mock.TestingT Cleanup(func()) }, ) *MockHandler
NewMockHandler creates a new instance of MockHandler. 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 (*MockHandler) Close ¶
func (_m *MockHandler) Close()
Close provides a mock function with given fields:
func (*MockHandler) DeleteTeam ¶
DeleteTeam provides a mock function with given fields: teamSlug, correlationID
func (*MockHandler) EXPECT ¶
func (_m *MockHandler) EXPECT() *MockHandler_Expecter
func (*MockHandler) InitReconcilers ¶
func (_m *MockHandler) InitReconcilers(ctx context.Context) error
InitReconcilers provides a mock function with given fields: ctx
func (*MockHandler) RemoveReconciler ¶
func (_m *MockHandler) RemoveReconciler(reconcilerName sqlc.ReconcilerName)
RemoveReconciler provides a mock function with given fields: reconcilerName
func (*MockHandler) Schedule ¶
func (_m *MockHandler) Schedule(input Input) error
Schedule provides a mock function with given fields: input
func (*MockHandler) ScheduleAllTeams ¶
func (_m *MockHandler) ScheduleAllTeams(ctx context.Context, correlationID uuid.UUID) ([]*db.Team, error)
ScheduleAllTeams provides a mock function with given fields: ctx, correlationID
func (*MockHandler) SetReconcilerFactories ¶
func (_m *MockHandler) SetReconcilerFactories(factories ReconcilerFactories)
SetReconcilerFactories provides a mock function with given fields: factories
func (*MockHandler) SyncTeams ¶
func (_m *MockHandler) SyncTeams(ctx context.Context)
SyncTeams provides a mock function with given fields: ctx
func (*MockHandler) UpdateMetrics ¶
func (_m *MockHandler) UpdateMetrics(ctx context.Context)
UpdateMetrics provides a mock function with given fields: ctx
func (*MockHandler) UseReconciler ¶
func (_m *MockHandler) UseReconciler(reconciler db.Reconciler) error
UseReconciler provides a mock function with given fields: reconciler
type MockHandler_Close_Call ¶
MockHandler_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockHandler_Close_Call) Return ¶
func (_c *MockHandler_Close_Call) Return() *MockHandler_Close_Call
func (*MockHandler_Close_Call) Run ¶
func (_c *MockHandler_Close_Call) Run(run func()) *MockHandler_Close_Call
func (*MockHandler_Close_Call) RunAndReturn ¶
func (_c *MockHandler_Close_Call) RunAndReturn(run func()) *MockHandler_Close_Call
type MockHandler_DeleteTeam_Call ¶
MockHandler_DeleteTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteTeam'
func (*MockHandler_DeleteTeam_Call) Return ¶
func (_c *MockHandler_DeleteTeam_Call) Return(_a0 error) *MockHandler_DeleteTeam_Call
func (*MockHandler_DeleteTeam_Call) Run ¶
func (_c *MockHandler_DeleteTeam_Call) Run(run func(teamSlug slug.Slug, correlationID uuid.UUID)) *MockHandler_DeleteTeam_Call
func (*MockHandler_DeleteTeam_Call) RunAndReturn ¶
func (_c *MockHandler_DeleteTeam_Call) RunAndReturn(run func(slug.Slug, uuid.UUID) error) *MockHandler_DeleteTeam_Call
type MockHandler_Expecter ¶
type MockHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*MockHandler_Expecter) Close ¶
func (_e *MockHandler_Expecter) Close() *MockHandler_Close_Call
Close is a helper method to define mock.On call
func (*MockHandler_Expecter) DeleteTeam ¶
func (_e *MockHandler_Expecter) DeleteTeam(teamSlug interface{}, correlationID interface{}) *MockHandler_DeleteTeam_Call
DeleteTeam is a helper method to define mock.On call
- teamSlug slug.Slug
- correlationID uuid.UUID
func (*MockHandler_Expecter) InitReconcilers ¶
func (_e *MockHandler_Expecter) InitReconcilers(ctx interface{}) *MockHandler_InitReconcilers_Call
InitReconcilers is a helper method to define mock.On call
- ctx context.Context
func (*MockHandler_Expecter) RemoveReconciler ¶
func (_e *MockHandler_Expecter) RemoveReconciler(reconcilerName interface{}) *MockHandler_RemoveReconciler_Call
RemoveReconciler is a helper method to define mock.On call
- reconcilerName sqlc.ReconcilerName
func (*MockHandler_Expecter) Schedule ¶
func (_e *MockHandler_Expecter) Schedule(input interface{}) *MockHandler_Schedule_Call
Schedule is a helper method to define mock.On call
- input Input
func (*MockHandler_Expecter) ScheduleAllTeams ¶
func (_e *MockHandler_Expecter) ScheduleAllTeams(ctx interface{}, correlationID interface{}) *MockHandler_ScheduleAllTeams_Call
ScheduleAllTeams is a helper method to define mock.On call
- ctx context.Context
- correlationID uuid.UUID
func (*MockHandler_Expecter) SetReconcilerFactories ¶
func (_e *MockHandler_Expecter) SetReconcilerFactories(factories interface{}) *MockHandler_SetReconcilerFactories_Call
SetReconcilerFactories is a helper method to define mock.On call
- factories ReconcilerFactories
func (*MockHandler_Expecter) SyncTeams ¶
func (_e *MockHandler_Expecter) SyncTeams(ctx interface{}) *MockHandler_SyncTeams_Call
SyncTeams is a helper method to define mock.On call
- ctx context.Context
func (*MockHandler_Expecter) UpdateMetrics ¶
func (_e *MockHandler_Expecter) UpdateMetrics(ctx interface{}) *MockHandler_UpdateMetrics_Call
UpdateMetrics is a helper method to define mock.On call
- ctx context.Context
func (*MockHandler_Expecter) UseReconciler ¶
func (_e *MockHandler_Expecter) UseReconciler(reconciler interface{}) *MockHandler_UseReconciler_Call
UseReconciler is a helper method to define mock.On call
- reconciler db.Reconciler
type MockHandler_InitReconcilers_Call ¶
MockHandler_InitReconcilers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InitReconcilers'
func (*MockHandler_InitReconcilers_Call) Return ¶
func (_c *MockHandler_InitReconcilers_Call) Return(_a0 error) *MockHandler_InitReconcilers_Call
func (*MockHandler_InitReconcilers_Call) Run ¶
func (_c *MockHandler_InitReconcilers_Call) Run(run func(ctx context.Context)) *MockHandler_InitReconcilers_Call
func (*MockHandler_InitReconcilers_Call) RunAndReturn ¶
func (_c *MockHandler_InitReconcilers_Call) RunAndReturn(run func(context.Context) error) *MockHandler_InitReconcilers_Call
type MockHandler_RemoveReconciler_Call ¶
MockHandler_RemoveReconciler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveReconciler'
func (*MockHandler_RemoveReconciler_Call) Return ¶
func (_c *MockHandler_RemoveReconciler_Call) Return() *MockHandler_RemoveReconciler_Call
func (*MockHandler_RemoveReconciler_Call) Run ¶
func (_c *MockHandler_RemoveReconciler_Call) Run(run func(reconcilerName sqlc.ReconcilerName)) *MockHandler_RemoveReconciler_Call
func (*MockHandler_RemoveReconciler_Call) RunAndReturn ¶
func (_c *MockHandler_RemoveReconciler_Call) RunAndReturn(run func(sqlc.ReconcilerName)) *MockHandler_RemoveReconciler_Call
type MockHandler_ScheduleAllTeams_Call ¶
MockHandler_ScheduleAllTeams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ScheduleAllTeams'
func (*MockHandler_ScheduleAllTeams_Call) Return ¶
func (_c *MockHandler_ScheduleAllTeams_Call) Return(_a0 []*db.Team, _a1 error) *MockHandler_ScheduleAllTeams_Call
func (*MockHandler_ScheduleAllTeams_Call) Run ¶
func (_c *MockHandler_ScheduleAllTeams_Call) Run(run func(ctx context.Context, correlationID uuid.UUID)) *MockHandler_ScheduleAllTeams_Call
func (*MockHandler_ScheduleAllTeams_Call) RunAndReturn ¶
func (_c *MockHandler_ScheduleAllTeams_Call) RunAndReturn(run func(context.Context, uuid.UUID) ([]*db.Team, error)) *MockHandler_ScheduleAllTeams_Call
type MockHandler_Schedule_Call ¶
MockHandler_Schedule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Schedule'
func (*MockHandler_Schedule_Call) Return ¶
func (_c *MockHandler_Schedule_Call) Return(_a0 error) *MockHandler_Schedule_Call
func (*MockHandler_Schedule_Call) Run ¶
func (_c *MockHandler_Schedule_Call) Run(run func(input Input)) *MockHandler_Schedule_Call
func (*MockHandler_Schedule_Call) RunAndReturn ¶
func (_c *MockHandler_Schedule_Call) RunAndReturn(run func(Input) error) *MockHandler_Schedule_Call
type MockHandler_SetReconcilerFactories_Call ¶
MockHandler_SetReconcilerFactories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetReconcilerFactories'
func (*MockHandler_SetReconcilerFactories_Call) Return ¶
func (_c *MockHandler_SetReconcilerFactories_Call) Return() *MockHandler_SetReconcilerFactories_Call
func (*MockHandler_SetReconcilerFactories_Call) Run ¶
func (_c *MockHandler_SetReconcilerFactories_Call) Run(run func(factories ReconcilerFactories)) *MockHandler_SetReconcilerFactories_Call
func (*MockHandler_SetReconcilerFactories_Call) RunAndReturn ¶
func (_c *MockHandler_SetReconcilerFactories_Call) RunAndReturn(run func(ReconcilerFactories)) *MockHandler_SetReconcilerFactories_Call
type MockHandler_SyncTeams_Call ¶
MockHandler_SyncTeams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncTeams'
func (*MockHandler_SyncTeams_Call) Return ¶
func (_c *MockHandler_SyncTeams_Call) Return() *MockHandler_SyncTeams_Call
func (*MockHandler_SyncTeams_Call) Run ¶
func (_c *MockHandler_SyncTeams_Call) Run(run func(ctx context.Context)) *MockHandler_SyncTeams_Call
func (*MockHandler_SyncTeams_Call) RunAndReturn ¶
func (_c *MockHandler_SyncTeams_Call) RunAndReturn(run func(context.Context)) *MockHandler_SyncTeams_Call
type MockHandler_UpdateMetrics_Call ¶
MockHandler_UpdateMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateMetrics'
func (*MockHandler_UpdateMetrics_Call) Return ¶
func (_c *MockHandler_UpdateMetrics_Call) Return() *MockHandler_UpdateMetrics_Call
func (*MockHandler_UpdateMetrics_Call) Run ¶
func (_c *MockHandler_UpdateMetrics_Call) Run(run func(ctx context.Context)) *MockHandler_UpdateMetrics_Call
func (*MockHandler_UpdateMetrics_Call) RunAndReturn ¶
func (_c *MockHandler_UpdateMetrics_Call) RunAndReturn(run func(context.Context)) *MockHandler_UpdateMetrics_Call
type MockHandler_UseReconciler_Call ¶
MockHandler_UseReconciler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UseReconciler'
func (*MockHandler_UseReconciler_Call) Return ¶
func (_c *MockHandler_UseReconciler_Call) Return(_a0 error) *MockHandler_UseReconciler_Call
func (*MockHandler_UseReconciler_Call) Run ¶
func (_c *MockHandler_UseReconciler_Call) Run(run func(reconciler db.Reconciler)) *MockHandler_UseReconciler_Call
func (*MockHandler_UseReconciler_Call) RunAndReturn ¶
func (_c *MockHandler_UseReconciler_Call) RunAndReturn(run func(db.Reconciler) error) *MockHandler_UseReconciler_Call
type MockQueue ¶
MockQueue is an autogenerated mock type for the Queue type
func NewMockQueue ¶
NewMockQueue creates a new instance of MockQueue. 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 (*MockQueue) Close ¶
func (_m *MockQueue) Close()
Close provides a mock function with given fields:
func (*MockQueue) EXPECT ¶
func (_m *MockQueue) EXPECT() *MockQueue_Expecter
type MockQueue_Add_Call ¶
MockQueue_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*MockQueue_Add_Call) Return ¶
func (_c *MockQueue_Add_Call) Return(_a0 error) *MockQueue_Add_Call
func (*MockQueue_Add_Call) Run ¶
func (_c *MockQueue_Add_Call) Run(run func(_a0 Input)) *MockQueue_Add_Call
func (*MockQueue_Add_Call) RunAndReturn ¶
func (_c *MockQueue_Add_Call) RunAndReturn(run func(Input) error) *MockQueue_Add_Call
type MockQueue_Close_Call ¶
MockQueue_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockQueue_Close_Call) Return ¶
func (_c *MockQueue_Close_Call) Return() *MockQueue_Close_Call
func (*MockQueue_Close_Call) Run ¶
func (_c *MockQueue_Close_Call) Run(run func()) *MockQueue_Close_Call
func (*MockQueue_Close_Call) RunAndReturn ¶
func (_c *MockQueue_Close_Call) RunAndReturn(run func()) *MockQueue_Close_Call
type MockQueue_Expecter ¶
type MockQueue_Expecter struct {
// contains filtered or unexported fields
}
func (*MockQueue_Expecter) Add ¶
func (_e *MockQueue_Expecter) Add(_a0 interface{}) *MockQueue_Add_Call
Add is a helper method to define mock.On call
- _a0 Input
func (*MockQueue_Expecter) Close ¶
func (_e *MockQueue_Expecter) Close() *MockQueue_Close_Call
Close is a helper method to define mock.On call
type ReconcilerFactories ¶
type ReconcilerFactories map[sqlc.ReconcilerName]reconcilers.ReconcilerFactory
type ReconcilerWithRunOrder ¶
type ReconcilerWithRunOrder struct {
// contains filtered or unexported fields
}