├── .github ├── upload_release_assets.sh └── workflows │ └── build-and-test.yml ├── .gitignore ├── LICENSE ├── README.md ├── cf_mysql_suite_test.go ├── cfmysql ├── api_client.go ├── api_client_test.go ├── cf_service.go ├── cf_service_test.go ├── cfmysql_suite_test.go ├── cfmysqlfakes │ ├── fake_api_client.go │ ├── fake_cf_service.go │ ├── fake_exec_wrapper.go │ ├── fake_http_client_factory.go │ ├── fake_http_wrapper.go │ ├── fake_io_util_wrapper.go │ ├── fake_mysql_runner.go │ ├── fake_net_wrapper.go │ ├── fake_os_wrapper.go │ ├── fake_port_finder.go │ ├── fake_port_waiter.go │ ├── fake_rand_wrapper.go │ └── fake_ssh_runner.go ├── exec_wrapper.go ├── http_client_factory.go ├── http_client_factory_test.go ├── http_wrapper.go ├── http_wrapper_test.go ├── ioutil_wrapper.go ├── models │ └── models.go ├── mysql_runner.go ├── mysql_runner_test.go ├── net_wrapper.go ├── netfakes │ └── fake_conn.go ├── os_wrapper.go ├── plugin.go ├── plugin_test.go ├── port_finder.go ├── port_waiter.go ├── port_waiter_test.go ├── rand_wrapper.go ├── request_dumper.go ├── request_dumper_test.go ├── resources │ ├── resources.go │ ├── resources_suite_test.go │ └── resources_test.go ├── ssh_runner.go ├── ssh_runner_test.go └── test_resources │ ├── service_instance.json │ ├── service_instance_empty.json │ ├── service_instances.json │ ├── service_instances_page2.json │ ├── service_key.json │ ├── service_key_created.json │ ├── service_key_empty.json │ ├── service_keys.json │ └── test_resources.go ├── go.mod ├── go.sum ├── main.go └── main_test.go /.github/upload_release_assets.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/.github/upload_release_assets.sh -------------------------------------------------------------------------------- /.github/workflows/build-and-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/.github/workflows/build-and-test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/README.md -------------------------------------------------------------------------------- /cf_mysql_suite_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cf_mysql_suite_test.go -------------------------------------------------------------------------------- /cfmysql/api_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/api_client.go -------------------------------------------------------------------------------- /cfmysql/api_client_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/api_client_test.go -------------------------------------------------------------------------------- /cfmysql/cf_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/cf_service.go -------------------------------------------------------------------------------- /cfmysql/cf_service_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/cf_service_test.go -------------------------------------------------------------------------------- /cfmysql/cfmysql_suite_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/cfmysql_suite_test.go -------------------------------------------------------------------------------- /cfmysql/cfmysqlfakes/fake_api_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/cfmysqlfakes/fake_api_client.go -------------------------------------------------------------------------------- /cfmysql/cfmysqlfakes/fake_cf_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/cfmysqlfakes/fake_cf_service.go -------------------------------------------------------------------------------- /cfmysql/cfmysqlfakes/fake_exec_wrapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/cfmysqlfakes/fake_exec_wrapper.go -------------------------------------------------------------------------------- /cfmysql/cfmysqlfakes/fake_http_client_factory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/cfmysqlfakes/fake_http_client_factory.go -------------------------------------------------------------------------------- /cfmysql/cfmysqlfakes/fake_http_wrapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/cfmysqlfakes/fake_http_wrapper.go -------------------------------------------------------------------------------- /cfmysql/cfmysqlfakes/fake_io_util_wrapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/cfmysqlfakes/fake_io_util_wrapper.go -------------------------------------------------------------------------------- /cfmysql/cfmysqlfakes/fake_mysql_runner.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/cfmysqlfakes/fake_mysql_runner.go -------------------------------------------------------------------------------- /cfmysql/cfmysqlfakes/fake_net_wrapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/cfmysqlfakes/fake_net_wrapper.go -------------------------------------------------------------------------------- /cfmysql/cfmysqlfakes/fake_os_wrapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/cfmysqlfakes/fake_os_wrapper.go -------------------------------------------------------------------------------- /cfmysql/cfmysqlfakes/fake_port_finder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/cfmysqlfakes/fake_port_finder.go -------------------------------------------------------------------------------- /cfmysql/cfmysqlfakes/fake_port_waiter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/cfmysqlfakes/fake_port_waiter.go -------------------------------------------------------------------------------- /cfmysql/cfmysqlfakes/fake_rand_wrapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/cfmysqlfakes/fake_rand_wrapper.go -------------------------------------------------------------------------------- /cfmysql/cfmysqlfakes/fake_ssh_runner.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/cfmysqlfakes/fake_ssh_runner.go -------------------------------------------------------------------------------- /cfmysql/exec_wrapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/exec_wrapper.go -------------------------------------------------------------------------------- /cfmysql/http_client_factory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/http_client_factory.go -------------------------------------------------------------------------------- /cfmysql/http_client_factory_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/http_client_factory_test.go -------------------------------------------------------------------------------- /cfmysql/http_wrapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/http_wrapper.go -------------------------------------------------------------------------------- /cfmysql/http_wrapper_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/http_wrapper_test.go -------------------------------------------------------------------------------- /cfmysql/ioutil_wrapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/ioutil_wrapper.go -------------------------------------------------------------------------------- /cfmysql/models/models.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/models/models.go -------------------------------------------------------------------------------- /cfmysql/mysql_runner.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/mysql_runner.go -------------------------------------------------------------------------------- /cfmysql/mysql_runner_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/mysql_runner_test.go -------------------------------------------------------------------------------- /cfmysql/net_wrapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/net_wrapper.go -------------------------------------------------------------------------------- /cfmysql/netfakes/fake_conn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/netfakes/fake_conn.go -------------------------------------------------------------------------------- /cfmysql/os_wrapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/os_wrapper.go -------------------------------------------------------------------------------- /cfmysql/plugin.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/plugin.go -------------------------------------------------------------------------------- /cfmysql/plugin_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/plugin_test.go -------------------------------------------------------------------------------- /cfmysql/port_finder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/port_finder.go -------------------------------------------------------------------------------- /cfmysql/port_waiter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/port_waiter.go -------------------------------------------------------------------------------- /cfmysql/port_waiter_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/port_waiter_test.go -------------------------------------------------------------------------------- /cfmysql/rand_wrapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/rand_wrapper.go -------------------------------------------------------------------------------- /cfmysql/request_dumper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/request_dumper.go -------------------------------------------------------------------------------- /cfmysql/request_dumper_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/request_dumper_test.go -------------------------------------------------------------------------------- /cfmysql/resources/resources.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/resources/resources.go -------------------------------------------------------------------------------- /cfmysql/resources/resources_suite_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/resources/resources_suite_test.go -------------------------------------------------------------------------------- /cfmysql/resources/resources_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/resources/resources_test.go -------------------------------------------------------------------------------- /cfmysql/ssh_runner.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/ssh_runner.go -------------------------------------------------------------------------------- /cfmysql/ssh_runner_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/ssh_runner_test.go -------------------------------------------------------------------------------- /cfmysql/test_resources/service_instance.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/test_resources/service_instance.json -------------------------------------------------------------------------------- /cfmysql/test_resources/service_instance_empty.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/test_resources/service_instance_empty.json -------------------------------------------------------------------------------- /cfmysql/test_resources/service_instances.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/test_resources/service_instances.json -------------------------------------------------------------------------------- /cfmysql/test_resources/service_instances_page2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/test_resources/service_instances_page2.json -------------------------------------------------------------------------------- /cfmysql/test_resources/service_key.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/test_resources/service_key.json -------------------------------------------------------------------------------- /cfmysql/test_resources/service_key_created.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/test_resources/service_key_created.json -------------------------------------------------------------------------------- /cfmysql/test_resources/service_key_empty.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/test_resources/service_key_empty.json -------------------------------------------------------------------------------- /cfmysql/test_resources/service_keys.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/test_resources/service_keys.json -------------------------------------------------------------------------------- /cfmysql/test_resources/test_resources.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/cfmysql/test_resources/test_resources.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/go.sum -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/main.go -------------------------------------------------------------------------------- /main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasf/cf-mysql-plugin/HEAD/main_test.go --------------------------------------------------------------------------------