Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { ClusterName() string // Cluster Settings API GetClusterNodeVersions() ([]string, error) GetThresholdEnabled() (bool, error) GetDiskWatermarks() (interface{}, interface{}, interface{}, error) GetMinMasterNodes() (int32, error) SetMinMasterNodes(numberMasters int32) (bool, error) DoSynchronizedFlush() (bool, error) // Cluster State API GetLowestClusterVersion() (string, error) IsNodeInCluster(nodeName string) (bool, error) // Health API GetClusterHealth() (api.ClusterHealth, error) GetClusterHealthStatus() (string, error) GetClusterNodeCount() (int32, error) // Index API GetIndex(name string) (*estypes.Index, error) CreateIndex(name string, index *estypes.Index) error ReIndex(src, dst, script, lang string) error GetAllIndices(name string) (estypes.CatIndicesResponses, error) // Index Alias API ListIndicesForAlias(aliasPattern string) ([]string, error) UpdateAlias(actions estypes.AliasActions) error AddAliasForOldIndices() bool // Index Settings API GetIndexSettings(name string) (*estypes.Index, error) UpdateIndexSettings(name string, settings *estypes.IndexSettings) error // Nodes API GetNodeDiskUsage(nodeName string) (string, float64, error) // Replicas UpdateReplicaCount(replicaCount int32) error GetIndexReplicaCounts() (map[string]interface{}, error) GetLowestReplicaValue() (int32, error) // Shards API ClearTransientShardAllocation() (bool, error) GetShardAllocation() (string, error) SetShardAllocation(state api.ShardAllocationState) (bool, error) // Index Templates API CreateIndexTemplate(name string, template *estypes.IndexTemplate) error DeleteIndexTemplate(name string) error ListTemplates() (sets.String, error) GetIndexTemplates() (map[string]estypes.GetIndexTemplate, error) UpdateTemplatePrimaryShards(shardCount int32) error SetSendRequestFn(fn FnEsSendRequest) }
Click to show internal directories.
Click to hide internal directories.