generator

package
v0.13.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDependentModules added in v0.12.0

func CopyDependentModules(workDir string) error

CopyDependentModules copies dependent Kusion modules' generators to destination.

Types

type DefaultGenerator

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

DefaultGenerator is the default Generator implementation.

func (*DefaultGenerator) Generate

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

Generate versioned Spec with target code runner.

type Generator

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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