mocks

package
v1.2.38 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: elastic_app_search_service.go

Generated by this command:

mockgen -source elastic_app_search_service.go -destination mocks/elastic_app_search_service_mock.go -package mocks

Package mocks is a generated GoMock package.

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 MockElasticSearchService

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

MockElasticSearchService is a mock of ElasticSearchService interface.

func NewMockElasticSearchService

func NewMockElasticSearchService(ctrl *gomock.Controller) *MockElasticSearchService

NewMockElasticSearchService creates a new mock instance.

func (*MockElasticSearchService) AddSourceEngineToMetaEngine

func (m *MockElasticSearchService) AddSourceEngineToMetaEngine(sourceName, metaName string) (*elastic.EngineDetail, error)

AddSourceEngineToMetaEngine mocks base method.

func (*MockElasticSearchService) CreateDocuments

func (m *MockElasticSearchService) CreateDocuments(docs []elastic.DeviceDefinitionSearchDoc, engineName string) ([]elastic.CreateDocsResp, error)

CreateDocuments mocks base method.

func (*MockElasticSearchService) CreateDocumentsBatched

func (m *MockElasticSearchService) CreateDocumentsBatched(docs []elastic.DeviceDefinitionSearchDoc, engineName string) error

CreateDocumentsBatched mocks base method.

func (*MockElasticSearchService) CreateEngine

func (m *MockElasticSearchService) CreateEngine(name string, metaSource *string) (*elastic.EngineDetail, error)

CreateEngine mocks base method.

func (*MockElasticSearchService) DeleteEngine

func (m *MockElasticSearchService) DeleteEngine(name string) error

DeleteEngine mocks base method.

func (*MockElasticSearchService) EXPECT

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

func (*MockElasticSearchService) GetEngines

GetEngines mocks base method.

func (*MockElasticSearchService) GetMetaEngineName

func (m *MockElasticSearchService) GetMetaEngineName() string

GetMetaEngineName mocks base method.

func (*MockElasticSearchService) LoadDeviceDefinitions

func (m *MockElasticSearchService) LoadDeviceDefinitions() error

LoadDeviceDefinitions mocks base method.

func (*MockElasticSearchService) RemoveSourceEngine

func (m *MockElasticSearchService) RemoveSourceEngine(sourceName, metaName string) (*elastic.EngineDetail, error)

RemoveSourceEngine mocks base method.

func (*MockElasticSearchService) UpdateSearchSettingsForDeviceDefs

func (m *MockElasticSearchService) UpdateSearchSettingsForDeviceDefs(engineName string) error

UpdateSearchSettingsForDeviceDefs mocks base method.

type MockElasticSearchServiceMockRecorder

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

MockElasticSearchServiceMockRecorder is the mock recorder for MockElasticSearchService.

func (*MockElasticSearchServiceMockRecorder) AddSourceEngineToMetaEngine

func (mr *MockElasticSearchServiceMockRecorder) AddSourceEngineToMetaEngine(sourceName, metaName interface{}) *gomock.Call

AddSourceEngineToMetaEngine indicates an expected call of AddSourceEngineToMetaEngine.

func (*MockElasticSearchServiceMockRecorder) CreateDocuments

func (mr *MockElasticSearchServiceMockRecorder) CreateDocuments(docs, engineName interface{}) *gomock.Call

CreateDocuments indicates an expected call of CreateDocuments.

func (*MockElasticSearchServiceMockRecorder) CreateDocumentsBatched

func (mr *MockElasticSearchServiceMockRecorder) CreateDocumentsBatched(docs, engineName interface{}) *gomock.Call

CreateDocumentsBatched indicates an expected call of CreateDocumentsBatched.

func (*MockElasticSearchServiceMockRecorder) CreateEngine

func (mr *MockElasticSearchServiceMockRecorder) CreateEngine(name, metaSource interface{}) *gomock.Call

CreateEngine indicates an expected call of CreateEngine.

func (*MockElasticSearchServiceMockRecorder) DeleteEngine

func (mr *MockElasticSearchServiceMockRecorder) DeleteEngine(name interface{}) *gomock.Call

DeleteEngine indicates an expected call of DeleteEngine.

func (*MockElasticSearchServiceMockRecorder) GetEngines

GetEngines indicates an expected call of GetEngines.

func (*MockElasticSearchServiceMockRecorder) GetMetaEngineName

func (mr *MockElasticSearchServiceMockRecorder) GetMetaEngineName() *gomock.Call

GetMetaEngineName indicates an expected call of GetMetaEngineName.

func (*MockElasticSearchServiceMockRecorder) LoadDeviceDefinitions

func (mr *MockElasticSearchServiceMockRecorder) LoadDeviceDefinitions() *gomock.Call

LoadDeviceDefinitions indicates an expected call of LoadDeviceDefinitions.

func (*MockElasticSearchServiceMockRecorder) RemoveSourceEngine

func (mr *MockElasticSearchServiceMockRecorder) RemoveSourceEngine(sourceName, metaName interface{}) *gomock.Call

RemoveSourceEngine indicates an expected call of RemoveSourceEngine.

func (*MockElasticSearchServiceMockRecorder) UpdateSearchSettingsForDeviceDefs

func (mr *MockElasticSearchServiceMockRecorder) UpdateSearchSettingsForDeviceDefs(engineName interface{}) *gomock.Call

UpdateSearchSettingsForDeviceDefs indicates an expected call of UpdateSearchSettingsForDeviceDefs.

