Documentation ¶
Index ¶
- func LooksLikeATemplate(text string) (bool, error)
- func RenderStringFromTemplateWithValues(expr string, values interface{}, config interface{}) (string, error)
- func RenderTemplatesInValues(name string, values map[string]interface{}, config interface{}) (map[string]interface{}, error)
- type PluginFileLoader
- type TemplateRenderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LooksLikeATemplate ¶ added in v0.15.0
func RenderStringFromTemplateWithValues ¶ added in v0.13.0
Types ¶
type PluginFileLoader ¶ added in v0.13.0
type PluginFileLoader struct { FileLoader *provisioner.RemoteFileLoader // contains filtered or unexported fields }
func NewPluginFileLoader ¶ added in v0.13.0
func NewPluginFileLoader(p *api.Plugin) *PluginFileLoader
func (*PluginFileLoader) String ¶ added in v0.13.0
func (l *PluginFileLoader) String(f provisioner.RemoteFileSpec) (string, error)
type TemplateRenderer ¶
type TemplateRenderer struct {
// contains filtered or unexported fields
}
func NewTemplateRenderer ¶ added in v0.13.0
func NewTemplateRenderer(p *api.Plugin, values interface{}, config interface{}) *TemplateRenderer
func (*TemplateRenderer) File ¶ added in v0.13.0
func (r *TemplateRenderer) File(f provisioner.RemoteFileSpec) (string, error)
func (*TemplateRenderer) MapFromJsonContents ¶ added in v0.13.0
func (r *TemplateRenderer) MapFromJsonContents(contents provisioner.RemoteFileSpec) (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.