mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 10 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 mockConstructorTestingTNewAlertService) *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.

func (*AlertService) CreateAlerts

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

CreateAlerts provides a mock function with given fields: ctx, providerType, providerID, 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, body map[string]interface{})) *AlertService_CreateAlerts_Call

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{}, body interface{}) *AlertService_CreateAlerts_Call

CreateAlerts is a helper method to define mock.On call

  • ctx context.Context
  • providerType string
  • providerID 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

type NamespaceService

type NamespaceService struct {
	mock.Mock
}

NamespaceService is an autogenerated mock type for the NamespaceService type

func NewNamespaceService

func NewNamespaceService(t mockConstructorTestingTNewNamespaceService) *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.

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

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

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

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

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

type NotificationService

type NotificationService struct {
	mock.Mock
}

NotificationService is an autogenerated mock type for the NotificationService type

func NewNotificationService

func NewNotificationService(t mockConstructorTestingTNewNotificationService) *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.

func (*NotificationService) DispatchToReceiver

func (_m *NotificationService) DispatchToReceiver(ctx context.Context, n notification.Notification, receiverID uint64) error

DispatchToReceiver provides a mock function with given fields: ctx, n, receiverID

func (*NotificationService) DispatchToSubscribers

func (_m *NotificationService) DispatchToSubscribers(ctx context.Context, n notification.Notification) error

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

func (*NotificationService) EXPECT

type NotificationService_DispatchToReceiver_Call

type NotificationService_DispatchToReceiver_Call struct {
	*mock.Call
}

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

func (*NotificationService_DispatchToReceiver_Call) Return

func (*NotificationService_DispatchToReceiver_Call) Run

type NotificationService_DispatchToSubscribers_Call

type NotificationService_DispatchToSubscribers_Call struct {
	*mock.Call
}

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

func (*NotificationService_DispatchToSubscribers_Call) Return

func (*NotificationService_DispatchToSubscribers_Call) Run

type NotificationService_Expecter

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

func (*NotificationService_Expecter) DispatchToReceiver

func (_e *NotificationService_Expecter) DispatchToReceiver(ctx interface{}, n interface{}, receiverID interface{}) *NotificationService_DispatchToReceiver_Call

DispatchToReceiver is a helper method to define mock.On call

  • ctx context.Context
  • n notification.Notification
  • receiverID uint64

func (*NotificationService_Expecter) DispatchToSubscribers

func (_e *NotificationService_Expecter) DispatchToSubscribers(ctx interface{}, n interface{}) *NotificationService_DispatchToSubscribers_Call

DispatchToSubscribers is a helper method to define mock.On call

  • ctx context.Context
  • n notification.Notification

type ProviderService

type ProviderService struct {
	mock.Mock
}

ProviderService is an autogenerated mock type for the ProviderService type

func NewProviderService

func NewProviderService(t mockConstructorTestingTNewProviderService) *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.

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

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

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

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

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

type ReceiverService

type ReceiverService struct {
	mock.Mock
}

ReceiverService is an autogenerated mock type for the ReceiverService type

func NewReceiverService

func NewReceiverService(t mockConstructorTestingTNewReceiverService) *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.

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

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

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

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{}) *ReceiverService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id uint64

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

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

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

type RuleService

type RuleService struct {
	mock.Mock
}

RuleService is an autogenerated mock type for the RuleService type

func NewRuleService

func NewRuleService(t mockConstructorTestingTNewRuleService) *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.

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

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

type SubscriptionService

type SubscriptionService struct {
	mock.Mock
}

SubscriptionService is an autogenerated mock type for the SubscriptionService type

func NewSubscriptionService

func NewSubscriptionService(t mockConstructorTestingTNewSubscriptionService) *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.

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

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

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

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

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

type TemplateService

type TemplateService struct {
	mock.Mock
}

TemplateService is an autogenerated mock type for the TemplateService type

func NewTemplateService

func NewTemplateService(t mockConstructorTestingTNewTemplateService) *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.

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

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

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

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

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

Jump to

Keyboard shortcuts

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