type MockSearchService added in v0.2.4

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

MockSearchService is a mock of SearchService interface.

func NewMockSearchService added in v0.2.4

func NewMockSearchService(ctrl *gomock.Controller) *MockSearchService

NewMockSearchService creates a new mock instance.

func (*MockSearchService) AddSourceEngineToMetaEngine added in v0.2.4

func (m *MockSearchService) AddSourceEngineToMetaEngine(sourceName, metaName string) (*elastic.EngineDetail, error)

AddSourceEngineToMetaEngine mocks base method.

func (*MockSearchService) CreateDocuments added in v0.2.4

func (m *MockSearchService) CreateDocuments(docs []elastic.DeviceDefinitionSearchDoc, engineName string) ([]elastic.CreateDocsResp, error)

CreateDocuments mocks base method.

func (*MockSearchService) CreateDocumentsBatched added in v0.2.4

func (m *MockSearchService) CreateDocumentsBatched(docs []elastic.DeviceDefinitionSearchDoc, engineName string) error

CreateDocumentsBatched mocks base method.

func (*MockSearchService) CreateEngine added in v0.2.4

func (m *MockSearchService) CreateEngine(name string, metaSource *string) (*elastic.EngineDetail, error)

CreateEngine mocks base method.

func (*MockSearchService) DeleteEngine added in v0.2.4

func (m *MockSearchService) DeleteEngine(name string) error

DeleteEngine mocks base method.

func (*MockSearchService) EXPECT added in v0.2.4

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

func (*MockSearchService) GetEngines added in v0.2.4

func (m *MockSearchService) GetEngines() (*elastic.GetEnginesResp, error)

GetEngines mocks base method.

func (*MockSearchService) GetMetaEngineName added in v0.2.4

func (m *MockSearchService) GetMetaEngineName() string

GetMetaEngineName mocks base method.

func (*MockSearchService) LoadDeviceDefinitions added in v0.2.4

func (m *MockSearchService) LoadDeviceDefinitions() error

LoadDeviceDefinitions mocks base method.

func (*MockSearchService) RemoveSourceEngine added in v0.2.4

func (m *MockSearchService) RemoveSourceEngine(sourceName, metaName string) (*elastic.EngineDetail, error)

RemoveSourceEngine mocks base method.

func (*MockSearchService) UpdateSearchSettingsForDeviceDefs added in v0.2.4

func (m *MockSearchService) UpdateSearchSettingsForDeviceDefs(engineName string) error

UpdateSearchSettingsForDeviceDefs mocks base method.

type MockSearchServiceMockRecorder added in v0.2.4

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

MockSearchServiceMockRecorder is the mock recorder for MockSearchService.

func (*MockSearchServiceMockRecorder) AddSourceEngineToMetaEngine added in v0.2.4

func (mr *MockSearchServiceMockRecorder) AddSourceEngineToMetaEngine(sourceName, metaName any) *gomock.Call

AddSourceEngineToMetaEngine indicates an expected call of AddSourceEngineToMetaEngine.

func (*MockSearchServiceMockRecorder) CreateDocuments added in v0.2.4

func (mr *MockSearchServiceMockRecorder) CreateDocuments(docs, engineName any) *gomock.Call

CreateDocuments indicates an expected call of CreateDocuments.

func (*MockSearchServiceMockRecorder) CreateDocumentsBatched added in v0.2.4

func (mr *MockSearchServiceMockRecorder) CreateDocumentsBatched(docs, engineName any) *gomock.Call

CreateDocumentsBatched indicates an expected call of CreateDocumentsBatched.

func (*MockSearchServiceMockRecorder) CreateEngine added in v0.2.4

func (mr *MockSearchServiceMockRecorder) CreateEngine(name, metaSource any) *gomock.Call

CreateEngine indicates an expected call of CreateEngine.

func (*MockSearchServiceMockRecorder) DeleteEngine added in v0.2.4

func (mr *MockSearchServiceMockRecorder) DeleteEngine(name any) *gomock.Call

DeleteEngine indicates an expected call of DeleteEngine.

func (*MockSearchServiceMockRecorder) GetEngines added in v0.2.4

func (mr *MockSearchServiceMockRecorder) GetEngines() *gomock.Call

GetEngines indicates an expected call of GetEngines.

func (*MockSearchServiceMockRecorder) GetMetaEngineName added in v0.2.4

func (mr *MockSearchServiceMockRecorder) GetMetaEngineName() *gomock.Call

GetMetaEngineName indicates an expected call of GetMetaEngineName.

func (*MockSearchServiceMockRecorder) LoadDeviceDefinitions added in v0.2.4

func (mr *MockSearchServiceMockRecorder) LoadDeviceDefinitions() *gomock.Call

LoadDeviceDefinitions indicates an expected call of LoadDeviceDefinitions.

func (*MockSearchServiceMockRecorder) RemoveSourceEngine added in v0.2.4

func (mr *MockSearchServiceMockRecorder) RemoveSourceEngine(sourceName, metaName any) *gomock.Call

RemoveSourceEngine indicates an expected call of RemoveSourceEngine.

func (*MockSearchServiceMockRecorder) UpdateSearchSettingsForDeviceDefs added in v0.2.4

func (mr *MockSearchServiceMockRecorder) UpdateSearchSettingsForDeviceDefs(engineName any) *gomock.Call

UpdateSearchSettingsForDeviceDefs indicates an expected call of UpdateSearchSettingsForDeviceDefs.

Jump to

Keyboard shortcuts

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