template

package
v0.1.41 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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