template

package
v0.1.40 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

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