mocks

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAlertIncidentService

type MockAlertIncidentService struct {
	mock.Mock
}

MockAlertIncidentService is an autogenerated mock type for the AlertIncidentService type

func NewMockAlertIncidentService

func NewMockAlertIncidentService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAlertIncidentService

NewMockAlertIncidentService creates a new instance of MockAlertIncidentService. 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 (*MockAlertIncidentService) EXPECT

func (*MockAlertIncidentService) QueryAlerts

QueryAlerts provides a mock function with given fields: ctx, req

func (*MockAlertIncidentService) QueryIncidents

QueryIncidents provides a mock function with given fields: ctx, req

func (*MockAlertIncidentService) UpdateIncident

func (_m *MockAlertIncidentService) UpdateIncident(ctx context.Context, incidentID string, req gen.IncidentPutRequest) (*gen.IncidentPutResponse, error)

UpdateIncident provides a mock function with given fields: ctx, incidentID, req

type MockAlertIncidentService_Expecter

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

func (*MockAlertIncidentService_Expecter) QueryAlerts

func (_e *MockAlertIncidentService_Expecter) QueryAlerts(ctx interface{}, req interface{}) *MockAlertIncidentService_QueryAlerts_Call

QueryAlerts is a helper method to define mock.On call

  • ctx context.Context
  • req gen.AlertsQueryRequest

func (*MockAlertIncidentService_Expecter) QueryIncidents

func (_e *MockAlertIncidentService_Expecter) QueryIncidents(ctx interface{}, req interface{}) *MockAlertIncidentService_QueryIncidents_Call

QueryIncidents is a helper method to define mock.On call

  • ctx context.Context
  • req gen.IncidentsQueryRequest

func (*MockAlertIncidentService_Expecter) UpdateIncident

func (_e *MockAlertIncidentService_Expecter) UpdateIncident(ctx interface{}, incidentID interface{}, req interface{}) *MockAlertIncidentService_UpdateIncident_Call

UpdateIncident is a helper method to define mock.On call

  • ctx context.Context
  • incidentID string
  • req gen.IncidentPutRequest

type MockAlertIncidentService_QueryAlerts_Call

type MockAlertIncidentService_QueryAlerts_Call struct {
	*mock.Call
}

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

func (*MockAlertIncidentService_QueryAlerts_Call) Return

func (*MockAlertIncidentService_QueryAlerts_Call) Run

type MockAlertIncidentService_QueryIncidents_Call

type MockAlertIncidentService_QueryIncidents_Call struct {
	*mock.Call
}

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

func (*MockAlertIncidentService_QueryIncidents_Call) Return

func (*MockAlertIncidentService_QueryIncidents_Call) Run

type MockAlertIncidentService_UpdateIncident_Call

type MockAlertIncidentService_UpdateIncident_Call struct {
	*mock.Call
}

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

func (*MockAlertIncidentService_UpdateIncident_Call) Return

func (*MockAlertIncidentService_UpdateIncident_Call) Run

type MockAlertRuleService

type MockAlertRuleService struct {
	mock.Mock
}

MockAlertRuleService is an autogenerated mock type for the AlertRuleService type

func NewMockAlertRuleService

func NewMockAlertRuleService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAlertRuleService

NewMockAlertRuleService creates a new instance of MockAlertRuleService. 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 (*MockAlertRuleService) CreateAlertRule

CreateAlertRule provides a mock function with given fields: ctx, req

func (*MockAlertRuleService) DeleteAlertRule

func (_m *MockAlertRuleService) DeleteAlertRule(ctx context.Context, ruleName string, sourceType string) (*gen.AlertingRuleSyncResponse, error)

DeleteAlertRule provides a mock function with given fields: ctx, ruleName, sourceType

func (*MockAlertRuleService) EXPECT

func (*MockAlertRuleService) GetAlertRule

func (_m *MockAlertRuleService) GetAlertRule(ctx context.Context, ruleName string, sourceType string) (*gen.AlertRuleResponse, error)

