mocks

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertService

type AlertService struct {
	mock.Mock
}

AlertService is an autogenerated mock type for the AlertService type

func NewAlertService

func NewAlertService(t interface {
	mock.TestingT
	Cleanup(func())
}) *AlertService

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

func (_m *AlertService) EXPECT() *AlertService_Expecter

func (*AlertService) UpdateSilenceStatus

func (_m *AlertService) UpdateSilenceStatus(ctx context.Context, alertIDs []int64, hasSilenced bool, hasNonSilenced bool) error

UpdateSilenceStatus provides a mock function with given fields: ctx, alertIDs, hasSilenced, hasNonSilenced

type AlertService_Expecter

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

func (*AlertService_Expecter) UpdateSilenceStatus

func (_e *AlertService_Expecter) UpdateSilenceStatus(ctx interface{}, alertIDs interface{}, hasSilenced interface{}, hasNonSilenced interface{}) *AlertService_UpdateSilenceStatus_Call

UpdateSilenceStatus is a helper method to define mock.On call

  • ctx context.Context
  • alertIDs []int64
  • hasSilenced bool
  • hasNonSilenced bool

type AlertService_UpdateSilenceStatus_Call

type AlertService_UpdateSilenceStatus_Call struct {
	*mock.Call
}

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

func (*AlertService_UpdateSilenceStatus_Call) Return

func (*AlertService_UpdateSilenceStatus_Call) Run

func (_c *AlertService_UpdateSilenceStatus_Call) Run(run func(ctx context.Context, alertIDs []int64, hasSilenced bool, hasNonSilenced bool)) *AlertService_UpdateSilenceStatus_Call

func (*AlertService_UpdateSilenceStatus_Call) RunAndReturn added in v0.6.1

type Dispatcher

type Dispatcher struct {
	mock.Mock
}

Dispatcher is an autogenerated mock type for the Dispatcher type

func NewDispatcher

func NewDispatcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Dispatcher

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

func (_m *Dispatcher) EXPECT() *Dispatcher_Expecter

func (*Dispatcher) PrepareMessage

PrepareMessage provides a mock function with given fields: ctx, n

type Dispatcher_Expecter

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

func (*Dispatcher_Expecter) PrepareMessage

func (_e *Dispatcher_Expecter) PrepareMessage(ctx interface{}, n interface{}) *Dispatcher_PrepareMessage_Call

PrepareMessage is a helper method to define mock.On call

  • ctx context.Context
  • n notification.Notification

type Dispatcher_PrepareMessage_Call

type Dispatcher_PrepareMessage_Call struct {
	*mock.Call
}

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

func (*Dispatcher_PrepareMessage_Call) Return

func (*Dispatcher_PrepareMessage_Call) Run

func (*Dispatcher_PrepareMessage_Call) RunAndReturn added in v0.6.1

type IdempotencyRepository

type IdempotencyRepository struct {
	mock.Mock
}

IdempotencyRepository is an autogenerated mock type for the IdempotencyRepository type

func NewIdempotencyRepository

func NewIdempotencyRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *IdempotencyRepository

NewIdempotencyRepository creates a new instance of IdempotencyRepository. 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 (*IdempotencyRepository) Check added in v0.7.0

Check provides a mock function with given fields: ctx, scope, key

func (*IdempotencyRepository) Create added in v0.7.0

func (_m *IdempotencyRepository) Create(ctx context.Context, scope string, key string, notificationID string) (*notification.Idempotency, error)

Create provides a mock function with given fields: ctx, scope, key, notificationID

func (*IdempotencyRepository) Delete

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

func (*IdempotencyRepository) EXPECT

type IdempotencyRepository_Check_Call added in v0.7.0

type IdempotencyRepository_Check_Call struct {
	*mock.Call
}

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

func (*IdempotencyRepository_Check_Call) Return added in v0.7.0

func (*IdempotencyRepository_Check_Call) Run added in v0.7.0

func (*IdempotencyRepository_Check_Call) RunAndReturn added in v0.7.0

type IdempotencyRepository_Create_Call added in v0.7.0

type IdempotencyRepository_Create_Call struct {
	*mock.Call
}

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

func (*IdempotencyRepository_Create_Call) Return added in v0.7.0

func (*IdempotencyRepository_Create_Call) Run added in v0.7.0

