Change provider structure to best practices from terraform-provider-scaffolding project
At first glance, this change set appears to be quite huge, but actually isn't.
It basically reproduces the best practice provider structure and setup from the terraform-provider-scaffolding project.
The major changes are that:
- provider code moved from
gitlabtointernal/providerdirectory - change provider code from
gitlabtoproviderpackage - used scaffolding setup in
main.goandprovider.go - For the test code we don't re-use the Gitlab client from the provider, but I've introduced a
testGitlabClientwhich is separate from the provider Gitlab client. - the rest of the changes were all necessary evil