Documentation ¶
Overview ¶
Package cordial is a collection of tools, packages and integrations for Geneos written primarily in Go
Package cordial is a collection of tools, packages and integrations for Geneos written primarily in Go
Index ¶
Constants ¶
This section is empty.
Variables ¶
var VERSION string
VERSION is a semi-global string variable
Functions ¶
func ExecutableName ¶ added in v1.11.0
ExecutableName returns a processed executable name. Symlinks are resolved and the basename of the resulting file has, at most, one extension removed and then if there is a '-' followed by the matching cordial version string. Note this final version string must match first version argument or the cordial one compiled into the binary.
For example:
`geneos.exe` -> `geneos` `dv2email-v1.10.0` -> `dv2email`
func LogInit ¶
func LogInit(prefix string, options ...LogOptions)
LogInit is called to set-up zerolog with our chosen defaults. The default is to log to STDERR.
If logfile is passed and the first element is not empty, then use that as the log file unless it is either "-" (which means use STDOUT (not STDERR) or equal to the os.DevNull value, in which case is io.Discard.
func RenderHelpAsMD ¶ added in v1.7.0
RenderHelpAsMD updated the given command to use glamour to render the command's Long description as markdown formatted text to an ANSI terminal.
Types ¶
type LogOptions ¶ added in v1.14.0
type LogOptions func(*logOpts)
func LumberjackOptions ¶ added in v1.14.0
func LumberjackOptions(lj *lumberjack.Logger) LogOptions
LumberJackOptions set the log writer to the configured lumberjack settings but only if the lj.Filename field is not empty, otherwise it is ignored.
func RotateOnStart ¶ added in v1.14.0
func RotateOnStart(rotate bool) LogOptions
func SetLogfile ¶ added in v1.14.0
func SetLogfile(logfile string) LogOptions
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
docs
The docs utility builds markdown documentation from the geneos program sources and writes to the `docs` directory.
|
The docs utility builds markdown documentation from the geneos program sources and writes to the `docs` directory. |
integrations
|
|
pagerduty
Standalone pagerduty integration executable
|
Standalone pagerduty integration executable |
libraries
|
|
pkg
|
|
commands
Package commands wraps the Geneos Gateway REST Command API in Go
|
Package commands wraps the Geneos Gateway REST Command API in Go |
config
Package config adds local extensions to viper as well as supporting Geneos encryption key files and basic encryption and decryption.
|
Package config adds local extensions to viper as well as supporting Geneos encryption key files and basic encryption and decryption. |
email
The email package provides Geneos specific email processing to support libemail and other email senders using Geneos formatted parameters.
|
The email package provides Geneos specific email processing to support libemail and other email senders using Geneos formatted parameters. |
host
Provides remote file and command functions
|
Provides remote file and command functions |
icp
Package icp provides binding the the ITRS Capacity Planner data model
|
Package icp provides binding the the ITRS Capacity Planner data model |
reporter
The reporter package provides a simple interface to generating Geneos dataviews, with headlines and a data table, either though the XML-RPC API, as Toolkit compatible CSV, XLSX workbooks or a number of other formats.
|
The reporter package provides a simple interface to generating Geneos dataviews, with headlines and a data table, either though the XML-RPC API, as Toolkit compatible CSV, XLSX workbooks or a number of other formats. |
xpath
Package to handle Geneos Gateway specific XPaths
|
Package to handle Geneos Gateway specific XPaths |
tools
|
|
geneos/cmd
Package cmd contains all the main commands for the `geneos` program
|
Package cmd contains all the main commands for the `geneos` program |
geneos/cmd/aescmd
Package aescmd groups related AES256 keyfile and crypto commands
|
Package aescmd groups related AES256 keyfile and crypto commands |
geneos/cmd/cfgcmd
Package cfgcmd groups config commands in their own package
|
Package cfgcmd groups config commands in their own package |
geneos/cmd/hostcmd
Package hostcmd contains all the host subsystem commands
|
Package hostcmd contains all the host subsystem commands |
geneos/cmd/initcmd
Package initcmd contains all the init subsystem commands
|
Package initcmd contains all the init subsystem commands |
geneos/cmd/pkgcmd
Package pkgcmd contains all the package subsystem commands
|
Package pkgcmd contains all the package subsystem commands |
geneos/cmd/tlscmd
Package tlscmd contains all the TLS subsystem commands
|
Package tlscmd contains all the TLS subsystem commands |
geneos/internal/component/ac2
Package ac2 supports installation and control of the Active Console
|
Package ac2 supports installation and control of the Active Console |
geneos/internal/geneos
Package geneos provides internal features to manage a typical `Best Practice` installation layout and the conventions that have formed around that structure over many years.
|
Package geneos provides internal features to manage a typical `Best Practice` installation layout and the conventions that have formed around that structure over many years. |
geneos/utils/docs
The docs utility builds markdown documentation from the geneos program sources and writes to the `docs` directory.
|
The docs utility builds markdown documentation from the geneos program sources and writes to the `docs` directory. |
utils
|
|
docs
docs creates documentation from the tools and integrations in the repo (except `geneos` which has it's own copy of this with custom mods)
|
docs creates documentation from the tools and integrations in the repo (except `geneos` which has it's own copy of this with custom mods) |