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: 12 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) CreateAlerts

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

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

func (*AlertService) EXPECT

func (_m *AlertService) EXPECT() *AlertService_Expecter

func (*AlertService) List

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

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

type AlertService_CreateAlerts_Call

type AlertService_CreateAlerts_Call struct {
	*mock.Call
}

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

func (*AlertService_CreateAlerts_Call) Return

func (*AlertService_CreateAlerts_Call) Run

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

func (*AlertService_CreateAlerts_Call) RunAndReturn added in v0.6.1

type AlertService_Expecter

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

func (*AlertService_Expecter) CreateAlerts

func (_e *AlertService_Expecter) CreateAlerts(ctx interface{}, providerType interface{}, providerID interface{}, namespaceID interface{}, body interface{}) *AlertService_CreateAlerts_Call

CreateAlerts is a helper method to define mock.On call

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

func (*AlertService_Expecter) List

func (_e *AlertService_Expecter) List(_a0 interface{}, _a1 interface{}) *AlertService_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 alert.Filter

type AlertService_List_Call

type AlertService_List_Call struct {
	*mock.Call
}

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

func (*AlertService_List_Call) Return

func (*AlertService_List_Call) Run

func (*AlertService_List_Call) RunAndReturn added in v0.6.1

type NamespaceService

type NamespaceService struct {
	mock.Mock
}

NamespaceService is an autogenerated mock type for the NamespaceService type

func NewNamespaceService

func NewNamespaceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *NamespaceService

NewNamespaceService creates a new instance of NamespaceService. 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 (*NamespaceService) Create

func (_m *NamespaceService) Create(_a0 context.Context, _a1 *namespace.Namespace) error

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

func (*NamespaceService) Delete

func (_m *NamespaceService) Delete(_a0 context.Context, _a1 uint64) error

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

func (*NamespaceService) EXPECT

func (*NamespaceService) Get

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

func (*NamespaceService) List

List provides a mock function with given fields: _a0

func (*NamespaceService) Update

func (_m *NamespaceService) Update(_a0 context.Context, _a1 *namespace.Namespace) error

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

type NamespaceService_Create_Call

type NamespaceService_Create_Call struct {
	*mock.Call
}

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

func (*NamespaceService_Create_Call) Return

func (*NamespaceService_Create_Call) Run

func (*NamespaceService_Create_Call) RunAndReturn added in v0.6.1

type NamespaceService_Delete_Call

type NamespaceService_Delete_Call struct {
	*mock.Call
}

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

func (*NamespaceService_Delete_Call) Return

func (*NamespaceService_Delete_Call) Run

func (*NamespaceService_Delete_Call) RunAndReturn added in v0.6.1

type NamespaceService_Expecter

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

func (*NamespaceService_Expecter) Create

func (_e *NamespaceService_Expecter) Create(_a0 interface{}, _a1 interface{}) *NamespaceService_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *namespace.Namespace

func (*NamespaceService_Expecter) Delete

func (_e *NamespaceService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *NamespaceService_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*NamespaceService_Expecter) Get

func (_e *NamespaceService_Expecter) Get(_a0 interface{}, _a1 interface{}) *NamespaceService_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*NamespaceService_Expecter) List

func (_e *NamespaceService_Expecter) List(_a0 interface{}) *NamespaceService_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context

func (*NamespaceService_Expecter) Update

func (_e *NamespaceService_Expecter) Update(_a0 interface{}, _a1 interface{}) *NamespaceService_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *namespace.Namespace

type NamespaceService_Get_Call

type NamespaceService_Get_Call struct {
	*mock.Call
}

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

func (*NamespaceService_Get_Call) Return

func (*NamespaceService_Get_Call) Run

func (*NamespaceService_Get_Call) RunAndReturn added in v0.6.1

type NamespaceService_List_Call

type NamespaceService_List_Call struct {
	*mock.Call
}

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

func (*NamespaceService_List_Call) Return

func (*NamespaceService_List_Call) Run

func (*NamespaceService_List_Call) RunAndReturn added in v0.6.1

type NamespaceService_Update_Call

type NamespaceService_Update_Call struct {
	*mock.Call
}

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

func (*NamespaceService_Update_Call) Return

