templates

package
v0.4.5-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package templates provides embedded templates for plugin scaffolding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoTemplates

func GoTemplates() (*template.Template, error)

GoTemplates returns the parsed Go plugin templates.

func TemplateFiles

func TemplateFiles(lang string) ([]string, error)

TemplateFiles returns the list of template file names for a language.

Types

type Capability

type Capability struct {
	Kind    string
	Pattern string
}

Capability represents a plugin capability declaration.

type PluginData

type PluginData struct {
	// PluginName is the kebab-case name (e.g., "my-check")
	PluginName string
	// PluginTitle is the title case name (e.g., "My Check")
	PluginTitle string
	// PluginStructName is the PascalCase struct name (e.g., "myCheckPlugin")
	PluginStructName string
	// ModulePath is the Go module path (e.g., "github.com/user/my-check")
	ModulePath string
	// SDKVersion is the SDK version to use (e.g., "v0.1.0" or "latest")
	SDKVersion string
	// Capabilities is the list of required capabilities
	Capabilities []Capability
}

PluginData contains the data used to render plugin templates.

Jump to

Keyboard shortcuts

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