GetAlertRule provides a mock function with given fields: ctx, ruleName, sourceType

func (*MockAlertRuleService) HandleAlertWebhook

HandleAlertWebhook provides a mock function with given fields: ctx, req

func (*MockAlertRuleService) UpdateAlertRule

func (_m *MockAlertRuleService) UpdateAlertRule(ctx context.Context, ruleName string, req gen.AlertRuleRequest) (*gen.AlertingRuleSyncResponse, error)

UpdateAlertRule provides a mock function with given fields: ctx, ruleName, req

type MockAlertRuleService_CreateAlertRule_Call

type MockAlertRuleService_CreateAlertRule_Call struct {
	*mock.Call
}

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

func (*MockAlertRuleService_CreateAlertRule_Call) Return

func (*MockAlertRuleService_CreateAlertRule_Call) Run

type MockAlertRuleService_DeleteAlertRule_Call

type MockAlertRuleService_DeleteAlertRule_Call struct {
	*mock.Call
}

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

func (*MockAlertRuleService_DeleteAlertRule_Call) Return

func (*MockAlertRuleService_DeleteAlertRule_Call) Run

func (*MockAlertRuleService_DeleteAlertRule_Call) RunAndReturn

type MockAlertRuleService_Expecter

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

func (*MockAlertRuleService_Expecter) CreateAlertRule

func (_e *MockAlertRuleService_Expecter) CreateAlertRule(ctx interface{}, req interface{}) *MockAlertRuleService_CreateAlertRule_Call

CreateAlertRule is a helper method to define mock.On call

  • ctx context.Context
  • req gen.AlertRuleRequest

func (*MockAlertRuleService_Expecter) DeleteAlertRule

func (_e *MockAlertRuleService_Expecter) DeleteAlertRule(ctx interface{}, ruleName interface{}, sourceType interface{}) *MockAlertRuleService_DeleteAlertRule_Call

DeleteAlertRule is a helper method to define mock.On call

  • ctx context.Context
  • ruleName string
  • sourceType string

func (*MockAlertRuleService_Expecter) GetAlertRule

func (_e *MockAlertRuleService_Expecter) GetAlertRule(ctx interface{}, ruleName interface{}, sourceType interface{}) *MockAlertRuleService_GetAlertRule_Call

GetAlertRule is a helper method to define mock.On call

  • ctx context.Context
  • ruleName string
  • sourceType string

func (*MockAlertRuleService_Expecter) HandleAlertWebhook

func (_e *MockAlertRuleService_Expecter) HandleAlertWebhook(ctx interface{}, req interface{}) *MockAlertRuleService_HandleAlertWebhook_Call

HandleAlertWebhook is a helper method to define mock.On call

  • ctx context.Context
  • req gen.AlertWebhookRequest

func (*MockAlertRuleService_Expecter) UpdateAlertRule

func (_e *MockAlertRuleService_Expecter) UpdateAlertRule(ctx interface{}, ruleName interface{}, req interface{}) *MockAlertRuleService_UpdateAlertRule_Call

UpdateAlertRule is a helper method to define mock.On call

  • ctx context.Context
  • ruleName string
  • req gen.AlertRuleRequest

type MockAlertRuleService_GetAlertRule_Call

type MockAlertRuleService_GetAlertRule_Call struct {
	*mock.Call
}

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

func (*MockAlertRuleService_GetAlertRule_Call) Return

func (*MockAlertRuleService_GetAlertRule_Call) Run

func (*MockAlertRuleService_GetAlertRule_Call) RunAndReturn

type MockAlertRuleService_HandleAlertWebhook_Call

type MockAlertRuleService_HandleAlertWebhook_Call struct {
	*mock.Call
}

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

func (*MockAlertRuleService_HandleAlertWebhook_Call) Return

func (*MockAlertRuleService_HandleAlertWebhook_Call) Run

type MockAlertRuleService_UpdateAlertRule_Call

