Documentation
¶
Index ¶
- func ConvertComponentTemplateSetting(actualByte, expectedByte []byte) ([]byte, []byte, error)
- func ConvertIndexTemplateSetting(actualByte, expectedByte []byte) ([]byte, []byte, error)
- type ComponentTemplate
- type ComponentTemplateData
- type ComponentTemplateGetResponse
- type IndexTemplate
- type IndexTemplateData
- type IndexTemplateGetResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertComponentTemplateSetting ¶
ConvertComponentTemplateSetting permit to convert all number to string on component 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 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 IndexTemplateGetResponse ¶
type IndexTemplateGetResponse struct {
IndexTemplates []struct {
Name string `json:"name"`
IndexTemplate *IndexTemplate `json:"index_template"`
} `json:"index_templates"`
}
Click to show internal directories.
Click to hide internal directories.