func (_c *IdempotencyRepository_Create_Call) Run(run func(ctx context.Context, scope string, key string, notificationID string)) *IdempotencyRepository_Create_Call

func (*IdempotencyRepository_Create_Call) RunAndReturn added in v0.7.0

type IdempotencyRepository_Delete_Call

type IdempotencyRepository_Delete_Call struct {
	*mock.Call
}

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

func (*IdempotencyRepository_Delete_Call) Return

func (*IdempotencyRepository_Delete_Call) Run

func (*IdempotencyRepository_Delete_Call) RunAndReturn added in v0.6.1

type IdempotencyRepository_Expecter

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

func (*IdempotencyRepository_Expecter) Check added in v0.7.0

func (_e *IdempotencyRepository_Expecter) Check(ctx interface{}, scope interface{}, key interface{}) *IdempotencyRepository_Check_Call

Check is a helper method to define mock.On call

  • ctx context.Context
  • scope string
  • key string

func (*IdempotencyRepository_Expecter) Create added in v0.7.0

func (_e *IdempotencyRepository_Expecter) Create(ctx interface{}, scope interface{}, key interface{}, notificationID interface{}) *IdempotencyRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • scope string
  • key string
  • notificationID string

func (*IdempotencyRepository_Expecter) Delete

func (_e *IdempotencyRepository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *IdempotencyRepository_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 notification.IdempotencyFilter

type LogService

type LogService struct {
	mock.Mock
}

LogService is an autogenerated mock type for the LogService type

func NewLogService

func NewLogService(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*LogService) EXPECT

func (_m *LogService) EXPECT() *LogService_Expecter

func (*LogService) LogNotifications

func (_m *LogService) LogNotifications(ctx context.Context, nlogs ...log.Notification) error

LogNotifications provides a mock function with given fields: ctx, nlogs

type LogService_Expecter

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

func (*LogService_Expecter) LogNotifications

func (_e *LogService_Expecter) LogNotifications(ctx interface{}, nlogs ...interface{}) *LogService_LogNotifications_Call

LogNotifications is a helper method to define mock.On call

  • ctx context.Context
  • nlogs ...log.Notification

type LogService_LogNotifications_Call

type LogService_LogNotifications_Call struct {
	*mock.Call
}

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

func (*LogService_LogNotifications_Call) Return

func (*LogService_LogNotifications_Call) Run

func (*LogService_LogNotifications_Call) RunAndReturn added in v0.6.1

type Notifier

type Notifier struct {
	mock.Mock
}

Notifier is an autogenerated mock type for the Notifier type

func NewNotifier

func NewNotifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *Notifier

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

func (_m *Notifier) EXPECT() *Notifier_Expecter

func (*Notifier) GetSystemDefaultTemplate

func (_m *Notifier) GetSystemDefaultTemplate() string

GetSystemDefaultTemplate provides a mock function with given fields:

func (*Notifier) PostHookQueueTransformConfigs

func (_m *Notifier) PostHookQueueTransformConfigs(ctx context.Context, notificationConfigMap map[string]interface{}) (map[string]interface{}, error)

PostHookQueueTransformConfigs provides a mock function with given fields: ctx, notificationConfigMap

func (*Notifier) PreHookQueueTransformConfigs

func (_m *Notifier) PreHookQueueTransformConfigs(ctx context.Context, notificationConfigMap map[string]interface{}) (map[string]interface{}, error)

PreHookQueueTransformConfigs provides a mock function with given fields: ctx, notificationConfigMap

func (*Notifier) Send

func (_m *Notifier) Send(ctx context.Context, message notification.Message) (bool, error)

Send provides a mock function with given fields: ctx, message

type Notifier_Expecter

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

func (*Notifier_Expecter) GetSystemDefaultTemplate

func (_e *Notifier_Expecter) GetSystemDefaultTemplate() *Notifier_GetSystemDefaultTemplate_Call

GetSystemDefaultTemplate is a helper method to define mock.On call

func (*Notifier_Expecter) PostHookQueueTransformConfigs

func (_e *Notifier_Expecter) PostHookQueueTransformConfigs(ctx interface{}, notificationConfigMap interface{}) *Notifier_PostHookQueueTransformConfigs_Call

PostHookQueueTransformConfigs is a helper method to define mock.On call

  • ctx context.Context
  • notificationConfigMap map[string]interface{}

func (*Notifier_Expecter) PreHookQueueTransformConfigs

func (_e *Notifier_Expecter) PreHookQueueTransformConfigs(ctx interface{}, notificationConfigMap interface{}) *Notifier_PreHookQueueTransformConfigs_Call

PreHookQueueTransformConfigs is a helper method to define mock.On call

  • ctx context.Context
  • notificationConfigMap map[string]interface{}

func (*Notifier_Expecter) Send

func (_e *Notifier_Expecter) Send(ctx interface{}, message interface{}) *Notifier_Send_Call

Send is a helper method to define mock.On call

  • ctx context.Context
  • message notification.Message

type Notifier_GetSystemDefaultTemplate_Call

type Notifier_GetSystemDefaultTemplate_Call struct {
	*mock.Call
}

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

func (*Notifier_GetSystemDefaultTemplate_Call) Return

func (*Notifier_GetSystemDefaultTemplate_Call) Run

func (*Notifier_GetSystemDefaultTemplate_Call) RunAndReturn added in v0.6.1

type Notifier_PostHookQueueTransformConfigs_Call

type Notifier_PostHookQueueTransformConfigs_Call struct {
	*mock.Call
}

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

func (*Notifier_PostHookQueueTransformConfigs_Call) Return

func (*Notifier_PostHookQueueTransformConfigs_Call) Run

func (_c *Notifier_PostHookQueueTransformConfigs_Call) Run(run func(ctx context.Context, notificationConfigMap map[string]interface{})) *Notifier_PostHookQueueTransformConfigs_Call

func (*Notifier_PostHookQueueTransformConfigs_Call) RunAndReturn added in v0.6.1

func (_c *Notifier_PostHookQueueTransformConfigs_Call) RunAndReturn(run func(context.Context, map[string]interface{}) (map[string]interface{}, error)) *Notifier_PostHookQueueTransformConfigs_Call

type Notifier_PreHookQueueTransformConfigs_Call

type Notifier_PreHookQueueTransformConfigs_Call struct {
	*mock.Call
}

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

func (*Notifier_PreHookQueueTransformConfigs_Call) Return

func (*Notifier_PreHookQueueTransformConfigs_Call) Run

func (_c *Notifier_PreHookQueueTransformConfigs_Call) Run(run func(ctx context.Context, notificationConfigMap map[string]interface{})) *Notifier_PreHookQueueTransformConfigs_Call

func (*Notifier_PreHookQueueTransformConfigs_Call) RunAndReturn added in v0.6.1

func (_c *Notifier_PreHookQueueTransformConfigs_Call) RunAndReturn(run func(context.Context, map[string]interface{}) (map[string]interface{}, error)) *Notifier_PreHookQueueTransformConfigs_Call

type Notifier_Send_Call

type Notifier_Send_Call struct {
	*mock.Call
}

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

func (*Notifier_Send_Call) Return

func (_c *Notifier_Send_Call) Return(_a0 bool, _a1 error) *Notifier_Send_Call

func (*Notifier_Send_Call) Run

func (_c *Notifier_Send_Call) Run(run func(ctx context.Context, message notification.Message)) *Notifier_Send_Call

func (*Notifier_Send_Call) RunAndReturn added in v0.6.1

type Queuer

type Queuer struct {
	mock.Mock
}

Queuer is an autogenerated mock type for the Queuer type

func NewQueuer

func NewQueuer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Queuer

NewQueuer creates a new instance of Queuer. 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 (*Queuer) Cleanup

func (_m *Queuer) Cleanup(ctx context.Context, filter queues.FilterCleanup) error

Cleanup provides a mock function with given fields: ctx, filter

func (*Queuer) Dequeue

func (_m *Queuer) Dequeue(ctx context.Context, receiverTypes []string, batchSize int, handlerFn func(context.Context, []notification.Message) error) error

Dequeue provides a mock function with given fields: ctx, receiverTypes, batchSize, handlerFn

func (*Queuer) EXPECT

func (_m *Queuer) EXPECT() *Queuer_Expecter

func (*Queuer) Enqueue

func (_m *Queuer) Enqueue(ctx context.Context, ms ...notification.Message) error

Enqueue provides a mock function with given fields: ctx, ms

func (*Queuer) ErrorCallback

func (_m *Queuer) ErrorCallback(ctx context.Context, ms notification.Message) error

ErrorCallback provides a mock function with given fields: ctx, ms

func (*Queuer) ListMessages added in v0.7.3

func (_m *Queuer) ListMessages(ctx context.Context, notificationID string) ([]notification.Message, error)

ListMessages provides a mock function with given fields: ctx, notificationID

func (*Queuer) Stop

func (_m *Queuer) Stop(ctx context.Context) error

Stop provides a mock function with given fields: ctx

func (*Queuer) SuccessCallback

func (_m *Queuer) SuccessCallback(ctx context.Context, ms notification.Message) error

SuccessCallback provides a mock function with given fields: ctx, ms

type Queuer_Cleanup_Call

type Queuer_Cleanup_Call struct {
	*mock.Call
}

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

func (*Queuer_Cleanup_Call) Return

func (*Queuer_Cleanup_Call) Run

func (*Queuer_Cleanup_Call) RunAndReturn added in v0.6.1

type Queuer_Dequeue_Call

type Queuer_Dequeue_Call struct {
	*mock.Call
}

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

func (*Queuer_Dequeue_Call) Return

func (*Queuer_Dequeue_Call) Run

func (_c *Queuer_Dequeue_Call) Run(run func(ctx context.Context, receiverTypes []string, batchSize int, handlerFn func(context.Context, []notification.Message) error)) *Queuer_Dequeue_Call

func (*Queuer_Dequeue_Call) RunAndReturn added in v0.6.1

type Queuer_Enqueue_Call

type Queuer_Enqueue_Call struct {
	*mock.Call
}

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

func (*Queuer_Enqueue_Call) Return

func (*Queuer_Enqueue_Call) Run

func (*Queuer_Enqueue_Call) RunAndReturn added in v0.6.1

type Queuer_ErrorCallback_Call

type Queuer_ErrorCallback_Call struct {
	*mock.Call
}

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

func (*Queuer_ErrorCallback_Call) Return

func (*Queuer_ErrorCallback_Call) Run

func (*Queuer_ErrorCallback_Call) RunAndReturn added in v0.6.1

type Queuer_Expecter

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

func (*Queuer_Expecter) Cleanup

func (_e *Queuer_Expecter) Cleanup(ctx interface{}, filter interface{}) *Queuer_Cleanup_Call

Cleanup is a helper method to define mock.On call

  • ctx context.Context
  • filter queues.FilterCleanup

func (*Queuer_Expecter) Dequeue

func (_e *Queuer_Expecter) Dequeue(ctx interface{}, receiverTypes interface{}, batchSize interface{}, handlerFn interface{}) *Queuer_Dequeue_Call

Dequeue is a helper method to define mock.On call

  • ctx context.Context
  • receiverTypes []string
  • batchSize int
  • handlerFn func(context.Context , []notification.Message) error

func (*Queuer_Expecter) Enqueue

func (_e *Queuer_Expecter) Enqueue(ctx interface{}, ms ...interface{}) *Queuer_Enqueue_Call

Enqueue is a helper method to define mock.On call

  • ctx context.Context
  • ms ...notification.Message

func (*Queuer_Expecter) ErrorCallback

func (_e *Queuer_Expecter) ErrorCallback(ctx interface{}, ms interface{}) *Queuer_ErrorCallback_Call

ErrorCallback is a helper method to define mock.On call

  • ctx context.Context
  • ms notification.Message

func (*Queuer_Expecter) ListMessages added in v0.7.3

func (_e *Queuer_Expecter) ListMessages(ctx interface{}, notificationID interface{}) *Queuer_ListMessages_Call

ListMessages is a helper method to define mock.On call

  • ctx context.Context
  • notificationID string

func (*Queuer_Expecter) Stop

func (_e *Queuer_Expecter) Stop(ctx interface{}) *Queuer_Stop_Call

Stop is a helper method to define mock.On call

  • ctx context.Context

func (*Queuer_Expecter) SuccessCallback

func (_e *Queuer_Expecter) SuccessCallback(ctx interface{}, ms interface{}) *Queuer_SuccessCallback_Call

SuccessCallback is a helper method to define mock.On call

  • ctx context.Context
  • ms notification.Message

type Queuer_ListMessages_Call added in v0.7.3

type Queuer_ListMessages_Call struct {
	*mock.Call
}

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

func (*Queuer_ListMessages_Call) Return added in v0.7.3

func (*Queuer_ListMessages_Call) Run added in v0.7.3

func (_c *Queuer_ListMessages_Call) Run(run func(ctx context.Context, notificationID string)) *Queuer_ListMessages_Call

func (*Queuer_ListMessages_Call) RunAndReturn added in v0.7.3

type Queuer_Stop_Call

type Queuer_Stop_Call struct {
	*mock.Call
}

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

func (*Queuer_Stop_Call) Return

func (_c *Queuer_Stop_Call) Return(_a0 error) *Queuer_Stop_Call

func (*Queuer_Stop_Call) Run

func (_c *Queuer_Stop_Call) Run(run func(ctx context.Context)) *Queuer_Stop_Call

func (*Queuer_Stop_Call) RunAndReturn added in v0.6.1

func (_c *Queuer_Stop_Call) RunAndReturn(run func(context.Context) error) *Queuer_Stop_Call

type Queuer_SuccessCallback_Call

type Queuer_SuccessCallback_Call struct {
	*mock.Call
}

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

func (*Queuer_SuccessCallback_Call) Return

func (*Queuer_SuccessCallback_Call) Run

func (*Queuer_SuccessCallback_Call) RunAndReturn added in v0.6.1

type ReceiverService

type ReceiverService struct {
	mock.Mock
}

ReceiverService is an autogenerated mock type for the ReceiverService type

func NewReceiverService

func NewReceiverService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReceiverService

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

func (*ReceiverService) List added in v0.7.0

List provides a mock function with given fields: ctx, flt

type ReceiverService_Expecter

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

func (*ReceiverService_Expecter) List added in v0.7.0

func (_e *ReceiverService_Expecter) List(ctx interface{}, flt interface{}) *ReceiverService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt receiver.Filter

type ReceiverService_List_Call added in v0.7.0

type ReceiverService_List_Call struct {
	*mock.Call
}

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

func (*ReceiverService_List_Call) Return added in v0.7.0

func (*ReceiverService_List_Call) Run added in v0.7.0

func (*ReceiverService_List_Call) RunAndReturn added in v0.7.0

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

NewRepository creates a new instance of Repository. 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 (*Repository) Commit added in v0.7.0

func (_m *Repository) Commit(ctx context.Context) error

Commit provides a mock function with given fields: ctx

func (*Repository) Create

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

func (*Repository) EXPECT

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) List added in v0.7.4

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

