Documentation
¶
Index ¶
- func GetPatterns() string
- func SynthesizeFromConfig(configPath string) (string, error)
- type Synthesizer
- func (s *Synthesizer) GetSchema() cue.Value
- func (s *Synthesizer) SynthesizeCUE(cueSource string) (string, error)
- func (s *Synthesizer) SynthesizeFromStruct(data interface{}) (string, error)
- func (s *Synthesizer) SynthesizeJSON(jsonData []byte) (string, error)
- func (s *Synthesizer) SynthesizeWithOverrides(data interface{}, overrides map[string]interface{}) (string, error)
- func (s *Synthesizer) SynthesizeYAML(yamlData []byte) (string, error)
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 ¶
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