packer-cn/packer/rpc
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
..
artifact.go Revert "WIP: go towards context cancelled rpc pkg" 2019-04-03 15:55:55 +02:00
artifact_test.go run goimports 2018-01-22 17:21:10 -08:00
build.go [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method 2019-04-03 15:55:55 +02:00
build_test.go [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method 2019-04-03 15:55:55 +02:00
builder.go [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method 2019-04-03 15:55:55 +02:00
builder_test.go [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method 2019-04-03 15:55:55 +02:00
client.go Revert "WIP: go towards context cancelled rpc pkg" 2019-04-03 15:55:55 +02:00
client_test.go [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method 2019-04-03 15:55:55 +02:00
communicator.go allow a provisioner to timeout 2019-04-08 20:09:21 +02:00
communicator_test.go allow a provisioner to timeout 2019-04-08 20:09:21 +02:00
error.go packer/rpc: use the msgpack codec 2014-04-26 13:31:34 -07:00
error_test.go packer/rpc: don't depend on cgl 2013-10-16 17:04:57 -10:00
fileinfo.go allow ssh communicator's Upload fastpath to execute 2016-09-28 23:22:04 -07:00
fileinfo_test.go allow ssh communicator's Upload fastpath to execute 2016-09-28 23:22:04 -07:00
hook.go [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method 2019-04-03 15:55:55 +02:00
hook_test.go [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method 2019-04-03 15:55:55 +02:00
init.go packer/rpc: register map[string]string since we transfer that 2013-08-09 16:53:18 -07:00
mux_broker.go simplify some code 2017-03-28 20:36:20 -07:00
mux_broker_test.go Revert "mux_broker_test.go: make non blocking errChan" 2018-12-17 13:49:47 -08:00
post_processor.go Merge remote-tracking branch 'origin/master' into context_provisioner 2019-04-08 20:09:01 +02:00
post_processor_test.go Merge remote-tracking branch 'origin/master' into context_provisioner 2019-04-08 20:09:01 +02:00
provisioner.go [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method 2019-04-03 15:55:55 +02:00
provisioner_test.go [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method 2019-04-03 15:55:55 +02:00
server.go [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method 2019-04-03 15:55:55 +02:00
server_test.go go fmt 2013-05-10 17:01:24 -07:00
ui.go Revert "WIP: go towards context cancelled rpc pkg" 2019-04-03 15:55:55 +02:00
ui_progress_tracking.go Revert "WIP: go towards context cancelled rpc pkg" 2019-04-03 15:55:55 +02:00
ui_test.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00