elasticsearch

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewElasticsearchREST

func NewElasticsearchREST(
	groupResource schema.GroupResource,
	codec runtime.Codec,
	es *elasticsearch.Client,
	opts Options,
	isNamespaced bool,
	newFunc func() runtime.Object,
	newListFunc func() runtime.Object,
) rest.Storage

NewelasticsearchREST instantiates a new REST storage.

Types

type Options

type Options struct {
	FieldMap         map[string][]string
	DropFields       []string
	Filter           map[string]string
	DefaultTimeRange string
	Backend          OptionsBackend
}

func MakeDefaultOptions

func MakeDefaultOptions() Options

func MakeOptionsFromConfig

func MakeOptionsFromConfig(apiBinding *configv1alpha1.API) Options

type OptionsBackend

type OptionsBackend struct {
	Index           string
	RefreshRate     time.Duration
	TimestampFields []string
	BulkSize        int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL