Documentation
¶
Index ¶
- func Parse(queryString string) ([]storage.Query, error)
- func ParseQueries(queries []storage.Query) (map[string]interface{}, error)
- type Config
- type ESClient
- func (s *ESClient) Create(ctx context.Context, cluster string, obj runtime.Object) error
- func (s *ESClient) Delete(ctx context.Context, cluster string, obj runtime.Object) error
- func (s *ESClient) Get(ctx context.Context, cluster string, obj runtime.Object) error
- func (s *ESClient) Search(ctx context.Context, queryStr string, patternType string) (*storage.SearchResult, error)
- func (s *ESClient) Update(ctx context.Context, cluster string, obj runtime.Object) error
- type ESError
- type Hit
- type Hits
- type SearchResponse
- type SearchStorageGetter
- type Total
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ESClient ¶
type ESClient struct {
// contains filtered or unexported fields
}
func NewESClient ¶
func NewESClient(cfg elasticsearch.Config) (*ESClient, error)
type SearchResponse ¶
type SearchResponse struct {
ScrollID string `json:"_scroll_id"`
Took int `json:"took"`
TimeOut bool `json:"time_out"`
Hits *Hits `json:"hits"`
}
func (*SearchResponse) GetResources ¶
func (s *SearchResponse) GetResources() []*storage.Resource
type SearchStorageGetter ¶ added in v0.1.4
type SearchStorageGetter struct {
// contains filtered or unexported fields
}
func NewSearchStorageGetter ¶ added in v0.1.4
func NewSearchStorageGetter(addresses []string, userName, password string) *SearchStorageGetter
func (*SearchStorageGetter) GetSearchStorage ¶ added in v0.1.4
func (s *SearchStorageGetter) GetSearchStorage() (storage.SearchStorage, error)
Click to show internal directories.
Click to hide internal directories.