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: Jan 7, 2026 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var Timeout = 30

Timeout is the default timout for the plugin

Functions

func Execute

func Execute(version string)

Types

type Config

type Config struct {
	BasicAuth string `env:"NOTIFY_ZAMMAD_BASICAUTH"`
	Token     string `env:"NOTIFY_ZAMMAD_TOKEN"`
	CAFile    string `env:"NOTIFY_ZAMMAD_CA_FILE"`
	CertFile  string `env:"NOTIFY_ZAMMAD_CERT_FILE"`
	KeyFile   string `env:"NOTIFY_ZAMMAD_KEY_FILE"`
	Hostname  string `env:"NOTIFY_ZAMMAD_HOSTNAME"`

	ZammadGroup            string
	ZammadCustomer         string
	IcingaHostname         string
	IcingaServiceName      string
	IcingaCheckState       string
	IcingaCheckOutput      string
	IcingaNotificationType string
	IcingaAuthor           string
	IcingaComment          string
	IcingaDate             string

	Port int

	Insecure bool
	Secure   bool
}

func (*Config) NewClient

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

Jump to

Keyboard shortcuts

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