cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: GPL-2.0 Imports: 16 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
	Hostname     string
	CAFile       string
	CertFile     string
	KeyFile      string
	Token        string
	Organization 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