cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: GPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const Copyright = `
Copyright (C) 2022 NETWAYS GmbH <info@netways.de>
`
View Source
const License = `` /* 661-byte string literal not displayed */

Variables

View Source
var Timeout = 30

Functions

func Execute

func Execute(version string)

func Usage

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

Types

type AlertConfig

type AlertConfig struct {
	AlertName     []string
	Group         []string
	ExcludeAlerts []string
	ProblemsOnly  bool
	NoAlertsState string
}

type Config

type Config struct {
	BasicAuth string `env:"CHECK_PROMETHEUS_BASICAUTH"`
	Bearer    string `env:"CHECK_PROMETHEUS_BEARER"`
	CAFile    string `env:"CHECK_PROMETHEUS_CA_FILE"`
	CertFile  string `env:"CHECK_PROMETHEUS_CERT_FILE"`
	KeyFile   string `env:"CHECK_PROMETHEUS_KEY_FILE"`
	Hostname  string `env:"CHECK_PROMETHEUS_HOSTNAME"`
	URL       string `env:"CHECK_PROMETHEUS_URL"`
	Headers   []string
	Port      int
	Info      bool
	Insecure  bool
	PReady    bool
	Secure    bool
}

func (*Config) NewClient

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

type Number added in v0.3.0

type Number interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~float32 | ~float64
}

type QueryConfig

type QueryConfig struct {
	RawQuery string
	Warning  string
	Critical string
	ShowAll  bool
	UnixTime bool
}

type User

type User struct {
	Name       string
	Occupation string
}

Jump to

Keyboard shortcuts

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