Versions in this module Expand all Collapse all v3 v3.1.1 Dec 30, 2020 Changes in this version + type ClientV5 es5.Client + func (c *ClientV5) ExSearch(r *Request) (*Response, error) + func (c *ClientV5) Version() (string, error) + type ClientV6 es6.Client + func (c *ClientV6) ExSearch(r *Request) (*Response, error) + type ClientV7 es7.Client + func (c *ClientV7) ExSearch(r *Request) (*Response, error) + type Elasticsearch struct + func NewClient(options *Options) (*Elasticsearch, error) + func (es *Elasticsearch) CountOverTime(filter *events.Filter, interval string) (*events.Histogram, error) + func (es *Elasticsearch) SearchEvents(filter *events.Filter, from, size int64, sort string) (*events.Events, error) + func (es *Elasticsearch) StatisticsOnResources(filter *events.Filter) (*events.Statistics, error) + type Error struct + Reason string + Status int + Type string + func (e Error) Error() string + type Hits struct + Hits jsoniter.RawMessage + Total int64 + type Options struct + Host string + IndexPrefix string + Version string + func NewElasticSearchOptions() *Options + func (s *Options) AddFlags(fs *pflag.FlagSet, c *Options) + func (s *Options) ApplyTo(options *Options) + func (s *Options) Validate() []error + type Request struct + Body io.Reader + Index string + type Response struct + Aggregations map[string]jsoniter.RawMessage + Hits Hits Other modules containing this package github.com/fearlesschenc/kubesphere