agentremoteconfig

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package agentremoteconfig provides the create agentremoteconfig command for opampctl.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrValueOrFileRequired is returned when neither --value nor --file is specified.
	ErrValueOrFileRequired = errors.New("either --value or --file must be specified")
	// ErrContentTypeRequired is returned when --content-type is required but not specified.
	ErrContentTypeRequired = errors.New("--content-type is required when using --value")
	// ErrContentTypeRequiredForExt is returned when --content-type is required for unknown file extension.
	ErrContentTypeRequiredForExt = errors.New("--content-type is required for unknown file extension")
)

Functions

func NewCommand

func NewCommand(options CommandOptions) *cobra.Command

NewCommand creates a new create agentremoteconfig command.

Types

type CommandOptions

type CommandOptions struct {
	*config.GlobalConfig
	// contains filtered or unexported fields
}

CommandOptions contains the options for the create agentremoteconfig command.

func (*CommandOptions) Prepare

func (opt *CommandOptions) Prepare(*cobra.Command, []string) error

Prepare prepares the create agentremoteconfig command.

func (*CommandOptions) Run

func (opt *CommandOptions) Run(cmd *cobra.Command, _ []string) error

Run executes the create agentremoteconfig command.

Jump to

Keyboard shortcuts

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