opensearchclient

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIndex

func CreateIndex(kind string, client *opensearch.Client, ctx context.Context, config configuration.Config) (err error)

func GetIndexVersionsOfAlias

func GetIndexVersionsOfAlias(client *opensearch.Client, ctx context.Context, kind string) (current string, next string, err error)

func IndexExists

func IndexExists(client *opensearch.Client, ctx context.Context, name string) (exists bool, err error)

func New

func New(config configuration.Config) (client *opensearch.Client, err error)

func UpdateIndexMapping

func UpdateIndexMapping(client *opensearch.Client, ctx context.Context, kind string, mapping map[string]interface{}) error

func UpdateIndexes

func UpdateIndexes(config configuration.Config, resourceNames ...string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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