aisearch

package
v0.147.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAiSearchInterface

type MockAiSearchInterface struct {
	mock.Mock
}

MockAiSearchInterface is an autogenerated mock type for the AiSearchInterface type

func NewMockAiSearchInterface

func NewMockAiSearchInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAiSearchInterface

NewMockAiSearchInterface creates a new instance of MockAiSearchInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockAiSearchInterface) CreateEndpoint

CreateEndpoint provides a mock function with given fields: ctx, request

func (*MockAiSearchInterface) CreateIndex

CreateIndex provides a mock function with given fields: ctx, request

func (*MockAiSearchInterface) DeleteEndpoint

func (_m *MockAiSearchInterface) DeleteEndpoint(ctx context.Context, request aisearch.DeleteEndpointRequest) error

DeleteEndpoint provides a mock function with given fields: ctx, request

func (*MockAiSearchInterface) DeleteIndex

func (_m *MockAiSearchInterface) DeleteIndex(ctx context.Context, request aisearch.DeleteIndexRequest) error

DeleteIndex provides a mock function with given fields: ctx, request

func (*MockAiSearchInterface) EXPECT

func (*MockAiSearchInterface) GetEndpoint

GetEndpoint provides a mock function with given fields: ctx, request

func (*MockAiSearchInterface) GetIndex

GetIndex provides a mock function with given fields: ctx, request

func (*MockAiSearchInterface) ListEndpoints

ListEndpoints provides a mock function with given fields: ctx, request

func (*MockAiSearchInterface) ListEndpointsAll

func (_m *MockAiSearchInterface) ListEndpointsAll(ctx context.Context, request aisearch.ListEndpointsRequest) ([]aisearch.Endpoint, error)

ListEndpointsAll provides a mock function with given fields: ctx, request

func (*MockAiSearchInterface) ListIndexes

ListIndexes provides a mock function with given fields: ctx, request

func (*MockAiSearchInterface) ListIndexesAll

func (_m *MockAiSearchInterface) ListIndexesAll(ctx context.Context, request aisearch.ListIndexesRequest) ([]aisearch.Index, error)

ListIndexesAll provides a mock function with given fields: ctx, request

func (*MockAiSearchInterface) QueryIndex

QueryIndex provides a mock function with given fields: ctx, request

func (*MockAiSearchInterface) RemoveData

RemoveData provides a mock function with given fields: ctx, request

func (*MockAiSearchInterface) ScanIndex

ScanIndex provides a mock function with given fields: ctx, request

func (*MockAiSearchInterface) SyncIndex

SyncIndex provides a mock function with given fields: ctx, request

func (*MockAiSearchInterface) UpdateEndpoint

UpdateEndpoint provides a mock function with given fields: ctx, request

func (*MockAiSearchInterface) UpsertData

UpsertData provides a mock function with given fields: ctx, request

type MockAiSearchInterface_CreateEndpoint_Call

type MockAiSearchInterface_CreateEndpoint_Call struct {
	*mock.Call
}

MockAiSearchInterface_CreateEndpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateEndpoint'

func (*MockAiSearchInterface_CreateEndpoint_Call) Return

func (*MockAiSearchInterface_CreateEndpoint_Call) Run

type MockAiSearchInterface_CreateIndex_Call

type MockAiSearchInterface_CreateIndex_Call struct {
	*mock.Call
}

MockAiSearchInterface_CreateIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIndex'

func (*MockAiSearchInterface_CreateIndex_Call) Return

func (*MockAiSearchInterface_CreateIndex_Call) Run

func (*MockAiSearchInterface_CreateIndex_Call) RunAndReturn

type MockAiSearchInterface_DeleteEndpoint_Call

type MockAiSearchInterface_DeleteEndpoint_Call struct {
	*mock.Call
}

MockAiSearchInterface_DeleteEndpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteEndpoint'

func (*MockAiSearchInterface_DeleteEndpoint_Call) Return

func (*MockAiSearchInterface_DeleteEndpoint_Call) Run

func (*MockAiSearchInterface_DeleteEndpoint_Call) RunAndReturn

type MockAiSearchInterface_DeleteIndex_Call

type MockAiSearchInterface_DeleteIndex_Call struct {
	*mock.Call
}

MockAiSearchInterface_DeleteIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteIndex'

func (*MockAiSearchInterface_DeleteIndex_Call) Return

func (*MockAiSearchInterface_DeleteIndex_Call) Run

func (*MockAiSearchInterface_DeleteIndex_Call) RunAndReturn

type MockAiSearchInterface_Expecter

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

func (*MockAiSearchInterface_Expecter) CreateEndpoint

func (_e *MockAiSearchInterface_Expecter) CreateEndpoint(ctx interface{}, request interface{}) *MockAiSearchInterface_CreateEndpoint_Call

CreateEndpoint is a helper method to define mock.On call

  • ctx context.Context
  • request aisearch.CreateEndpointRequest

