Versions in this module Expand all Collapse all v3 v3.1.1 Dec 30, 2020 Changes in this version + const ElasticV5 + const ElasticV6 + const ElasticV7 + type Aggregations struct + type Aggs struct + type Body struct + From int64 + Size int64 + Sorts []map[string]string + type Bool struct + Filter []Match + MinimumShouldMatch int32 + Should []Match + type Bucket struct + Count int64 + Time int64 + type Cardinality struct + Field string + type CardinalityAggregation struct + type ContainerCount struct + Value int64 + type DateHistogram struct + Field string + Interval string + type DateHistogramAggregation struct + type Elasticsearch struct + func NewElasticsearch(options *Options) (*Elasticsearch, error) + func (es *Elasticsearch) ClearScroll(id string) + func (es *Elasticsearch) CountLogsByInterval(sf logging.SearchFilter, interval string) (logging.Histogram, error) + func (es *Elasticsearch) ExportLogs(sf logging.SearchFilter, w io.Writer) error + func (es *Elasticsearch) GetCurrentStats(sf logging.SearchFilter) (logging.Statistics, error) + func (es *Elasticsearch) SearchLogs(sf logging.SearchFilter, f, s int64, o string) (logging.Logs, error) + type Hit struct + Sort []int64 + type Hits struct + AllHits []Hit + Total interface{} + type Kubernetes struct + Container string + Host string + Namespace string + Pod string + type LogCountOverTime struct + Buckets []Bucket + type Match struct + MatchPhrase map[string]string + MatchPhrasePrefix map[string]string + Regexp map[string]string + 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 Query struct + type Range struct + type Response struct + ScrollId string + type Source struct + Log string + Time string + type Time struct + Gte *time.Time + Lte *time.Time Other modules containing this package github.com/fearlesschenc/kubesphere