type MockAlertRuleService_UpdateAlertRule_Call struct {
	*mock.Call
}

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

func (*MockAlertRuleService_UpdateAlertRule_Call) Return

func (*MockAlertRuleService_UpdateAlertRule_Call) Run

type MockAlertsQuerier

type MockAlertsQuerier struct {
	mock.Mock
}

MockAlertsQuerier is an autogenerated mock type for the AlertsQuerier type

func NewMockAlertsQuerier

func NewMockAlertsQuerier(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAlertsQuerier

NewMockAlertsQuerier creates a new instance of MockAlertsQuerier. 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 (*MockAlertsQuerier) EXPECT

func (*MockAlertsQuerier) QueryAlerts

QueryAlerts provides a mock function with given fields: ctx, req

type MockAlertsQuerier_Expecter

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

func (*MockAlertsQuerier_Expecter) QueryAlerts

func (_e *MockAlertsQuerier_Expecter) QueryAlerts(ctx interface{}, req interface{}) *MockAlertsQuerier_QueryAlerts_Call

QueryAlerts is a helper method to define mock.On call

  • ctx context.Context
  • req gen.AlertsQueryRequest

type MockAlertsQuerier_QueryAlerts_Call

type MockAlertsQuerier_QueryAlerts_Call struct {
	*mock.Call
}

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

func (*MockAlertsQuerier_QueryAlerts_Call) Return

func (*MockAlertsQuerier_QueryAlerts_Call) Run

func (*MockAlertsQuerier_QueryAlerts_Call) RunAndReturn

type MockHealthChecker

type MockHealthChecker struct {
	mock.Mock
}

MockHealthChecker is an autogenerated mock type for the HealthChecker type

func NewMockHealthChecker

func NewMockHealthChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHealthChecker

NewMockHealthChecker creates a new instance of MockHealthChecker. 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 (*MockHealthChecker) Check

func (_m *MockHealthChecker) Check(ctx context.Context) error

Check provides a mock function with given fields: ctx

func (*MockHealthChecker) EXPECT

type MockHealthChecker_Check_Call

type MockHealthChecker_Check_Call struct {
	*mock.Call
}

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

func (*MockHealthChecker_Check_Call) Return

func (*MockHealthChecker_Check_Call) Run

func (*MockHealthChecker_Check_Call) RunAndReturn

type MockHealthChecker_Expecter

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

func (*MockHealthChecker_Expecter) Check

func (_e *MockHealthChecker_Expecter) Check(ctx interface{}) *MockHealthChecker_Check_Call

Check is a helper method to define mock.On call

  • ctx context.Context

type MockIncidentsQuerier

type MockIncidentsQuerier struct {
	mock.Mock
}

MockIncidentsQuerier is an autogenerated mock type for the IncidentsQuerier type

func NewMockIncidentsQuerier

func NewMockIncidentsQuerier(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIncidentsQuerier

NewMockIncidentsQuerier creates a new instance of MockIncidentsQuerier. 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 (*MockIncidentsQuerier) EXPECT

func (*MockIncidentsQuerier) QueryIncidents

QueryIncidents provides a mock function with given fields: ctx, req

type MockIncidentsQuerier_Expecter

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

func (*MockIncidentsQuerier_Expecter) QueryIncidents

func (_e *MockIncidentsQuerier_Expecter) QueryIncidents(ctx interface{}, req interface{}) *MockIncidentsQuerier_QueryIncidents_Call

QueryIncidents is a helper method to define mock.On call

  • ctx context.Context
  • req gen.IncidentsQueryRequest

type MockIncidentsQuerier_QueryIncidents_Call

type MockIncidentsQuerier_QueryIncidents_Call struct {
	*mock.Call
}

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

func (*MockIncidentsQuerier_QueryIncidents_Call) Return

func (*MockIncidentsQuerier_QueryIncidents_Call) Run

type MockIncidentsUpdater

type MockIncidentsUpdater struct {
	mock.Mock
}

MockIncidentsUpdater is an autogenerated mock type for the IncidentsUpdater type

func NewMockIncidentsUpdater

func NewMockIncidentsUpdater(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIncidentsUpdater

NewMockIncidentsUpdater creates a new instance of MockIncidentsUpdater. 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 (*MockIncidentsUpdater) EXPECT

func (*MockIncidentsUpdater) UpdateIncident

func (_m *MockIncidentsUpdater) UpdateIncident(ctx context.Context, incidentID string, req gen.IncidentPutRequest) (*gen.IncidentPutResponse, error)

UpdateIncident provides a mock function with given fields: ctx, incidentID, req

type MockIncidentsUpdater_Expecter

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

func (*MockIncidentsUpdater_Expecter) UpdateIncident

func (_e *MockIncidentsUpdater_Expecter) UpdateIncident(ctx interface{}, incidentID interface{}, req interface{}) *MockIncidentsUpdater_UpdateIncident_Call

UpdateIncident is a helper method to define mock.On call

  • ctx context.Context
  • incidentID string
  • req gen.IncidentPutRequest

type MockIncidentsUpdater_UpdateIncident_Call

type MockIncidentsUpdater_UpdateIncident_Call struct {
	*mock.Call
}

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

func (*MockIncidentsUpdater_UpdateIncident_Call) Return

func (*MockIncidentsUpdater_UpdateIncident_Call) Run

type MockLogsQuerier

type MockLogsQuerier struct {
	mock.Mock
}

MockLogsQuerier is an autogenerated mock type for the LogsQuerier type

func NewMockLogsQuerier

func NewMockLogsQuerier(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLogsQuerier

NewMockLogsQuerier creates a new instance of MockLogsQuerier. 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 (*MockLogsQuerier) EXPECT

func (*MockLogsQuerier) QueryLogs

QueryLogs provides a mock function with given fields: ctx, req

type MockLogsQuerier_Expecter

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

func (*MockLogsQuerier_Expecter) QueryLogs

func (_e *MockLogsQuerier_Expecter) QueryLogs(ctx interface{}, req interface{}) *MockLogsQuerier_QueryLogs_Call

QueryLogs is a helper method to define mock.On call

  • ctx context.Context
  • req *types.LogsQueryRequest

type MockLogsQuerier_QueryLogs_Call

type MockLogsQuerier_QueryLogs_Call struct {
	*mock.Call
}

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

func (*MockLogsQuerier_QueryLogs_Call) Return

func (*MockLogsQuerier_QueryLogs_Call) Run

func (*MockLogsQuerier_QueryLogs_Call) RunAndReturn

type MockMetricsQuerier

type MockMetricsQuerier struct {
	mock.Mock
}

MockMetricsQuerier is an autogenerated mock type for the MetricsQuerier type

func NewMockMetricsQuerier

func NewMockMetricsQuerier(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMetricsQuerier

NewMockMetricsQuerier creates a new instance of MockMetricsQuerier. 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 (*MockMetricsQuerier) EXPECT

func (*MockMetricsQuerier) QueryMetrics

func (_m *MockMetricsQuerier) QueryMetrics(ctx context.Context, req *types.MetricsQueryRequest) (interface{}, error)

QueryMetrics provides a mock function with given fields: ctx, req

func (*MockMetricsQuerier) QueryRuntimeTopology

QueryRuntimeTopology provides a mock function with given fields: ctx, req

type MockMetricsQuerier_Expecter

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

func (*MockMetricsQuerier_Expecter) QueryMetrics

func (_e *MockMetricsQuerier_Expecter) QueryMetrics(ctx interface{}, req interface{}) *MockMetricsQuerier_QueryMetrics_Call

QueryMetrics is a helper method to define mock.On call

  • ctx context.Context
  • req *types.MetricsQueryRequest

func (*MockMetricsQuerier_Expecter) QueryRuntimeTopology

func (_e *MockMetricsQuerier_Expecter) QueryRuntimeTopology(ctx interface{}, req interface{}) *MockMetricsQuerier_QueryRuntimeTopology_Call

QueryRuntimeTopology is a helper method to define mock.On call

  • ctx context.Context
  • req *types.RuntimeTopologyRequest

type MockMetricsQuerier_QueryMetrics_Call

type MockMetricsQuerier_QueryMetrics_Call struct {
	*mock.Call
}

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

func (*MockMetricsQuerier_QueryMetrics_Call) Return

func (*MockMetricsQuerier_QueryMetrics_Call) Run

func (*MockMetricsQuerier_QueryMetrics_Call) RunAndReturn

type MockMetricsQuerier_QueryRuntimeTopology_Call

type MockMetricsQuerier_QueryRuntimeTopology_Call struct {
	*mock.Call
}

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

func (*MockMetricsQuerier_QueryRuntimeTopology_Call) Return

func (*MockMetricsQuerier_QueryRuntimeTopology_Call) Run

type MockTracesQuerier

type MockTracesQuerier struct {
	mock.Mock
}

MockTracesQuerier is an autogenerated mock type for the TracesQuerier type

func NewMockTracesQuerier

func NewMockTracesQuerier(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTracesQuerier

NewMockTracesQuerier creates a new instance of MockTracesQuerier. 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 (*MockTracesQuerier) EXPECT

func (*MockTracesQuerier) GetSpanDetails

func (_m *MockTracesQuerier) GetSpanDetails(ctx context.Context, traceID string, spanID string) (*types.SpanInfo, error)

GetSpanDetails provides a mock function with given fields: ctx, traceID, spanID

func (*MockTracesQuerier) QuerySpans

QuerySpans provides a mock function with given fields: ctx, traceID, req

func (*MockTracesQuerier) QueryTraces

QueryTraces provides a mock function with given fields: ctx, req

type MockTracesQuerier_Expecter

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

func (*MockTracesQuerier_Expecter) GetSpanDetails

func (_e *MockTracesQuerier_Expecter) GetSpanDetails(ctx interface{}, traceID interface{}, spanID interface{}) *MockTracesQuerier_GetSpanDetails_Call

GetSpanDetails is a helper method to define mock.On call

  • ctx context.Context
  • traceID string
  • spanID string

func (*MockTracesQuerier_Expecter) QuerySpans

func (_e *MockTracesQuerier_Expecter) QuerySpans(ctx interface{}, traceID interface{}, req interface{}) *MockTracesQuerier_QuerySpans_Call

QuerySpans is a helper method to define mock.On call

  • ctx context.Context
  • traceID string
  • req *types.TracesQueryRequest

func (*MockTracesQuerier_Expecter) QueryTraces

func (_e *MockTracesQuerier_Expecter) QueryTraces(ctx interface{}, req interface{}) *MockTracesQuerier_QueryTraces_Call

QueryTraces is a helper method to define mock.On call

  • ctx context.Context
  • req *types.TracesQueryRequest

type MockTracesQuerier_GetSpanDetails_Call

type MockTracesQuerier_GetSpanDetails_Call struct {
	*mock.Call
}

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

func (*MockTracesQuerier_GetSpanDetails_Call) Return

func (*MockTracesQuerier_GetSpanDetails_Call) Run

func (*MockTracesQuerier_GetSpanDetails_Call) RunAndReturn

type MockTracesQuerier_QuerySpans_Call

type MockTracesQuerier_QuerySpans_Call struct {
	*mock.Call
}

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

func (*MockTracesQuerier_QuerySpans_Call) Return

func (*MockTracesQuerier_QuerySpans_Call) Run

type MockTracesQuerier_QueryTraces_Call

type MockTracesQuerier_QueryTraces_Call struct {
	*mock.Call
}

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

func (*MockTracesQuerier_QueryTraces_Call) Return

func (*MockTracesQuerier_QueryTraces_Call) Run

Jump to

Keyboard shortcuts

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