func (*Repository) Rollback added in v0.7.0

func (_m *Repository) Rollback(ctx context.Context, err error) error

Rollback provides a mock function with given fields: ctx, err

func (*Repository) WithTransaction added in v0.7.0

func (_m *Repository) WithTransaction(ctx context.Context) context.Context

WithTransaction provides a mock function with given fields: ctx

type Repository_Commit_Call added in v0.7.0

type Repository_Commit_Call struct {
	*mock.Call
}

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

func (*Repository_Commit_Call) Return added in v0.7.0

func (*Repository_Commit_Call) Run added in v0.7.0

func (*Repository_Commit_Call) RunAndReturn added in v0.7.0

func (_c *Repository_Commit_Call) RunAndReturn(run func(context.Context) error) *Repository_Commit_Call

type Repository_Create_Call

type Repository_Create_Call struct {
	*mock.Call
}

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

func (*Repository_Create_Call) Return

func (*Repository_Create_Call) Run

func (*Repository_Create_Call) RunAndReturn added in v0.6.1

type Repository_Expecter

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

func (*Repository_Expecter) Commit added in v0.7.0

func (_e *Repository_Expecter) Commit(ctx interface{}) *Repository_Commit_Call

Commit is a helper method to define mock.On call

  • ctx context.Context

func (*Repository_Expecter) Create

