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

cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: GPL-3.0 Imports: 17 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 Config

type Config struct {
	BasicAuth string `env:"CHECK_LOGSTASH_BASICAUTH"`
	Bearer    string `env:"CHECK_LOGSTASH_BEARER"`
	CAFile    string `env:"CHECK_LOGSTASH_CA_FILE"`
	CertFile  string `env:"CHECK_LOGSTASH_CERT_FILE"`
	KeyFile   string `env:"CHECK_LOGSTASH_KEY_FILE"`
	Hostname  string `env:"CHECK_LOGSTASH_HOSTNAME"`
	Port      int
	Info      bool
	Insecure  bool
	PReady    bool
	Secure    bool
}

func (*Config) NewClient

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

type HealthConfig

type HealthConfig struct {
	FileDescThresWarning  string
	FileDescThresCritical string
	HeapUseThresWarning   string
	HeapUseThresCritical  string
	CPUUseThresWarning    string
	CPUUseThresCritical   string
	UnreachableExitCode   int
}

To store the CLI parameters.

type HealthThreshold

type HealthThreshold struct {
	// contains filtered or unexported fields
}

To store the parsed CLI parameters.

type PipelineConfig

type PipelineConfig struct {
	PipelineName string
	Warning      string
	Critical     string
}

To store the CLI parameters.

type PipelineThreshold

type PipelineThreshold struct {
	Warning  *check.Threshold
	Critical *check.Threshold
}

To store the parsed CLI parameters.

Jump to

Keyboard shortcuts

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