package
3.0.0+incompatible
Repository: https://github.com/percona/pmm.git
Documentation: pkg.go.dev

# Packages

Package base provides helpers for all commands.
Package inventory provides inventory commands.
Package management provides management commands.
No description provided by the author

# Functions

GetError converts an ErrorResponse to an Error.
ParseCustomLabels trims spaces in --custom-labels flag value.
ParseDisableCollectors parses --disable-collectors flag value.
ParseTemplate parses the input text into a template.Template.
ReadFile reads file from filepath if filepath is not empty.
ReadFromSource parses a JSON file src and return a Credentials pointer containing the data.
RenderTemplate renders given template with given data and returns result as string.

# Variables

CLICtx is context used for commands ran with context.
Ctx is a shared context for all requests.
SetupClientsEnabled defines if clients shall be setup during bootstrapping.
UsageTemplate is default kingping's usage template with tweaks: * FormatAllCommands is a copy of FormatCommands that ignores hidden flag; * subcommands are shown with FormatAllCommands.

# Structs

AnnotationCommand is used by Kong for CLI flags and commands.
CompletionCommand is used for CLI flags and commands.
ConfigCommand is used by Kong for CLI flags and commands.
Credentials provides access to an external provider so that the username, password, or agent password can be managed externally, e.g.
Error represents an error with additional information.
ListCommand is used by Kong for CLI flags and commands.
StatusCommand is used by Kong for CLI flags and commands.
SummaryCommand is used by Kong for CLI flags and commands.
VersionCommand is used for CLI flags and commands.

# Interfaces

Command is a common interface for all commands.
CommandWithContext is a new interface for commands.
ErrorResponse defines the interface for error responses.
Result is a common interface for all command results.