Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoTemplateFactory ¶
type GoTemplateFactory struct { FuncMap template.FuncMap EnableIncludeFn bool // allowed to use include function EnableIncludeModules bool // allowed to use include modules EnableRunner bool // allowed to use functions for runner }
func DefaultGoTemplateFactory ¶
func DefaultGoTemplateFactory() *GoTemplateFactory
func (*GoTemplateFactory) NewInstance ¶
type GoTemplateInstance ¶
type GoTemplateInstance struct {
// contains filtered or unexported fields
}
func (*GoTemplateInstance) LoadSpec ¶
func (i *GoTemplateInstance) LoadSpec() error
type GoTemplateModuleSpec ¶
type GoTemplateModuleSpec struct { module.SpecHeader `yaml:",inline"` Spec struct { Include []string `json:",omitempty" yaml:",omitempty"` // include all templates from those modules (if the're go templates) Settings *map[string]interface{} `json:",omitempty" yaml:",omitempty"` Template *string // the template itself to run } }
func GetGoTemplateModuleSpec ¶
func GetGoTemplateModuleSpec(buf []byte) (*GoTemplateModuleSpec, error)
Click to show internal directories.
Click to hide internal directories.