Versions in this module Expand all Collapse all v1 v1.3.2 Oct 29, 2018 Changes in this version + const PackerKeyDefault + const PackerKeyEnv + var RetryExhaustedError error = fmt.Errorf("Function never succeeded in Retry") + func ChooseString(vals ...string) string + func DownloadableURL(original string) (string, error) + func FileExistsLocally(original string) bool + func GetHTTPAddr() string + func GetTerminalDimensions() (width, height int, err error) + func HashForType(t string) hash.Hash + func MultistepDebugFn(ui packer.Ui) multistep.DebugPauseFn + func NewRunner(steps []multistep.Step, config PackerConfig, ui packer.Ui) multistep.Runner + func NewRunnerWithPauseFn(steps []multistep.Step, config PackerConfig, ui packer.Ui, ...) multistep.Runner + func Retry(initialInterval float64, maxInterval float64, numTries uint, ...) error + func SetHTTPIP(ip string) error + func SetHTTPPort(port string) error + func SupportedProtocol(u *url.URL) bool + func ValidatedURL(original string) (string, error) + type DownloadClient struct + func NewDownloadClient(c *DownloadConfig, ui packer.Ui) *DownloadClient + func (d *DownloadClient) Cancel() + func (d *DownloadClient) Get() (string, error) + func (d *DownloadClient) VerifyChecksum(path string) (bool, error) + type DownloadConfig struct + Checksum []byte + CopyFile bool + DownloaderMap map[string]Downloader + Hash hash.Hash + TargetPath string + Url string + UserAgent string + type Downloader interface + Cancel func() + ProgressBar func() packer.ProgressBar + Resume func() + type FileDownloader struct + Ui packer.Ui + func (d *FileDownloader) Cancel() + func (d *FileDownloader) Download(dst *os.File, src *url.URL) error + func (d *FileDownloader) ProgressBar() packer.ProgressBar + func (d *FileDownloader) Resume() + type FloppyConfig struct + FloppyDirectories []string + FloppyFiles []string + func (c *FloppyConfig) Prepare(ctx *interpolate.Context) []error + type HTTPConfig struct + HTTPDir string + HTTPPortMax uint + HTTPPortMin uint + func (c *HTTPConfig) Prepare(ctx *interpolate.Context) []error + type HTTPDownloader struct + Ui packer.Ui + func (d *HTTPDownloader) Cancel() + func (d *HTTPDownloader) Download(dst *os.File, src *url.URL) error + func (d *HTTPDownloader) ProgressBar() packer.ProgressBar + func (d *HTTPDownloader) Resume() + type ISOConfig struct + ISOChecksum string + ISOChecksumType string + ISOChecksumURL string + ISOUrls []string + RawSingleISOUrl string + TargetExtension string + TargetPath string + func (c *ISOConfig) Prepare(ctx *interpolate.Context) (warnings []string, errs []error) + type LocalDownloader interface + type PackerConfig struct + PackerBuildName string + PackerBuilderType string + PackerDebug bool + PackerForce bool + PackerOnError string + PackerSensitiveVars []string + PackerUserVars map[string]string + type RemoteDownloader interface + Download func(*os.File, *url.URL) error + type RetryableFunc func(uint) (bool, error) + type SMBDownloader struct + Ui packer.Ui + func (d *SMBDownloader) Cancel() + func (d *SMBDownloader) Download(dst *os.File, src *url.URL) error + func (d *SMBDownloader) ProgressBar() packer.ProgressBar + func (d *SMBDownloader) Resume() + type StepCleanupTempKeys struct + Comm *communicator.Config + func (s *StepCleanupTempKeys) Cleanup(state multistep.StateBag) + func (s *StepCleanupTempKeys) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepCreateFloppy struct + Directories []string + Files []string + FilesAdded map[string]bool + func (s *StepCreateFloppy) Add(dircache directoryCache, src string) error + func (s *StepCreateFloppy) Cleanup(multistep.StateBag) + func (s *StepCreateFloppy) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepDownload struct + Checksum string + ChecksumType string + Description string + Extension string + ResultKey string + TargetPath string + Url []string + func (s *StepDownload) Cleanup(multistep.StateBag) + func (s *StepDownload) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepHTTPServer struct + HTTPDir string + HTTPPortMax uint + HTTPPortMin uint + func (s *StepHTTPServer) Cleanup(multistep.StateBag) + func (s *StepHTTPServer) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepProvision struct + Comm packer.Communicator + func (*StepProvision) Cleanup(multistep.StateBag) + func (s *StepProvision) Run(_ context.Context, state multistep.StateBag) multistep.StepAction