elastic

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package mock_opensearchutil is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ESIndexer

type ESIndexer struct {
	BulkIndexer opensearchutil.BulkIndexer
}

func NewESIndexer

func NewESIndexer(ctx context.Context, logger logging.Logger) (*ESIndexer, error)

func (*ESIndexer) IndexFile

func (in *ESIndexer) IndexFile(ctx context.Context, testID string, version string, fileName string, logger logging.Logger) error

type MockBulkIndexer

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

MockBulkIndexer is a mock of BulkIndexer interface.

func NewMockBulkIndexer

func NewMockBulkIndexer(ctrl *gomock.Controller) *MockBulkIndexer

NewMockBulkIndexer creates a new mock instance.

func (*MockBulkIndexer) Add

Add mocks base method.

func (*MockBulkIndexer) Close

func (m *MockBulkIndexer) Close(arg0 context.Context) error

Close mocks base method.

func (*MockBulkIndexer) EXPECT

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

func (*MockBulkIndexer) Stats

Stats mocks base method.

type MockBulkIndexerMockRecorder

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

MockBulkIndexerMockRecorder is the mock recorder for MockBulkIndexer.

func (*MockBulkIndexerMockRecorder) Add

func (mr *MockBulkIndexerMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockBulkIndexerMockRecorder) Close

func (mr *MockBulkIndexerMockRecorder) Close(arg0 interface{}) *gomock.Call

Close indicates an expected call of Close.

func (*MockBulkIndexerMockRecorder) Stats

Stats indicates an expected call of Stats.

Jump to

Keyboard shortcuts

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