Documentation ¶
Index ¶
- Variables
- type Engine
- func (e *Engine) Cleanup() diagnostics.Diag
- func (e *Engine) FetchData(ctx context.Context, target string) (_ plugin.Data, diags diagnostics.Diag)
- func (e *Engine) FileMap() map[string]*hcl.File
- func (e *Engine) Install(ctx context.Context, upgrade bool) (diags diagnostics.Diag)
- func (e *Engine) Lint(ctx context.Context, fullLint bool) (diags diagnostics.Diag)
- func (e *Engine) LoadPluginResolver(ctx context.Context, includeRemote bool) (diags diagnostics.Diag)
- func (e *Engine) LoadPluginRunner(ctx context.Context) (diags diagnostics.Diag)
- func (e *Engine) LockFile() *resolver.LockFile
- func (e *Engine) ParseDir(ctx context.Context, sourceDir fs.FS) (diags diagnostics.Diag)
- func (e *Engine) PluginResolver() *resolver.Resolver
- func (e *Engine) PluginRunner() *runner.Runner
- func (e *Engine) PrintDiagnostics(output io.Writer, diags diagnostics.Diag, colorize bool)
- func (e *Engine) RenderAndPublishContent(ctx context.Context, target string) (content plugin.Content, diags diagnostics.Diag)
- func (e *Engine) RenderContent(ctx context.Context, target string) (doc *eval.Document, content plugin.Content, data plugin.Data, ...)
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidDataTarget = diagnostics.Diag{{
Severity: hcl.DiagError,
Summary: "Invalid data target",
Detail: "Target must be in the format 'document.<doc-name>.data.<plugin-name>.<block-name>' or 'data.<plugin-name>.<block-name>'",
}}
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine is the main entry point for the fabric engine. It is responsible for loading and evaluating fabric files, installing plugins, and fetching data. It is also responsible for managing the plugin resolver and runner.
func (*Engine) Cleanup ¶
func (e *Engine) Cleanup() diagnostics.Diag
func (*Engine) LoadPluginResolver ¶
func (*Engine) LoadPluginRunner ¶
func (e *Engine) LoadPluginRunner(ctx context.Context) (diags diagnostics.Diag)
func (*Engine) PluginResolver ¶
func (*Engine) PluginRunner ¶
func (*Engine) PrintDiagnostics ¶
func (*Engine) RenderAndPublishContent ¶
type Option ¶
type Option func(*Options)
func WithBuiltIn ¶
WithBuiltIn sets the built-in plugin.
func WithCacheDir ¶
WithCacheDir sets the cache directory. Default is ".fabric".
func WithLogger ¶
WithLogger sets the logger. Default is a logger that discards all logs.
func WithRegistryBaseURL ¶
WithRegistryBaseURL sets the registry base URL. Default is "https://registry.blackstork.io".
func WithTracer ¶
WithTracer sets the tracer. Default is noop tracer.
Click to show internal directories.
Click to hide internal directories.