mock_elasticsearch

package
v0.0.0-...-ff35399 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 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) Bulk

func (m *MockClient) Bulk(arg0 []byte) error

Bulk mocks base method.

func (*MockClient) BulkFromFile

func (m *MockClient) BulkFromFile(file string) error

BulkFromFile mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) Request

func (m *MockClient) Request(httpMethod, path string, payload io.Reader) ([]byte, error)

Request mocks base method.

func (*MockClient) RequestWithCtx

func (m *MockClient) RequestWithCtx(ctx context.Context, httpMethod, path string, payload io.Reader) ([]byte, error)

RequestWithCtx mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) Bulk

func (mr *MockClientMockRecorder) Bulk(arg0 any) *gomock.Call

Bulk indicates an expected call of Bulk.

func (*MockClientMockRecorder) BulkFromFile

func (mr *MockClientMockRecorder) BulkFromFile(file any) *gomock.Call

BulkFromFile indicates an expected call of BulkFromFile.

func (*MockClientMockRecorder) Request

func (mr *MockClientMockRecorder) Request(httpMethod, path, payload any) *gomock.Call

Request indicates an expected call of Request.

func (*MockClientMockRecorder) RequestWithCtx

func (mr *MockClientMockRecorder) RequestWithCtx(ctx, httpMethod, path, payload any) *gomock.Call

RequestWithCtx indicates an expected call of RequestWithCtx.

Jump to

Keyboard shortcuts

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