func (*NamespaceService_Update_Call) Run

func (*NamespaceService_Update_Call) RunAndReturn added in v0.6.1

type NotificationService

type NotificationService struct {
	mock.Mock
}

NotificationService is an autogenerated mock type for the NotificationService type

func NewNotificationService

func NewNotificationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *NotificationService

NewNotificationService creates a new instance of NotificationService. 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 (*NotificationService) BuildFromAlerts added in v0.6.1

func (_m *NotificationService) BuildFromAlerts(alerts []alert.Alert, firingLen int, createdTime time.Time) ([]notification.Notification, error)

BuildFromAlerts provides a mock function with given fields: alerts, firingLen, createdTime

func (*NotificationService) CheckIdempotency added in v0.7.0

func (_m *NotificationService) CheckIdempotency(ctx context.Context, scope string, key string) (string, error)

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

func (*NotificationService) Dispatch

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

func (*NotificationService) EXPECT

func (*NotificationService) InsertIdempotency added in v0.7.0

func (_m *NotificationService) InsertIdempotency(ctx context.Context, scope string, key string, notificationID string) error

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

func (*NotificationService) List added in v0.7.4

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

func (*NotificationService) ListNotificationMessages added in v0.7.3

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

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

func (*NotificationService) RemoveIdempotencies

func (_m *NotificationService) RemoveIdempotencies(ctx context.Context, TTL time.Duration) error

RemoveIdempotencies provides a mock function with given fields: ctx, TTL

type NotificationService_BuildFromAlerts_Call added in v0.6.1

type NotificationService_BuildFromAlerts_Call struct {
	*mock.Call
}

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

func (*NotificationService_BuildFromAlerts_Call) Return added in v0.6.1

func (*NotificationService_BuildFromAlerts_Call) Run added in v0.6.1

func (_c *NotificationService_BuildFromAlerts_Call) Run(run func(alerts []alert.Alert, firingLen int, createdTime time.Time)) *NotificationService_BuildFromAlerts_Call

func (*NotificationService_BuildFromAlerts_Call) RunAndReturn added in v0.6.1

type NotificationService_CheckIdempotency_Call added in v0.7.0

type NotificationService_CheckIdempotency_Call struct {
	*mock.Call
}

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

func (*NotificationService_CheckIdempotency_Call) Return added in v0.7.0

func (*NotificationService_CheckIdempotency_Call) Run added in v0.7.0

func (*NotificationService_CheckIdempotency_Call) RunAndReturn added in v0.7.0

type NotificationService_Dispatch_Call

type NotificationService_Dispatch_Call struct {
	*mock.Call
}

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

func (*NotificationService_Dispatch_Call) Return

func (*NotificationService_Dispatch_Call) Run

func (*NotificationService_Dispatch_Call) RunAndReturn added in v0.6.1

type NotificationService_Expecter

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

func (*NotificationService_Expecter) BuildFromAlerts added in v0.6.1

func (_e *NotificationService_Expecter) BuildFromAlerts(alerts interface{}, firingLen interface{}, createdTime interface{}) *NotificationService_BuildFromAlerts_Call

BuildFromAlerts is a helper method to define mock.On call

  • alerts []alert.Alert
  • firingLen int
  • createdTime time.Time

func (*NotificationService_Expecter) CheckIdempotency added in v0.7.0

func (_e *NotificationService_Expecter) CheckIdempotency(ctx interface{}, scope interface{}, key interface{}) *NotificationService_CheckIdempotency_Call

CheckIdempotency is a helper method to define mock.On call

  • ctx context.Context
  • scope string
  • key string

func (*NotificationService_Expecter) Dispatch

func (_e *NotificationService_Expecter) Dispatch(ctx interface{}, n interface{}) *NotificationService_Dispatch_Call

Dispatch is a helper method to define mock.On call

  • ctx context.Context
  • n notification.Notification

func (*NotificationService_Expecter) InsertIdempotency added in v0.7.0

func (_e *NotificationService_Expecter) InsertIdempotency(ctx interface{}, scope interface{}, key interface{}, notificationID interface{}) *NotificationService_InsertIdempotency_Call

InsertIdempotency is a helper method to define mock.On call

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

func (*NotificationService_Expecter) List added in v0.7.4

