opampctl

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: MIT Imports: 9 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 {
	*config.GlobalConfig
	// 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.
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.
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.

Jump to

Keyboard shortcuts

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