cmd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 15 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 {
	Bearer   string // Currently unused in CLI
	Hostname string `env:"CHECK_ELASTICSEARCH_HOSTNAME"`
	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"`
	Port     int
	TLS      bool
	Insecure bool
}

func (*Config) NewClient

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

type PipelineConfig

type PipelineConfig struct {
	PipelineName   string
	FailedWarning  string
	FailedCritical string
}

To store 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