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

cmd

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: GPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Timeout = 30

Functions

func Execute

func Execute(version string)

func Usage

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

Types

type Config

type Config struct {
	BasicAuth    string `env:"CHECK_INFLUXDB_BASICAUTH"`
	Hostname     string `env:"CHECK_INFLUXDB_HOSTNAME"`
	CAFile       string `env:"CHECK_INFLUXDB_CA_FILE"`
	CertFile     string `env:"CHECK_INFLUXDB_CERT_FILE"`
	KeyFile      string `env:"CHECK_INFLUXDB_KEY_FILE"`
	Token        string `env:"CHECK_INFLUXDB_TOKEN"`
	Organization string `env:"CHECK_INFLUXDB_ORGANISATION"`
	Headers      []string
	Port         int
	Insecure     bool
	Secure       bool
}

Central Configuration for CLI

func (*Config) NewClient

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

type QueryConfig

type QueryConfig struct {
	Organization       string
	Bucket             string
	PerfdataLabel      string
	PerfdataLabelByKey string
	FluxFile           string
	FluxString         string
	Critical           string
	Warning            string
}

Jump to

Keyboard shortcuts

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