file

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2018 License: MPL-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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