Documentation ¶
Index ¶
- type Client
- func (_m *Client) Close() error
- func (_m *Client) CreateIndex(index string) es.IndicesCreateService
- func (_m *Client) CreateTemplate(id string) es.TemplateCreateService
- func (_m *Client) DeleteIndex(index string) es.IndicesDeleteService
- func (_m *Client) GetVersion() uint
- func (_m *Client) Index() es.IndexService
- func (_m *Client) IndexExists(index string) es.IndicesExistsService
- func (_m *Client) MultiSearch() es.MultiSearchService
- func (_m *Client) Search(indices ...string) es.SearchService
- type IndexService
- type IndicesCreateService
- type IndicesDeleteService
- type IndicesExistsService
- type MultiSearchService
- type SearchService
- func (_m *SearchService) Aggregation(name string, aggregation elastic.Aggregation) es.SearchService
- func (_m *SearchService) Do(ctx context.Context) (*elastic.SearchResult, error)
- func (_m *SearchService) IgnoreUnavailable(ignoreUnavailable bool) es.SearchService
- func (_m *SearchService) Query(query elastic.Query) es.SearchService
- func (_m *SearchService) Size(size int) es.SearchService
- type TemplateApplier
- type TemplateBuilder
- type TemplateCreateService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶ added in v1.57.0
NewClient creates a new instance of Client. 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 (*Client) CreateIndex ¶
func (_m *Client) CreateIndex(index string) es.IndicesCreateService
CreateIndex provides a mock function with given fields: index
func (*Client) CreateTemplate ¶ added in v1.14.0
func (_m *Client) CreateTemplate(id string) es.TemplateCreateService
CreateTemplate provides a mock function with given fields: id
func (*Client) DeleteIndex ¶ added in v1.58.0
func (_m *Client) DeleteIndex(index string) es.IndicesDeleteService
DeleteIndex provides a mock function with given fields: index
func (*Client) GetVersion ¶ added in v1.14.0
GetVersion provides a mock function with given fields:
func (*Client) Index ¶
func (_m *Client) Index() es.IndexService
Index provides a mock function with given fields:
func (*Client) IndexExists ¶
func (_m *Client) IndexExists(index string) es.IndicesExistsService
IndexExists provides a mock function with given fields: index
func (*Client) MultiSearch ¶ added in v0.6.0
func (_m *Client) MultiSearch() es.MultiSearchService
MultiSearch provides a mock function with given fields:
type IndexService ¶
IndexService is an autogenerated mock type for the IndexService type
func NewIndexService ¶ added in v1.57.0
func NewIndexService(t interface { mock.TestingT Cleanup(func()) }) *IndexService
NewIndexService creates a new instance of IndexService. 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 (*IndexService) Add ¶ added in v1.2.0
func (_m *IndexService) Add()
Add provides a mock function with given fields:
func (*IndexService) BodyJson ¶
func (_m *IndexService) BodyJson(body any) es.IndexService
BodyJson provides a mock function with given fields: body
func (*IndexService) Id ¶
func (_m *IndexService) Id(id string) es.IndexService
Id provides a mock function with given fields: id
func (*IndexService) Index ¶
func (_m *IndexService) Index(index string) es.IndexService
Index provides a mock function with given fields: index
func (*IndexService) Type ¶
func (_m *IndexService) Type(typ string) es.IndexService
Type provides a mock function with given fields: typ
type IndicesCreateService ¶
IndicesCreateService is an autogenerated mock type for the IndicesCreateService type
func NewIndicesCreateService ¶ added in v1.57.0
func NewIndicesCreateService(t interface { mock.TestingT Cleanup(func()) }) *IndicesCreateService
NewIndicesCreateService creates a new instance of IndicesCreateService. 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 (*IndicesCreateService) Body ¶
func (_m *IndicesCreateService) Body(mapping string) es.IndicesCreateService
Body provides a mock function with given fields: mapping
func (*IndicesCreateService) Do ¶
func (_m *IndicesCreateService) Do(ctx context.Context) (*elastic.IndicesCreateResult, error)
Do provides a mock function with given fields: ctx
type IndicesDeleteService ¶ added in v1.58.0
IndicesDeleteService is an autogenerated mock type for the IndicesDeleteService type
func NewIndicesDeleteService ¶ added in v1.58.0
func NewIndicesDeleteService(t interface { mock.TestingT Cleanup(func()) }) *IndicesDeleteService
NewIndicesDeleteService creates a new instance of IndicesDeleteService. 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 (*IndicesDeleteService) Do ¶ added in v1.58.0
func (_m *IndicesDeleteService) Do(ctx context.Context) (*elastic.IndicesDeleteResponse, error)
Do provides a mock function with given fields: ctx
type IndicesExistsService ¶
IndicesExistsService is an autogenerated mock type for the IndicesExistsService type
func NewIndicesExistsService ¶ added in v1.57.0
func NewIndicesExistsService(t interface { mock.TestingT Cleanup(func()) }) *IndicesExistsService
NewIndicesExistsService creates a new instance of IndicesExistsService. 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.
type MultiSearchService ¶ added in v0.6.0
MultiSearchService is an autogenerated mock type for the MultiSearchService type
func NewMultiSearchService ¶ added in v1.57.0
func NewMultiSearchService(t interface { mock.TestingT Cleanup(func()) }) *MultiSearchService
NewMultiSearchService creates a new instance of MultiSearchService. 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 (*MultiSearchService) Add ¶ added in v0.6.0
func (_m *MultiSearchService) Add(requests ...*elastic.SearchRequest) es.MultiSearchService
Add provides a mock function with given fields: requests
func (*MultiSearchService) Do ¶ added in v0.6.0
func (_m *MultiSearchService) Do(ctx context.Context) (*elastic.MultiSearchResult, error)
Do provides a mock function with given fields: ctx
func (*MultiSearchService) Index ¶ added in v0.6.0
func (_m *MultiSearchService) Index(indices ...string) es.MultiSearchService
Index provides a mock function with given fields: indices
type SearchService ¶
SearchService is an autogenerated mock type for the SearchService type
func NewSearchService ¶ added in v1.57.0
func NewSearchService(t interface { mock.TestingT Cleanup(func()) }) *SearchService
NewSearchService creates a new instance of SearchService. 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 (*SearchService) Aggregation ¶
func (_m *SearchService) Aggregation(name string, aggregation elastic.Aggregation) es.SearchService
Aggregation provides a mock function with given fields: name, aggregation
func (*SearchService) Do ¶
func (_m *SearchService) Do(ctx context.Context) (*elastic.SearchResult, error)
Do provides a mock function with given fields: ctx
func (*SearchService) IgnoreUnavailable ¶ added in v0.6.0
func (_m *SearchService) IgnoreUnavailable(ignoreUnavailable bool) es.SearchService
IgnoreUnavailable provides a mock function with given fields: ignoreUnavailable
func (*SearchService) Query ¶
func (_m *SearchService) Query(query elastic.Query) es.SearchService
Query provides a mock function with given fields: query
func (*SearchService) Size ¶
func (_m *SearchService) Size(size int) es.SearchService
Size provides a mock function with given fields: size
type TemplateApplier ¶ added in v1.22.0
TemplateApplier is an autogenerated mock type for the TemplateApplier type
func NewTemplateApplier ¶ added in v1.57.0
func NewTemplateApplier(t interface { mock.TestingT Cleanup(func()) }) *TemplateApplier
NewTemplateApplier creates a new instance of TemplateApplier. 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.
type TemplateBuilder ¶ added in v1.22.0
TemplateBuilder is an autogenerated mock type for the TemplateBuilder type
func NewTemplateBuilder ¶ added in v1.57.0
func NewTemplateBuilder(t interface { mock.TestingT Cleanup(func()) }) *TemplateBuilder
NewTemplateBuilder creates a new instance of TemplateBuilder. 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 (*TemplateBuilder) Parse ¶ added in v1.22.0
func (_m *TemplateBuilder) Parse(text string) (es.TemplateApplier, error)
Parse provides a mock function with given fields: text
type TemplateCreateService ¶ added in v1.14.0
TemplateCreateService is an autogenerated mock type for the TemplateCreateService type
func NewTemplateCreateService ¶ added in v1.57.0
func NewTemplateCreateService(t interface { mock.TestingT Cleanup(func()) }) *TemplateCreateService
NewTemplateCreateService creates a new instance of TemplateCreateService. 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 (*TemplateCreateService) Body ¶ added in v1.14.0
func (_m *TemplateCreateService) Body(mapping string) es.TemplateCreateService
Body provides a mock function with given fields: mapping
func (*TemplateCreateService) Do ¶ added in v1.14.0
func (_m *TemplateCreateService) Do(ctx context.Context) (*elastic.IndicesPutTemplateResponse, error)
Do provides a mock function with given fields: ctx