Documentation ¶
Index ¶
- func ReadFromLocalPath(path string) ([]map[string]interface{}, error)
- func ResolveImportLocalPath(rootPath string, importPath string) (string, error)
- func TrimToDepth(module *Module, depth int) bool
- type EvalContext
- func (c *EvalContext) EvaluateExport(module *Module, params map[string]interface{}, export *Resource) error
- func (c *EvalContext) EvaluateImport(inModule *Module, inModuleParams map[string]interface{}, imprt *Import) error
- func (c *EvalContext) EvaluateModule(module *Module, params map[string]interface{}) error
- func (c *EvalContext) Parse(rootPath string) ([]Module, error)
- func (c *EvalContext) ParseComponent(rootPath string, obj map[string]interface{}) (*Module, error)
- func (c *EvalContext) ResolverForModule(module *Module, params map[string]interface{}) template.Resolver
- type Import
- type Module
- type ParamDef
- type Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFromLocalPath ¶
func ResolveImportLocalPath ¶
func TrimToDepth ¶
TrimToDepth returns true if it trimmed away any imports.
Types ¶
type EvalContext ¶
type EvalContext struct { RawToTyped func(raw interface{}) (interface{}, error) // Get an "absolute" path for a given import. ResolveImportPath func(rootPath string, importPath string) (string, error) // Read the contents of a given path. ReadFromPath func(path string) ([]map[string]interface{}, error) }
func (*EvalContext) EvaluateExport ¶
func (c *EvalContext) EvaluateExport(module *Module, params map[string]interface{}, export *Resource) error
func (*EvalContext) EvaluateImport ¶
func (c *EvalContext) EvaluateImport(inModule *Module, inModuleParams map[string]interface{}, imprt *Import) error
func (*EvalContext) EvaluateModule ¶
func (c *EvalContext) EvaluateModule(module *Module, params map[string]interface{}) error
func (*EvalContext) ParseComponent ¶
func (c *EvalContext) ParseComponent(rootPath string, obj map[string]interface{}) (*Module, error)
func (*EvalContext) ResolverForModule ¶
func (c *EvalContext) ResolverForModule(module *Module, params map[string]interface{}) template.Resolver
Click to show internal directories.
Click to hide internal directories.