Documentation
¶
Index ¶
- type AddAliasAction
- type AliasAction
- type AliasActions
- type Aliases
- type CatIndicesResponse
- type CatIndicesResponses
- type GetIndexTemplate
- type GetIndexTemplateSettings
- type Index
- type IndexAlias
- type IndexBlocksSettings
- type IndexMapperSettings
- type IndexMappingSettings
- type IndexRef
- type IndexSettings
- type IndexTemplate
- type IndexTemplateSettings
- type IndexingSettings
- type MasterNodeAndNodeStateResponse
- type NodeLeftSetting
- type NodeStateResponse
- type NodesStateResponse
- type ReIndex
- type ReIndexScript
- type RemoveAliasAction
- type StatsNode
- type StatsNodesResponse
- type TranslogIndexSetting
- type UnassignedIndexSetting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAliasAction ¶
type AliasAction ¶
type AliasAction struct {
Add *AddAliasAction `json:"add,omitempty"`
RemoveIndex *RemoveAliasAction `json:"remove_index,omitempty"`
}
type AliasActions ¶
type AliasActions struct {
Actions []AliasAction `json:"actions"`
}
type CatIndicesResponse ¶
type CatIndicesResponse struct {
Health string `json:"health,omitempty"`
Status string `json:"status,omitempty"`
Index string `json:"index,omitempty"`
UUID string `json:"uuis,omitempty"`
Primaries string `json:"pri,omitempty"`
Replicas string `json:"rep,omitempty"`
DocsCount string `json:"docs.count,omitempty"`
DocsDeleted string `json:"docs.deleted,omitempty"`
StoreSize string `json:"store.size,omitempty"`
PrimaryStoreSize string `json:"pri.store.size,omitempty"`
}
type CatIndicesResponses ¶
type CatIndicesResponses []CatIndicesResponse
type GetIndexTemplate ¶
type GetIndexTemplate struct {
Order int32 `json:"order,omitempty"`
IndexPatterns []string `json:"index_patterns,omitempty"`
Settings GetIndexTemplateSettings `json:"settings,omitempty"`
Aliases map[string]IndexAlias `json:"aliases,omitempty"`
Mappings map[string]IndexMappingSettings `json:"mappings,omitempty"`
}
type GetIndexTemplateSettings ¶
type GetIndexTemplateSettings struct {
Index IndexTemplateSettings `json:"index,omitempty"`
}
type Index ¶
type Index struct {
// Name intentionally not serialized
Name string `json:"-"`
Settings *IndexSettings `json:"settings,omitempty"`
Aliases map[string]IndexAlias `json:"aliases,omitempty"`
Mappings map[string]interface{} `json:"mappings,omitempty"`
}
type IndexAlias ¶
type IndexAlias struct {
IsWriteIndex bool `json:"is_write_index,omitempty"`
}
type IndexBlocksSettings ¶
type IndexMapperSettings ¶
type IndexMapperSettings struct {
Dynamic bool `json:"dynamic,string"`
}
type IndexMappingSettings ¶
type IndexMappingSettings struct {
SingleType bool `json:"single_type"`
}
type IndexSettings ¶
type IndexSettings struct {
Index *IndexingSettings `json:"index,omitempty"`
}
type IndexTemplate ¶
type IndexTemplate struct {
Template string `json:"template,omitempty"`
Settings IndexSettings `json:"settings,omitempty"`
Aliases map[string]IndexAlias `json:"aliases,omitempty"`
}
func NewIndexTemplate ¶
func NewIndexTemplate(pattern string, aliases []string, shards, replicas int32) *IndexTemplate
type IndexTemplateSettings ¶
type IndexTemplateSettings struct {
Unassigned UnassignedIndexSetting `json:"unassigned,omitempty"`
Translog TranslogIndexSetting `json:"translog,omitempty"`
RefreshInterval string `json:"refresh_interval,omitempty"`
NumberOfShards string `json:"number_of_shards,omitempty"`
NumberOfReplicas string `json:"number_of_replicas,omitempty"`
}
type IndexingSettings ¶
type IndexingSettings struct {
NumberOfShards int32 `json:"number_of_shards,string,omitempty"`
NumberOfReplicas int32 `json:"number_of_replicas,string,omitempty"`
Format int32 `json:"format,omitempty"`
Blocks *IndexBlocksSettings `json:"blocks,omitempty"`
Mapper *IndexMapperSettings `json:"mapper,omitempty"`
Mapping *IndexMappingSettings `json:"mapping,omitempty"`
}
type MasterNodeAndNodeStateResponse ¶
type MasterNodeAndNodeStateResponse struct {
ClusterName string `json:"cluster_name,omitempty"`
MasterNode string `json:"master_node,omitempty"`
Nodes map[string]NodeStateResponse `json:"nodes,omitempty"`
}
type NodeLeftSetting ¶
type NodeLeftSetting struct {
DelayedTimeout string `json:"delayed_timeout,omitempty"`
}
type NodeStateResponse ¶
type NodesStateResponse ¶
type NodesStateResponse struct {
Nodes map[string]NodeStateResponse `json:"nodes,omitempty"`
}
type ReIndex ¶
type ReIndex struct {
Source IndexRef `json:"source"`
Dest IndexRef `json:"dest"`
Script ReIndexScript `json:"script"`
}
type ReIndexScript ¶
type RemoveAliasAction ¶
type RemoveAliasAction struct {
Index string `json:"index"`
}
type StatsNodesResponse ¶
type StatsNodesResponse struct {
Nodes StatsNode `json:"nodes,omitempty"`
}
type TranslogIndexSetting ¶
type TranslogIndexSetting struct {
FlushThresholdSize string `json:"flush_threshold_size,omitempty"`
}
type UnassignedIndexSetting ¶
type UnassignedIndexSetting struct {
NodeLeft NodeLeftSetting `json:"node_left,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.