mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeFactory

type FakeFactory struct {
	Api    api.API
	Err    error
	ApiMap map[string]api.API
}

func (*FakeFactory) GetAPI

func (f *FakeFactory) GetAPI() (api.API, error)

func (*FakeFactory) GetAPIsFromNamespace added in v0.5.0

func (f *FakeFactory) GetAPIsFromNamespace(namespace string) (map[string]api.API, error)

type MockAPI

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

MockAPI is a mock of API interface.

func NewMockAPI

func NewMockAPI(ctrl *gomock.Controller) *MockAPI

NewMockAPI creates a new mock instance.

func (*MockAPI) AddNotificationService

func (m *MockAPI) AddNotificationService(arg0 string, arg1 services.NotificationService)

AddNotificationService mocks base method.

func (*MockAPI) EXPECT

func (m *MockAPI) EXPECT() *MockAPIMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAPI) GetConfig

func (m *MockAPI) GetConfig() api.Config

GetConfig mocks base method.

func (*MockAPI) GetNotificationServices

func (m *MockAPI) GetNotificationServices() map[string]services.NotificationService

GetNotificationServices mocks base method.

func (*MockAPI) RunTrigger

func (m *MockAPI) RunTrigger(arg0 string, arg1 map[string]interface{}) ([]triggers.ConditionResult, error)

RunTrigger mocks base method.

func (*MockAPI) Send

func (m *MockAPI) Send(arg0 map[string]interface{}, arg1 []string, arg2 services.Destination) error

Send mocks base method.

type MockAPIMockRecorder

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

MockAPIMockRecorder is the mock recorder for MockAPI.

func (*MockAPIMockRecorder) AddNotificationService

func (mr *MockAPIMockRecorder) AddNotificationService(arg0, arg1 interface{}) *gomock.Call

AddNotificationService indicates an expected call of AddNotificationService.

func (*MockAPIMockRecorder) GetConfig

func (mr *MockAPIMockRecorder) GetConfig() *gomock.Call

GetConfig indicates an expected call of GetConfig.

func (*MockAPIMockRecorder) GetNotificationServices

func (mr *MockAPIMockRecorder) GetNotificationServices() *gomock.Call

GetNotificationServices indicates an expected call of GetNotificationServices.

func (*MockAPIMockRecorder) RunTrigger

func (mr *MockAPIMockRecorder) RunTrigger(arg0, arg1 interface{}) *gomock.Call

RunTrigger indicates an expected call of RunTrigger.

func (*MockAPIMockRecorder) Send

func (mr *MockAPIMockRecorder) Send(arg0, arg1, arg2 interface{}) *gomock.Call

Send indicates an expected call of Send.

Jump to

Keyboard shortcuts

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