file

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2016 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const BuilderId = "packer.file"

Variables

View Source
var ErrContentSourceConflict = fmt.Errorf("Cannot specify source file AND content")
View Source
var ErrTargetRequired = fmt.Errorf("target required")

Functions

This section is empty.

Types

type Builder

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

func (*Builder) Cancel

func (b *Builder) Cancel()

Cancel cancels a possibly running Builder. This should block until the builder actually cancels and cleans up after itself.

func (*Builder) Prepare

func (b *Builder) Prepare(raws ...interface{}) ([]string, error)

func (*Builder) Run

func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packer.Artifact, error)

Run is where the actual build should take place. It takes a Build and a Ui.

type Config

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

	Source  string `mapstructure:"source"`
	Target  string `mapstructure:"target"`
	Content string `mapstructure:"content"`
}

func NewConfig

func NewConfig(raws ...interface{}) (*Config, []string, error)

type FileArtifact

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

func (*FileArtifact) BuilderId

func (*FileArtifact) BuilderId() string

func (*FileArtifact) Destroy

func (a *FileArtifact) Destroy() error

func (*FileArtifact) Files

func (a *FileArtifact) Files() []string

func (*FileArtifact) Id

func (a *FileArtifact) Id() string

func (*FileArtifact) State

func (a *FileArtifact) State(name string) interface{}

func (*FileArtifact) String

func (a *FileArtifact) String() string

Jump to

Keyboard shortcuts

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