// Code generated by MockGen. DO NOT EDIT.
// Source: ../interfaces/opensearch_access.go
//
// Generated by this command:
//
//	mockgen -source ../interfaces/opensearch_access.go -destination ../interfaces/mock/mock_opensearch_access.go
//

// Package mock_interfaces is a generated GoMock package.
package mock_interfaces

import (
	interfaces "bkn-backend/interfaces"
	context "context"
	reflect "reflect"

	gomock "go.uber.org/mock/gomock"
)

// MockOpenSearchAccess is a mock of OpenSearchAccess interface.
type MockOpenSearchAccess struct {
	ctrl     *gomock.Controller
	recorder *MockOpenSearchAccessMockRecorder
	isgomock struct{}
}

// MockOpenSearchAccessMockRecorder is the mock recorder for MockOpenSearchAccess.
type MockOpenSearchAccessMockRecorder struct {
	mock *MockOpenSearchAccess
}

// NewMockOpenSearchAccess creates a new mock instance.
func NewMockOpenSearchAccess(ctrl *gomock.Controller) *MockOpenSearchAccess {
	mock := &MockOpenSearchAccess{ctrl: ctrl}
	mock.recorder = &MockOpenSearchAccessMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockOpenSearchAccess) EXPECT() *MockOpenSearchAccessMockRecorder {
	return m.recorder
}

// BulkDeleteData mocks base method.
func (m *MockOpenSearchAccess) BulkDeleteData(ctx context.Context, indexName string, docIDs []string) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "BulkDeleteData", ctx, indexName, docIDs)
	ret0, _ := ret[0].(error)
	return ret0
}

// BulkDeleteData indicates an expected call of BulkDeleteData.
func (mr *MockOpenSearchAccessMockRecorder) BulkDeleteData(ctx, indexName, docIDs any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BulkDeleteData", reflect.TypeOf((*MockOpenSearchAccess)(nil).BulkDeleteData), ctx, indexName, docIDs)
}

// BulkInsertData mocks base method.
func (m *MockOpenSearchAccess) BulkInsertData(ctx context.Context, indexName string, dataList []any) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "BulkInsertData", ctx, indexName, dataList)
	ret0, _ := ret[0].(error)
	return ret0
}

// BulkInsertData indicates an expected call of BulkInsertData.
func (mr *MockOpenSearchAccessMockRecorder) BulkInsertData(ctx, indexName, dataList any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BulkInsertData", reflect.TypeOf((*MockOpenSearchAccess)(nil).BulkInsertData), ctx, indexName, dataList)
}

// Count mocks base method.
func (m *MockOpenSearchAccess) Count(ctx context.Context, indexName string, query any) ([]byte, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Count", ctx, indexName, query)
	ret0, _ := ret[0].([]byte)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// Count indicates an expected call of Count.
func (mr *MockOpenSearchAccessMockRecorder) Count(ctx, indexName, query any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Count", reflect.TypeOf((*MockOpenSearchAccess)(nil).Count), ctx, indexName, query)
}

// CreateIndex mocks base method.
func (m *MockOpenSearchAccess) CreateIndex(ctx context.Context, indexName string, body any) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "CreateIndex", ctx, indexName, body)
	ret0, _ := ret[0].(error)
	return ret0
}

// CreateIndex indicates an expected call of CreateIndex.
func (mr *MockOpenSearchAccessMockRecorder) CreateIndex(ctx, indexName, body any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateIndex", reflect.TypeOf((*MockOpenSearchAccess)(nil).CreateIndex), ctx, indexName, body)
}

// DeleteByQuery mocks base method.
func (m *MockOpenSearchAccess) DeleteByQuery(ctx context.Context, indexName string, query any) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "DeleteByQuery", ctx, indexName, query)
	ret0, _ := ret[0].(error)
	return ret0
}

// DeleteByQuery indicates an expected call of DeleteByQuery.
func (mr *MockOpenSearchAccessMockRecorder) DeleteByQuery(ctx, indexName, query any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteByQuery", reflect.TypeOf((*MockOpenSearchAccess)(nil).DeleteByQuery), ctx, indexName, query)
}

