plugincompiler

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompilerConfig

type CompilerConfig struct {
	TemplatePath string
	BuildPath    string
	SkipCleanUp  bool
}

CompilerConfig is a plugin compiler configuration

type CompilerInfo

type CompilerInfo struct {
	Version   string
	IsRelease bool
	Root      string
}

CompilerInfo is the compiler info

type PluginCompiler

type PluginCompiler struct {
	Config CompilerConfig
	// contains filtered or unexported fields
}

PluginCompiler is a model plugin compiler

func NewPluginCompiler

func NewPluginCompiler(config CompilerConfig, resolver *pluginmodule.Resolver) *PluginCompiler

NewPluginCompiler creates a new model plugin compiler

func (*PluginCompiler) CompilePlugin

func (c *PluginCompiler) CompilePlugin(model configmodel.ModelInfo, path string) error

CompilePlugin compiles a model plugin to the given path

type TemplateInfo

type TemplateInfo struct {
	Model    configmodel.ModelInfo
	Compiler CompilerInfo
}

TemplateInfo provides all the variables for templates

Jump to

Keyboard shortcuts

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