func (*MockAiSearchInterface_Expecter) CreateIndex

func (_e *MockAiSearchInterface_Expecter) CreateIndex(ctx interface{}, request interface{}) *MockAiSearchInterface_CreateIndex_Call

CreateIndex is a helper method to define mock.On call

  • ctx context.Context
  • request aisearch.CreateIndexRequest

func (*MockAiSearchInterface_Expecter) DeleteEndpoint

func (_e *MockAiSearchInterface_Expecter) DeleteEndpoint(ctx interface{}, request interface{}) *MockAiSearchInterface_DeleteEndpoint_Call

DeleteEndpoint is a helper method to define mock.On call

  • ctx context.Context
  • request aisearch.DeleteEndpointRequest

func (*MockAiSearchInterface_Expecter) DeleteIndex

func (_e *MockAiSearchInterface_Expecter) DeleteIndex(ctx interface{}, request interface{}) *MockAiSearchInterface_DeleteIndex_Call

DeleteIndex is a helper method to define mock.On call

  • ctx context.Context
  • request aisearch.DeleteIndexRequest

func (*MockAiSearchInterface_Expecter) GetEndpoint

func (_e *MockAiSearchInterface_Expecter) GetEndpoint(ctx interface{}, request interface{}) *MockAiSearchInterface_GetEndpoint_Call

GetEndpoint is a helper method to define mock.On call

  • ctx context.Context
  • request aisearch.GetEndpointRequest

func (*MockAiSearchInterface_Expecter) GetIndex

func (_e *MockAiSearchInterface_Expecter) GetIndex(ctx interface{}, request interface{}) *MockAiSearchInterface_GetIndex_Call

GetIndex is a helper method to define mock.On call

  • ctx context.Context
  • request aisearch.GetIndexRequest

func (*MockAiSearchInterface_Expecter) ListEndpoints

func (_e *MockAiSearchInterface_Expecter) ListEndpoints(ctx interface{}, request interface{}) *MockAiSearchInterface_ListEndpoints_Call

ListEndpoints is a helper method to define mock.On call

  • ctx context.Context
  • request aisearch.ListEndpointsRequest

func (*MockAiSearchInterface_Expecter) ListEndpointsAll

func (_e *MockAiSearchInterface_Expecter) ListEndpointsAll(ctx interface{}, request interface{}) *MockAiSearchInterface_ListEndpointsAll_Call

ListEndpointsAll is a helper method to define mock.On call

  • ctx context.Context
  • request aisearch.ListEndpointsRequest

func (*MockAiSearchInterface_Expecter) ListIndexes

func (_e *MockAiSearchInterface_Expecter) ListIndexes(ctx interface{}, request interface{}) *MockAiSearchInterface_ListIndexes_Call

ListIndexes is a helper method to define mock.On call

  • ctx context.Context
  • request aisearch.ListIndexesRequest

func (*MockAiSearchInterface_Expecter) ListIndexesAll

func (_e *MockAiSearchInterface_Expecter) ListIndexesAll(ctx interface{}, request interface{}) *MockAiSearchInterface_ListIndexesAll_Call

ListIndexesAll is a helper method to define mock.On call

  • ctx context.Context
  • request aisearch.ListIndexesRequest

func (*MockAiSearchInterface_Expecter) QueryIndex

func (_e *MockAiSearchInterface_Expecter) QueryIndex(ctx interface{}, request interface{}) *MockAiSearchInterface_QueryIndex_Call

QueryIndex is a helper method to define mock.On call

  • ctx context.Context
  • request aisearch.QueryIndexRequest

func (*MockAiSearchInterface_Expecter) RemoveData

func (_e *MockAiSearchInterface_Expecter) RemoveData(ctx interface{}, request interface{}) *MockAiSearchInterface_RemoveData_Call

RemoveData is a helper method to define mock.On call

  • ctx context.Context
  • request aisearch.RemoveDataRequest

func (*MockAiSearchInterface_Expecter) ScanIndex

func (_e *MockAiSearchInterface_Expecter) ScanIndex(ctx interface{}, request interface{}) *MockAiSearchInterface_ScanIndex_Call

ScanIndex is a helper method to define mock.On call

  • ctx context.Context
  • request aisearch.ScanIndexRequest

func (*MockAiSearchInterface_Expecter) SyncIndex

func (_e *MockAiSearchInterface_Expecter) SyncIndex(ctx interface{}, request interface{}) *MockAiSearchInterface_SyncIndex_Call

SyncIndex is a helper method to define mock.On call

  • ctx context.Context
  • request aisearch.SyncIndexRequest

func (*MockAiSearchInterface_Expecter) UpdateEndpoint

func (_e *MockAiSearchInterface_Expecter) UpdateEndpoint(ctx interface{}, request interface{}) *MockAiSearchInterface_UpdateEndpoint_Call

