Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "get <nodes/shards/...>", Short: "Get Nodes/Shards/... from ElasticSearch API", Args: cobra.ExactArgs(1), Run: func(c *cobra.Command, args []string) { conn := os.Getenv("ELASTICSEARCH_CONNECTION") if conn == "" { log.Fatalf("ELASTICSEARCH_CONNECTION env var is not set") } url := conn + "/_cat/" + args[0] if FlagVerbose { url += "?v" } exec_utils.ExecHomeOut("curl", url) }, }
View Source
var FlagVerbose bool
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.