Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockElasticSearchService
- func (m *MockElasticSearchService) AddSourceEngineToMetaEngine(sourceName, metaName string) (*gateways.EngineDetail, error)
- func (m *MockElasticSearchService) CreateDocuments(docs []gateways.DeviceDefinitionSearchDoc, engineName string) ([]gateways.CreateDocsResp, error)
- func (m *MockElasticSearchService) CreateDocumentsBatched(docs []gateways.DeviceDefinitionSearchDoc, engineName string) error
- func (m *MockElasticSearchService) CreateEngine(name string, metaSource *string) (*gateways.EngineDetail, error)
- func (m *MockElasticSearchService) DeleteEngine(name string) error
- func (m *MockElasticSearchService) EXPECT() *MockElasticSearchServiceMockRecorder
- func (m *MockElasticSearchService) GetEngines() (*gateways.GetEnginesResp, error)
- func (m *MockElasticSearchService) GetMetaEngineName() string
- func (m *MockElasticSearchService) LoadDeviceDefinitions() error
- func (m *MockElasticSearchService) RemoveSourceEngine(sourceName, metaName string) (*gateways.EngineDetail, error)
- func (m *MockElasticSearchService) UpdateSearchSettingsForDeviceDefs(engineName string) error
- type MockElasticSearchServiceMockRecorder
- func (mr *MockElasticSearchServiceMockRecorder) AddSourceEngineToMetaEngine(sourceName, metaName interface{}) *gomock.Call
- func (mr *MockElasticSearchServiceMockRecorder) CreateDocuments(docs, engineName interface{}) *gomock.Call
- func (mr *MockElasticSearchServiceMockRecorder) CreateDocumentsBatched(docs, engineName interface{}) *gomock.Call
- func (mr *MockElasticSearchServiceMockRecorder) CreateEngine(name, metaSource interface{}) *gomock.Call
- func (mr *MockElasticSearchServiceMockRecorder) DeleteEngine(name interface{}) *gomock.Call
- func (mr *MockElasticSearchServiceMockRecorder) GetEngines() *gomock.Call
- func (mr *MockElasticSearchServiceMockRecorder) GetMetaEngineName() *gomock.Call
- func (mr *MockElasticSearchServiceMockRecorder) LoadDeviceDefinitions() *gomock.Call
- func (mr *MockElasticSearchServiceMockRecorder) RemoveSourceEngine(sourceName, metaName interface{}) *gomock.Call
- func (mr *MockElasticSearchServiceMockRecorder) UpdateSearchSettingsForDeviceDefs(engineName interface{}) *gomock.Call
- type MockRedisCacheService
- func (m *MockRedisCacheService) Close() error
- func (m *MockRedisCacheService) Del(ctx context.Context, keys ...string) *redis.IntCmd
- func (m *MockRedisCacheService) EXPECT() *MockRedisCacheServiceMockRecorder
- func (m *MockRedisCacheService) FlushAll(ctx context.Context) *redis.StatusCmd
- func (m *MockRedisCacheService) Get(ctx context.Context, key string) *redis.StringCmd
- func (m *MockRedisCacheService) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *redis.StatusCmd
- type MockRedisCacheServiceMockRecorder
- func (mr *MockRedisCacheServiceMockRecorder) Close() *gomock.Call
- func (mr *MockRedisCacheServiceMockRecorder) Del(ctx interface{}, keys ...interface{}) *gomock.Call
- func (mr *MockRedisCacheServiceMockRecorder) FlushAll(ctx interface{}) *gomock.Call
- func (mr *MockRedisCacheServiceMockRecorder) Get(ctx, key interface{}) *gomock.Call
- func (mr *MockRedisCacheServiceMockRecorder) Set(ctx, key, value, expiration interface{}) *gomock.Call
- type MockSmartCarService
- type MockSmartCarServiceMockRecorder
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) (*gateways.EngineDetail, error)
AddSourceEngineToMetaEngine mocks base method.
func (*MockElasticSearchService) CreateDocuments ¶
func (m *MockElasticSearchService) CreateDocuments(docs []gateways.DeviceDefinitionSearchDoc, engineName string) ([]gateways.CreateDocsResp, error)
CreateDocuments mocks base method.
func (*MockElasticSearchService) CreateDocumentsBatched ¶
func (m *MockElasticSearchService) CreateDocumentsBatched(docs []gateways.DeviceDefinitionSearchDoc, engineName string) error
CreateDocumentsBatched mocks base method.
func (*MockElasticSearchService) CreateEngine ¶
func (m *MockElasticSearchService) CreateEngine(name string, metaSource *string) (*gateways.EngineDetail, error)
CreateEngine mocks base method.
func (*MockElasticSearchService) DeleteEngine ¶
func (m *MockElasticSearchService) DeleteEngine(name string) error
DeleteEngine mocks base method.
func (*MockElasticSearchService) EXPECT ¶
func (m *MockElasticSearchService) EXPECT() *MockElasticSearchServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockElasticSearchService) GetEngines ¶
func (m *MockElasticSearchService) GetEngines() (*gateways.GetEnginesResp, error)
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) (*gateways.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 ¶
func (mr *MockElasticSearchServiceMockRecorder) GetEngines() *gomock.Call
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 MockRedisCacheService ¶ added in v0.1.5
type MockRedisCacheService struct {
// contains filtered or unexported fields
}
MockRedisCacheService is a mock of RedisCacheService interface.
func NewMockRedisCacheService ¶ added in v0.1.5
func NewMockRedisCacheService(ctrl *gomock.Controller) *MockRedisCacheService
NewMockRedisCacheService creates a new mock instance.
func (*MockRedisCacheService) Close ¶ added in v0.1.5
func (m *MockRedisCacheService) Close() error
Close mocks base method.
func (*MockRedisCacheService) EXPECT ¶ added in v0.1.5
func (m *MockRedisCacheService) EXPECT() *MockRedisCacheServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRedisCacheService) FlushAll ¶ added in v0.1.5
func (m *MockRedisCacheService) FlushAll(ctx context.Context) *redis.StatusCmd
FlushAll mocks base method.
type MockRedisCacheServiceMockRecorder ¶ added in v0.1.5
type MockRedisCacheServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockRedisCacheServiceMockRecorder is the mock recorder for MockRedisCacheService.
func (*MockRedisCacheServiceMockRecorder) Close ¶ added in v0.1.5
func (mr *MockRedisCacheServiceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockRedisCacheServiceMockRecorder) Del ¶ added in v0.1.5
func (mr *MockRedisCacheServiceMockRecorder) Del(ctx interface{}, keys ...interface{}) *gomock.Call
Del indicates an expected call of Del.
func (*MockRedisCacheServiceMockRecorder) FlushAll ¶ added in v0.1.5
func (mr *MockRedisCacheServiceMockRecorder) FlushAll(ctx interface{}) *gomock.Call
FlushAll indicates an expected call of FlushAll.
func (*MockRedisCacheServiceMockRecorder) Get ¶ added in v0.1.5
func (mr *MockRedisCacheServiceMockRecorder) Get(ctx, key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRedisCacheServiceMockRecorder) Set ¶ added in v0.1.5
func (mr *MockRedisCacheServiceMockRecorder) Set(ctx, key, value, expiration interface{}) *gomock.Call
Set indicates an expected call of Set.
type MockSmartCarService ¶
type MockSmartCarService struct {
// contains filtered or unexported fields
}
MockSmartCarService is a mock of SmartCarService interface.
func NewMockSmartCarService ¶
func NewMockSmartCarService(ctrl *gomock.Controller) *MockSmartCarService
NewMockSmartCarService creates a new mock instance.
func (*MockSmartCarService) EXPECT ¶
func (m *MockSmartCarService) EXPECT() *MockSmartCarServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSmartCarService) GetOrCreateSmartCarIntegration ¶
func (m *MockSmartCarService) GetOrCreateSmartCarIntegration(ctx context.Context) (string, error)
GetOrCreateSmartCarIntegration mocks base method.
func (*MockSmartCarService) GetSmartCarVehicleData ¶
func (m *MockSmartCarService) GetSmartCarVehicleData() (*gateways.SmartCarCompatibilityData, error)
GetSmartCarVehicleData mocks base method.
type MockSmartCarServiceMockRecorder ¶
type MockSmartCarServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockSmartCarServiceMockRecorder is the mock recorder for MockSmartCarService.
func (*MockSmartCarServiceMockRecorder) GetOrCreateSmartCarIntegration ¶
func (mr *MockSmartCarServiceMockRecorder) GetOrCreateSmartCarIntegration(ctx interface{}) *gomock.Call
GetOrCreateSmartCarIntegration indicates an expected call of GetOrCreateSmartCarIntegration.
func (*MockSmartCarServiceMockRecorder) GetSmartCarVehicleData ¶
func (mr *MockSmartCarServiceMockRecorder) GetSmartCarVehicleData() *gomock.Call
GetSmartCarVehicleData indicates an expected call of GetSmartCarVehicleData.