UpdateEndpoint is a helper method to define mock.On call

  • ctx context.Context
  • request aisearch.UpdateEndpointRequest

func (*MockAiSearchInterface_Expecter) UpsertData

func (_e *MockAiSearchInterface_Expecter) UpsertData(ctx interface{}, request interface{}) *MockAiSearchInterface_UpsertData_Call

UpsertData is a helper method to define mock.On call

  • ctx context.Context
  • request aisearch.UpsertDataRequest

type MockAiSearchInterface_GetEndpoint_Call

type MockAiSearchInterface_GetEndpoint_Call struct {
	*mock.Call
}

MockAiSearchInterface_GetEndpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEndpoint'

func (*MockAiSearchInterface_GetEndpoint_Call) Return

func (*MockAiSearchInterface_GetEndpoint_Call) Run

type MockAiSearchInterface_GetIndex_Call

type MockAiSearchInterface_GetIndex_Call struct {
	*mock.Call
}

MockAiSearchInterface_GetIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIndex'

func (*MockAiSearchInterface_GetIndex_Call) Return

func (*MockAiSearchInterface_GetIndex_Call) Run

func (*MockAiSearchInterface_GetIndex_Call) RunAndReturn

type MockAiSearchInterface_ListEndpointsAll_Call

type MockAiSearchInterface_ListEndpointsAll_Call struct {
	*mock.Call
}

MockAiSearchInterface_ListEndpointsAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEndpointsAll'

func (*MockAiSearchInterface_ListEndpointsAll_Call) Return

func (*MockAiSearchInterface_ListEndpointsAll_Call) Run

type MockAiSearchInterface_ListEndpoints_Call

type MockAiSearchInterface_ListEndpoints_Call struct {
	*mock.Call
}

MockAiSearchInterface_ListEndpoints_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEndpoints'

func (*MockAiSearchInterface_ListEndpoints_Call) Return

func (*MockAiSearchInterface_ListEndpoints_Call) Run

type MockAiSearchInterface_ListIndexesAll_Call

type MockAiSearchInterface_ListIndexesAll_Call struct {
	*mock.Call
}

MockAiSearchInterface_ListIndexesAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListIndexesAll'

func (*MockAiSearchInterface_ListIndexesAll_Call) Return

func (*MockAiSearchInterface_ListIndexesAll_Call) Run

func (*MockAiSearchInterface_ListIndexesAll_Call) RunAndReturn

type MockAiSearchInterface_ListIndexes_Call

type MockAiSearchInterface_ListIndexes_Call struct {
	*mock.Call
}

MockAiSearchInterface_ListIndexes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListIndexes'

func (*MockAiSearchInterface_ListIndexes_Call) Return

func (*MockAiSearchInterface_ListIndexes_Call) Run

type MockAiSearchInterface_QueryIndex_Call

type MockAiSearchInterface_QueryIndex_Call struct {
	*mock.Call
}

MockAiSearchInterface_QueryIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryIndex'

func (*MockAiSearchInterface_QueryIndex_Call) Return

func (*MockAiSearchInterface_QueryIndex_Call) Run

type MockAiSearchInterface_RemoveData_Call

type MockAiSearchInterface_RemoveData_Call struct {
	*mock.Call
}

MockAiSearchInterface_RemoveData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveData'

func (*MockAiSearchInterface_RemoveData_Call) Return

func (*MockAiSearchInterface_RemoveData_Call) Run

type MockAiSearchInterface_ScanIndex_Call

type MockAiSearchInterface_ScanIndex_Call struct {
	*mock.Call
}

MockAiSearchInterface_ScanIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ScanIndex'

func (*MockAiSearchInterface_ScanIndex_Call) Return

func (*MockAiSearchInterface_ScanIndex_Call) Run

type MockAiSearchInterface_SyncIndex_Call

type MockAiSearchInterface_SyncIndex_Call struct {
	*mock.Call
}

MockAiSearchInterface_SyncIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncIndex'

func (*MockAiSearchInterface_SyncIndex_Call) Return

func (*MockAiSearchInterface_SyncIndex_Call) Run

type MockAiSearchInterface_UpdateEndpoint_Call

type MockAiSearchInterface_UpdateEndpoint_Call struct {
	*mock.Call
}

MockAiSearchInterface_UpdateEndpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateEndpoint'

func (*MockAiSearchInterface_UpdateEndpoint_Call) Return

func (*MockAiSearchInterface_UpdateEndpoint_Call) Run

type MockAiSearchInterface_UpsertData_Call

type MockAiSearchInterface_UpsertData_Call struct {
	*mock.Call
}

MockAiSearchInterface_UpsertData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertData'

func (*MockAiSearchInterface_UpsertData_Call) Return

func (*MockAiSearchInterface_UpsertData_Call) Run

Jump to

Keyboard shortcuts

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