packer-cn/builder/openstack
Adrien Delorme 9f82b75e57 Use the hashicorp/go-getter to download files
* removed packer.Cache and references since packer.Cache is never used except in the download step. The download step now uses the new func packer.CachePath(targetPath) for this, the behavior is the same.
* removed download code from packer that was reimplemented into the go-getter library: progress bar, http download restart, checksuming from file, skip already downloaded files, symlinking, make a download cancellable by context.
* on windows if packer is running without symlinking rights and we are getting a local file, the file will be copied instead to avoid errors.
* added unit tests for step_download that are now CI tested on windows, mac & linux.
* files are now downloaded under cache dir `sha1(filename + "?checksum=" + checksum) + file_extension`
* since the output dir is based on the source url and the checksum, when the checksum fails, the file is auto deleted.
* a download file is protected and locked by a file lock,
* updated docs
* updated go modules and vendors
2019-03-13 12:11:58 +01:00
..
access_config.go Support reading app creds from packer config 2019-02-09 22:52:02 -05:00
artifact.go Replaced compute/v2/images with imageservice/v2/images. 2018-11-25 14:30:31 -05:00
artifact_test.go run goimports 2018-01-22 17:21:10 -08:00
builder.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
builder_test.go run goimports 2018-01-22 17:21:10 -08:00
image_config.go openstack: Add support for tagging new images. 2018-11-23 20:22:10 -05:00
image_config_test.go Add base support for openstack [GH-155] 2013-08-26 21:57:23 -07:00
networks.go OpenStack builder: do not always use floating IPs 2018-08-17 00:49:06 +03:00
run_config.go add openstack volume_size option 2018-12-18 23:58:27 +01:00
run_config_test.go Updated test cases to cover bad filters and empty() 2018-08-22 18:23:12 -04:00
server.go move multistep imports to helper. 2018-01-24 17:09:15 -08:00
ssh.go refactor all copy pasted sshConfig with into communicator.Config.SSHConfigFunc 2018-08-22 17:02:23 +02:00
step_add_image_members.go builder/openstack: use config as a pointer so values could be set 2018-09-27 16:27:34 +02:00
step_allocate_ip.go use guard clauses 2018-10-29 18:36:08 +00:00
step_create_image.go builder/openstack/step_create_image.go: pass context for cancellation 2019-02-25 15:03:11 +01:00
step_create_volume.go use openstack volume_size option on creation 2018-12-18 23:59:54 +01:00
step_detach_volume.go builder/openstack: use config as a pointer so values could be set 2018-09-27 16:27:34 +02:00
step_get_password.go builder/openstack: use config as a pointer so values could be set 2018-09-27 16:27:34 +02:00
step_key_pair.go Add tmp package that offers Dir & File funcs 2018-12-12 16:35:57 +01:00
step_key_pair_test.go up test 2018-08-29 14:40:33 +02:00
step_load_flavor.go builder/openstack: use config as a pointer so values could be set 2018-09-27 16:27:34 +02:00
step_run_source_server.go Revert "Fix bugs" 2018-09-27 16:27:34 +02:00
step_source_image_info.go builder/openstack: use config as a pointer so values could be set 2018-09-27 16:27:34 +02:00
step_stop_server.go builder/openstack: use config as a pointer so values could be set 2018-09-27 16:27:34 +02:00
step_update_image_tags.go openstack: Add support for tagging new images. 2018-11-23 20:22:10 -05:00
step_update_image_visibility.go builder/openstack: use config as a pointer so values could be set 2018-09-27 16:27:34 +02:00
step_wait_for_rackconnect.go builder/openstack: use config as a pointer so values could be set 2018-09-27 16:27:34 +02:00
volume.go OpenStack: wait for volume availability when cleaning up 2018-09-21 10:13:45 +09:00