mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore() (*gorm.DB, sqlmock.Sqlmock, error)

NewStore returns store mock

Types

type AlertService added in v0.3.0

type AlertService struct {
	mock.Mock
}

AlertService is an autogenerated mock type for the AlertService type

func (*AlertService) Create added in v0.3.0

func (_m *AlertService) Create(_a0 *domain.Alerts) ([]domain.Alert, error)

Create provides a mock function with given fields: _a0

func (*AlertService) Get added in v0.3.0

func (_m *AlertService) Get(_a0 string, _a1 uint64, _a2 uint64, _a3 uint64) ([]domain.Alert, error)

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

func (*AlertService) Migrate added in v0.3.0

func (_m *AlertService) Migrate() error

Migrate provides a mock function with given fields:

type AlertmanagerService added in v0.3.0

type AlertmanagerService struct {
	mock.Mock
}

AlertmanagerService is an autogenerated mock type for the AlertmanagerService type

func (*AlertmanagerService) Get added in v0.3.0

func (_m *AlertmanagerService) Get(teamName string) (domain.AlertCredential, error)

Get provides a mock function with given fields: teamName

func (*AlertmanagerService) Migrate added in v0.3.0

func (_m *AlertmanagerService) Migrate() error

Migrate provides a mock function with given fields:

func (*AlertmanagerService) Upsert added in v0.3.0

func (_m *AlertmanagerService) Upsert(credential domain.AlertCredential) error

Upsert provides a mock function with given fields: credential

type CodeExchangeService added in v0.2.0

type CodeExchangeService struct {
	mock.Mock
}

CodeExchangeService is an autogenerated mock type for the CodeExchangeService type

func (*CodeExchangeService) Exchange added in v0.2.0

Exchange provides a mock function with given fields: payload

func (*CodeExchangeService) GetToken added in v0.2.0

func (_m *CodeExchangeService) GetToken(_a0 string) (string, error)

GetToken provides a mock function with given fields: _a0

func (*CodeExchangeService) Migrate added in v0.2.0

func (_m *CodeExchangeService) Migrate() error

Migrate provides a mock function with given fields:

type NamespaceService added in v0.3.0

type NamespaceService struct {
	mock.Mock
}

NamespaceService is an autogenerated mock type for the NamespaceService type

func (*NamespaceService) CreateNamespace added in v0.3.0

func (_m *NamespaceService) CreateNamespace(_a0 *domain.Namespace) error

CreateNamespace provides a mock function with given fields: _a0

func (*NamespaceService) DeleteNamespace added in v0.3.0

func (_m *NamespaceService) DeleteNamespace(_a0 uint64) error

DeleteNamespace provides a mock function with given fields: _a0

func (*NamespaceService) GetNamespace added in v0.3.0

func (_m *NamespaceService) GetNamespace(_a0 uint64) (*domain.Namespace, error)

GetNamespace provides a mock function with given fields: _a0

func (*NamespaceService) ListNamespaces added in v0.3.0

func (_m *NamespaceService) ListNamespaces() ([]*domain.Namespace, error)

ListNamespaces provides a mock function with given fields:

func (*NamespaceService) Migrate added in v0.3.0

func (_m *NamespaceService) Migrate() error

Migrate provides a mock function with given fields:

func (*NamespaceService) UpdateNamespace added in v0.3.0

func (_m *NamespaceService) UpdateNamespace(_a0 *domain.Namespace) error

UpdateNamespace provides a mock function with given fields: _a0

type ProviderService added in v0.3.0

type ProviderService struct {
	mock.Mock
}

ProviderService is an autogenerated mock type for the ProviderService type

func (*ProviderService) CreateProvider added in v0.3.0

func (_m *ProviderService) CreateProvider(_a0 *domain.Provider) (*domain.Provider, error)

CreateProvider provides a mock function with given fields: _a0

func (*ProviderService) DeleteProvider added in v0.3.0

func (_m *ProviderService) DeleteProvider(_a0 uint64) error

DeleteProvider provides a mock function with given fields: _a0

func (*ProviderService) GetProvider added in v0.3.0

func (_m *ProviderService) GetProvider(_a0 uint64) (*domain.Provider, error)

GetProvider provides a mock function with given fields: _a0

func (*ProviderService) ListProviders added in v0.3.0

func (_m *ProviderService) ListProviders(_a0 map[string]interface{}) ([]*domain.Provider, error)

ListProviders provides a mock function with given fields: _a0

func (*ProviderService) Migrate added in v0.3.0

func (_m *ProviderService) Migrate() error

Migrate provides a mock function with given fields:

func (*ProviderService) UpdateProvider added in v0.3.0

func (_m *ProviderService) UpdateProvider(_a0 *domain.Provider) (*domain.Provider, error)

UpdateProvider provides a mock function with given fields: _a0

type ReceiverService added in v0.3.0

type ReceiverService struct {
	mock.Mock
}

ReceiverService is an autogenerated mock type for the ReceiverService type

func (*ReceiverService) CreateReceiver added in v0.3.0

func (_m *ReceiverService) CreateReceiver(_a0 *domain.Receiver) error

