scaffold

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: Apache-2.0 Imports: 11 Imported by: 0 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateComponentName

func ValidateComponentName(name string) error

ValidateComponentName checks if a component name is valid

Types

type ComponentVersions added in v0.11.0

type ComponentVersions struct {
	MCPAuthorizer string
	MCPGateway    string
}

ComponentVersions represents the versions for WASM components

type SDKVersions

type SDKVersions struct {
	Go         string
	Rust       string
	Python     string
	TypeScript string
}

SDKVersions represents the SDK versions for each language

type Scaffolder

type Scaffolder struct {
	// contains filtered or unexported fields
}

Scaffolder handles component generation using CUE templates

func NewScaffolder

func NewScaffolder() (*Scaffolder, error)

NewScaffolder creates a new scaffolder with embedded templates

func (*Scaffolder) GenerateComponent

func (s *Scaffolder) GenerateComponent(name, language string) error

GenerateComponent creates a new component from templates

func (*Scaffolder) GenerateProject

func (s *Scaffolder) GenerateProject(projectDir, name, description, format string) error

GenerateProject creates a new FTL project from templates

func (*Scaffolder) ListLanguages

func (s *Scaffolder) ListLanguages() []string

ListLanguages returns the available languages

type Versions

type Versions struct {
	FTLCli     string `json:"ftl"`
	SDK        SDKVersions
	Components ComponentVersions
}

Versions represents all versions used in templates

Jump to

Keyboard shortcuts

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