Documentation
¶
Overview ¶
Package opampctl implements the opampctl command line tool. It provides a command line interface for interacting with the opampcommander server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
func NewCommand(options CommandOption) *cobra.Command
NewCommand creates a new opampctl command.
Types ¶
type CommandOption ¶
type CommandOption struct {
// contains filtered or unexported fields
}
CommandOption contains the options for the opampctl command.
func (*CommandOption) PersistentPrepare ¶ added in v0.1.1
func (opt *CommandOption) PersistentPrepare(cmd *cobra.Command, _ []string) error
PersistentPrepare prepares the command by binding flags and reading the configuration file. opampctl commands need to be prepare before running for each subcommand because all subcommands depend on the global configuration.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package config provides the command line for the opampctl tool.
|
Package config provides the command line for the opampctl tool. |
|
init
Package init provides the init command for opampctl.
|
Package init provides the init command for opampctl. |
|
view
Package view provides the view command for opampctl.
|
Package view provides the view command for opampctl. |
|
Package get provides the get command for opampctl.
|
Package get provides the get command for opampctl. |
|
agent
Package agent provides the command to get agent information.
|
Package agent provides the command to get agent information. |
|
connection
Package connection provides the command to get connection information.
|
Package connection provides the command to get connection information. |
|
Package whoami provides the whoami command for opampctl.
|
Package whoami provides the whoami command for opampctl. |
Click to show internal directories.
Click to hide internal directories.