{"modulePath":"github.com/stackpointcloud/packer","version":"v0.10.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package file\n\n## Constants\n\n```go\nconst BuilderId = \"packer.file\"\n```\n\n## Variables\n\n```go\nvar ErrContentSourceConflict = fmt.Errorf(\"Cannot specify source file AND content\")\n```\n\n```go\nvar ErrTargetRequired = fmt.Errorf(\"target required\")\n```\n\n## Types\n\n```go\ntype Builder struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (b *Builder) Cancel()\n```\nCancel cancels a possibly running Builder. This should block until the builder actually cancels and cleans up after itself.\n\n```go\nfunc (b *Builder) Prepare(raws ...interface{}) ([]string, error)\n```\n\n```go\nfunc (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packer.Artifact, error)\n```\nRun is where the actual build should take place. It takes a Build and a Ui.\n\n```go\ntype Config struct {\n\tcommon.PackerConfig `mapstructure:\",squash\"`\n\n\tSource  string `mapstructure:\"source\"`\n\tTarget  string `mapstructure:\"target\"`\n\tContent string `mapstructure:\"content\"`\n}\n```\n\n```go\nfunc NewConfig(raws ...interface{}) (*Config, []string, error)\n```\n\n```go\ntype FileArtifact struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*FileArtifact) BuilderId() string\n```\n\n```go\nfunc (a *FileArtifact) Destroy() error\n```\n\n```go\nfunc (a *FileArtifact) Files() []string\n```\n\n```go\nfunc (a *FileArtifact) Id() string\n```\n\n```go\nfunc (a *FileArtifact) State(name string) interface{}\n```\n\n```go\nfunc (a *FileArtifact) String() string\n```\n\n","path":"github.com/stackpointcloud/packer/builder/file","name":"file","synopsis":"","isRedistributable":true}
