plugincompiler

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompilePlugin

func CompilePlugin(model configmodel.ModelInfo, config CompilerConfig) error

CompilePlugin compiles a model plugin to the given path

Types

type CompilerConfig

type CompilerConfig struct {
	TemplatePath string
	BuildPath    string
	OutputPath   string
	Target       string
	Replace      string
}

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
}

PluginCompiler is a model plugin compiler

func NewPluginCompiler

func NewPluginCompiler(config CompilerConfig) *PluginCompiler

NewPluginCompiler creates a new model plugin compiler

func (*PluginCompiler) CompilePlugin

func (c *PluginCompiler) CompilePlugin(model configmodel.ModelInfo) 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