Documentation ¶
Index ¶
- Variables
- type BulkOp
- type BulkResult
- type Client
- func (c *Client) CreateAlias(ctx context.Context, alias, index string) error
- func (c *Client) CreateIndex(ctx context.Context, name string, config []byte, force bool) error
- func (c *Client) Delete(ctx context.Context, indices []string, requestBody map[string]interface{}) (*DeleteResult, error)
- func (c *Client) DeleteIndex(ctx context.Context, name string) error
- func (c *Client) DoBulk(ctx context.Context, op *BulkOp) (BulkResult, error)
- func (c *Client) IndexExists(ctx context.Context, name string) (bool, error)
- func (c *Client) Indices(ctx context.Context, term string) ([]string, error)
- func (c *Client) ResolveAlias(ctx context.Context, name string) (string, error)
- func (c *Client) Search(ctx context.Context, indices []string, requestBody map[string]interface{}) (*SearchResult, error)
- func (c *Client) UpdateAlias(ctx context.Context, alias, oldIndex, newIndex string) error
- type DeleteResult
- type HTTPClient
- type IndexResult
- type MockESClient
- func (m *MockESClient) CreateAlias(ctx context.Context, alias string, index string) error
- func (m *MockESClient) CreateIndex(ctx context.Context, name string, config []byte, force bool) error
- func (m *MockESClient) Delete(ctx context.Context, indexName []string, requestBody map[string]interface{}) (*DeleteResult, error)
- func (m *MockESClient) DoBulk(ctx context.Context, op *BulkOp) (BulkResult, error)
- func (m *MockESClient) ResolveAlias(ctx context.Context, alias string) (string, error)
- func (m *MockESClient) Search(ctx context.Context, indexName []string, requestBody map[string]interface{}) (*SearchResult, error)
- type SearchResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAliasMissing = errors.New("alias is missing")
View Source
var ErrOpTooLarge = errors.New("BulkOp exceeds maximum payload size")
Functions ¶
This section is empty.
Types ¶
type BulkResult ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateAlias ¶
func (*Client) CreateIndex ¶
func (*Client) IndexExists ¶
func (*Client) ResolveAlias ¶
type DeleteResult ¶ added in v1.47.0
type DeleteResult struct {
Total int
}
type IndexResult ¶
type MockESClient ¶
func (*MockESClient) CreateAlias ¶
func (*MockESClient) CreateIndex ¶
func (*MockESClient) Delete ¶ added in v1.47.0
func (m *MockESClient) Delete(ctx context.Context, indexName []string, requestBody map[string]interface{}) (*DeleteResult, error)
func (*MockESClient) DoBulk ¶
func (m *MockESClient) DoBulk(ctx context.Context, op *BulkOp) (BulkResult, error)
func (*MockESClient) ResolveAlias ¶
func (*MockESClient) Search ¶
func (m *MockESClient) Search(ctx context.Context, indexName []string, requestBody map[string]interface{}) (*SearchResult, error)
type SearchResult ¶
Click to show internal directories.
Click to hide internal directories.