Documentation ¶
Index ¶
- type FileInLibrary
- type Library
- func (l *Library) CreateLibrary(name string) *Library
- func (l *Library) FindAccessibleLibrary(path string) (*Library, error)
- func (l *Library) FindFile(path string) (*files.File, error)
- func (l *Library) FindLibrary(name string) (*Library, bool)
- func (l *Library) ListAccessibleFiles() []FileInLibrary
- func (l *Library) Print(out io.Writer)
- type TemplateLoader
- func (l *TemplateLoader) EvalStarlark(library *Library, file *files.File) (starlark.StringDict, error)
- func (l *TemplateLoader) EvalText(library *Library, file *files.File) (starlark.StringDict, interface{}, error)
- func (l *TemplateLoader) EvalYAML(library *Library, file *files.File) (starlark.StringDict, interface{}, error)
- func (l *TemplateLoader) FindCompiledTemplate(path string) (*template.CompiledTemplate, error)
- func (l *TemplateLoader) ListData(thread *starlark.Thread, f *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func (l *TemplateLoader) Load(thread *starlark.Thread, module string) (starlark.StringDict, error)
- func (l *TemplateLoader) LoadData(thread *starlark.Thread, f *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- type TemplateLoaderOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileInLibrary ¶ added in v0.5.0
type Library ¶
type Library struct {
// contains filtered or unexported fields
}
func NewRootLibrary ¶
func (*Library) CreateLibrary ¶
func (*Library) FindAccessibleLibrary ¶
func (*Library) ListAccessibleFiles ¶
func (l *Library) ListAccessibleFiles() []FileInLibrary
type TemplateLoader ¶
type TemplateLoader struct {
// contains filtered or unexported fields
}
func NewTemplateLoader ¶
func NewTemplateLoader(values interface{}, ui files.UI, opts TemplateLoaderOpts) *TemplateLoader
func (*TemplateLoader) EvalStarlark ¶
func (l *TemplateLoader) EvalStarlark(library *Library, file *files.File) (starlark.StringDict, error)
func (*TemplateLoader) EvalText ¶
func (l *TemplateLoader) EvalText(library *Library, file *files.File) (starlark.StringDict, interface{}, error)
func (*TemplateLoader) EvalYAML ¶
func (l *TemplateLoader) EvalYAML(library *Library, file *files.File) (starlark.StringDict, interface{}, error)
func (*TemplateLoader) FindCompiledTemplate ¶
func (l *TemplateLoader) FindCompiledTemplate(path string) (*template.CompiledTemplate, error)
func (*TemplateLoader) Load ¶
func (l *TemplateLoader) Load(thread *starlark.Thread, module string) (starlark.StringDict, error)
type TemplateLoaderOpts ¶ added in v0.12.0
type TemplateLoaderOpts struct {
IgnoreUnknownComments bool
}
Click to show internal directories.
Click to hide internal directories.