patch

package
v9.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertComponentTemplateSetting

func ConvertComponentTemplateSetting(actualByte, expectedByte []byte) ([]byte, []byte, error)

ConvertComponentTemplateSetting permit to convert all number to string on component template settings

func ConvertIndexTemplateSetting

func ConvertIndexTemplateSetting(actualByte, expectedByte []byte) ([]byte, []byte, error)

ConvertIndexTemplateSetting permit to convert all number to string on index template settings

Types

type ComponentTemplate

type ComponentTemplate struct {
	Template *ComponentTemplateData `json:"template"`
	Version  *int64                 `json:"version,omitempty"`
	Meta     map[string]any         `json:"_meta,omitempty"`
}

type ComponentTemplateData

type ComponentTemplateData struct {
	Settings map[string]any `json:"settings,omitempty"`
	Mappings map[string]any `json:"mappings,omitempty"`
	Aliases  map[string]any `json:"aliases,omitempty"`
}

type ComponentTemplateGetResponse

type ComponentTemplateGetResponse struct {
	ComponentTemplates []struct {
		Name              string             `json:"name"`
		ComponentTemplate *ComponentTemplate `json:"component_template"`
	} `json:"component_templates"`
}

type IndexTemplate

type IndexTemplate struct {
	IndexPatterns []string           `json:"index_patterns"`
	Template      *IndexTemplateData `json:"template"`
	Priority      int                `json:"priority,omitempty"`
	Version       int                `json:"version,omitempty"`
	ComposedOf    []string           `json:"composed_of,omitempty"`
	DataStream    map[string]any     `json:"data_stream,omitempty"`
	Meta          map[string]any     `json:"_meta,omitempty"`
}

type IndexTemplateData

type IndexTemplateData struct {
	Settings map[string]any `json:"settings,omitempty"`
	Mappings map[string]any `json:"mappings,omitempty"`
	Aliases  map[string]any `json:"aliases,omitempty"`
}

type IndexTemplateGetResponse

type IndexTemplateGetResponse struct {
	IndexTemplates []struct {
		Name          string         `json:"name"`
		IndexTemplate *IndexTemplate `json:"index_template"`
	} `json:"index_templates"`
}

Jump to

Keyboard shortcuts

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