generator

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultGenerator

type DefaultGenerator struct {
	Project   *v1.Project
	Stack     *v1.Stack
	Workspace *v1.Workspace
	Runner    run.CodeRunner
	KclPkg    *api.KclPackage
}

DefaultGenerator is the default Generator implementation.

func (*DefaultGenerator) Generate

func (g *DefaultGenerator) Generate(workDir string, params map[string]string) (*v1.Intent, error)

Generate versioned Spec with target code runner.

type Generator

type Generator interface {
	// Generate creates versioned Intent given working directory and set of parameters
	Generate(workDir string, params map[string]string) (*v1.Intent, error)
}

Generator is an interface for things that can generate versioned Intent from configuration code under current working directory and given input parameters.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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