synthesis

package
v0.11.1 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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPatterns

func GetPatterns() string

GetPatterns returns the raw FTL patterns CUE source This is exported for use by the validation package

func SynthesizeFromConfig

func SynthesizeFromConfig(configPath string) (string, error)

SynthesizeFromConfig reads a config file and synthesizes it to a Spin manifest

Types

type Synthesizer

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

Synthesizer is a pure CUE-based synthesizer

func NewSynthesizer

func NewSynthesizer() *Synthesizer

NewSynthesizer creates a new CUE-first synthesizer

func (*Synthesizer) GetSchema

func (s *Synthesizer) GetSchema() cue.Value

GetSchema returns the compiled FTL schema for validation

func (*Synthesizer) SynthesizeCUE

func (s *Synthesizer) SynthesizeCUE(cueSource string) (string, error)

SynthesizeCUE takes CUE source and produces a Spin manifest

func (*Synthesizer) SynthesizeFromStruct

func (s *Synthesizer) SynthesizeFromStruct(data interface{}) (string, error)

SynthesizeFromStruct takes a Go struct and produces a Spin manifest This is used by the CDK to transform its structs

func (*Synthesizer) SynthesizeJSON

func (s *Synthesizer) SynthesizeJSON(jsonData []byte) (string, error)

SynthesizeJSON takes JSON input and produces a Spin manifest

func (*Synthesizer) SynthesizeWithOverrides

func (s *Synthesizer) SynthesizeWithOverrides(data interface{}, overrides map[string]interface{}) (string, error)

SynthesizeWithOverrides takes data and platform overrides, producing a Spin manifest This is used by the platform package to inject platform-controlled settings

func (*Synthesizer) SynthesizeYAML

func (s *Synthesizer) SynthesizeYAML(yamlData []byte) (string, error)

SynthesizeYAML takes YAML input and produces a Spin manifest

Jump to

Keyboard shortcuts

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