elasticsearch

package
v0.0.0-...-81cd6e7 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAliasAction

type AddAliasAction struct {
	Index string `json:"index"`
	Alias string `json:"alias"`
}

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 Aliases

type Aliases struct {
}

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"`
}

func NewIndex

func NewIndex(name string, shards, replicas int32) *Index

func (*Index) AddAlias

func (index *Index) AddAlias(name string, isWriteIndex bool) *Index

type IndexAlias

type IndexAlias struct {
	IsWriteIndex bool `json:"is_write_index,omitempty"`
}

type IndexBlocksSettings

type IndexBlocksSettings struct {
	Write               bool    `json:"write,omitempty"`
	ReadOnlyAllowDelete *string `json:"read_only_allow_delete"`
}

type IndexMapperSettings

type IndexMapperSettings struct {
	Dynamic bool `json:"dynamic,string"`
}

type IndexMappingSettings

type IndexMappingSettings struct {
	SingleType bool `json:"single_type"`
}

type IndexRef

type IndexRef struct {
	Index string `json:"index"`
}

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 NodeStateResponse struct {
	Name             string            `json:"name,omitempty"`
	EphemeralID      string            `json:"ephemeral_id,omitempty"`
	TransportAddress string            `json:"transport_address,omitempty"`
	Attributes       map[string]string `json:"attributes,omitempty"`
}

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 ReIndexScript struct {
	Inline string `json:"inline"`
	Lang   string `json:"lang"`
}

type RemoveAliasAction

type RemoveAliasAction struct {
	Index string `json:"index"`
}

type StatsNode

type StatsNode struct {
	Versions []string       `json:"versions,omitempty"`
	Count    map[string]int `json:"count,omitempty"`
}

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"`
}

Jump to

Keyboard shortcuts

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