A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pkg.go.dev/github.com/terramate-io/terramate@v0.14.4/generate/genfile below:

genfile package - github.com/terramate-io/terramate/generate/genfile - Go Packages

Package genfile implements generate_file code generation.

View Source
const (
	
	
	ErrInvalidContentType errors.Kind = "invalid content type"

	
	
	ErrInvalidConditionType errors.Kind = "invalid condition type"

	
	ErrContentEval errors.Kind = "evaluating content"

	
	ErrConditionEval errors.Kind = "evaluating condition"

	
	ErrInheritEval errors.Kind = "evaluating inherit attribute"

	
	ErrInvalidInheritType errors.Kind = "invalid inherit type"

	
	
	ErrLabelConflict errors.Kind = "label conflict detected"
)
View Source
const (
	
	StackContext = "stack"

	
	RootContext = "root"
)

This section is empty.

This section is empty.

File represents generated file from a single generate_file block.

Eval the generate_file block.

Load loads and parses from the file system all generate_file blocks for a given stack. It will navigate the file system from the stack dir until it reaches rootdir, loading generate_file blocks found on Terramate configuration files.

All generate_file blocks must have unique labels, even ones at different directories. Any conflicts will be reported as an error.

Metadata and globals for the stack are used on the evaluation of the generate_file blocks.

The rootdir MUST be an absolute path.

Asserts returns all (if any) of the evaluated assert configs of the generate_file block. If File.Condition returns false then assert configs will always be empty since they are not evaluated at all in that case.

func (File) Body ΒΆ

Body returns the file body.

Builtin returns false for generate_file blocks.

Condition returns the result of the evaluation of the condition attribute for the generated code.

Context of the generate_file block.

Header returns the header of this file.

Label of the original generate_file block.

Range returns the range information of the generate_file block.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4