Documentation
¶
Overview ¶
Package agent implements the 'opampctl delete agent' command.
Index ¶
Constants ¶
View Source
const (
// MaxCompletionResults is the maximum number of completion results to return.
MaxCompletionResults = 20
)
Variables ¶
View Source
var ( // ErrAgentInstanceUIDRequired is returned when the target agent instance UID is not provided. ErrAgentInstanceUIDRequired = errors.New("agent instance UID is required") )
Functions ¶
func NewCommand ¶
func NewCommand(options CommandOptions) *cobra.Command
NewCommand creates a new 'opampctl delete agent' command.
Types ¶
type CommandOptions ¶
type CommandOptions struct {
*config.GlobalConfig
// contains filtered or unexported fields
}
CommandOptions contains the options for the 'opampctl delete agent' command.
func (*CommandOptions) Prepare ¶
func (o *CommandOptions) Prepare(_ *cobra.Command, args []string) error
Prepare prepares the internal state before running the command.
func (*CommandOptions) Run ¶
func (o *CommandOptions) Run(cmd *cobra.Command, ids []string) error
Run runs the command.
func (*CommandOptions) ValidArgsFunction ¶
func (o *CommandOptions) ValidArgsFunction( cmd *cobra.Command, _ []string, toComplete string, ) ([]string, cobra.ShellCompDirective)
ValidArgsFunction provides dynamic completion for agent instance UIDs.
Click to show internal directories.
Click to hide internal directories.