mock_elasticsearch

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_elasticsearch is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GetIndexHealth

func (m *MockClient) GetIndexHealth(ctx context.Context, indexName string) (*elasticsearch.IndexHealth, error)

GetIndexHealth mocks base method.

func (*MockClient) GetIndexSettings

func (m *MockClient) GetIndexSettings(ctx context.Context, indexName string) (*elasticsearch.IndexSettings, error)

GetIndexSettings mocks base method.

func (*MockClient) GetNodeStats

func (m *MockClient) GetNodeStats(ctx context.Context) (*elasticsearch.NodeStats, error)

GetNodeStats mocks base method.

func (*MockClient) UpdateIndexReplicaNum

func (m *MockClient) UpdateIndexReplicaNum(ctx context.Context, indexName string, replicaNum int) error

UpdateIndexReplicaNum mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) GetIndexHealth

func (mr *MockClientMockRecorder) GetIndexHealth(ctx, indexName interface{}) *gomock.Call

GetIndexHealth indicates an expected call of GetIndexHealth.

func (*MockClientMockRecorder) GetIndexSettings

func (mr *MockClientMockRecorder) GetIndexSettings(ctx, indexName interface{}) *gomock.Call

GetIndexSettings indicates an expected call of GetIndexSettings.

func (*MockClientMockRecorder) GetNodeStats

func (mr *MockClientMockRecorder) GetNodeStats(ctx interface{}) *gomock.Call

GetNodeStats indicates an expected call of GetNodeStats.

func (*MockClientMockRecorder) UpdateIndexReplicaNum

func (mr *MockClientMockRecorder) UpdateIndexReplicaNum(ctx, indexName, replicaNum interface{}) *gomock.Call

UpdateIndexReplicaNum indicates an expected call of UpdateIndexReplicaNum.

Jump to

Keyboard shortcuts

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