packer-cn/common
Adrien Delorme f555e7a9f2 allow a provisioner to timeout
* I had to contextualise Communicator.Start and RemoteCmd.StartWithUi
NOTE: Communicator.Start starts a RemoteCmd but RemoteCmd.StartWithUi will run the cmd and wait for a return, so I renamed StartWithUi to RunWithUi so that the intent is clearer.
Ideally in the future RunWithUi will be named back to StartWithUi and the exit status or wait funcs of the command will allow to wait for a return. If you do so please read carrefully https://golang.org/pkg/os/exec/#Cmd.Stdout to avoid a deadlock
* cmd.ExitStatus to cmd.ExitStatus() is now blocking to avoid race conditions
* also had to simplify StartWithUi
2019-04-08 20:09:21 +02:00
..
adapter allow a provisioner to timeout 2019-04-08 20:09:21 +02:00
bootcommand make generate 2019-02-04 15:16:38 +01:00
json common/json: add Unmarshal with method with syntax errors 2013-08-09 16:50:24 -07:00
net Revert "WIP: go towards context cancelled rpc pkg" 2019-04-03 15:55:55 +02:00
powershell quote variables in powershell script to account for spaces 2019-02-01 13:23:17 -08:00
random random: optimize allocation & simplify loop 2018-09-05 10:27:02 +02:00
shell Update common/shell/shell.go 2019-03-15 12:21:27 +01:00
shell-local allow a provisioner to timeout 2019-04-08 20:09:21 +02:00
template introduce the clean_resource_name to clean image names and deprecate the old ones 2019-04-03 11:25:51 +02:00
test-fixtures Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
uuid Simplifies the implementation of common/uuid 2013-10-23 23:05:02 +01:00
config.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
floppy_config.go move packer to hashicorp 2017-04-04 13:39:01 -07:00
floppy_config_test.go tests actually test the floppies 2016-07-27 21:59:21 +01:00
http_config.go use port as ints 2019-03-19 15:01:12 +01:00
http_config_test.go use port as ints 2019-03-19 15:01:12 +01:00
iso_config.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
iso_config_test.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
multistep_debug.go fix imports 2018-01-24 17:09:17 -08:00
multistep_runner.go Use fmt to convert whatever's in error to a string. 2018-05-08 15:22:02 -07:00
packer_config.go replace scrubconfig with packer.LogSecretFilter.Set 2018-08-20 15:35:55 -07:00
retry.go builder/virtualbox-ovf retry removing VM. 2017-10-25 10:27:33 -07:00
retry_test.go post-processor/vagrant-cloud: try upload once 2017-06-12 17:34:32 -07:00
step_cleanup_temp_keys.go allow a provisioner to timeout 2019-04-08 20:09:21 +02:00
step_create_floppy.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_create_floppy_test.go test fixes WIP 2018-01-24 17:09:17 -08:00
step_download.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
step_download_test.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
step_http_server.go use port as ints 2019-03-19 15:01:12 +01:00
step_output_dir.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_output_dir_test.go deduplicate step_output_dir and move to common folder 2019-01-11 15:06:36 -08:00
step_provision.go [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method 2019-04-03 15:55:55 +02:00
step_provision_test.go fix imports 2018-01-24 17:09:17 -08:00
terminal.go Moved the progress bar out of packer.Ui and unlinked it out of all the packer.Ui implementations. Split up the terminal-related functions into a separate terminal.go and calculate the progress bar width by traversing through packer.Ui to avoid the issue with github.com/ugorji/go/codec serializing private members (or unsafe pointers) of structs. Shuffled some arguments around in getConsoleScreenBufferInfo in common/terminal_windows.go so that the interface forces the user to correctly declare a _CONSOLE_SCREEN_BUFFER_INFO type. 2018-08-20 21:55:18 -05:00
terminal_posix.go Moved the progress bar out of packer.Ui and unlinked it out of all the packer.Ui implementations. Split up the terminal-related functions into a separate terminal.go and calculate the progress bar width by traversing through packer.Ui to avoid the issue with github.com/ugorji/go/codec serializing private members (or unsafe pointers) of structs. Shuffled some arguments around in getConsoleScreenBufferInfo in common/terminal_windows.go so that the interface forces the user to correctly declare a _CONSOLE_SCREEN_BUFFER_INFO type. 2018-08-20 21:55:18 -05:00
terminal_test.go Moved the progress bar out of packer.Ui and unlinked it out of all the packer.Ui implementations. Split up the terminal-related functions into a separate terminal.go and calculate the progress bar width by traversing through packer.Ui to avoid the issue with github.com/ugorji/go/codec serializing private members (or unsafe pointers) of structs. Shuffled some arguments around in getConsoleScreenBufferInfo in common/terminal_windows.go so that the interface forces the user to correctly declare a _CONSOLE_SCREEN_BUFFER_INFO type. 2018-08-20 21:55:18 -05:00
terminal_windows.go Moved the progress bar out of packer.Ui and unlinked it out of all the packer.Ui implementations. Split up the terminal-related functions into a separate terminal.go and calculate the progress bar width by traversing through packer.Ui to avoid the issue with github.com/ugorji/go/codec serializing private members (or unsafe pointers) of structs. Shuffled some arguments around in getConsoleScreenBufferInfo in common/terminal_windows.go so that the interface forces the user to correctly declare a _CONSOLE_SCREEN_BUFFER_INFO type. 2018-08-20 21:55:18 -05:00