Documentation
¶
Overview ¶
Package template provides the template command for opampctl. It prints example resource definitions to stdout so users can redirect the output to a file, customize it, and then create the resource.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownExample = errors.New("unknown example")
ErrUnknownExample is returned when the requested example name is not registered.
View Source
var ErrUnsupportedFormat = errors.New("unsupported output format")
ErrUnsupportedFormat is returned when an output format other than yaml/json is requested.
Functions ¶
func NewCommand ¶
func NewCommand(_ CommandOptions) *cobra.Command
NewCommand creates a new template command. The template command and its subcommands do not require the global config or a server connection — they only emit static example definitions.
Types ¶
type CommandOptions ¶
type CommandOptions struct {
*config.GlobalConfig
}
CommandOptions contains the options for the template command.
Click to show internal directories.
Click to hide internal directories.