sdk

package
v0.3.57 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 7 Imported by: 1 module, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocGenerator

type DocGenerator struct{}

DocGenerator produces markdown documentation from plugin manifests and contracts.

func NewDocGenerator

func NewDocGenerator() *DocGenerator

NewDocGenerator creates a new DocGenerator.

func (*DocGenerator) GenerateContractDoc

func (g *DocGenerator) GenerateContractDoc(contract *dynamic.FieldContract) string

GenerateContractDoc produces a markdown section documenting a field contract.

func (*DocGenerator) GeneratePluginDoc

func (g *DocGenerator) GeneratePluginDoc(manifest *plugin.PluginManifest) string

GeneratePluginDoc produces a complete markdown document for a plugin.

type GenerateOptions

type GenerateOptions struct {
	Name         string
	Version      string
	Author       string
	Description  string
	License      string
	OutputDir    string
	WithContract bool
	GoModule     string // e.g. "github.com/MyOrg/workflow-plugin-foo"
}

GenerateOptions configures what gets generated.

type TemplateGenerator

type TemplateGenerator struct{}

TemplateGenerator scaffolds new plugin projects with a manifest and component skeleton.

func NewTemplateGenerator

func NewTemplateGenerator() *TemplateGenerator

NewTemplateGenerator creates a new TemplateGenerator.

func (*TemplateGenerator) Generate

func (g *TemplateGenerator) Generate(opts GenerateOptions) error

Generate creates a new plugin directory with manifest and component skeleton, plus a full project structure (cmd/, internal/, CI workflows, Makefile, README).

Jump to

Keyboard shortcuts

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