func (_e *Repository_Expecter) Create(_a0 interface{}, _a1 interface{}) *Repository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 notification.Notification

func (*Repository_Expecter) List added in v0.7.4

func (_e *Repository_Expecter) List(_a0 interface{}, _a1 interface{}) *Repository_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 notification.Filter

func (*Repository_Expecter) Rollback added in v0.7.0

func (_e *Repository_Expecter) Rollback(ctx interface{}, err interface{}) *Repository_Rollback_Call

Rollback is a helper method to define mock.On call

  • ctx context.Context
  • err error

func (*Repository_Expecter) WithTransaction added in v0.7.0

func (_e *Repository_Expecter) WithTransaction(ctx interface{}) *Repository_WithTransaction_Call

WithTransaction is a helper method to define mock.On call

  • ctx context.Context

type Repository_List_Call added in v0.7.4

type Repository_List_Call struct {
	*mock.Call
}

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

func (*Repository_List_Call) Return added in v0.7.4

func (*Repository_List_Call) Run added in v0.7.4

func (*Repository_List_Call) RunAndReturn added in v0.7.4

type Repository_Rollback_Call added in v0.7.0

type Repository_Rollback_Call struct {
	*mock.Call
}

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

func (*Repository_Rollback_Call) Return added in v0.7.0

