Documentation ¶
Index ¶
Constants ¶
View Source
const ( FluxCompilerType = "flux" SpecCompilerType = "spec" ASTCompilerType = "ast" )
Variables ¶
This section is empty.
Functions ¶
func AddCompilerMappings ¶
func AddCompilerMappings(mappings flux.CompilerMappings) error
AddCompilerMappings adds the Flux specific compiler mappings.
Types ¶
type ASTCompiler ¶ added in v0.18.0
ASTCompiler implements Compiler by producing a Spec from an AST.
func (ASTCompiler) CompilerType ¶ added in v0.18.0
func (ASTCompiler) CompilerType() flux.CompilerType
func (*ASTCompiler) PrependFile ¶ added in v0.21.0
func (c *ASTCompiler) PrependFile(file *ast.File)
PrependFile prepends a file onto the compiler's list of package files.
type FluxCompiler ¶
type FluxCompiler struct {
Query string `json:"query"`
}
FluxCompiler compiles a Flux script into a spec.
func (FluxCompiler) CompilerType ¶
func (c FluxCompiler) CompilerType() flux.CompilerType
type SpecCompiler ¶
SpecCompiler implements Compiler by returning a known spec.
func (SpecCompiler) CompilerType ¶
func (c SpecCompiler) CompilerType() flux.CompilerType
Click to show internal directories.
Click to hide internal directories.