cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: GPL-2.0 Imports: 16 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, strings []string)

Types

type AlertConfig

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

type Config

type Config struct {
	BasicAuth string
	Bearer    string
	CAFile    string
	CertFile  string
	KeyFile   string
	Hostname  string
	Info      bool
	Insecure  bool
	PReady    bool
	Port      int
	Secure    bool
}

func (*Config) NewClient

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

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