plugincontents

package
v0.15.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LooksLikeATemplate added in v0.15.0

func LooksLikeATemplate(text string) (bool, error)

func RenderStringFromTemplateWithValues added in v0.13.0

func RenderStringFromTemplateWithValues(expr string, values interface{}, config interface{}) (string, error)

func RenderTemplatesInValues added in v0.15.0

func RenderTemplatesInValues(name string, values map[string]interface{}, config interface{}) (map[string]interface{}, error)

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

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 (*TemplateRenderer) MapFromJsonContents added in v0.13.0

func (r *TemplateRenderer) MapFromJsonContents(contents provisioner.RemoteFileSpec) (map[string]interface{}, error)

func (*TemplateRenderer) String added in v0.13.0

func (r *TemplateRenderer) String(str string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL