layers

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ESHelpersSlug = "es-helpers"
View Source
const EsConnectionSlug = "es-connection"

Variables

This section is empty.

Functions

func NewESClientFromParsedLayers

func NewESClientFromParsedLayers(
	parsedLayers *layers.ParsedLayers,
) (*elasticsearch.Client, error)

func NewESHelpersParameterLayer

func NewESHelpersParameterLayer(
	options ...layers.ParameterLayerOptions,
) (*layers.ParameterLayerImpl, error)

Types

type ESHelperSettings

type ESHelperSettings struct {
	PrintQuery bool   `glazed.parameter:"print-query"`
	Explain    bool   `glazed.parameter:"explain"`
	Index      string `glazed.parameter:"es-index"`
}

type EsClientSettings

type EsClientSettings struct {
	Addresses               []string `glazed.parameter:"addresses"`
	Username                string   `glazed.parameter:"username"`
	Password                string   `glazed.parameter:"password"`
	CloudId                 string   `glazed.parameter:"cloud-id"`
	ApiKey                  string   `glazed.parameter:"api-key"`
	ServiceToken            string   `glazed.parameter:"service-token"`
	CertificateFingerprint  string   `glazed.parameter:"certificate-fingerprint"`
	RetryOnStatus           []int    `glazed.parameter:"retry-on-status"`
	DisableRetry            bool     `glazed.parameter:"disable-retry"`
	MaxRetries              int      `glazed.parameter:"max-retries"`
	EnableMetrics           bool     `glazed.parameter:"enable-metrics"`
	EnableDebugLogger       bool     `glazed.parameter:"enable-debug-logger"`
	EnableCompatibilityMode bool     `glazed.parameter:"enable-compatibility-mode"`
}

func NewESClientSettingsFromParsedLayers

func NewESClientSettingsFromParsedLayers(parsedLayers *layers.ParsedLayers) (*EsClientSettings, error)

type EsParameterLayer

type EsParameterLayer struct {
	*layers.ParameterLayerImpl `yaml:",inline"`
}

func NewESParameterLayer

func NewESParameterLayer(options ...layers.ParameterLayerOptions) (*EsParameterLayer, error)

Jump to

Keyboard shortcuts

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