opampctl

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 16 Imported by: 0

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 context provides the context command for opampctl.
Package context provides the context command for opampctl.
ls
Package ls provides the ls command for opampctl context.
Package ls provides the ls command for opampctl context.
use
Package use provides the use command for opampctl context.
Package use provides the use command for opampctl context.
Package create provides the create command for opampctl.
Package create provides the create command for opampctl.
agentgroup
Package agentgroup provides the create agentgroup command for opampctl.
Package agentgroup provides the create agentgroup command for opampctl.
Package deletecmd implements the 'opampctl delete' command.
Package deletecmd implements the 'opampctl delete' command.
agentgroup
Package agentgroup implements the 'opampctl delete agentgroup' command.
Package agentgroup implements the 'opampctl delete agentgroup' command.
get
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.
agentgroup
Package agentgroup implements the 'opampctl get agentgroup' command.
Package agentgroup implements the 'opampctl get agentgroup' command.
connection
Package connection provides the command to get connection information.
Package connection provides the command to get connection information.
Package restart provides the restart command for opampctl.
Package restart provides the restart command for opampctl.
set
Package set provides the set command for opampctl.
Package set provides the set command for opampctl.
agent
Package agent provides the command to set agent configurations.
Package agent provides the command to set agent configurations.
Package version provides a command to print the version of opampctl.
Package version provides a command to print the version of opampctl.
Package whoami provides the whoami command for opampctl.
Package whoami provides the whoami command for opampctl.

Jump to

Keyboard shortcuts

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