cmd

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

View Source
var (
	// GitCommit is updated with the Git tag by the Goreleaser build
	GitCommit = "unknown"
	// BuildDate is updated with the current ISO timestamp by the Goreleaser build
	BuildDate = "unknown"
	// Version is updated with the latest tag by the Goreleaser build
	Version = "unreleased"
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Action

type Action struct {
	Destructive string `json:"destructive_requires_name"`
}

type Allocation

type Allocation struct {
	Enable                      string `json:"enable,omitempty"`
	ClusterConcurrentRebalance  string `json:"cluster_concurrent_rebalance,omitempty"`
	NodeConcurrentIncomingRecov string `json:"node_concurrent_incoming_recoveries,omitempty"`
	NodeConcurrentOutgoingRecov string `json:"node_concurrent_outgoing_recoveries,omitempty"`
	NodeConcurrentRecov         string `json:"node_concurrent_recoveries,omitempty"`
	NodeInitialPriRecov         string `json:"node_initial_primaries_recoveries,omitempty"`
	Type                        string `json:"type,omitempty"`
	Exclude                     `json:"exclude,omitempty"`
}

type Blocks

type Blocks struct {
	ReadOnly            string `json:"read_only"`
	ReadOnlyAllowDelete string `json:"read_only_allow_delete"`
}

type CatIndexResp

type CatIndexResp struct {
	Index         string `json:"index"`
	PrimaryShards string `json:"pri"`
	ReplicaShards string `json:"rep"`
	Docs          string `json:"docs.count"`
	DeletedDocs   string `json:"docs.deleted"`
	Date          string `json:"creation.date"`
	PriStoreSize  string `json:"pri.store.size"`
	StoreSize     string `json:"store.size"`
}

type Cluster

type Cluster struct {
	Routing `json:"routing"`
}

type Exclude

type Exclude struct {
	Name string `json:"_name,omitempty"`
	IP   string `json:"_ip,omitempty"`
	Host string `json:"_host,omitempty"`
}

type Index

type Index struct {
	IndexVersion     `json:"version"`
	Lifecycle        `json:"lifecycle"`
	NumberOfShards   string `json:"number_of_shards"`
	AutoExpand       string `json:"auto_expand_replicas"`
	NumberOfReplicas string `json:"number_of_replicas"`
	Blocks           `json:"blocks"`
}

type IndexSettings

type IndexSettings struct {
	Index `json:"index"`
}

type IndexStats

type IndexStats struct {
	ShardStats `json:"shard_stats"`
}

type IndexVersion

type IndexVersion struct {
	Created string `json:"created_string"`
}

type Indices

type Indices struct {
	Recovery `json:"recovery,omitempty"`
}

type LastSuccess

type LastSuccess struct {
	Snapshot string `json:"snapshot_name"`
}

type Lifecycle

type Lifecycle struct {
	Name          string `json:"name"`
	RolloverAlias string `json:"rollover_alias"`
}

type Recovery

type Recovery struct {
	MaxBps string `json:"max_bytes_per_sec,omitempty"`
}

type Routing

type Routing struct {
	Allocation `json:"allocation,omitempty"`
}

type ShardStats

type ShardStats struct {
	Total int `json:"total_count"`
}

type WaterMarksResp

type WaterMarksResp struct {
	SingleDataNode              string `json:"cluster.routing.allocation.disk.watermark.enable_for_single_data_node"`
	FloodStage                  string `json:"cluster.routing.allocation.disk.watermark.flood_stage"`
	FloodStageFrozen            string `json:"cluster.routing.allocation.disk.watermark.flood_stage.frozen"`
	FloodStageFrozenMaxHeadRoom string `json:"cluster.routing.allocation.disk.watermark.flood_stage.frozen.max_headroom"`
	FloodStageMaxHeadRoom       string `json:"cluster.routing.allocation.disk.watermark.flood_stage.max_headroom"`
	High                        string `json:"cluster.routing.allocation.disk.watermark.high"`
	HighMaxHeadRoom             string `json:"cluster.routing.allocation.disk.watermark.high.max_headroom"`
	Low                         string `json:"cluster.routing.allocation.disk.watermark.low"`
	LowMaxHeadRoom              string `json:"cluster.routing.allocation.disk.watermark.low.max_headroom"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