template

package
v0.0.0-...-9803661 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const BuilderID = "packer.post-processor.template"

BuilderId is the name of this post-processor in the logs

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	common.PackerConfig `mapstructure:",squash"`

	TemplateFile string `mapstructure:"template_file"`
	OutputFile   string `mapstructure:"output_file"`
	// contains filtered or unexported fields
}

Config options

type OutputFileTemplate

type OutputFileTemplate struct {
	ArtifactID string
	BuildName  string
	Provider   string
}

OutputFileTemplate is for use within the templates

type PostProcessor

type PostProcessor struct {
	// contains filtered or unexported fields
}

PostProcessor master

func (*PostProcessor) Configure

func (p *PostProcessor) Configure(raws ...interface{}) error

Configure sets up the config options to be used later

func (*PostProcessor) PostProcess

func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (packer.Artifact, bool, error)

PostProcess applies the artifact to the templates

Jump to

Keyboard shortcuts

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