func (_e *NotificationService_Expecter) List(ctx interface{}, flt interface{}) *NotificationService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt notification.Filter

func (*NotificationService_Expecter) ListNotificationMessages added in v0.7.3

func (_e *NotificationService_Expecter) ListNotificationMessages(ctx interface{}, notificationID interface{}) *NotificationService_ListNotificationMessages_Call

ListNotificationMessages is a helper method to define mock.On call

  • ctx context.Context
  • notificationID string

func (*NotificationService_Expecter) RemoveIdempotencies

func (_e *NotificationService_Expecter) RemoveIdempotencies(ctx interface{}, TTL interface{}) *NotificationService_RemoveIdempotencies_Call

RemoveIdempotencies is a helper method to define mock.On call

  • ctx context.Context
  • TTL time.Duration

type NotificationService_InsertIdempotency_Call added in v0.7.0

type NotificationService_InsertIdempotency_Call struct {
	*mock.Call
}

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

func (*NotificationService_InsertIdempotency_Call) Return added in v0.7.0

func (*NotificationService_InsertIdempotency_Call) Run added in v0.7.0

func (*NotificationService_InsertIdempotency_Call) RunAndReturn added in v0.7.0

type NotificationService_ListNotificationMessages_Call added in v0.7.3

type NotificationService_ListNotificationMessages_Call struct {
	*mock.Call
}

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

func (*NotificationService_ListNotificationMessages_Call) Return added in v0.7.3

func (*NotificationService_ListNotificationMessages_Call) Run added in v0.7.3

func (*NotificationService_ListNotificationMessages_Call) RunAndReturn added in v0.7.3

type NotificationService_List_Call added in v0.7.4

type NotificationService_List_Call struct {
	*mock.Call
}

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

func (*NotificationService_List_Call) Return added in v0.7.4

func (*NotificationService_List_Call) Run added in v0.7.4

func (*NotificationService_List_Call) RunAndReturn added in v0.7.4

type NotificationService_RemoveIdempotencies_Call

type NotificationService_RemoveIdempotencies_Call struct {
	*mock.Call
}

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

func (*NotificationService_RemoveIdempotencies_Call) Return

func (*NotificationService_RemoveIdempotencies_Call) Run

func (*NotificationService_RemoveIdempotencies_Call) RunAndReturn added in v0.6.1

type ProviderService

type ProviderService struct {
	mock.Mock
}

ProviderService is an autogenerated mock type for the ProviderService type

func NewProviderService

func NewProviderService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProviderService

NewProviderService creates a new instance of ProviderService. 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 (*ProviderService) Create

func (_m *ProviderService) Create(_a0 context.Context, _a1 *provider.Provider) error

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

func (*ProviderService) Delete

func (_m *ProviderService) Delete(_a0 context.Context, _a1 uint64) error

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

func (*ProviderService) EXPECT

func (*ProviderService) Get

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

func (*ProviderService) List

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

func (*ProviderService) Update

func (_m *ProviderService) Update(_a0 context.Context, _a1 *provider.Provider) error

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

type ProviderService_Create_Call

type ProviderService_Create_Call struct {
	*mock.Call
}

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

func (*ProviderService_Create_Call) Return

func (*ProviderService_Create_Call) Run

func (*ProviderService_Create_Call) RunAndReturn added in v0.6.1

type ProviderService_Delete_Call

type ProviderService_Delete_Call struct {
	*mock.Call
}

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

func (*ProviderService_Delete_Call) Return

func (*ProviderService_Delete_Call) Run

func (*ProviderService_Delete_Call) RunAndReturn added in v0.6.1

type ProviderService_Expecter

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

func (*ProviderService_Expecter) Create

func (_e *ProviderService_Expecter) Create(_a0 interface{}, _a1 interface{}) *ProviderService_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *provider.Provider

func (*ProviderService_Expecter) Delete

func (_e *ProviderService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *ProviderService_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*ProviderService_Expecter) Get

func (_e *ProviderService_Expecter) Get(_a0 interface{}, _a1 interface{}) *ProviderService_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*ProviderService_Expecter) List

func (_e *ProviderService_Expecter) List(_a0 interface{}, _a1 interface{}) *ProviderService_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 provider.Filter

func (*ProviderService_Expecter) Update

func (_e *ProviderService_Expecter) Update(_a0 interface{}, _a1 interface{}) *ProviderService_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *provider.Provider

type ProviderService_Get_Call

type ProviderService_Get_Call struct {
	*mock.Call
}

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

func (*ProviderService_Get_Call) Return

func (*ProviderService_Get_Call) Run

func (*ProviderService_Get_Call) RunAndReturn added in v0.6.1

type ProviderService_List_Call

type ProviderService_List_Call struct {
	*mock.Call
}

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

func (*ProviderService_List_Call) Return

func (*ProviderService_List_Call) Run

func (*ProviderService_List_Call) RunAndReturn added in v0.6.1

type ProviderService_Update_Call

type ProviderService_Update_Call struct {
	*mock.Call
}

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

func (*ProviderService_Update_Call) Return

func (*ProviderService_Update_Call) Run

func (*ProviderService_Update_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) Create

func (_m *ReceiverService) Create(ctx context.Context, rcv *receiver.Receiver) error

Create provides a mock function with given fields: ctx, rcv

func (*ReceiverService) Delete

func (_m *ReceiverService) Delete(ctx context.Context, id uint64) error

Delete provides a mock function with given fields: ctx, id

func (*ReceiverService) EXPECT

func (*ReceiverService) Get

Get provides a mock function with given fields: ctx, id, gopts

func (*ReceiverService) List

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

func (*ReceiverService) Update

func (_m *ReceiverService) Update(ctx context.Context, rcv *receiver.Receiver) error

Update provides a mock function with given fields: ctx, rcv

type ReceiverService_Create_Call

type ReceiverService_Create_Call struct {
	*mock.Call
}

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

func (*ReceiverService_Create_Call) Return

func (*ReceiverService_Create_Call) Run

func (*ReceiverService_Create_Call) RunAndReturn added in v0.6.1

type ReceiverService_Delete_Call

type ReceiverService_Delete_Call struct {
	*mock.Call
}

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

func (*ReceiverService_Delete_Call) Return

func (*ReceiverService_Delete_Call) Run

func (*ReceiverService_Delete_Call) RunAndReturn added in v0.6.1

type ReceiverService_Expecter

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

func (*ReceiverService_Expecter) Create

func (_e *ReceiverService_Expecter) Create(ctx interface{}, rcv interface{}) *ReceiverService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • rcv *receiver.Receiver

func (*ReceiverService_Expecter) Delete

func (_e *ReceiverService_Expecter) Delete(ctx interface{}, id interface{}) *ReceiverService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id uint64

func (*ReceiverService_Expecter) Get

func (_e *ReceiverService_Expecter) Get(ctx interface{}, id interface{}, gopts ...interface{}) *ReceiverService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id uint64
  • gopts ...receiver.GetOption

func (*ReceiverService_Expecter) List

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

func (*ReceiverService_Expecter) Update

func (_e *ReceiverService_Expecter) Update(ctx interface{}, rcv interface{}) *ReceiverService_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • rcv *receiver.Receiver

type ReceiverService_Get_Call

type ReceiverService_Get_Call struct {
	*mock.Call
}

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

func (*ReceiverService_Get_Call) Return

func (*ReceiverService_Get_Call) Run

func (*ReceiverService_Get_Call) RunAndReturn added in v0.6.1

type ReceiverService_List_Call

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

func (*ReceiverService_List_Call) Run

func (*ReceiverService_List_Call) RunAndReturn added in v0.6.1

type ReceiverService_Update_Call

type ReceiverService_Update_Call struct {
	*mock.Call
}

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

func (*ReceiverService_Update_Call) Return

func (*ReceiverService_Update_Call) Run

func (*ReceiverService_Update_Call) RunAndReturn added in v0.6.1

type RuleService

type RuleService struct {
	mock.Mock
}

RuleService is an autogenerated mock type for the RuleService type

func NewRuleService

func NewRuleService(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuleService

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

func (_m *RuleService) EXPECT() *RuleService_Expecter

func (*RuleService) List

func (_m *RuleService) List(_a0 context.Context, _a1 rule.Filter) ([]rule.Rule, error)

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

func (*RuleService) Upsert

func (_m *RuleService) Upsert(_a0 context.Context, _a1 *rule.Rule) error

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

type RuleService_Expecter

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

func (*RuleService_Expecter) List

func (_e *RuleService_Expecter) List(_a0 interface{}, _a1 interface{}) *RuleService_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 rule.Filter

func (*RuleService_Expecter) Upsert

func (_e *RuleService_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *RuleService_Upsert_Call

Upsert is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *rule.Rule

type RuleService_List_Call

type RuleService_List_Call struct {
	*mock.Call
}

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

func (*RuleService_List_Call) Return

func (_c *RuleService_List_Call) Return(_a0 []rule.Rule, _a1 error) *RuleService_List_Call

func (*RuleService_List_Call) Run

func (*RuleService_List_Call) RunAndReturn added in v0.6.1

type RuleService_Upsert_Call

type RuleService_Upsert_Call struct {
	*mock.Call
}

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

func (*RuleService_Upsert_Call) Return

func (*RuleService_Upsert_Call) Run

func (*RuleService_Upsert_Call) RunAndReturn added in v0.6.1

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) Create

func (_m *SilenceService) Create(ctx context.Context, sil silence.Silence) (string, error)

Create provides a mock function with given fields: ctx, sil

func (*SilenceService) Delete

func (_m *SilenceService) Delete(ctx context.Context, id string) error

Delete provides a mock function with given fields: ctx, id

func (*SilenceService) EXPECT

func (*SilenceService) Get

Get provides a mock function with given fields: ctx, id

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_Create_Call

type SilenceService_Create_Call struct {
	*mock.Call
}

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

func (*SilenceService_Create_Call) Return

func (*SilenceService_Create_Call) Run

func (*SilenceService_Create_Call) RunAndReturn added in v0.6.1

type SilenceService_Delete_Call

type SilenceService_Delete_Call struct {
	*mock.Call
}

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

func (*SilenceService_Delete_Call) Return

func (*SilenceService_Delete_Call) Run

func (*SilenceService_Delete_Call) RunAndReturn added in v0.6.1

type SilenceService_Expecter

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

func (*SilenceService_Expecter) Create

func (_e *SilenceService_Expecter) Create(ctx interface{}, sil interface{}) *SilenceService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • sil silence.Silence

func (*SilenceService_Expecter) Delete

func (_e *SilenceService_Expecter) Delete(ctx interface{}, id interface{}) *SilenceService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*SilenceService_Expecter) Get

func (_e *SilenceService_Expecter) Get(ctx interface{}, id interface{}) *SilenceService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

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_Get_Call

type SilenceService_Get_Call struct {
	*mock.Call
}

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

func (*SilenceService_Get_Call) Return

func (*SilenceService_Get_Call) Run

func (*SilenceService_Get_Call) RunAndReturn added in v0.6.1

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) Create

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

func (*SubscriptionService) Delete

func (_m *SubscriptionService) Delete(_a0 context.Context, _a1 uint64) error

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

func (*SubscriptionService) EXPECT

func (*SubscriptionService) Get

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

func (*SubscriptionService) List

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

func (*SubscriptionService) Update

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

type SubscriptionService_Create_Call

type SubscriptionService_Create_Call struct {
	*mock.Call
}

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

func (*SubscriptionService_Create_Call) Return

func (*SubscriptionService_Create_Call) Run

func (*SubscriptionService_Create_Call) RunAndReturn added in v0.6.1

type SubscriptionService_Delete_Call

type SubscriptionService_Delete_Call struct {
	*mock.Call
}

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

func (*SubscriptionService_Delete_Call) Return

func (*SubscriptionService_Delete_Call) Run

func (*SubscriptionService_Delete_Call) RunAndReturn added in v0.6.1

type SubscriptionService_Expecter

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

func (*SubscriptionService_Expecter) Create

func (_e *SubscriptionService_Expecter) Create(_a0 interface{}, _a1 interface{}) *SubscriptionService_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *subscription.Subscription

func (*SubscriptionService_Expecter) Delete

func (_e *SubscriptionService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *SubscriptionService_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*SubscriptionService_Expecter) Get