CreateReceiver provides a mock function with given fields: _a0

func (*ReceiverService) DeleteReceiver added in v0.3.0

func (_m *ReceiverService) DeleteReceiver(_a0 uint64) error

DeleteReceiver provides a mock function with given fields: _a0

func (*ReceiverService) GetReceiver added in v0.3.0

func (_m *ReceiverService) GetReceiver(_a0 uint64) (*domain.Receiver, error)

GetReceiver provides a mock function with given fields: _a0

func (*ReceiverService) ListReceivers added in v0.3.0

func (_m *ReceiverService) ListReceivers() ([]*domain.Receiver, error)

ListReceivers provides a mock function with given fields:

func (*ReceiverService) Migrate added in v0.3.0

func (_m *ReceiverService) Migrate() error

Migrate provides a mock function with given fields:

func (*ReceiverService) UpdateReceiver added in v0.3.0

func (_m *ReceiverService) UpdateReceiver(_a0 *domain.Receiver) error

UpdateReceiver provides a mock function with given fields: _a0

type RuleService

type RuleService struct {
	mock.Mock
}

RuleService is an autogenerated mock type for the RuleService type

func (*RuleService) Get

func (_m *RuleService) Get(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, _a5 uint64) ([]domain.Rule, error)

Get provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

func (*RuleService) Migrate

func (_m *RuleService) Migrate() error

Migrate provides a mock function with given fields:

func (*RuleService) Upsert

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

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

type SlackNotifierService added in v0.2.0

type SlackNotifierService struct {
	mock.Mock
}

SlackNotifierService is an autogenerated mock type for the SlackNotifierService type

func (*SlackNotifierService) Notify added in v0.2.0

Notify provides a mock function with given fields: _a0

type SlackService added in v0.2.0

type SlackService struct {
	mock.Mock
}

SlackService is an autogenerated mock type for the SlackService type

func (*SlackService) GetJoinedChannelsList added in v0.2.0

func (_m *SlackService) GetJoinedChannelsList() ([]slack.Channel, error)

GetJoinedChannelsList provides a mock function with given fields:

func (*SlackService) GetUserByEmail added in v0.2.0

func (_m *SlackService) GetUserByEmail(_a0 string) (*slack.User, error)

GetUserByEmail provides a mock function with given fields: _a0

func (*SlackService) SendMessage added in v0.2.0

func (_m *SlackService) SendMessage(_a0 string, _a1 ...slack.MsgOption) (string, string, string, error)

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

type SubscriptionService added in v0.3.0

type SubscriptionService struct {
	mock.Mock
}

SubscriptionService is an autogenerated mock type for the SubscriptionService type

func (*SubscriptionService) CreateSubscription added in v0.3.0

func (_m *SubscriptionService) CreateSubscription(_a0 context.Context, _a1 *domain.Subscription) error

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

func (*SubscriptionService) DeleteSubscription added in v0.3.0

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

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

func (*SubscriptionService) GetSubscription added in v0.3.0

func (_m *SubscriptionService) GetSubscription(_a0 context.Context, _a1 uint64) (*domain.Subscription, error)

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

func (*SubscriptionService) ListSubscriptions added in v0.3.0

func (_m *SubscriptionService) ListSubscriptions(_a0 context.Context) ([]*domain.Subscription, error)

ListSubscriptions provides a mock function with given fields: _a0

func (*SubscriptionService) Migrate added in v0.3.0

func (_m *SubscriptionService) Migrate() error

Migrate provides a mock function with given fields:

func (*SubscriptionService) UpdateSubscription added in v0.3.0

func (_m *SubscriptionService) UpdateSubscription(_a0 context.Context, _a1 *domain.Subscription) error

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

type TemplatesService

type TemplatesService struct {
	mock.Mock
}

TemplatesService is an autogenerated mock type for the TemplatesService type

func (*TemplatesService) Delete

func (_m *TemplatesService) Delete(_a0 string) error

Delete provides a mock function with given fields: _a0

func (*TemplatesService) GetByName

func (_m *TemplatesService) GetByName(_a0 string) (*domain.Template, error)

GetByName provides a mock function with given fields: _a0

func (*TemplatesService) Index

func (_m *TemplatesService) Index(_a0 string) ([]domain.Template, error)

Index provides a mock function with given fields: _a0

func (*TemplatesService) Migrate

func (_m *TemplatesService) Migrate() error

Migrate provides a mock function with given fields:

func (*TemplatesService) Render

func (_m *TemplatesService) Render(_a0 string, _a1 map[string]string) (string, error)

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

func (*TemplatesService) Upsert

func (_m *TemplatesService) Upsert(_a0 *domain.Template) error

Upsert provides a mock function with given fields: _a0

type WorkspaceService added in v0.2.0

type WorkspaceService struct {
	mock.Mock
}

WorkspaceService is an autogenerated mock type for the WorkspaceService type

func (*WorkspaceService) GetChannels added in v0.2.0

func (_m *WorkspaceService) GetChannels(_a0 string) ([]domain.Channel, error)

GetChannels provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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