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) 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 ClusterAPI
- type IndexAPI
- func (_m *IndexAPI) CreateAlias(aliases []client.Alias) error
- func (_m *IndexAPI) CreateIndex(index string) error
- func (_m *IndexAPI) CreateTemplate(template string, name string) error
- func (_m *IndexAPI) DeleteAlias(aliases []client.Alias) error
- func (_m *IndexAPI) DeleteIndices(indices []client.Index) error
- func (_m *IndexAPI) GetJaegerIndices(prefix string) ([]client.Index, error)
- func (_m *IndexAPI) Rollover(rolloverTarget string, conditions map[string]interface{}) error
- type IndexManagementLifecycleAPI
- type IndexService
- type IndicesCreateService
- 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 (*Client) CreateIndex ¶
func (_m *Client) CreateIndex(index string) es.IndicesCreateService
CreateIndex provides a mock function with given fields: index
func (*Client) CreateTemplate ¶
func (_m *Client) CreateTemplate(id string) es.TemplateCreateService
CreateTemplate provides a mock function with given fields: id
func (*Client) GetVersion ¶
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 ¶
func (_m *Client) MultiSearch() es.MultiSearchService
MultiSearch provides a mock function with given fields:
type ClusterAPI ¶
ClusterAPI is an autogenerated mock type for the ClusterAPI type
func (*ClusterAPI) Version ¶
func (_m *ClusterAPI) Version() (uint, error)
Version provides a mock function with given fields:
type IndexAPI ¶
IndexAPI is an autogenerated mock type for the IndexAPI type
func (*IndexAPI) CreateAlias ¶
CreateAlias provides a mock function with given fields: aliases
func (*IndexAPI) CreateIndex ¶
CreateIndex provides a mock function with given fields: index
func (*IndexAPI) CreateTemplate ¶
CreateTemplate provides a mock function with given fields: template, name
func (*IndexAPI) DeleteAlias ¶
DeleteAlias provides a mock function with given fields: aliases
func (*IndexAPI) DeleteIndices ¶
DeleteIndices provides a mock function with given fields: indices
func (*IndexAPI) GetJaegerIndices ¶
GetJaegerIndices provides a mock function with given fields: prefix
type IndexManagementLifecycleAPI ¶
IndexManagementLifecycleAPI is an autogenerated mock type for the IndexManagementLifecycleAPI type
type IndexService ¶
IndexService is an autogenerated mock type for the IndexService type
func (*IndexService) Add ¶
func (_m *IndexService) Add()
Add provides a mock function with given fields:
func (*IndexService) BodyJson ¶
func (_m *IndexService) BodyJson(body interface{}) 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 (*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 IndicesExistsService ¶
IndicesExistsService is an autogenerated mock type for the IndicesExistsService type
type MultiSearchService ¶
MultiSearchService is an autogenerated mock type for the MultiSearchService type
func (*MultiSearchService) Add ¶
func (_m *MultiSearchService) Add(requests ...*elastic.SearchRequest) es.MultiSearchService
Add provides a mock function with given fields: requests
func (*MultiSearchService) Do ¶
func (_m *MultiSearchService) Do(ctx context.Context) (*elastic.MultiSearchResult, error)
Do provides a mock function with given fields: ctx
func (*MultiSearchService) Index ¶
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 (*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 ¶
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 ¶
TemplateApplier is an autogenerated mock type for the TemplateApplier type
type TemplateBuilder ¶
TemplateBuilder is an autogenerated mock type for the TemplateBuilder type
func (*TemplateBuilder) Parse ¶
func (_m *TemplateBuilder) Parse(text string) (es.TemplateApplier, error)
Parse provides a mock function with given fields: text
type TemplateCreateService ¶
TemplateCreateService is an autogenerated mock type for the TemplateCreateService type
func (*TemplateCreateService) Body ¶
func (_m *TemplateCreateService) Body(mapping string) es.TemplateCreateService
Body provides a mock function with given fields: mapping
func (*TemplateCreateService) Do ¶
func (_m *TemplateCreateService) Do(ctx context.Context) (*elastic.IndicesPutTemplateResponse, error)
Do provides a mock function with given fields: ctx