schema

package
v0.236.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIndices added in v0.81.0

func CreateIndices(ctx context.Context, opts *IndicesOptions) error

CreateIndices creates indices and appropriate read/write aliases.

func MigrateIndices added in v0.87.0

func MigrateIndices(ctx context.Context, api *elasticsearch.TypedClient, opts *IndicesOptions) error

MigrateIndices performs all requested schema migrations.

func UpdateILMPolicies added in v0.87.0

func UpdateILMPolicies(ctx context.Context, api *elasticsearch.TypedClient, opts *ILMOptions) error

UpdateILMPolicies will update all the specified ILM policies.

func UpdateIndicesSchema added in v0.87.0

func UpdateIndicesSchema(ctx context.Context, api *elasticsearch.TypedClient, opts *IndicesOptions) error

UpdateIndicesSchema performs all requested schema migrations.

Types

type ILMOptions added in v0.87.0

type ILMOptions struct {
	Policies []string `arg:"" default:"all" enum:"all,logs"`
}

ILMOptions contains the options for performing ILM schema operations.

type IndicesOptions added in v0.87.0

type IndicesOptions struct {
	Indices []string `` /* 139-byte string literal not displayed */
}

IndicesOptions contains the options for performing index schema operations.

type Option

type Option[T any] func(T)

Option is a reusable generic function for applying options to a type.

Jump to

Keyboard shortcuts

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