func (_e *SubscriptionService_Expecter) Get(_a0 interface{}, _a1 interface{}) *SubscriptionService_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*SubscriptionService_Expecter) List

func (_e *SubscriptionService_Expecter) List(_a0 interface{}, _a1 interface{}) *SubscriptionService_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 subscription.Filter

func (*SubscriptionService_Expecter) Update

func (_e *SubscriptionService_Expecter) Update(_a0 interface{}, _a1 interface{}) *SubscriptionService_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *subscription.Subscription

type SubscriptionService_Get_Call

type SubscriptionService_Get_Call struct {
	*mock.Call
}

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

func (*SubscriptionService_Get_Call) Return

func (*SubscriptionService_Get_Call) Run

func (*SubscriptionService_Get_Call) RunAndReturn added in v0.6.1

type SubscriptionService_List_Call

type SubscriptionService_List_Call struct {
	*mock.Call
}

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

func (*SubscriptionService_List_Call) Return

func (*SubscriptionService_List_Call) Run

func (*SubscriptionService_List_Call) RunAndReturn added in v0.6.1

type SubscriptionService_Update_Call

type SubscriptionService_Update_Call struct {
	*mock.Call
}

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

func (*SubscriptionService_Update_Call) Return

func (*SubscriptionService_Update_Call) Run

func (*SubscriptionService_Update_Call) RunAndReturn added in v0.6.1

type TemplateService

type TemplateService struct {
	mock.Mock
}

TemplateService is an autogenerated mock type for the TemplateService type

func NewTemplateService

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) Delete

func (_m *TemplateService) Delete(_a0 context.Context, _a1 string) error

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

func (*TemplateService) EXPECT

func (*TemplateService) GetByName

func (_m *TemplateService) GetByName(_a0 context.Context, _a1 string) (*template.Template, error)

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

func (*TemplateService) List

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

func (*TemplateService) Render

func (_m *TemplateService) Render(_a0 context.Context, _a1 string, _a2 map[string]string) (string, error)

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

func (*TemplateService) Upsert

func (_m *TemplateService) Upsert(_a0 context.Context, _a1 *template.Template) error

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

type TemplateService_Delete_Call

type TemplateService_Delete_Call struct {
	*mock.Call
}

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

func (*TemplateService_Delete_Call) Return

func (*TemplateService_Delete_Call) Run

func (*TemplateService_Delete_Call) RunAndReturn added in v0.6.1

type TemplateService_Expecter

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

func (*TemplateService_Expecter) Delete

func (_e *TemplateService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *TemplateService_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*TemplateService_Expecter) GetByName

func (_e *TemplateService_Expecter) GetByName(_a0 interface{}, _a1 interface{}) *TemplateService_GetByName_Call

GetByName is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*TemplateService_Expecter) List

func (_e *TemplateService_Expecter) List(_a0 interface{}, _a1 interface{}) *TemplateService_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 template.Filter

func (*TemplateService_Expecter) Render

func (_e *TemplateService_Expecter) Render(_a0 interface{}, _a1 interface{}, _a2 interface{}) *TemplateService_Render_Call

Render is a helper method to define mock.On call

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

func (*TemplateService_Expecter) Upsert

func (_e *TemplateService_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *TemplateService_Upsert_Call

Upsert is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *template.Template

type TemplateService_GetByName_Call

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

func (*TemplateService_GetByName_Call) Run

func (*TemplateService_GetByName_Call) RunAndReturn added in v0.6.1

type TemplateService_List_Call

type TemplateService_List_Call struct {
	*mock.Call
}

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

func (*TemplateService_List_Call) Return

func (*TemplateService_List_Call) Run

func (*TemplateService_List_Call) RunAndReturn added in v0.6.1

type TemplateService_Render_Call

type TemplateService_Render_Call struct {
	*mock.Call
}

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

func (*TemplateService_Render_Call) Return

func (*TemplateService_Render_Call) Run

func (*TemplateService_Render_Call) RunAndReturn added in v0.6.1

type TemplateService_Upsert_Call

type TemplateService_Upsert_Call struct {
	*mock.Call
}

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

func (*TemplateService_Upsert_Call) Return

func (*TemplateService_Upsert_Call) Run

func (*TemplateService_Upsert_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