func (*Repository_Rollback_Call) Run added in v0.7.0

func (*Repository_Rollback_Call) RunAndReturn added in v0.7.0

type Repository_WithTransaction_Call added in v0.7.0

type Repository_WithTransaction_Call struct {
	*mock.Call
}

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

func (*Repository_WithTransaction_Call) Return added in v0.7.0

func (*Repository_WithTransaction_Call) Run added in v0.7.0

func (*Repository_WithTransaction_Call) RunAndReturn added in v0.7.0

type SilenceService

type SilenceService struct {
	mock.Mock
}

SilenceService is an autogenerated mock type for the SilenceService type

func NewSilenceService

func NewSilenceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SilenceService

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

func (*SilenceService) List

func (_m *SilenceService) List(ctx context.Context, filter silence.Filter) ([]silence.Silence, error)

List provides a mock function with given fields: ctx, filter

type SilenceService_Expecter

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

func (*SilenceService_Expecter) List

func (_e *SilenceService_Expecter) List(ctx interface{}, filter interface{}) *SilenceService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • filter silence.Filter

type SilenceService_List_Call

type SilenceService_List_Call struct {
	*mock.Call
}

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

func (*SilenceService_List_Call) Return

func (*SilenceService_List_Call) Run

func (*SilenceService_List_Call) RunAndReturn added in v0.6.1

