154 Commits

Author SHA1 Message Date
Paul Hinze
7c1d2e5368
Use optional fields on Synced Folder instead of empty string checks
Addresses concerns raised in discussion here
https://github.com/hashicorp/vagrant-ruby/pull/219#discussion_r816966056
and makes it so we don't have to change any plugin code to make things
work.

Depends on https://github.com/hashicorp/vagrant-plugin-sdk/pull/133
2022-04-25 12:26:44 -05:00
Chris Roberts
6fe6ee3221
Generated proto update 2022-04-25 12:26:43 -05:00
Paul Hinze
ff86d86ac8
Provisioner Plugins 2022-04-25 12:26:37 -05:00
Chris Roberts
bdf8527ab0
Generated proto update 2022-04-25 12:26:36 -05:00
sophia
3ae69c706a
go generate 2022-04-25 12:26:33 -05:00
sophia
231c99b133
go generate . 2022-04-25 12:26:33 -05:00
sophia
1f632d076c
go generate after rebase 2022-04-25 12:26:33 -05:00
sophia
1cda8322af
go generate 2022-04-25 12:26:33 -05:00
sophia
1217189616
go generate 2022-04-25 12:26:32 -05:00
sophia
764f5c96c5
go generate 2022-04-25 12:26:32 -05:00
Chris Roberts
fc8b01f0ac
Generated proto updates 2022-04-25 12:26:32 -05:00
Chris Roberts
1c3afc0fc9
Generated proto update 2022-04-25 12:26:32 -05:00
Chris Roberts
2acd0fa3b8
Generated proto updates 2022-04-25 12:26:30 -05:00
sophia
bf8b7f6508
go generate 2022-04-25 12:26:27 -05:00
sophia
526b7f2318
Remote init from provider grpc api 2022-04-25 12:26:23 -05:00
sophia
5fda271283
go generate . 2022-04-25 12:26:23 -05:00
Paul Hinze
92c345b42d
Allow go push plugins to use config from Vagrantfile
* Populate push configs when parsing the vagrantfile
* Allow untyped configs to be shipped over GRPC
* In our demo plugin, walk the vagrantfile and snag the config

Example Vagrantfile that works with the demo plugin:

```ruby
Vagrant.configure("2") do |config|
  config.push.define "myplugin" do |push|
    push.coolkey = "coolvalue"
    push.alist = ["so", "many", "items"]
    push.ahash = { "hashkey" => "hashvalue" }
  end
end

```
2022-04-25 12:26:21 -05:00
Paul Hinze
0fef7cc416
Port push plugins
This uses the new Push plugin support added to the plugin SDK in https://github.com/hashicorp/vagrant-plugin-sdk/pull/106 to make the following changes:

 * The plugin manager on the Go side now registers push plugins
 * The the _remote_ plugin manager on the Ruby side now calls over to
   the go side to get push plugins
 * All the wiring is hooked up such that when a push plugin is replaced
   with its remote GRPC-client-wielding equivalent, the messages are
   ferried around.
2022-04-25 12:26:21 -05:00
sophia
deb667ecd3
Use common rpc errdetails messages 2022-04-25 12:26:20 -05:00
sophia
45e64b9890
Add localized message proto 2022-04-25 12:26:20 -05:00
Chris Roberts
72b8547cce
Generated proto updates 2022-04-25 12:26:15 -05:00
sophia
c63e7936b2
go generate 2022-04-25 12:26:12 -05:00
sophia
175f05657c
go generate 2022-04-25 12:26:10 -05:00
sophia
b29b37af0d
Add mappers for time duration proto 2022-04-25 12:26:09 -05:00
sophia
514b4e3d89
go generate 2022-04-25 12:26:09 -05:00
sophia
49ad851606
Use named paths proto message for uploading/downloading 2022-04-25 12:26:09 -05:00
sophia
8513a14f9e
Use RemotePath proto message to upload/download files 2022-04-25 12:26:08 -05:00
sophia
1f2084cd17
Add communincator path proto 2022-04-25 12:26:08 -05:00
sophia
4bc2a51748
Pass communincator command 2022-04-25 12:26:08 -05:00
Chris Roberts
ac8978eee3
Generated proto updates 2022-04-25 12:26:05 -05:00
sophia
c44046998e
go generate 2022-04-25 12:26:04 -05:00
sophia
fa1377528f
go generate 2022-04-25 12:26:04 -05:00
sophia
183ceb85eb
go generate 2022-04-25 12:26:03 -05:00
sophia
9002131281
go generate 2022-04-25 12:26:03 -05:00
Chris Roberts
9f3241a5b5
Generated updates 2022-04-25 12:26:01 -05:00
sophia
7aaeaf2e46
Update protos 2022-04-25 12:25:57 -05:00
sophia
9e04d926bf
go generate 2022-04-25 12:25:56 -05:00
sophia
e7a8c7120e
go generate 2022-04-25 12:25:56 -05:00
sophia
9d01b2c60e
Add endpoint for finding boxes 2022-04-25 12:25:54 -05:00
sophia
62d7324bfc
go generate 2022-04-25 12:25:52 -05:00
sophia
93e94186ba
Add box endpoints 2022-04-25 12:25:52 -05:00
sophia
d7737effbf
Add id to box 2022-04-25 12:25:52 -05:00
sophia
1c27a57213
Use Box as part of machine proto 2022-04-25 12:25:51 -05:00
sophia
ed76183470
Add Box proto message 2022-04-25 12:25:51 -05:00
sophia
0a878721f5
go generate 2022-04-25 12:25:49 -05:00
sophia
92d7c7b291
go generate 2022-04-25 12:24:48 -05:00
Chris Roberts
be4bbe902f
Generated proto updates 2022-04-25 12:24:46 -05:00
sophia
b2cce38f48
Add rpc endpoint to prune out old jobs 2022-04-25 12:24:40 -05:00
sophia
bb336592ea
Remove 'found' from basis/project/target query results 2022-04-25 12:24:39 -05:00
Chris Roberts
c1bbc7284b
Generated proto updates 2022-04-25 12:24:35 -05:00