Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(version string)

func Help

func Help(cmd *cobra.Command, _ []string)

Types

type Config

type Config struct {
	Hostnames []string
	Bearer    string `env:"CHECK_ELASTICSEARCH_BEARER"`
	CAFile    string `env:"CHECK_ELASTICSEARCH_CA_FILE"`
	CertFile  string `env:"CHECK_ELASTICSEARCH_CERT_FILE"`
	KeyFile   string `env:"CHECK_ELASTICSEARCH_KEY_FILE"`
	Username  string `env:"CHECK_ELASTICSEARCH_USERNAME"`
	Password  string `env:"CHECK_ELASTICSEARCH_PASSWORD"`
	Insecure  bool
}

func (*Config) NewClient

func (c *Config) NewClient() *client.Client

type PipelineConfig

type PipelineConfig struct {
	PipelineNames  []string
	FailedWarning  string
	FailedCritical string
}

PipelineConfig stores the CLI parameters.

type QueryConfig

type QueryConfig struct {
	Index      string
	Query      string
	MessageKey string
	MessageLen int
	Critical   string
	Warning    string
}

Jump to

Keyboard shortcuts

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