type SubscriptionService

type SubscriptionService struct {
	mock.Mock
}

SubscriptionService is an autogenerated mock type for the SubscriptionService type

func NewSubscriptionService

func NewSubscriptionService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SubscriptionService

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

func (*SubscriptionService) MatchByLabels

func (_m *SubscriptionService) MatchByLabels(ctx context.Context, namespaceID uint64, labels map[string]string) ([]subscription.Subscription, error)

MatchByLabels provides a mock function with given fields: ctx, namespaceID, labels

type SubscriptionService_Expecter

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

func (*SubscriptionService_Expecter) MatchByLabels

func (_e *SubscriptionService_Expecter) MatchByLabels(ctx interface{}, namespaceID interface{}, labels interface{}) *SubscriptionService_MatchByLabels_Call

MatchByLabels is a helper method to define mock.On call

  • ctx context.Context
  • namespaceID uint64
  • labels map[string]string

type SubscriptionService_MatchByLabels_Call

type SubscriptionService_MatchByLabels_Call struct {
	*mock.Call
}

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

func (*SubscriptionService_MatchByLabels_Call) Return

func (*SubscriptionService_MatchByLabels_Call) Run

func (*SubscriptionService_MatchByLabels_Call) RunAndReturn added in v0.6.1

type TemplateService added in v0.7.1

type TemplateService struct {
	mock.Mock
}

TemplateService is an autogenerated mock type for the TemplateService type

func NewTemplateService added in v0.7.1

func NewTemplateService(t interface {
	mock.TestingT
	Cleanup(func())
}) *TemplateService

NewTemplateService creates a new instance of TemplateService. 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 (*TemplateService) EXPECT added in v0.7.1

func (*TemplateService) GetByName added in v0.7.1

func (_m *TemplateService) GetByName(ctx context.Context, name string) (*template.Template, error)

GetByName provides a mock function with given fields: ctx, name

type TemplateService_Expecter added in v0.7.1

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

func (*TemplateService_Expecter) GetByName added in v0.7.1

func (_e *TemplateService_Expecter) GetByName(ctx interface{}, name interface{}) *TemplateService_GetByName_Call

GetByName is a helper method to define mock.On call

  • ctx context.Context
  • name string

type TemplateService_GetByName_Call added in v0.7.1

type TemplateService_GetByName_Call struct {
	*mock.Call
}

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

func (*TemplateService_GetByName_Call) Return added in v0.7.1

func (*TemplateService_GetByName_Call) Run added in v0.7.1

func (*TemplateService_GetByName_Call) RunAndReturn added in v0.7.1

Jump to

Keyboard shortcuts

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