// DeleteData mocks base method.
func (m *MockOpenSearchAccess) DeleteData(ctx context.Context, indexName, docID string) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "DeleteData", ctx, indexName, docID)
	ret0, _ := ret[0].(error)
	return ret0
}

// DeleteData indicates an expected call of DeleteData.
func (mr *MockOpenSearchAccessMockRecorder) DeleteData(ctx, indexName, docID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteData", reflect.TypeOf((*MockOpenSearchAccess)(nil).DeleteData), ctx, indexName, docID)
}

// DeleteIndex mocks base method.
func (m *MockOpenSearchAccess) DeleteIndex(ctx context.Context, indexName string) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "DeleteIndex", ctx, indexName)
	ret0, _ := ret[0].(error)
	return ret0
}

// DeleteIndex indicates an expected call of DeleteIndex.
func (mr *MockOpenSearchAccessMockRecorder) DeleteIndex(ctx, indexName any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteIndex", reflect.TypeOf((*MockOpenSearchAccess)(nil).DeleteIndex), ctx, indexName)
}

// GetIndexStats mocks base method.
func (m *MockOpenSearchAccess) GetIndexStats(ctx context.Context, indexName string) (*interfaces.IndexStats, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetIndexStats", ctx, indexName)
	ret0, _ := ret[0].(*interfaces.IndexStats)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetIndexStats indicates an expected call of GetIndexStats.
func (mr *MockOpenSearchAccessMockRecorder) GetIndexStats(ctx, indexName any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIndexStats", reflect.TypeOf((*MockOpenSearchAccess)(nil).GetIndexStats), ctx, indexName)
}

// IndexExists mocks base method.
func (m *MockOpenSearchAccess) IndexExists(ctx context.Context, indexName string) (bool, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "IndexExists", ctx, indexName)
	ret0, _ := ret[0].(bool)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// IndexExists indicates an expected call of IndexExists.
func (mr *MockOpenSearchAccessMockRecorder) IndexExists(ctx, indexName any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexExists", reflect.TypeOf((*MockOpenSearchAccess)(nil).IndexExists), ctx, indexName)
}

// InsertData mocks base method.
func (m *MockOpenSearchAccess) InsertData(ctx context.Context, indexName, docID string, data any) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "InsertData", ctx, indexName, docID, data)
	ret0, _ := ret[0].(error)
	return ret0
}

// InsertData indicates an expected call of InsertData.
func (mr *MockOpenSearchAccessMockRecorder) InsertData(ctx, indexName, docID, data any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertData", reflect.TypeOf((*MockOpenSearchAccess)(nil).InsertData), ctx, indexName, docID, data)
}

// PutIndexTemplate mocks base method.
func (m *MockOpenSearchAccess) PutIndexTemplate(ctx context.Context, indexTemplateName string, body any) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "PutIndexTemplate", ctx, indexTemplateName, body)
	ret0, _ := ret[0].(error)
	return ret0
}

// PutIndexTemplate indicates an expected call of PutIndexTemplate.
func (mr *MockOpenSearchAccessMockRecorder) PutIndexTemplate(ctx, indexTemplateName, body any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutIndexTemplate", reflect.TypeOf((*MockOpenSearchAccess)(nil).PutIndexTemplate), ctx, indexTemplateName, body)
}

// Refresh mocks base method.
func (m *MockOpenSearchAccess) Refresh(ctx context.Context, indexName string) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Refresh", ctx, indexName)
	ret0, _ := ret[0].(error)
	return ret0
}

// Refresh indicates an expected call of Refresh.
func (mr *MockOpenSearchAccessMockRecorder) Refresh(ctx, indexName any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Refresh", reflect.TypeOf((*MockOpenSearchAccess)(nil).Refresh), ctx, indexName)
}

// SearchData mocks base method.
func (m *MockOpenSearchAccess) SearchData(ctx context.Context, indexName string, query any) ([]interfaces.Hit, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "SearchData", ctx, indexName, query)
	ret0, _ := ret[0].([]interfaces.Hit)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// SearchData indicates an expected call of SearchData.
func (mr *MockOpenSearchAccessMockRecorder) SearchData(ctx, indexName, query any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchData", reflect.TypeOf((*MockOpenSearchAccess)(nil).SearchData), ctx, indexName, query)
}
