mocks

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertRepository

type AlertRepository struct {
	mock.Mock
}

AlertRepository is an autogenerated mock type for the Repository type

func NewAlertRepository

func NewAlertRepository(t mockConstructorTestingTNewAlertRepository) *AlertRepository

NewAlertRepository creates a new instance of AlertRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AlertRepository) BulkUpdateSilence

func (_m *AlertRepository) BulkUpdateSilence(_a0 context.Context, _a1 []int64, _a2 string) error

BulkUpdateSilence provides a mock function with given fields: _a0, _a1, _a2

func (*AlertRepository) Create

func (_m *AlertRepository) Create(_a0 context.Context, _a1 alert.Alert) (alert.Alert, error)

Create provides a mock function with given fields: _a0, _a1

func (*AlertRepository) EXPECT

func (*AlertRepository) List

func (_m *AlertRepository) List(_a0 context.Context, _a1 alert.Filter) ([]alert.Alert, error)

List provides a mock function with given fields: _a0, _a1

type AlertRepository_BulkUpdateSilence_Call

type AlertRepository_BulkUpdateSilence_Call struct {
	*mock.Call
}

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

func (*AlertRepository_BulkUpdateSilence_Call) Return

func (*AlertRepository_BulkUpdateSilence_Call) Run

func (*AlertRepository_BulkUpdateSilence_Call) RunAndReturn added in v0.6.1

type AlertRepository_Create_Call

type AlertRepository_Create_Call struct {
	*mock.Call
}

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

func (*AlertRepository_Create_Call) Return

func (*AlertRepository_Create_Call) Run

func (*AlertRepository_Create_Call) RunAndReturn added in v0.6.1

type AlertRepository_Expecter

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

func (*AlertRepository_Expecter) BulkUpdateSilence

func (_e *AlertRepository_Expecter) BulkUpdateSilence(_a0 interface{}, _a1 interface{}, _a2 interface{}) *AlertRepository_BulkUpdateSilence_Call

BulkUpdateSilence is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []int64
  • _a2 string

func (*AlertRepository_Expecter) Create

func (_e *AlertRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *AlertRepository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 alert.Alert

func (*AlertRepository_Expecter) List

func (_e *AlertRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *AlertRepository_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 alert.Filter

type AlertRepository_List_Call

type AlertRepository_List_Call struct {
	*mock.Call
}

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

func (*AlertRepository_List_Call) Return

func (*AlertRepository_List_Call) Run

func (*AlertRepository_List_Call) RunAndReturn added in v0.6.1

type AlertTransformer

type AlertTransformer struct {
	mock.Mock
}

AlertTransformer is an autogenerated mock type for the AlertTransformer type

func NewAlertTransformer

func NewAlertTransformer(t mockConstructorTestingTNewAlertTransformer) *AlertTransformer

NewAlertTransformer creates a new instance of AlertTransformer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AlertTransformer) EXPECT

func (*AlertTransformer) TransformToAlerts

func (_m *AlertTransformer) TransformToAlerts(ctx context.Context, providerID uint64, namespaceID uint64, body map[string]interface{}) ([]alert.Alert, int, error)

TransformToAlerts provides a mock function with given fields: ctx, providerID, namespaceID, body

type AlertTransformer_Expecter

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

func (*AlertTransformer_Expecter) TransformToAlerts

func (_e *AlertTransformer_Expecter) TransformToAlerts(ctx interface{}, providerID interface{}, namespaceID interface{}, body interface{}) *AlertTransformer_TransformToAlerts_Call

TransformToAlerts is a helper method to define mock.On call

  • ctx context.Context
  • providerID uint64
  • namespaceID uint64
  • body map[string]interface{}

type AlertTransformer_TransformToAlerts_Call

type AlertTransformer_TransformToAlerts_Call struct {
	*mock.Call
}

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

func (*AlertTransformer_TransformToAlerts_Call) Return

func (*AlertTransformer_TransformToAlerts_Call) Run

func (_c *AlertTransformer_TransformToAlerts_Call) Run(run func(ctx context.Context, providerID uint64, namespaceID uint64, body map[string]interface{})) *AlertTransformer_TransformToAlerts_Call

func (*AlertTransformer_TransformToAlerts_Call) RunAndReturn added in v0.6.1

type LogService

type LogService struct {
	mock.Mock
}

LogService is an autogenerated mock type for the LogService type

func NewLogService

func NewLogService(t mockConstructorTestingTNewLogService) *LogService

NewLogService creates a new instance of LogService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*LogService) EXPECT

func (_m *LogService) EXPECT() *LogService_Expecter

func (*LogService) ListAlertIDsBySilenceID added in v0.6.1

func (_m *LogService) ListAlertIDsBySilenceID(ctx context.Context, silenceID string) ([]int64, error)

ListAlertIDsBySilenceID provides a mock function with given fields: ctx, silenceID

type LogService_Expecter

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

func (*LogService_Expecter) ListAlertIDsBySilenceID added in v0.6.1

func (_e *LogService_Expecter) ListAlertIDsBySilenceID(ctx interface{}, silenceID interface{}) *LogService_ListAlertIDsBySilenceID_Call

ListAlertIDsBySilenceID is a helper method to define mock.On call

  • ctx context.Context
  • silenceID string

type LogService_ListAlertIDsBySilenceID_Call added in v0.6.1

type LogService_ListAlertIDsBySilenceID_Call struct {
	*mock.Call
}

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

func (*LogService_ListAlertIDsBySilenceID_Call) Return added in v0.6.1

func (*LogService_ListAlertIDsBySilenceID_Call) Run added in v0.6.1

func (*LogService_ListAlertIDsBySilenceID_Call) RunAndReturn added in v0.6.1

Jump to

Keyboard shortcuts

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