terraform/communicator/ssh
Alisdair McDiarmid fa676bde7c core: Use number for port in connection schema
This commit makes two changes to the provisioner connection block code:

- Change the `port` argument type from string to number, which is
  technically more correct and consistent with `bastion_port`;
- Use `uint16` as the struct member type for both ports instead of
  `int`, which gets us free range validation from the gocty package.

Includes a test of the validation message when the port number is an
invalid integer.
2021-05-10 14:03:42 -04:00
..
communicator.go Grammar nit: "setup" as a verb should be spelled "set up" 2021-01-26 20:39:11 +01:00
communicator_test.go core: Use number for port in connection schema 2021-05-10 14:03:42 -04:00
password.go Fix import formatting across code base 2016-04-18 17:28:46 -07:00
password_test.go communicator/ssh: staticcheck 2020-12-02 13:59:19 -05:00
provisioner.go core: Use number for port in connection schema 2021-05-10 14:03:42 -04:00
provisioner_test.go core: Use number for port in connection schema 2021-05-10 14:03:42 -04:00
ssh_test.go Grammar nit: "setup" as a verb should be spelled "set up" 2021-01-26 20:39:11 +01:00