From 618146af05fbf4521e0eba9ec6388961635a296e Mon Sep 17 00:00:00 2001 From: Sebastian Rivera Date: Tue, 7 May 2024 15:42:57 -0400 Subject: [PATCH 1/3] v1.53.0 changelog --- CHANGELOG.md | 4 ++++ go.mod | 4 ++-- go.sum | 8 ++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e40f6c3f8..185ac8ba6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Unreleased + +# v1.53.0 + +## Enhancements * Adds `ManageTeams`, `ManageOrganizationAccess`, and `AccessSecretTeams` permissions to team `OrganizationAccess` by @juliannatetreault [#874](https://github.com/hashicorp/go-tfe/pull/874) # v1.52.0 diff --git a/go.mod b/go.mod index aa8e871a2..29790ed5e 100644 --- a/go.mod +++ b/go.mod @@ -12,13 +12,13 @@ require ( github.com/hashicorp/go-version v1.6.0 github.com/hashicorp/jsonapi v1.3.1 github.com/stretchr/testify v1.9.0 - golang.org/x/sync v0.6.0 + golang.org/x/sync v0.7.0 golang.org/x/time v0.5.0 ) require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/sys v0.14.0 // indirect + golang.org/x/sys v0.20.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 807dee54d..353b8cd29 100644 --- a/go.sum +++ b/go.sum @@ -34,15 +34,15 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= -golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= +golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= -golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= +golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= From 3f59b80280d7d251419d5efe2a03a6c8ca0fbfa9 Mon Sep 17 00:00:00 2001 From: Sebastian Rivera Date: Tue, 7 May 2024 16:31:47 -0400 Subject: [PATCH 2/3] Use uber/gomock and regenerate mocks --- .github/actions/lint-go-tfe/action.yml | 2 +- docs/CONTRIBUTING.md | 2 +- generate_mocks.sh | 12 +- go.mod | 2 +- go.sum | 27 +---- mocks/admin_opa_version_mocks.go | 17 ++- mocks/admin_organization_mocks.go | 19 +-- mocks/admin_run_mocks.go | 11 +- mocks/admin_sentinel_version_mocks.go | 17 ++- mocks/admin_setting_cost_estimation_mocks.go | 11 +- mocks/admin_setting_customization_mocks.go | 11 +- mocks/admin_setting_general_mocks.go | 11 +- mocks/admin_setting_mocks.go | 5 + mocks/admin_setting_oidc_mocks.go | 68 +++++++++++ mocks/admin_setting_saml_mocks.go | 13 ++- mocks/admin_setting_smtp_mocks.go | 11 +- mocks/admin_setting_twilio_mocks.go | 13 ++- mocks/admin_terraform_version_mocks.go | 17 ++- mocks/admin_user_mocks.go | 21 ++-- mocks/admin_workspace_mocks.go | 13 ++- mocks/agent_pool_mocks.go | 21 ++-- mocks/agent_token_mocks.go | 15 ++- mocks/agents.go | 11 +- mocks/apply_mocks.go | 11 +- mocks/audit_trail_mocks.go | 9 +- mocks/comment_mocks.go | 86 ++++++++++++++ mocks/configuration_version_mocks.go | 31 ++--- mocks/cost_estimate_mocks.go | 11 +- mocks/github_app_installation_mocks.go | 71 ++++++++++++ mocks/gpg_key_mocks.go | 17 ++- mocks/ip_ranges_mocks.go | 9 +- mocks/logreader_mocks.go | 5 + mocks/notification_configuration_mocks.go | 19 +-- mocks/oauth_client_mocks.go | 23 ++-- mocks/oauth_token_mocks.go | 15 ++- mocks/organization_membership_mocks.go | 17 ++- mocks/organization_mocks.go | 37 +++--- mocks/organization_token_mocks.go | 15 ++- mocks/plan_export_mocks.go | 15 ++- mocks/plan_mocks.go | 13 ++- mocks/policy_check_mocks.go | 15 ++- mocks/policy_evaluation.go | 13 ++- mocks/policy_mocks.go | 21 ++-- mocks/policy_set_mocks.go | 35 +++--- mocks/policy_set_parameter_mocks.go | 17 ++- mocks/policy_set_version_mocks.go | 13 ++- mocks/project_mocks.go | 17 ++- mocks/registry_module_mocks.go | 35 +++--- mocks/registry_no_code_module_mocks.go | 15 ++- mocks/registry_provider_mocks.go | 15 ++- mocks/registry_provider_platform_mocks.go | 15 ++- mocks/registry_provider_version_mocks.go | 15 ++- mocks/run_events_mocks.go | 13 ++- mocks/run_mocks.go | 25 ++-- mocks/run_tasks_mocks.go | 21 ++-- mocks/run_trigger_mocks.go | 15 ++- mocks/ssh_key_mocks.go | 17 ++- mocks/state_version_mocks.go | 31 ++--- mocks/state_version_output_mocks.go | 11 +- mocks/tag_mocks.go | 5 + mocks/task_result_mocks.go | 9 +- mocks/task_stages_mocks.go | 13 ++- mocks/team_access_mocks.go | 17 ++- mocks/team_member_mocks.go | 17 ++- mocks/team_mocks.go | 17 ++- mocks/team_project_access_mocks.go | 17 ++- mocks/team_token_mocks.go | 15 ++- mocks/test_run_mocks.go | 19 +-- mocks/test_variables_mocks.go | 115 +++++++++++++++++++ mocks/user_mocks.go | 11 +- mocks/user_token_mocks.go | 15 ++- mocks/variable_mocks.go | 17 ++- mocks/variable_set_mocks.go | 31 ++--- mocks/variable_set_variable_mocks.go | 17 ++- mocks/workspace_mocks.go | 73 ++++++------ mocks/workspace_resources.go | 9 +- mocks/workspace_run_tasks_mocks.go | 17 ++- 77 files changed, 1103 insertions(+), 444 deletions(-) create mode 100644 mocks/admin_setting_oidc_mocks.go create mode 100644 mocks/comment_mocks.go create mode 100644 mocks/github_app_installation_mocks.go create mode 100644 mocks/test_variables_mocks.go diff --git a/.github/actions/lint-go-tfe/action.yml b/.github/actions/lint-go-tfe/action.yml index 7bfafd07f..3d57fd898 100644 --- a/.github/actions/lint-go-tfe/action.yml +++ b/.github/actions/lint-go-tfe/action.yml @@ -30,7 +30,7 @@ runs: - name: Install mockgen shell: bash - run: go install github.com/golang/mock/mockgen@v1.6.0 + run: go install go.uber.org/mock/mockgen@v0.4.0 - name: Get dependencies shell: bash diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 5eb50e964..eab28a649 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -33,7 +33,7 @@ The test suite contains many acceptance tests that are run against the latest ve We've included VSCode settings to assist with configuring the go extension. For other editors that integrate with the [Go Language Server](https://github.com/golang/tools/tree/master/gopls), the main thing to do is to add the `integration` build tags so that the test files are found by the language server. See `.vscode/settings.json` for more details. ## Generating Mocks -Ensure you have installed the [mockgen](https://github.com/golang/mock) tool. +Ensure you have installed the [mockgen](https://github.com/uber-go/mock) tool. You'll need to generate mocks if an existing endpoint method is modified or a new method is added. To generate mocks, simply run `./generate_mocks.sh`. diff --git a/generate_mocks.sh b/generate_mocks.sh index 642fd3bd5..ce48dddf2 100755 --- a/generate_mocks.sh +++ b/generate_mocks.sh @@ -4,27 +4,30 @@ set -euf -o pipefail -mockgen -source=run.go -destination=mocks/run_mocks.go -package=mocks +mockgen -source=admin_opa_version.go -destination=mocks/admin_opa_version_mocks.go -package=mocks mockgen -source=admin_organization.go -destination=mocks/admin_organization_mocks.go -package=mocks mockgen -source=admin_run.go -destination=mocks/admin_run_mocks.go -package=mocks +mockgen -source=admin_sentinel_version.go -destination=mocks/admin_sentinel_version_mocks.go -package=mocks mockgen -source=admin_setting.go -destination=mocks/admin_setting_mocks.go -package=mocks mockgen -source=admin_setting_cost_estimation.go -destination=mocks/admin_setting_cost_estimation_mocks.go -package=mocks mockgen -source=admin_setting_customization.go -destination=mocks/admin_setting_customization_mocks.go -package=mocks mockgen -source=admin_setting_general.go -destination=mocks/admin_setting_general_mocks.go -package=mocks +mockgen -source=admin_setting_oidc.go -destination=mocks/admin_setting_oidc_mocks.go -package=mocks mockgen -source=admin_setting_saml.go -destination=mocks/admin_setting_saml_mocks.go -package=mocks mockgen -source=admin_setting_smtp.go -destination=mocks/admin_setting_smtp_mocks.go -package=mocks mockgen -source=admin_setting_twilio.go -destination=mocks/admin_setting_twilio_mocks.go -package=mocks mockgen -source=admin_terraform_version.go -destination=mocks/admin_terraform_version_mocks.go -package=mocks -mockgen -source=admin_opa_version.go -destination=mocks/admin_opa_version_mocks.go -package=mocks -mockgen -source=admin_sentinel_version.go -destination=mocks/admin_sentinel_version_mocks.go -package=mocks mockgen -source=admin_user.go -destination=mocks/admin_user_mocks.go -package=mocks mockgen -source=admin_workspace.go -destination=mocks/admin_workspace_mocks.go -package=mocks +mockgen -source=agent.go -destination=mocks/agents.go -package=mocks mockgen -source=agent_pool.go -destination=mocks/agent_pool_mocks.go -package=mocks mockgen -source=agent_token.go -destination=mocks/agent_token_mocks.go -package=mocks mockgen -source=apply.go -destination=mocks/apply_mocks.go -package=mocks mockgen -source=audit_trail.go -destination=mocks/audit_trail_mocks.go -package=mocks +mockgen -source=comment.go -destination=mocks/comment_mocks.go -package=mocks mockgen -source=configuration_version.go -destination=mocks/configuration_version_mocks.go -package=mocks mockgen -source=cost_estimate.go -destination=mocks/cost_estimate_mocks.go -package=mocks +mockgen -source=github_app_installation.go -destination=mocks/github_app_installation_mocks.go -package=mocks mockgen -source=gpg_key.go -destination=mocks/gpg_key_mocks.go -package=mocks mockgen -source=ip_ranges.go -destination=mocks/ip_ranges_mocks.go -package=mocks mockgen -source=logreader.go -destination=mocks/logreader_mocks.go -package=mocks @@ -61,6 +64,7 @@ mockgen -source=team_member.go -destination=mocks/team_member_mocks.go -package= mockgen -source=team_project_access.go -destination=mocks/team_project_access_mocks.go -package=mocks mockgen -source=team_token.go -destination=mocks/team_token_mocks.go -package=mocks mockgen -source=test_run.go -destination=mocks/test_run_mocks.go -package=mocks +mockgen -source=test_variables.go -destination=mocks/test_variables_mocks.go -package=mocks mockgen -source=user.go -destination=mocks/user_mocks.go -package=mocks mockgen -source=user_token.go -destination=mocks/user_token_mocks.go -package=mocks mockgen -source=variable.go -destination=mocks/variable_mocks.go -package=mocks @@ -68,10 +72,8 @@ mockgen -source=variable_set.go -destination=mocks/variable_set_mocks.go -packag mockgen -source=variable_set_variable.go -destination=mocks/variable_set_variable_mocks.go -package=mocks mockgen -source=workspace.go -destination=mocks/workspace_mocks.go -package=mocks mockgen -source=workspace_run_task.go -destination=mocks/workspace_run_tasks_mocks.go -package=mocks -mockgen -source=agent.go -destination=mocks/agents.go -package=mocks mockgen -source=policy_evaluation.go -destination=mocks/policy_evaluation.go -package=mocks mockgen -source=project.go -destination=mocks/project_mocks.go -package=mocks mockgen -source=registry_no_code_module.go -destination=mocks/registry_no_code_module_mocks.go -package=mocks mockgen -source=registry_module.go -destination=mocks/registry_module_mocks.go -package=mocks -mockgen -source=registry_module.go -destination=mocks/registry_module_mocks.go -package=mocks mockgen -source=workspace_resources.go -destination=mocks/workspace_resources.go -package=mocks diff --git a/go.mod b/go.mod index 29790ed5e..efa69434c 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,6 @@ module github.com/hashicorp/go-tfe go 1.19 require ( - github.com/golang/mock v1.6.0 github.com/google/go-querystring v1.1.0 github.com/hashicorp/go-cleanhttp v0.5.2 github.com/hashicorp/go-retryablehttp v0.7.5 @@ -12,6 +11,7 @@ require ( github.com/hashicorp/go-version v1.6.0 github.com/hashicorp/jsonapi v1.3.1 github.com/stretchr/testify v1.9.0 + go.uber.org/mock v0.4.0 golang.org/x/sync v0.7.0 golang.org/x/time v0.5.0 ) diff --git a/go.sum b/go.sum index 353b8cd29..3b4e9c745 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,5 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= -github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= @@ -25,36 +23,15 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU= +go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc= golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/mocks/admin_opa_version_mocks.go b/mocks/admin_opa_version_mocks.go index 06a48eac6..a807c43ab 100644 --- a/mocks/admin_opa_version_mocks.go +++ b/mocks/admin_opa_version_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: admin_opa_version.go +// +// Generated by this command: +// +// mockgen -source=admin_opa_version.go -destination=mocks/admin_opa_version_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockAdminOPAVersions is a mock of AdminOPAVersions interface. @@ -45,7 +50,7 @@ func (m *MockAdminOPAVersions) Create(ctx context.Context, options tfe.AdminOPAV } // Create indicates an expected call of Create. -func (mr *MockAdminOPAVersionsMockRecorder) Create(ctx, options interface{}) *gomock.Call { +func (mr *MockAdminOPAVersionsMockRecorder) Create(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockAdminOPAVersions)(nil).Create), ctx, options) } @@ -59,7 +64,7 @@ func (m *MockAdminOPAVersions) Delete(ctx context.Context, id string) error { } // Delete indicates an expected call of Delete. -func (mr *MockAdminOPAVersionsMockRecorder) Delete(ctx, id interface{}) *gomock.Call { +func (mr *MockAdminOPAVersionsMockRecorder) Delete(ctx, id any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockAdminOPAVersions)(nil).Delete), ctx, id) } @@ -74,7 +79,7 @@ func (m *MockAdminOPAVersions) List(ctx context.Context, options *tfe.AdminOPAVe } // List indicates an expected call of List. -func (mr *MockAdminOPAVersionsMockRecorder) List(ctx, options interface{}) *gomock.Call { +func (mr *MockAdminOPAVersionsMockRecorder) List(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockAdminOPAVersions)(nil).List), ctx, options) } @@ -89,7 +94,7 @@ func (m *MockAdminOPAVersions) Read(ctx context.Context, id string) (*tfe.AdminO } // Read indicates an expected call of Read. -func (mr *MockAdminOPAVersionsMockRecorder) Read(ctx, id interface{}) *gomock.Call { +func (mr *MockAdminOPAVersionsMockRecorder) Read(ctx, id any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockAdminOPAVersions)(nil).Read), ctx, id) } @@ -104,7 +109,7 @@ func (m *MockAdminOPAVersions) Update(ctx context.Context, id string, options tf } // Update indicates an expected call of Update. -func (mr *MockAdminOPAVersionsMockRecorder) Update(ctx, id, options interface{}) *gomock.Call { +func (mr *MockAdminOPAVersionsMockRecorder) Update(ctx, id, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockAdminOPAVersions)(nil).Update), ctx, id, options) } diff --git a/mocks/admin_organization_mocks.go b/mocks/admin_organization_mocks.go index 540b44b84..f911f52fc 100644 --- a/mocks/admin_organization_mocks.go +++ b/mocks/admin_organization_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: admin_organization.go +// +// Generated by this command: +// +// mockgen -source=admin_organization.go -destination=mocks/admin_organization_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockAdminOrganizations is a mock of AdminOrganizations interface. @@ -44,7 +49,7 @@ func (m *MockAdminOrganizations) Delete(ctx context.Context, organization string } // Delete indicates an expected call of Delete. -func (mr *MockAdminOrganizationsMockRecorder) Delete(ctx, organization interface{}) *gomock.Call { +func (mr *MockAdminOrganizationsMockRecorder) Delete(ctx, organization any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockAdminOrganizations)(nil).Delete), ctx, organization) } @@ -59,7 +64,7 @@ func (m *MockAdminOrganizations) List(ctx context.Context, options *tfe.AdminOrg } // List indicates an expected call of List. -func (mr *MockAdminOrganizationsMockRecorder) List(ctx, options interface{}) *gomock.Call { +func (mr *MockAdminOrganizationsMockRecorder) List(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockAdminOrganizations)(nil).List), ctx, options) } @@ -74,7 +79,7 @@ func (m *MockAdminOrganizations) ListModuleConsumers(ctx context.Context, organi } // ListModuleConsumers indicates an expected call of ListModuleConsumers. -func (mr *MockAdminOrganizationsMockRecorder) ListModuleConsumers(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockAdminOrganizationsMockRecorder) ListModuleConsumers(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModuleConsumers", reflect.TypeOf((*MockAdminOrganizations)(nil).ListModuleConsumers), ctx, organization, options) } @@ -89,7 +94,7 @@ func (m *MockAdminOrganizations) Read(ctx context.Context, organization string) } // Read indicates an expected call of Read. -func (mr *MockAdminOrganizationsMockRecorder) Read(ctx, organization interface{}) *gomock.Call { +func (mr *MockAdminOrganizationsMockRecorder) Read(ctx, organization any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockAdminOrganizations)(nil).Read), ctx, organization) } @@ -104,7 +109,7 @@ func (m *MockAdminOrganizations) Update(ctx context.Context, organization string } // Update indicates an expected call of Update. -func (mr *MockAdminOrganizationsMockRecorder) Update(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockAdminOrganizationsMockRecorder) Update(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockAdminOrganizations)(nil).Update), ctx, organization, options) } @@ -118,7 +123,7 @@ func (m *MockAdminOrganizations) UpdateModuleConsumers(ctx context.Context, orga } // UpdateModuleConsumers indicates an expected call of UpdateModuleConsumers. -func (mr *MockAdminOrganizationsMockRecorder) UpdateModuleConsumers(ctx, organization, consumerOrganizations interface{}) *gomock.Call { +func (mr *MockAdminOrganizationsMockRecorder) UpdateModuleConsumers(ctx, organization, consumerOrganizations any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModuleConsumers", reflect.TypeOf((*MockAdminOrganizations)(nil).UpdateModuleConsumers), ctx, organization, consumerOrganizations) } diff --git a/mocks/admin_run_mocks.go b/mocks/admin_run_mocks.go index db945f162..04ff0266c 100644 --- a/mocks/admin_run_mocks.go +++ b/mocks/admin_run_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: admin_run.go +// +// Generated by this command: +// +// mockgen -source=admin_run.go -destination=mocks/admin_run_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockAdminRuns is a mock of AdminRuns interface. @@ -44,7 +49,7 @@ func (m *MockAdminRuns) ForceCancel(ctx context.Context, runID string, options t } // ForceCancel indicates an expected call of ForceCancel. -func (mr *MockAdminRunsMockRecorder) ForceCancel(ctx, runID, options interface{}) *gomock.Call { +func (mr *MockAdminRunsMockRecorder) ForceCancel(ctx, runID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForceCancel", reflect.TypeOf((*MockAdminRuns)(nil).ForceCancel), ctx, runID, options) } @@ -59,7 +64,7 @@ func (m *MockAdminRuns) List(ctx context.Context, options *tfe.AdminRunsListOpti } // List indicates an expected call of List. -func (mr *MockAdminRunsMockRecorder) List(ctx, options interface{}) *gomock.Call { +func (mr *MockAdminRunsMockRecorder) List(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockAdminRuns)(nil).List), ctx, options) } diff --git a/mocks/admin_sentinel_version_mocks.go b/mocks/admin_sentinel_version_mocks.go index 6977bb948..a759068e8 100644 --- a/mocks/admin_sentinel_version_mocks.go +++ b/mocks/admin_sentinel_version_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: admin_sentinel_version.go +// +// Generated by this command: +// +// mockgen -source=admin_sentinel_version.go -destination=mocks/admin_sentinel_version_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockAdminSentinelVersions is a mock of AdminSentinelVersions interface. @@ -45,7 +50,7 @@ func (m *MockAdminSentinelVersions) Create(ctx context.Context, options tfe.Admi } // Create indicates an expected call of Create. -func (mr *MockAdminSentinelVersionsMockRecorder) Create(ctx, options interface{}) *gomock.Call { +func (mr *MockAdminSentinelVersionsMockRecorder) Create(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockAdminSentinelVersions)(nil).Create), ctx, options) } @@ -59,7 +64,7 @@ func (m *MockAdminSentinelVersions) Delete(ctx context.Context, id string) error } // Delete indicates an expected call of Delete. -func (mr *MockAdminSentinelVersionsMockRecorder) Delete(ctx, id interface{}) *gomock.Call { +func (mr *MockAdminSentinelVersionsMockRecorder) Delete(ctx, id any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockAdminSentinelVersions)(nil).Delete), ctx, id) } @@ -74,7 +79,7 @@ func (m *MockAdminSentinelVersions) List(ctx context.Context, options *tfe.Admin } // List indicates an expected call of List. -func (mr *MockAdminSentinelVersionsMockRecorder) List(ctx, options interface{}) *gomock.Call { +func (mr *MockAdminSentinelVersionsMockRecorder) List(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockAdminSentinelVersions)(nil).List), ctx, options) } @@ -89,7 +94,7 @@ func (m *MockAdminSentinelVersions) Read(ctx context.Context, id string) (*tfe.A } // Read indicates an expected call of Read. -func (mr *MockAdminSentinelVersionsMockRecorder) Read(ctx, id interface{}) *gomock.Call { +func (mr *MockAdminSentinelVersionsMockRecorder) Read(ctx, id any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockAdminSentinelVersions)(nil).Read), ctx, id) } @@ -104,7 +109,7 @@ func (m *MockAdminSentinelVersions) Update(ctx context.Context, id string, optio } // Update indicates an expected call of Update. -func (mr *MockAdminSentinelVersionsMockRecorder) Update(ctx, id, options interface{}) *gomock.Call { +func (mr *MockAdminSentinelVersionsMockRecorder) Update(ctx, id, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockAdminSentinelVersions)(nil).Update), ctx, id, options) } diff --git a/mocks/admin_setting_cost_estimation_mocks.go b/mocks/admin_setting_cost_estimation_mocks.go index dc34e9d72..bae2e6e6b 100644 --- a/mocks/admin_setting_cost_estimation_mocks.go +++ b/mocks/admin_setting_cost_estimation_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: admin_setting_cost_estimation.go +// +// Generated by this command: +// +// mockgen -source=admin_setting_cost_estimation.go -destination=mocks/admin_setting_cost_estimation_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockCostEstimationSettings is a mock of CostEstimationSettings interface. @@ -45,7 +50,7 @@ func (m *MockCostEstimationSettings) Read(ctx context.Context) (*tfe.AdminCostEs } // Read indicates an expected call of Read. -func (mr *MockCostEstimationSettingsMockRecorder) Read(ctx interface{}) *gomock.Call { +func (mr *MockCostEstimationSettingsMockRecorder) Read(ctx any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockCostEstimationSettings)(nil).Read), ctx) } @@ -60,7 +65,7 @@ func (m *MockCostEstimationSettings) Update(ctx context.Context, options tfe.Adm } // Update indicates an expected call of Update. -func (mr *MockCostEstimationSettingsMockRecorder) Update(ctx, options interface{}) *gomock.Call { +func (mr *MockCostEstimationSettingsMockRecorder) Update(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockCostEstimationSettings)(nil).Update), ctx, options) } diff --git a/mocks/admin_setting_customization_mocks.go b/mocks/admin_setting_customization_mocks.go index 4d9127354..1858d7cdb 100644 --- a/mocks/admin_setting_customization_mocks.go +++ b/mocks/admin_setting_customization_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: admin_setting_customization.go +// +// Generated by this command: +// +// mockgen -source=admin_setting_customization.go -destination=mocks/admin_setting_customization_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockCustomizationSettings is a mock of CustomizationSettings interface. @@ -45,7 +50,7 @@ func (m *MockCustomizationSettings) Read(ctx context.Context) (*tfe.AdminCustomi } // Read indicates an expected call of Read. -func (mr *MockCustomizationSettingsMockRecorder) Read(ctx interface{}) *gomock.Call { +func (mr *MockCustomizationSettingsMockRecorder) Read(ctx any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockCustomizationSettings)(nil).Read), ctx) } @@ -60,7 +65,7 @@ func (m *MockCustomizationSettings) Update(ctx context.Context, options tfe.Admi } // Update indicates an expected call of Update. -func (mr *MockCustomizationSettingsMockRecorder) Update(ctx, options interface{}) *gomock.Call { +func (mr *MockCustomizationSettingsMockRecorder) Update(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockCustomizationSettings)(nil).Update), ctx, options) } diff --git a/mocks/admin_setting_general_mocks.go b/mocks/admin_setting_general_mocks.go index af6a27b7e..3f60052a1 100644 --- a/mocks/admin_setting_general_mocks.go +++ b/mocks/admin_setting_general_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: admin_setting_general.go +// +// Generated by this command: +// +// mockgen -source=admin_setting_general.go -destination=mocks/admin_setting_general_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockGeneralSettings is a mock of GeneralSettings interface. @@ -45,7 +50,7 @@ func (m *MockGeneralSettings) Read(ctx context.Context) (*tfe.AdminGeneralSettin } // Read indicates an expected call of Read. -func (mr *MockGeneralSettingsMockRecorder) Read(ctx interface{}) *gomock.Call { +func (mr *MockGeneralSettingsMockRecorder) Read(ctx any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockGeneralSettings)(nil).Read), ctx) } @@ -60,7 +65,7 @@ func (m *MockGeneralSettings) Update(ctx context.Context, options tfe.AdminGener } // Update indicates an expected call of Update. -func (mr *MockGeneralSettingsMockRecorder) Update(ctx, options interface{}) *gomock.Call { +func (mr *MockGeneralSettingsMockRecorder) Update(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockGeneralSettings)(nil).Update), ctx, options) } diff --git a/mocks/admin_setting_mocks.go b/mocks/admin_setting_mocks.go index a57f65f9d..305a7a39b 100644 --- a/mocks/admin_setting_mocks.go +++ b/mocks/admin_setting_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: admin_setting.go +// +// Generated by this command: +// +// mockgen -source=admin_setting.go -destination=mocks/admin_setting_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks diff --git a/mocks/admin_setting_oidc_mocks.go b/mocks/admin_setting_oidc_mocks.go new file mode 100644 index 000000000..fcfdf7075 --- /dev/null +++ b/mocks/admin_setting_oidc_mocks.go @@ -0,0 +1,68 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: admin_setting_oidc.go +// +// Generated by this command: +// +// mockgen -source=admin_setting_oidc.go -destination=mocks/admin_setting_oidc_mocks.go -package=mocks +// + +// Package mocks is a generated GoMock package. +package mocks + +import ( + context "context" + reflect "reflect" + + gomock "go.uber.org/mock/gomock" +) + +// MockOIDCSettings is a mock of OIDCSettings interface. +type MockOIDCSettings struct { + ctrl *gomock.Controller + recorder *MockOIDCSettingsMockRecorder +} + +// MockOIDCSettingsMockRecorder is the mock recorder for MockOIDCSettings. +type MockOIDCSettingsMockRecorder struct { + mock *MockOIDCSettings +} + +// NewMockOIDCSettings creates a new mock instance. +func NewMockOIDCSettings(ctrl *gomock.Controller) *MockOIDCSettings { + mock := &MockOIDCSettings{ctrl: ctrl} + mock.recorder = &MockOIDCSettingsMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockOIDCSettings) EXPECT() *MockOIDCSettingsMockRecorder { + return m.recorder +} + +// RotateKey mocks base method. +func (m *MockOIDCSettings) RotateKey(ctx context.Context) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RotateKey", ctx) + ret0, _ := ret[0].(error) + return ret0 +} + +// RotateKey indicates an expected call of RotateKey. +func (mr *MockOIDCSettingsMockRecorder) RotateKey(ctx any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RotateKey", reflect.TypeOf((*MockOIDCSettings)(nil).RotateKey), ctx) +} + +// TrimKey mocks base method. +func (m *MockOIDCSettings) TrimKey(ctx context.Context) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TrimKey", ctx) + ret0, _ := ret[0].(error) + return ret0 +} + +// TrimKey indicates an expected call of TrimKey. +func (mr *MockOIDCSettingsMockRecorder) TrimKey(ctx any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TrimKey", reflect.TypeOf((*MockOIDCSettings)(nil).TrimKey), ctx) +} diff --git a/mocks/admin_setting_saml_mocks.go b/mocks/admin_setting_saml_mocks.go index 93b9aff68..f73292a12 100644 --- a/mocks/admin_setting_saml_mocks.go +++ b/mocks/admin_setting_saml_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: admin_setting_saml.go +// +// Generated by this command: +// +// mockgen -source=admin_setting_saml.go -destination=mocks/admin_setting_saml_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockSAMLSettings is a mock of SAMLSettings interface. @@ -45,7 +50,7 @@ func (m *MockSAMLSettings) Read(ctx context.Context) (*tfe.AdminSAMLSetting, err } // Read indicates an expected call of Read. -func (mr *MockSAMLSettingsMockRecorder) Read(ctx interface{}) *gomock.Call { +func (mr *MockSAMLSettingsMockRecorder) Read(ctx any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockSAMLSettings)(nil).Read), ctx) } @@ -60,7 +65,7 @@ func (m *MockSAMLSettings) RevokeIdpCert(ctx context.Context) (*tfe.AdminSAMLSet } // RevokeIdpCert indicates an expected call of RevokeIdpCert. -func (mr *MockSAMLSettingsMockRecorder) RevokeIdpCert(ctx interface{}) *gomock.Call { +func (mr *MockSAMLSettingsMockRecorder) RevokeIdpCert(ctx any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeIdpCert", reflect.TypeOf((*MockSAMLSettings)(nil).RevokeIdpCert), ctx) } @@ -75,7 +80,7 @@ func (m *MockSAMLSettings) Update(ctx context.Context, options tfe.AdminSAMLSett } // Update indicates an expected call of Update. -func (mr *MockSAMLSettingsMockRecorder) Update(ctx, options interface{}) *gomock.Call { +func (mr *MockSAMLSettingsMockRecorder) Update(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockSAMLSettings)(nil).Update), ctx, options) } diff --git a/mocks/admin_setting_smtp_mocks.go b/mocks/admin_setting_smtp_mocks.go index 70c1c8d29..04a4fd65e 100644 --- a/mocks/admin_setting_smtp_mocks.go +++ b/mocks/admin_setting_smtp_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: admin_setting_smtp.go +// +// Generated by this command: +// +// mockgen -source=admin_setting_smtp.go -destination=mocks/admin_setting_smtp_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockSMTPSettings is a mock of SMTPSettings interface. @@ -45,7 +50,7 @@ func (m *MockSMTPSettings) Read(ctx context.Context) (*tfe.AdminSMTPSetting, err } // Read indicates an expected call of Read. -func (mr *MockSMTPSettingsMockRecorder) Read(ctx interface{}) *gomock.Call { +func (mr *MockSMTPSettingsMockRecorder) Read(ctx any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockSMTPSettings)(nil).Read), ctx) } @@ -60,7 +65,7 @@ func (m *MockSMTPSettings) Update(ctx context.Context, options tfe.AdminSMTPSett } // Update indicates an expected call of Update. -func (mr *MockSMTPSettingsMockRecorder) Update(ctx, options interface{}) *gomock.Call { +func (mr *MockSMTPSettingsMockRecorder) Update(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockSMTPSettings)(nil).Update), ctx, options) } diff --git a/mocks/admin_setting_twilio_mocks.go b/mocks/admin_setting_twilio_mocks.go index 80f140c55..9948ce01b 100644 --- a/mocks/admin_setting_twilio_mocks.go +++ b/mocks/admin_setting_twilio_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: admin_setting_twilio.go +// +// Generated by this command: +// +// mockgen -source=admin_setting_twilio.go -destination=mocks/admin_setting_twilio_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockTwilioSettings is a mock of TwilioSettings interface. @@ -45,7 +50,7 @@ func (m *MockTwilioSettings) Read(ctx context.Context) (*tfe.AdminTwilioSetting, } // Read indicates an expected call of Read. -func (mr *MockTwilioSettingsMockRecorder) Read(ctx interface{}) *gomock.Call { +func (mr *MockTwilioSettingsMockRecorder) Read(ctx any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockTwilioSettings)(nil).Read), ctx) } @@ -60,7 +65,7 @@ func (m *MockTwilioSettings) Update(ctx context.Context, options tfe.AdminTwilio } // Update indicates an expected call of Update. -func (mr *MockTwilioSettingsMockRecorder) Update(ctx, options interface{}) *gomock.Call { +func (mr *MockTwilioSettingsMockRecorder) Update(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockTwilioSettings)(nil).Update), ctx, options) } @@ -74,7 +79,7 @@ func (m *MockTwilioSettings) Verify(ctx context.Context, options tfe.AdminTwilio } // Verify indicates an expected call of Verify. -func (mr *MockTwilioSettingsMockRecorder) Verify(ctx, options interface{}) *gomock.Call { +func (mr *MockTwilioSettingsMockRecorder) Verify(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockTwilioSettings)(nil).Verify), ctx, options) } diff --git a/mocks/admin_terraform_version_mocks.go b/mocks/admin_terraform_version_mocks.go index f675cd163..86c3c0ef0 100644 --- a/mocks/admin_terraform_version_mocks.go +++ b/mocks/admin_terraform_version_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: admin_terraform_version.go +// +// Generated by this command: +// +// mockgen -source=admin_terraform_version.go -destination=mocks/admin_terraform_version_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockAdminTerraformVersions is a mock of AdminTerraformVersions interface. @@ -45,7 +50,7 @@ func (m *MockAdminTerraformVersions) Create(ctx context.Context, options tfe.Adm } // Create indicates an expected call of Create. -func (mr *MockAdminTerraformVersionsMockRecorder) Create(ctx, options interface{}) *gomock.Call { +func (mr *MockAdminTerraformVersionsMockRecorder) Create(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockAdminTerraformVersions)(nil).Create), ctx, options) } @@ -59,7 +64,7 @@ func (m *MockAdminTerraformVersions) Delete(ctx context.Context, id string) erro } // Delete indicates an expected call of Delete. -func (mr *MockAdminTerraformVersionsMockRecorder) Delete(ctx, id interface{}) *gomock.Call { +func (mr *MockAdminTerraformVersionsMockRecorder) Delete(ctx, id any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockAdminTerraformVersions)(nil).Delete), ctx, id) } @@ -74,7 +79,7 @@ func (m *MockAdminTerraformVersions) List(ctx context.Context, options *tfe.Admi } // List indicates an expected call of List. -func (mr *MockAdminTerraformVersionsMockRecorder) List(ctx, options interface{}) *gomock.Call { +func (mr *MockAdminTerraformVersionsMockRecorder) List(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockAdminTerraformVersions)(nil).List), ctx, options) } @@ -89,7 +94,7 @@ func (m *MockAdminTerraformVersions) Read(ctx context.Context, id string) (*tfe. } // Read indicates an expected call of Read. -func (mr *MockAdminTerraformVersionsMockRecorder) Read(ctx, id interface{}) *gomock.Call { +func (mr *MockAdminTerraformVersionsMockRecorder) Read(ctx, id any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockAdminTerraformVersions)(nil).Read), ctx, id) } @@ -104,7 +109,7 @@ func (m *MockAdminTerraformVersions) Update(ctx context.Context, id string, opti } // Update indicates an expected call of Update. -func (mr *MockAdminTerraformVersionsMockRecorder) Update(ctx, id, options interface{}) *gomock.Call { +func (mr *MockAdminTerraformVersionsMockRecorder) Update(ctx, id, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockAdminTerraformVersions)(nil).Update), ctx, id, options) } diff --git a/mocks/admin_user_mocks.go b/mocks/admin_user_mocks.go index a73621760..cc32a7e1e 100644 --- a/mocks/admin_user_mocks.go +++ b/mocks/admin_user_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: admin_user.go +// +// Generated by this command: +// +// mockgen -source=admin_user.go -destination=mocks/admin_user_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockAdminUsers is a mock of AdminUsers interface. @@ -44,7 +49,7 @@ func (m *MockAdminUsers) Delete(ctx context.Context, userID string) error { } // Delete indicates an expected call of Delete. -func (mr *MockAdminUsersMockRecorder) Delete(ctx, userID interface{}) *gomock.Call { +func (mr *MockAdminUsersMockRecorder) Delete(ctx, userID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockAdminUsers)(nil).Delete), ctx, userID) } @@ -59,7 +64,7 @@ func (m *MockAdminUsers) Disable2FA(ctx context.Context, userID string) (*tfe.Ad } // Disable2FA indicates an expected call of Disable2FA. -func (mr *MockAdminUsersMockRecorder) Disable2FA(ctx, userID interface{}) *gomock.Call { +func (mr *MockAdminUsersMockRecorder) Disable2FA(ctx, userID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Disable2FA", reflect.TypeOf((*MockAdminUsers)(nil).Disable2FA), ctx, userID) } @@ -74,7 +79,7 @@ func (m *MockAdminUsers) GrantAdmin(ctx context.Context, userID string) (*tfe.Ad } // GrantAdmin indicates an expected call of GrantAdmin. -func (mr *MockAdminUsersMockRecorder) GrantAdmin(ctx, userID interface{}) *gomock.Call { +func (mr *MockAdminUsersMockRecorder) GrantAdmin(ctx, userID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GrantAdmin", reflect.TypeOf((*MockAdminUsers)(nil).GrantAdmin), ctx, userID) } @@ -89,7 +94,7 @@ func (m *MockAdminUsers) List(ctx context.Context, options *tfe.AdminUserListOpt } // List indicates an expected call of List. -func (mr *MockAdminUsersMockRecorder) List(ctx, options interface{}) *gomock.Call { +func (mr *MockAdminUsersMockRecorder) List(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockAdminUsers)(nil).List), ctx, options) } @@ -104,7 +109,7 @@ func (m *MockAdminUsers) RevokeAdmin(ctx context.Context, userID string) (*tfe.A } // RevokeAdmin indicates an expected call of RevokeAdmin. -func (mr *MockAdminUsersMockRecorder) RevokeAdmin(ctx, userID interface{}) *gomock.Call { +func (mr *MockAdminUsersMockRecorder) RevokeAdmin(ctx, userID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeAdmin", reflect.TypeOf((*MockAdminUsers)(nil).RevokeAdmin), ctx, userID) } @@ -119,7 +124,7 @@ func (m *MockAdminUsers) Suspend(ctx context.Context, userID string) (*tfe.Admin } // Suspend indicates an expected call of Suspend. -func (mr *MockAdminUsersMockRecorder) Suspend(ctx, userID interface{}) *gomock.Call { +func (mr *MockAdminUsersMockRecorder) Suspend(ctx, userID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Suspend", reflect.TypeOf((*MockAdminUsers)(nil).Suspend), ctx, userID) } @@ -134,7 +139,7 @@ func (m *MockAdminUsers) Unsuspend(ctx context.Context, userID string) (*tfe.Adm } // Unsuspend indicates an expected call of Unsuspend. -func (mr *MockAdminUsersMockRecorder) Unsuspend(ctx, userID interface{}) *gomock.Call { +func (mr *MockAdminUsersMockRecorder) Unsuspend(ctx, userID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unsuspend", reflect.TypeOf((*MockAdminUsers)(nil).Unsuspend), ctx, userID) } diff --git a/mocks/admin_workspace_mocks.go b/mocks/admin_workspace_mocks.go index 0c61e7f7e..0161960af 100644 --- a/mocks/admin_workspace_mocks.go +++ b/mocks/admin_workspace_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: admin_workspace.go +// +// Generated by this command: +// +// mockgen -source=admin_workspace.go -destination=mocks/admin_workspace_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockAdminWorkspaces is a mock of AdminWorkspaces interface. @@ -44,7 +49,7 @@ func (m *MockAdminWorkspaces) Delete(ctx context.Context, workspaceID string) er } // Delete indicates an expected call of Delete. -func (mr *MockAdminWorkspacesMockRecorder) Delete(ctx, workspaceID interface{}) *gomock.Call { +func (mr *MockAdminWorkspacesMockRecorder) Delete(ctx, workspaceID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockAdminWorkspaces)(nil).Delete), ctx, workspaceID) } @@ -59,7 +64,7 @@ func (m *MockAdminWorkspaces) List(ctx context.Context, options *tfe.AdminWorksp } // List indicates an expected call of List. -func (mr *MockAdminWorkspacesMockRecorder) List(ctx, options interface{}) *gomock.Call { +func (mr *MockAdminWorkspacesMockRecorder) List(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockAdminWorkspaces)(nil).List), ctx, options) } @@ -74,7 +79,7 @@ func (m *MockAdminWorkspaces) Read(ctx context.Context, workspaceID string) (*tf } // Read indicates an expected call of Read. -func (mr *MockAdminWorkspacesMockRecorder) Read(ctx, workspaceID interface{}) *gomock.Call { +func (mr *MockAdminWorkspacesMockRecorder) Read(ctx, workspaceID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockAdminWorkspaces)(nil).Read), ctx, workspaceID) } diff --git a/mocks/agent_pool_mocks.go b/mocks/agent_pool_mocks.go index f744d966d..bf14afa5b 100644 --- a/mocks/agent_pool_mocks.go +++ b/mocks/agent_pool_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: agent_pool.go +// +// Generated by this command: +// +// mockgen -source=agent_pool.go -destination=mocks/agent_pool_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockAgentPools is a mock of AgentPools interface. @@ -45,7 +50,7 @@ func (m *MockAgentPools) Create(ctx context.Context, organization string, option } // Create indicates an expected call of Create. -func (mr *MockAgentPoolsMockRecorder) Create(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockAgentPoolsMockRecorder) Create(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockAgentPools)(nil).Create), ctx, organization, options) } @@ -59,7 +64,7 @@ func (m *MockAgentPools) Delete(ctx context.Context, agentPoolID string) error { } // Delete indicates an expected call of Delete. -func (mr *MockAgentPoolsMockRecorder) Delete(ctx, agentPoolID interface{}) *gomock.Call { +func (mr *MockAgentPoolsMockRecorder) Delete(ctx, agentPoolID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockAgentPools)(nil).Delete), ctx, agentPoolID) } @@ -74,7 +79,7 @@ func (m *MockAgentPools) List(ctx context.Context, organization string, options } // List indicates an expected call of List. -func (mr *MockAgentPoolsMockRecorder) List(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockAgentPoolsMockRecorder) List(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockAgentPools)(nil).List), ctx, organization, options) } @@ -89,7 +94,7 @@ func (m *MockAgentPools) Read(ctx context.Context, agentPoolID string) (*tfe.Age } // Read indicates an expected call of Read. -func (mr *MockAgentPoolsMockRecorder) Read(ctx, agentPoolID interface{}) *gomock.Call { +func (mr *MockAgentPoolsMockRecorder) Read(ctx, agentPoolID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockAgentPools)(nil).Read), ctx, agentPoolID) } @@ -104,7 +109,7 @@ func (m *MockAgentPools) ReadWithOptions(ctx context.Context, agentPoolID string } // ReadWithOptions indicates an expected call of ReadWithOptions. -func (mr *MockAgentPoolsMockRecorder) ReadWithOptions(ctx, agentPoolID, options interface{}) *gomock.Call { +func (mr *MockAgentPoolsMockRecorder) ReadWithOptions(ctx, agentPoolID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadWithOptions", reflect.TypeOf((*MockAgentPools)(nil).ReadWithOptions), ctx, agentPoolID, options) } @@ -119,7 +124,7 @@ func (m *MockAgentPools) Update(ctx context.Context, agentPool string, options t } // Update indicates an expected call of Update. -func (mr *MockAgentPoolsMockRecorder) Update(ctx, agentPool, options interface{}) *gomock.Call { +func (mr *MockAgentPoolsMockRecorder) Update(ctx, agentPool, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockAgentPools)(nil).Update), ctx, agentPool, options) } @@ -134,7 +139,7 @@ func (m *MockAgentPools) UpdateAllowedWorkspaces(ctx context.Context, agentPool } // UpdateAllowedWorkspaces indicates an expected call of UpdateAllowedWorkspaces. -func (mr *MockAgentPoolsMockRecorder) UpdateAllowedWorkspaces(ctx, agentPool, options interface{}) *gomock.Call { +func (mr *MockAgentPoolsMockRecorder) UpdateAllowedWorkspaces(ctx, agentPool, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAllowedWorkspaces", reflect.TypeOf((*MockAgentPools)(nil).UpdateAllowedWorkspaces), ctx, agentPool, options) } diff --git a/mocks/agent_token_mocks.go b/mocks/agent_token_mocks.go index 4e1577424..0b0c346c9 100644 --- a/mocks/agent_token_mocks.go +++ b/mocks/agent_token_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: agent_token.go +// +// Generated by this command: +// +// mockgen -source=agent_token.go -destination=mocks/agent_token_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockAgentTokens is a mock of AgentTokens interface. @@ -45,7 +50,7 @@ func (m *MockAgentTokens) Create(ctx context.Context, agentPoolID string, option } // Create indicates an expected call of Create. -func (mr *MockAgentTokensMockRecorder) Create(ctx, agentPoolID, options interface{}) *gomock.Call { +func (mr *MockAgentTokensMockRecorder) Create(ctx, agentPoolID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockAgentTokens)(nil).Create), ctx, agentPoolID, options) } @@ -59,7 +64,7 @@ func (m *MockAgentTokens) Delete(ctx context.Context, agentTokenID string) error } // Delete indicates an expected call of Delete. -func (mr *MockAgentTokensMockRecorder) Delete(ctx, agentTokenID interface{}) *gomock.Call { +func (mr *MockAgentTokensMockRecorder) Delete(ctx, agentTokenID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockAgentTokens)(nil).Delete), ctx, agentTokenID) } @@ -74,7 +79,7 @@ func (m *MockAgentTokens) List(ctx context.Context, agentPoolID string) (*tfe.Ag } // List indicates an expected call of List. -func (mr *MockAgentTokensMockRecorder) List(ctx, agentPoolID interface{}) *gomock.Call { +func (mr *MockAgentTokensMockRecorder) List(ctx, agentPoolID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockAgentTokens)(nil).List), ctx, agentPoolID) } @@ -89,7 +94,7 @@ func (m *MockAgentTokens) Read(ctx context.Context, agentTokenID string) (*tfe.A } // Read indicates an expected call of Read. -func (mr *MockAgentTokensMockRecorder) Read(ctx, agentTokenID interface{}) *gomock.Call { +func (mr *MockAgentTokensMockRecorder) Read(ctx, agentTokenID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockAgentTokens)(nil).Read), ctx, agentTokenID) } diff --git a/mocks/agents.go b/mocks/agents.go index 9fced7a8b..c15926b25 100644 --- a/mocks/agents.go +++ b/mocks/agents.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: agent.go +// +// Generated by this command: +// +// mockgen -source=agent.go -destination=mocks/agents.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockAgents is a mock of Agents interface. @@ -45,7 +50,7 @@ func (m *MockAgents) List(ctx context.Context, agentPoolID string, options *tfe. } // List indicates an expected call of List. -func (mr *MockAgentsMockRecorder) List(ctx, agentPoolID, options interface{}) *gomock.Call { +func (mr *MockAgentsMockRecorder) List(ctx, agentPoolID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockAgents)(nil).List), ctx, agentPoolID, options) } @@ -60,7 +65,7 @@ func (m *MockAgents) Read(ctx context.Context, agentID string) (*tfe.Agent, erro } // Read indicates an expected call of Read. -func (mr *MockAgentsMockRecorder) Read(ctx, agentID interface{}) *gomock.Call { +func (mr *MockAgentsMockRecorder) Read(ctx, agentID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockAgents)(nil).Read), ctx, agentID) } diff --git a/mocks/apply_mocks.go b/mocks/apply_mocks.go index 5850d7918..99356e373 100644 --- a/mocks/apply_mocks.go +++ b/mocks/apply_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: apply.go +// +// Generated by this command: +// +// mockgen -source=apply.go -destination=mocks/apply_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -9,8 +14,8 @@ import ( io "io" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockApplies is a mock of Applies interface. @@ -46,7 +51,7 @@ func (m *MockApplies) Logs(ctx context.Context, applyID string) (io.Reader, erro } // Logs indicates an expected call of Logs. -func (mr *MockAppliesMockRecorder) Logs(ctx, applyID interface{}) *gomock.Call { +func (mr *MockAppliesMockRecorder) Logs(ctx, applyID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Logs", reflect.TypeOf((*MockApplies)(nil).Logs), ctx, applyID) } @@ -61,7 +66,7 @@ func (m *MockApplies) Read(ctx context.Context, applyID string) (*tfe.Apply, err } // Read indicates an expected call of Read. -func (mr *MockAppliesMockRecorder) Read(ctx, applyID interface{}) *gomock.Call { +func (mr *MockAppliesMockRecorder) Read(ctx, applyID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockApplies)(nil).Read), ctx, applyID) } diff --git a/mocks/audit_trail_mocks.go b/mocks/audit_trail_mocks.go index 007b10aa9..a04e64ed5 100644 --- a/mocks/audit_trail_mocks.go +++ b/mocks/audit_trail_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: audit_trail.go +// +// Generated by this command: +// +// mockgen -source=audit_trail.go -destination=mocks/audit_trail_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockAuditTrails is a mock of AuditTrails interface. @@ -45,7 +50,7 @@ func (m *MockAuditTrails) List(ctx context.Context, options *tfe.AuditTrailListO } // List indicates an expected call of List. -func (mr *MockAuditTrailsMockRecorder) List(ctx, options interface{}) *gomock.Call { +func (mr *MockAuditTrailsMockRecorder) List(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockAuditTrails)(nil).List), ctx, options) } diff --git a/mocks/comment_mocks.go b/mocks/comment_mocks.go new file mode 100644 index 000000000..2052c5ea8 --- /dev/null +++ b/mocks/comment_mocks.go @@ -0,0 +1,86 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: comment.go +// +// Generated by this command: +// +// mockgen -source=comment.go -destination=mocks/comment_mocks.go -package=mocks +// + +// Package mocks is a generated GoMock package. +package mocks + +import ( + context "context" + reflect "reflect" + + tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" +) + +// MockComments is a mock of Comments interface. +type MockComments struct { + ctrl *gomock.Controller + recorder *MockCommentsMockRecorder +} + +// MockCommentsMockRecorder is the mock recorder for MockComments. +type MockCommentsMockRecorder struct { + mock *MockComments +} + +// NewMockComments creates a new mock instance. +func NewMockComments(ctrl *gomock.Controller) *MockComments { + mock := &MockComments{ctrl: ctrl} + mock.recorder = &MockCommentsMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockComments) EXPECT() *MockCommentsMockRecorder { + return m.recorder +} + +// Create mocks base method. +func (m *MockComments) Create(ctx context.Context, runID string, options tfe.CommentCreateOptions) (*tfe.Comment, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Create", ctx, runID, options) + ret0, _ := ret[0].(*tfe.Comment) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Create indicates an expected call of Create. +func (mr *MockCommentsMockRecorder) Create(ctx, runID, options any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockComments)(nil).Create), ctx, runID, options) +} + +// List mocks base method. +func (m *MockComments) List(ctx context.Context, runID string) (*tfe.CommentList, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "List", ctx, runID) + ret0, _ := ret[0].(*tfe.CommentList) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// List indicates an expected call of List. +func (mr *MockCommentsMockRecorder) List(ctx, runID any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockComments)(nil).List), ctx, runID) +} + +// Read mocks base method. +func (m *MockComments) Read(ctx context.Context, commentID string) (*tfe.Comment, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Read", ctx, commentID) + ret0, _ := ret[0].(*tfe.Comment) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Read indicates an expected call of Read. +func (mr *MockCommentsMockRecorder) Read(ctx, commentID any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockComments)(nil).Read), ctx, commentID) +} diff --git a/mocks/configuration_version_mocks.go b/mocks/configuration_version_mocks.go index 1b296958b..42f6f78e9 100644 --- a/mocks/configuration_version_mocks.go +++ b/mocks/configuration_version_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: configuration_version.go +// +// Generated by this command: +// +// mockgen -source=configuration_version.go -destination=mocks/configuration_version_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -9,8 +14,8 @@ import ( io "io" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockConfigurationVersions is a mock of ConfigurationVersions interface. @@ -45,7 +50,7 @@ func (m *MockConfigurationVersions) Archive(ctx context.Context, cvID string) er } // Archive indicates an expected call of Archive. -func (mr *MockConfigurationVersionsMockRecorder) Archive(ctx, cvID interface{}) *gomock.Call { +func (mr *MockConfigurationVersionsMockRecorder) Archive(ctx, cvID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Archive", reflect.TypeOf((*MockConfigurationVersions)(nil).Archive), ctx, cvID) } @@ -60,7 +65,7 @@ func (m *MockConfigurationVersions) Create(ctx context.Context, workspaceID stri } // Create indicates an expected call of Create. -func (mr *MockConfigurationVersionsMockRecorder) Create(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockConfigurationVersionsMockRecorder) Create(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockConfigurationVersions)(nil).Create), ctx, workspaceID, options) } @@ -75,7 +80,7 @@ func (m *MockConfigurationVersions) CreateForRegistryModule(ctx context.Context, } // CreateForRegistryModule indicates an expected call of CreateForRegistryModule. -func (mr *MockConfigurationVersionsMockRecorder) CreateForRegistryModule(ctx, moduleID interface{}) *gomock.Call { +func (mr *MockConfigurationVersionsMockRecorder) CreateForRegistryModule(ctx, moduleID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateForRegistryModule", reflect.TypeOf((*MockConfigurationVersions)(nil).CreateForRegistryModule), ctx, moduleID) } @@ -90,7 +95,7 @@ func (m *MockConfigurationVersions) Download(ctx context.Context, cvID string) ( } // Download indicates an expected call of Download. -func (mr *MockConfigurationVersionsMockRecorder) Download(ctx, cvID interface{}) *gomock.Call { +func (mr *MockConfigurationVersionsMockRecorder) Download(ctx, cvID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Download", reflect.TypeOf((*MockConfigurationVersions)(nil).Download), ctx, cvID) } @@ -105,7 +110,7 @@ func (m *MockConfigurationVersions) List(ctx context.Context, workspaceID string } // List indicates an expected call of List. -func (mr *MockConfigurationVersionsMockRecorder) List(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockConfigurationVersionsMockRecorder) List(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockConfigurationVersions)(nil).List), ctx, workspaceID, options) } @@ -119,7 +124,7 @@ func (m *MockConfigurationVersions) PermanentlyDeleteBackingData(ctx context.Con } // PermanentlyDeleteBackingData indicates an expected call of PermanentlyDeleteBackingData. -func (mr *MockConfigurationVersionsMockRecorder) PermanentlyDeleteBackingData(ctx, svID interface{}) *gomock.Call { +func (mr *MockConfigurationVersionsMockRecorder) PermanentlyDeleteBackingData(ctx, svID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PermanentlyDeleteBackingData", reflect.TypeOf((*MockConfigurationVersions)(nil).PermanentlyDeleteBackingData), ctx, svID) } @@ -134,7 +139,7 @@ func (m *MockConfigurationVersions) Read(ctx context.Context, cvID string) (*tfe } // Read indicates an expected call of Read. -func (mr *MockConfigurationVersionsMockRecorder) Read(ctx, cvID interface{}) *gomock.Call { +func (mr *MockConfigurationVersionsMockRecorder) Read(ctx, cvID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockConfigurationVersions)(nil).Read), ctx, cvID) } @@ -149,7 +154,7 @@ func (m *MockConfigurationVersions) ReadWithOptions(ctx context.Context, cvID st } // ReadWithOptions indicates an expected call of ReadWithOptions. -func (mr *MockConfigurationVersionsMockRecorder) ReadWithOptions(ctx, cvID, options interface{}) *gomock.Call { +func (mr *MockConfigurationVersionsMockRecorder) ReadWithOptions(ctx, cvID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadWithOptions", reflect.TypeOf((*MockConfigurationVersions)(nil).ReadWithOptions), ctx, cvID, options) } @@ -163,7 +168,7 @@ func (m *MockConfigurationVersions) RestoreBackingData(ctx context.Context, svID } // RestoreBackingData indicates an expected call of RestoreBackingData. -func (mr *MockConfigurationVersionsMockRecorder) RestoreBackingData(ctx, svID interface{}) *gomock.Call { +func (mr *MockConfigurationVersionsMockRecorder) RestoreBackingData(ctx, svID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreBackingData", reflect.TypeOf((*MockConfigurationVersions)(nil).RestoreBackingData), ctx, svID) } @@ -177,7 +182,7 @@ func (m *MockConfigurationVersions) SoftDeleteBackingData(ctx context.Context, s } // SoftDeleteBackingData indicates an expected call of SoftDeleteBackingData. -func (mr *MockConfigurationVersionsMockRecorder) SoftDeleteBackingData(ctx, svID interface{}) *gomock.Call { +func (mr *MockConfigurationVersionsMockRecorder) SoftDeleteBackingData(ctx, svID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SoftDeleteBackingData", reflect.TypeOf((*MockConfigurationVersions)(nil).SoftDeleteBackingData), ctx, svID) } @@ -191,7 +196,7 @@ func (m *MockConfigurationVersions) Upload(ctx context.Context, url, path string } // Upload indicates an expected call of Upload. -func (mr *MockConfigurationVersionsMockRecorder) Upload(ctx, url, path interface{}) *gomock.Call { +func (mr *MockConfigurationVersionsMockRecorder) Upload(ctx, url, path any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Upload", reflect.TypeOf((*MockConfigurationVersions)(nil).Upload), ctx, url, path) } @@ -205,7 +210,7 @@ func (m *MockConfigurationVersions) UploadTarGzip(ctx context.Context, url strin } // UploadTarGzip indicates an expected call of UploadTarGzip. -func (mr *MockConfigurationVersionsMockRecorder) UploadTarGzip(ctx, url, archive interface{}) *gomock.Call { +func (mr *MockConfigurationVersionsMockRecorder) UploadTarGzip(ctx, url, archive any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadTarGzip", reflect.TypeOf((*MockConfigurationVersions)(nil).UploadTarGzip), ctx, url, archive) } diff --git a/mocks/cost_estimate_mocks.go b/mocks/cost_estimate_mocks.go index de96dd715..026cd977b 100644 --- a/mocks/cost_estimate_mocks.go +++ b/mocks/cost_estimate_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: cost_estimate.go +// +// Generated by this command: +// +// mockgen -source=cost_estimate.go -destination=mocks/cost_estimate_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -9,8 +14,8 @@ import ( io "io" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockCostEstimates is a mock of CostEstimates interface. @@ -46,7 +51,7 @@ func (m *MockCostEstimates) Logs(ctx context.Context, costEstimateID string) (io } // Logs indicates an expected call of Logs. -func (mr *MockCostEstimatesMockRecorder) Logs(ctx, costEstimateID interface{}) *gomock.Call { +func (mr *MockCostEstimatesMockRecorder) Logs(ctx, costEstimateID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Logs", reflect.TypeOf((*MockCostEstimates)(nil).Logs), ctx, costEstimateID) } @@ -61,7 +66,7 @@ func (m *MockCostEstimates) Read(ctx context.Context, costEstimateID string) (*t } // Read indicates an expected call of Read. -func (mr *MockCostEstimatesMockRecorder) Read(ctx, costEstimateID interface{}) *gomock.Call { +func (mr *MockCostEstimatesMockRecorder) Read(ctx, costEstimateID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockCostEstimates)(nil).Read), ctx, costEstimateID) } diff --git a/mocks/github_app_installation_mocks.go b/mocks/github_app_installation_mocks.go new file mode 100644 index 000000000..bff44add4 --- /dev/null +++ b/mocks/github_app_installation_mocks.go @@ -0,0 +1,71 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: github_app_installation.go +// +// Generated by this command: +// +// mockgen -source=github_app_installation.go -destination=mocks/github_app_installation_mocks.go -package=mocks +// + +// Package mocks is a generated GoMock package. +package mocks + +import ( + context "context" + reflect "reflect" + + tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" +) + +// MockGHAInstallations is a mock of GHAInstallations interface. +type MockGHAInstallations struct { + ctrl *gomock.Controller + recorder *MockGHAInstallationsMockRecorder +} + +// MockGHAInstallationsMockRecorder is the mock recorder for MockGHAInstallations. +type MockGHAInstallationsMockRecorder struct { + mock *MockGHAInstallations +} + +// NewMockGHAInstallations creates a new mock instance. +func NewMockGHAInstallations(ctrl *gomock.Controller) *MockGHAInstallations { + mock := &MockGHAInstallations{ctrl: ctrl} + mock.recorder = &MockGHAInstallationsMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockGHAInstallations) EXPECT() *MockGHAInstallationsMockRecorder { + return m.recorder +} + +// List mocks base method. +func (m *MockGHAInstallations) List(ctx context.Context, options *tfe.GHAInstallationListOptions) (*tfe.GHAInstallationList, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "List", ctx, options) + ret0, _ := ret[0].(*tfe.GHAInstallationList) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// List indicates an expected call of List. +func (mr *MockGHAInstallationsMockRecorder) List(ctx, options any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockGHAInstallations)(nil).List), ctx, options) +} + +// Read mocks base method. +func (m *MockGHAInstallations) Read(ctx context.Context, GHAInstallationID string) (*tfe.GHAInstallation, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Read", ctx, GHAInstallationID) + ret0, _ := ret[0].(*tfe.GHAInstallation) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Read indicates an expected call of Read. +func (mr *MockGHAInstallationsMockRecorder) Read(ctx, GHAInstallationID any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockGHAInstallations)(nil).Read), ctx, GHAInstallationID) +} diff --git a/mocks/gpg_key_mocks.go b/mocks/gpg_key_mocks.go index 4cfa0e959..0b55c2dac 100644 --- a/mocks/gpg_key_mocks.go +++ b/mocks/gpg_key_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: gpg_key.go +// +// Generated by this command: +// +// mockgen -source=gpg_key.go -destination=mocks/gpg_key_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockGPGKeys is a mock of GPGKeys interface. @@ -45,7 +50,7 @@ func (m *MockGPGKeys) Create(ctx context.Context, registryName tfe.RegistryName, } // Create indicates an expected call of Create. -func (mr *MockGPGKeysMockRecorder) Create(ctx, registryName, options interface{}) *gomock.Call { +func (mr *MockGPGKeysMockRecorder) Create(ctx, registryName, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockGPGKeys)(nil).Create), ctx, registryName, options) } @@ -59,7 +64,7 @@ func (m *MockGPGKeys) Delete(ctx context.Context, keyID tfe.GPGKeyID) error { } // Delete indicates an expected call of Delete. -func (mr *MockGPGKeysMockRecorder) Delete(ctx, keyID interface{}) *gomock.Call { +func (mr *MockGPGKeysMockRecorder) Delete(ctx, keyID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockGPGKeys)(nil).Delete), ctx, keyID) } @@ -74,7 +79,7 @@ func (m *MockGPGKeys) ListPrivate(ctx context.Context, options tfe.GPGKeyListOpt } // ListPrivate indicates an expected call of ListPrivate. -func (mr *MockGPGKeysMockRecorder) ListPrivate(ctx, options interface{}) *gomock.Call { +func (mr *MockGPGKeysMockRecorder) ListPrivate(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPrivate", reflect.TypeOf((*MockGPGKeys)(nil).ListPrivate), ctx, options) } @@ -89,7 +94,7 @@ func (m *MockGPGKeys) Read(ctx context.Context, keyID tfe.GPGKeyID) (*tfe.GPGKey } // Read indicates an expected call of Read. -func (mr *MockGPGKeysMockRecorder) Read(ctx, keyID interface{}) *gomock.Call { +func (mr *MockGPGKeysMockRecorder) Read(ctx, keyID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockGPGKeys)(nil).Read), ctx, keyID) } @@ -104,7 +109,7 @@ func (m *MockGPGKeys) Update(ctx context.Context, keyID tfe.GPGKeyID, options tf } // Update indicates an expected call of Update. -func (mr *MockGPGKeysMockRecorder) Update(ctx, keyID, options interface{}) *gomock.Call { +func (mr *MockGPGKeysMockRecorder) Update(ctx, keyID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockGPGKeys)(nil).Update), ctx, keyID, options) } diff --git a/mocks/ip_ranges_mocks.go b/mocks/ip_ranges_mocks.go index 57c243f59..6090d5cf2 100644 --- a/mocks/ip_ranges_mocks.go +++ b/mocks/ip_ranges_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: ip_ranges.go +// +// Generated by this command: +// +// mockgen -source=ip_ranges.go -destination=mocks/ip_ranges_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockIPRanges is a mock of IPRanges interface. @@ -45,7 +50,7 @@ func (m *MockIPRanges) Read(ctx context.Context, modifiedSince string) (*tfe.IPR } // Read indicates an expected call of Read. -func (mr *MockIPRangesMockRecorder) Read(ctx, modifiedSince interface{}) *gomock.Call { +func (mr *MockIPRangesMockRecorder) Read(ctx, modifiedSince any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockIPRanges)(nil).Read), ctx, modifiedSince) } diff --git a/mocks/logreader_mocks.go b/mocks/logreader_mocks.go index 18bced830..eb00412e7 100644 --- a/mocks/logreader_mocks.go +++ b/mocks/logreader_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: logreader.go +// +// Generated by this command: +// +// mockgen -source=logreader.go -destination=mocks/logreader_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks diff --git a/mocks/notification_configuration_mocks.go b/mocks/notification_configuration_mocks.go index b375a6fe4..c34212e83 100644 --- a/mocks/notification_configuration_mocks.go +++ b/mocks/notification_configuration_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: notification_configuration.go +// +// Generated by this command: +// +// mockgen -source=notification_configuration.go -destination=mocks/notification_configuration_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockNotificationConfigurations is a mock of NotificationConfigurations interface. @@ -45,7 +50,7 @@ func (m *MockNotificationConfigurations) Create(ctx context.Context, workspaceID } // Create indicates an expected call of Create. -func (mr *MockNotificationConfigurationsMockRecorder) Create(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockNotificationConfigurationsMockRecorder) Create(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockNotificationConfigurations)(nil).Create), ctx, workspaceID, options) } @@ -59,7 +64,7 @@ func (m *MockNotificationConfigurations) Delete(ctx context.Context, notificatio } // Delete indicates an expected call of Delete. -func (mr *MockNotificationConfigurationsMockRecorder) Delete(ctx, notificationConfigurationID interface{}) *gomock.Call { +func (mr *MockNotificationConfigurationsMockRecorder) Delete(ctx, notificationConfigurationID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockNotificationConfigurations)(nil).Delete), ctx, notificationConfigurationID) } @@ -74,7 +79,7 @@ func (m *MockNotificationConfigurations) List(ctx context.Context, workspaceID s } // List indicates an expected call of List. -func (mr *MockNotificationConfigurationsMockRecorder) List(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockNotificationConfigurationsMockRecorder) List(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockNotificationConfigurations)(nil).List), ctx, workspaceID, options) } @@ -89,7 +94,7 @@ func (m *MockNotificationConfigurations) Read(ctx context.Context, notificationC } // Read indicates an expected call of Read. -func (mr *MockNotificationConfigurationsMockRecorder) Read(ctx, notificationConfigurationID interface{}) *gomock.Call { +func (mr *MockNotificationConfigurationsMockRecorder) Read(ctx, notificationConfigurationID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockNotificationConfigurations)(nil).Read), ctx, notificationConfigurationID) } @@ -104,7 +109,7 @@ func (m *MockNotificationConfigurations) Update(ctx context.Context, notificatio } // Update indicates an expected call of Update. -func (mr *MockNotificationConfigurationsMockRecorder) Update(ctx, notificationConfigurationID, options interface{}) *gomock.Call { +func (mr *MockNotificationConfigurationsMockRecorder) Update(ctx, notificationConfigurationID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockNotificationConfigurations)(nil).Update), ctx, notificationConfigurationID, options) } @@ -119,7 +124,7 @@ func (m *MockNotificationConfigurations) Verify(ctx context.Context, notificatio } // Verify indicates an expected call of Verify. -func (mr *MockNotificationConfigurationsMockRecorder) Verify(ctx, notificationConfigurationID interface{}) *gomock.Call { +func (mr *MockNotificationConfigurationsMockRecorder) Verify(ctx, notificationConfigurationID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockNotificationConfigurations)(nil).Verify), ctx, notificationConfigurationID) } diff --git a/mocks/oauth_client_mocks.go b/mocks/oauth_client_mocks.go index 7392d6d8c..4f4454568 100644 --- a/mocks/oauth_client_mocks.go +++ b/mocks/oauth_client_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: oauth_client.go +// +// Generated by this command: +// +// mockgen -source=oauth_client.go -destination=mocks/oauth_client_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockOAuthClients is a mock of OAuthClients interface. @@ -44,7 +49,7 @@ func (m *MockOAuthClients) AddProjects(ctx context.Context, oAuthClientID string } // AddProjects indicates an expected call of AddProjects. -func (mr *MockOAuthClientsMockRecorder) AddProjects(ctx, oAuthClientID, options interface{}) *gomock.Call { +func (mr *MockOAuthClientsMockRecorder) AddProjects(ctx, oAuthClientID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddProjects", reflect.TypeOf((*MockOAuthClients)(nil).AddProjects), ctx, oAuthClientID, options) } @@ -59,7 +64,7 @@ func (m *MockOAuthClients) Create(ctx context.Context, organization string, opti } // Create indicates an expected call of Create. -func (mr *MockOAuthClientsMockRecorder) Create(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockOAuthClientsMockRecorder) Create(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockOAuthClients)(nil).Create), ctx, organization, options) } @@ -73,7 +78,7 @@ func (m *MockOAuthClients) Delete(ctx context.Context, oAuthClientID string) err } // Delete indicates an expected call of Delete. -func (mr *MockOAuthClientsMockRecorder) Delete(ctx, oAuthClientID interface{}) *gomock.Call { +func (mr *MockOAuthClientsMockRecorder) Delete(ctx, oAuthClientID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockOAuthClients)(nil).Delete), ctx, oAuthClientID) } @@ -88,7 +93,7 @@ func (m *MockOAuthClients) List(ctx context.Context, organization string, option } // List indicates an expected call of List. -func (mr *MockOAuthClientsMockRecorder) List(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockOAuthClientsMockRecorder) List(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockOAuthClients)(nil).List), ctx, organization, options) } @@ -103,7 +108,7 @@ func (m *MockOAuthClients) Read(ctx context.Context, oAuthClientID string) (*tfe } // Read indicates an expected call of Read. -func (mr *MockOAuthClientsMockRecorder) Read(ctx, oAuthClientID interface{}) *gomock.Call { +func (mr *MockOAuthClientsMockRecorder) Read(ctx, oAuthClientID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockOAuthClients)(nil).Read), ctx, oAuthClientID) } @@ -118,7 +123,7 @@ func (m *MockOAuthClients) ReadWithOptions(ctx context.Context, oAuthClientID st } // ReadWithOptions indicates an expected call of ReadWithOptions. -func (mr *MockOAuthClientsMockRecorder) ReadWithOptions(ctx, oAuthClientID, options interface{}) *gomock.Call { +func (mr *MockOAuthClientsMockRecorder) ReadWithOptions(ctx, oAuthClientID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadWithOptions", reflect.TypeOf((*MockOAuthClients)(nil).ReadWithOptions), ctx, oAuthClientID, options) } @@ -132,7 +137,7 @@ func (m *MockOAuthClients) RemoveProjects(ctx context.Context, oAuthClientID str } // RemoveProjects indicates an expected call of RemoveProjects. -func (mr *MockOAuthClientsMockRecorder) RemoveProjects(ctx, oAuthClientID, options interface{}) *gomock.Call { +func (mr *MockOAuthClientsMockRecorder) RemoveProjects(ctx, oAuthClientID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveProjects", reflect.TypeOf((*MockOAuthClients)(nil).RemoveProjects), ctx, oAuthClientID, options) } @@ -147,7 +152,7 @@ func (m *MockOAuthClients) Update(ctx context.Context, oAuthClientID string, opt } // Update indicates an expected call of Update. -func (mr *MockOAuthClientsMockRecorder) Update(ctx, oAuthClientID, options interface{}) *gomock.Call { +func (mr *MockOAuthClientsMockRecorder) Update(ctx, oAuthClientID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockOAuthClients)(nil).Update), ctx, oAuthClientID, options) } diff --git a/mocks/oauth_token_mocks.go b/mocks/oauth_token_mocks.go index 17364c2ec..aaf3e29cb 100644 --- a/mocks/oauth_token_mocks.go +++ b/mocks/oauth_token_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: oauth_token.go +// +// Generated by this command: +// +// mockgen -source=oauth_token.go -destination=mocks/oauth_token_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockOAuthTokens is a mock of OAuthTokens interface. @@ -44,7 +49,7 @@ func (m *MockOAuthTokens) Delete(ctx context.Context, oAuthTokenID string) error } // Delete indicates an expected call of Delete. -func (mr *MockOAuthTokensMockRecorder) Delete(ctx, oAuthTokenID interface{}) *gomock.Call { +func (mr *MockOAuthTokensMockRecorder) Delete(ctx, oAuthTokenID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockOAuthTokens)(nil).Delete), ctx, oAuthTokenID) } @@ -59,7 +64,7 @@ func (m *MockOAuthTokens) List(ctx context.Context, organization string, options } // List indicates an expected call of List. -func (mr *MockOAuthTokensMockRecorder) List(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockOAuthTokensMockRecorder) List(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockOAuthTokens)(nil).List), ctx, organization, options) } @@ -74,7 +79,7 @@ func (m *MockOAuthTokens) Read(ctx context.Context, oAuthTokenID string) (*tfe.O } // Read indicates an expected call of Read. -func (mr *MockOAuthTokensMockRecorder) Read(ctx, oAuthTokenID interface{}) *gomock.Call { +func (mr *MockOAuthTokensMockRecorder) Read(ctx, oAuthTokenID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockOAuthTokens)(nil).Read), ctx, oAuthTokenID) } @@ -89,7 +94,7 @@ func (m *MockOAuthTokens) Update(ctx context.Context, oAuthTokenID string, optio } // Update indicates an expected call of Update. -func (mr *MockOAuthTokensMockRecorder) Update(ctx, oAuthTokenID, options interface{}) *gomock.Call { +func (mr *MockOAuthTokensMockRecorder) Update(ctx, oAuthTokenID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockOAuthTokens)(nil).Update), ctx, oAuthTokenID, options) } diff --git a/mocks/organization_membership_mocks.go b/mocks/organization_membership_mocks.go index 6b62c43db..0ee5f3312 100644 --- a/mocks/organization_membership_mocks.go +++ b/mocks/organization_membership_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: organization_membership.go +// +// Generated by this command: +// +// mockgen -source=organization_membership.go -destination=mocks/organization_membership_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockOrganizationMemberships is a mock of OrganizationMemberships interface. @@ -45,7 +50,7 @@ func (m *MockOrganizationMemberships) Create(ctx context.Context, organization s } // Create indicates an expected call of Create. -func (mr *MockOrganizationMembershipsMockRecorder) Create(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockOrganizationMembershipsMockRecorder) Create(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockOrganizationMemberships)(nil).Create), ctx, organization, options) } @@ -59,7 +64,7 @@ func (m *MockOrganizationMemberships) Delete(ctx context.Context, organizationMe } // Delete indicates an expected call of Delete. -func (mr *MockOrganizationMembershipsMockRecorder) Delete(ctx, organizationMembershipID interface{}) *gomock.Call { +func (mr *MockOrganizationMembershipsMockRecorder) Delete(ctx, organizationMembershipID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockOrganizationMemberships)(nil).Delete), ctx, organizationMembershipID) } @@ -74,7 +79,7 @@ func (m *MockOrganizationMemberships) List(ctx context.Context, organization str } // List indicates an expected call of List. -func (mr *MockOrganizationMembershipsMockRecorder) List(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockOrganizationMembershipsMockRecorder) List(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockOrganizationMemberships)(nil).List), ctx, organization, options) } @@ -89,7 +94,7 @@ func (m *MockOrganizationMemberships) Read(ctx context.Context, organizationMemb } // Read indicates an expected call of Read. -func (mr *MockOrganizationMembershipsMockRecorder) Read(ctx, organizationMembershipID interface{}) *gomock.Call { +func (mr *MockOrganizationMembershipsMockRecorder) Read(ctx, organizationMembershipID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockOrganizationMemberships)(nil).Read), ctx, organizationMembershipID) } @@ -104,7 +109,7 @@ func (m *MockOrganizationMemberships) ReadWithOptions(ctx context.Context, organ } // ReadWithOptions indicates an expected call of ReadWithOptions. -func (mr *MockOrganizationMembershipsMockRecorder) ReadWithOptions(ctx, organizationMembershipID, options interface{}) *gomock.Call { +func (mr *MockOrganizationMembershipsMockRecorder) ReadWithOptions(ctx, organizationMembershipID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadWithOptions", reflect.TypeOf((*MockOrganizationMemberships)(nil).ReadWithOptions), ctx, organizationMembershipID, options) } diff --git a/mocks/organization_mocks.go b/mocks/organization_mocks.go index c2863983b..0ca1fdb52 100644 --- a/mocks/organization_mocks.go +++ b/mocks/organization_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: organization.go +// +// Generated by this command: +// +// mockgen -source=organization.go -destination=mocks/organization_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockOrganizations is a mock of Organizations interface. @@ -45,7 +50,7 @@ func (m *MockOrganizations) Create(ctx context.Context, options tfe.Organization } // Create indicates an expected call of Create. -func (mr *MockOrganizationsMockRecorder) Create(ctx, options interface{}) *gomock.Call { +func (mr *MockOrganizationsMockRecorder) Create(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockOrganizations)(nil).Create), ctx, options) } @@ -59,7 +64,7 @@ func (m *MockOrganizations) Delete(ctx context.Context, organization string) err } // Delete indicates an expected call of Delete. -func (mr *MockOrganizationsMockRecorder) Delete(ctx, organization interface{}) *gomock.Call { +func (mr *MockOrganizationsMockRecorder) Delete(ctx, organization any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockOrganizations)(nil).Delete), ctx, organization) } @@ -73,7 +78,7 @@ func (m *MockOrganizations) DeleteDataRetentionPolicy(ctx context.Context, organ } // DeleteDataRetentionPolicy indicates an expected call of DeleteDataRetentionPolicy. -func (mr *MockOrganizationsMockRecorder) DeleteDataRetentionPolicy(ctx, organization interface{}) *gomock.Call { +func (mr *MockOrganizationsMockRecorder) DeleteDataRetentionPolicy(ctx, organization any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDataRetentionPolicy", reflect.TypeOf((*MockOrganizations)(nil).DeleteDataRetentionPolicy), ctx, organization) } @@ -88,7 +93,7 @@ func (m *MockOrganizations) List(ctx context.Context, options *tfe.OrganizationL } // List indicates an expected call of List. -func (mr *MockOrganizationsMockRecorder) List(ctx, options interface{}) *gomock.Call { +func (mr *MockOrganizationsMockRecorder) List(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockOrganizations)(nil).List), ctx, options) } @@ -103,7 +108,7 @@ func (m *MockOrganizations) Read(ctx context.Context, organization string) (*tfe } // Read indicates an expected call of Read. -func (mr *MockOrganizationsMockRecorder) Read(ctx, organization interface{}) *gomock.Call { +func (mr *MockOrganizationsMockRecorder) Read(ctx, organization any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockOrganizations)(nil).Read), ctx, organization) } @@ -118,7 +123,7 @@ func (m *MockOrganizations) ReadCapacity(ctx context.Context, organization strin } // ReadCapacity indicates an expected call of ReadCapacity. -func (mr *MockOrganizationsMockRecorder) ReadCapacity(ctx, organization interface{}) *gomock.Call { +func (mr *MockOrganizationsMockRecorder) ReadCapacity(ctx, organization any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadCapacity", reflect.TypeOf((*MockOrganizations)(nil).ReadCapacity), ctx, organization) } @@ -133,7 +138,7 @@ func (m *MockOrganizations) ReadDataRetentionPolicy(ctx context.Context, organiz } // ReadDataRetentionPolicy indicates an expected call of ReadDataRetentionPolicy. -func (mr *MockOrganizationsMockRecorder) ReadDataRetentionPolicy(ctx, organization interface{}) *gomock.Call { +func (mr *MockOrganizationsMockRecorder) ReadDataRetentionPolicy(ctx, organization any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadDataRetentionPolicy", reflect.TypeOf((*MockOrganizations)(nil).ReadDataRetentionPolicy), ctx, organization) } @@ -148,7 +153,7 @@ func (m *MockOrganizations) ReadDataRetentionPolicyChoice(ctx context.Context, o } // ReadDataRetentionPolicyChoice indicates an expected call of ReadDataRetentionPolicyChoice. -func (mr *MockOrganizationsMockRecorder) ReadDataRetentionPolicyChoice(ctx, organization interface{}) *gomock.Call { +func (mr *MockOrganizationsMockRecorder) ReadDataRetentionPolicyChoice(ctx, organization any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadDataRetentionPolicyChoice", reflect.TypeOf((*MockOrganizations)(nil).ReadDataRetentionPolicyChoice), ctx, organization) } @@ -163,7 +168,7 @@ func (m *MockOrganizations) ReadEntitlements(ctx context.Context, organization s } // ReadEntitlements indicates an expected call of ReadEntitlements. -func (mr *MockOrganizationsMockRecorder) ReadEntitlements(ctx, organization interface{}) *gomock.Call { +func (mr *MockOrganizationsMockRecorder) ReadEntitlements(ctx, organization any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadEntitlements", reflect.TypeOf((*MockOrganizations)(nil).ReadEntitlements), ctx, organization) } @@ -178,7 +183,7 @@ func (m *MockOrganizations) ReadRunQueue(ctx context.Context, organization strin } // ReadRunQueue indicates an expected call of ReadRunQueue. -func (mr *MockOrganizationsMockRecorder) ReadRunQueue(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockOrganizationsMockRecorder) ReadRunQueue(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadRunQueue", reflect.TypeOf((*MockOrganizations)(nil).ReadRunQueue), ctx, organization, options) } @@ -193,7 +198,7 @@ func (m *MockOrganizations) ReadWithOptions(ctx context.Context, organization st } // ReadWithOptions indicates an expected call of ReadWithOptions. -func (mr *MockOrganizationsMockRecorder) ReadWithOptions(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockOrganizationsMockRecorder) ReadWithOptions(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadWithOptions", reflect.TypeOf((*MockOrganizations)(nil).ReadWithOptions), ctx, organization, options) } @@ -208,7 +213,7 @@ func (m *MockOrganizations) SetDataRetentionPolicy(ctx context.Context, organiza } // SetDataRetentionPolicy indicates an expected call of SetDataRetentionPolicy. -func (mr *MockOrganizationsMockRecorder) SetDataRetentionPolicy(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockOrganizationsMockRecorder) SetDataRetentionPolicy(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDataRetentionPolicy", reflect.TypeOf((*MockOrganizations)(nil).SetDataRetentionPolicy), ctx, organization, options) } @@ -223,7 +228,7 @@ func (m *MockOrganizations) SetDataRetentionPolicyDeleteOlder(ctx context.Contex } // SetDataRetentionPolicyDeleteOlder indicates an expected call of SetDataRetentionPolicyDeleteOlder. -func (mr *MockOrganizationsMockRecorder) SetDataRetentionPolicyDeleteOlder(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockOrganizationsMockRecorder) SetDataRetentionPolicyDeleteOlder(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDataRetentionPolicyDeleteOlder", reflect.TypeOf((*MockOrganizations)(nil).SetDataRetentionPolicyDeleteOlder), ctx, organization, options) } @@ -238,7 +243,7 @@ func (m *MockOrganizations) SetDataRetentionPolicyDontDelete(ctx context.Context } // SetDataRetentionPolicyDontDelete indicates an expected call of SetDataRetentionPolicyDontDelete. -func (mr *MockOrganizationsMockRecorder) SetDataRetentionPolicyDontDelete(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockOrganizationsMockRecorder) SetDataRetentionPolicyDontDelete(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDataRetentionPolicyDontDelete", reflect.TypeOf((*MockOrganizations)(nil).SetDataRetentionPolicyDontDelete), ctx, organization, options) } @@ -253,7 +258,7 @@ func (m *MockOrganizations) Update(ctx context.Context, organization string, opt } // Update indicates an expected call of Update. -func (mr *MockOrganizationsMockRecorder) Update(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockOrganizationsMockRecorder) Update(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockOrganizations)(nil).Update), ctx, organization, options) } diff --git a/mocks/organization_token_mocks.go b/mocks/organization_token_mocks.go index d4de82fbe..404152f1b 100644 --- a/mocks/organization_token_mocks.go +++ b/mocks/organization_token_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: organization_token.go +// +// Generated by this command: +// +// mockgen -source=organization_token.go -destination=mocks/organization_token_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockOrganizationTokens is a mock of OrganizationTokens interface. @@ -45,7 +50,7 @@ func (m *MockOrganizationTokens) Create(ctx context.Context, organization string } // Create indicates an expected call of Create. -func (mr *MockOrganizationTokensMockRecorder) Create(ctx, organization interface{}) *gomock.Call { +func (mr *MockOrganizationTokensMockRecorder) Create(ctx, organization any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockOrganizationTokens)(nil).Create), ctx, organization) } @@ -60,7 +65,7 @@ func (m *MockOrganizationTokens) CreateWithOptions(ctx context.Context, organiza } // CreateWithOptions indicates an expected call of CreateWithOptions. -func (mr *MockOrganizationTokensMockRecorder) CreateWithOptions(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockOrganizationTokensMockRecorder) CreateWithOptions(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWithOptions", reflect.TypeOf((*MockOrganizationTokens)(nil).CreateWithOptions), ctx, organization, options) } @@ -74,7 +79,7 @@ func (m *MockOrganizationTokens) Delete(ctx context.Context, organization string } // Delete indicates an expected call of Delete. -func (mr *MockOrganizationTokensMockRecorder) Delete(ctx, organization interface{}) *gomock.Call { +func (mr *MockOrganizationTokensMockRecorder) Delete(ctx, organization any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockOrganizationTokens)(nil).Delete), ctx, organization) } @@ -89,7 +94,7 @@ func (m *MockOrganizationTokens) Read(ctx context.Context, organization string) } // Read indicates an expected call of Read. -func (mr *MockOrganizationTokensMockRecorder) Read(ctx, organization interface{}) *gomock.Call { +func (mr *MockOrganizationTokensMockRecorder) Read(ctx, organization any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockOrganizationTokens)(nil).Read), ctx, organization) } diff --git a/mocks/plan_export_mocks.go b/mocks/plan_export_mocks.go index c9d5d33c6..515e2893e 100644 --- a/mocks/plan_export_mocks.go +++ b/mocks/plan_export_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: plan_export.go +// +// Generated by this command: +// +// mockgen -source=plan_export.go -destination=mocks/plan_export_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockPlanExports is a mock of PlanExports interface. @@ -45,7 +50,7 @@ func (m *MockPlanExports) Create(ctx context.Context, options tfe.PlanExportCrea } // Create indicates an expected call of Create. -func (mr *MockPlanExportsMockRecorder) Create(ctx, options interface{}) *gomock.Call { +func (mr *MockPlanExportsMockRecorder) Create(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockPlanExports)(nil).Create), ctx, options) } @@ -59,7 +64,7 @@ func (m *MockPlanExports) Delete(ctx context.Context, planExportID string) error } // Delete indicates an expected call of Delete. -func (mr *MockPlanExportsMockRecorder) Delete(ctx, planExportID interface{}) *gomock.Call { +func (mr *MockPlanExportsMockRecorder) Delete(ctx, planExportID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockPlanExports)(nil).Delete), ctx, planExportID) } @@ -74,7 +79,7 @@ func (m *MockPlanExports) Download(ctx context.Context, planExportID string) ([] } // Download indicates an expected call of Download. -func (mr *MockPlanExportsMockRecorder) Download(ctx, planExportID interface{}) *gomock.Call { +func (mr *MockPlanExportsMockRecorder) Download(ctx, planExportID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Download", reflect.TypeOf((*MockPlanExports)(nil).Download), ctx, planExportID) } @@ -89,7 +94,7 @@ func (m *MockPlanExports) Read(ctx context.Context, planExportID string) (*tfe.P } // Read indicates an expected call of Read. -func (mr *MockPlanExportsMockRecorder) Read(ctx, planExportID interface{}) *gomock.Call { +func (mr *MockPlanExportsMockRecorder) Read(ctx, planExportID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockPlanExports)(nil).Read), ctx, planExportID) } diff --git a/mocks/plan_mocks.go b/mocks/plan_mocks.go index f3b7fe2bc..a619df0a4 100644 --- a/mocks/plan_mocks.go +++ b/mocks/plan_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: plan.go +// +// Generated by this command: +// +// mockgen -source=plan.go -destination=mocks/plan_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -9,8 +14,8 @@ import ( io "io" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockPlans is a mock of Plans interface. @@ -46,7 +51,7 @@ func (m *MockPlans) Logs(ctx context.Context, planID string) (io.Reader, error) } // Logs indicates an expected call of Logs. -func (mr *MockPlansMockRecorder) Logs(ctx, planID interface{}) *gomock.Call { +func (mr *MockPlansMockRecorder) Logs(ctx, planID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Logs", reflect.TypeOf((*MockPlans)(nil).Logs), ctx, planID) } @@ -61,7 +66,7 @@ func (m *MockPlans) Read(ctx context.Context, planID string) (*tfe.Plan, error) } // Read indicates an expected call of Read. -func (mr *MockPlansMockRecorder) Read(ctx, planID interface{}) *gomock.Call { +func (mr *MockPlansMockRecorder) Read(ctx, planID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockPlans)(nil).Read), ctx, planID) } @@ -76,7 +81,7 @@ func (m *MockPlans) ReadJSONOutput(ctx context.Context, planID string) ([]byte, } // ReadJSONOutput indicates an expected call of ReadJSONOutput. -func (mr *MockPlansMockRecorder) ReadJSONOutput(ctx, planID interface{}) *gomock.Call { +func (mr *MockPlansMockRecorder) ReadJSONOutput(ctx, planID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadJSONOutput", reflect.TypeOf((*MockPlans)(nil).ReadJSONOutput), ctx, planID) } diff --git a/mocks/policy_check_mocks.go b/mocks/policy_check_mocks.go index 217292993..fdf94b720 100644 --- a/mocks/policy_check_mocks.go +++ b/mocks/policy_check_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: policy_check.go +// +// Generated by this command: +// +// mockgen -source=policy_check.go -destination=mocks/policy_check_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -9,8 +14,8 @@ import ( io "io" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockPolicyChecks is a mock of PolicyChecks interface. @@ -46,7 +51,7 @@ func (m *MockPolicyChecks) List(ctx context.Context, runID string, options *tfe. } // List indicates an expected call of List. -func (mr *MockPolicyChecksMockRecorder) List(ctx, runID, options interface{}) *gomock.Call { +func (mr *MockPolicyChecksMockRecorder) List(ctx, runID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockPolicyChecks)(nil).List), ctx, runID, options) } @@ -61,7 +66,7 @@ func (m *MockPolicyChecks) Logs(ctx context.Context, policyCheckID string) (io.R } // Logs indicates an expected call of Logs. -func (mr *MockPolicyChecksMockRecorder) Logs(ctx, policyCheckID interface{}) *gomock.Call { +func (mr *MockPolicyChecksMockRecorder) Logs(ctx, policyCheckID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Logs", reflect.TypeOf((*MockPolicyChecks)(nil).Logs), ctx, policyCheckID) } @@ -76,7 +81,7 @@ func (m *MockPolicyChecks) Override(ctx context.Context, policyCheckID string) ( } // Override indicates an expected call of Override. -func (mr *MockPolicyChecksMockRecorder) Override(ctx, policyCheckID interface{}) *gomock.Call { +func (mr *MockPolicyChecksMockRecorder) Override(ctx, policyCheckID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Override", reflect.TypeOf((*MockPolicyChecks)(nil).Override), ctx, policyCheckID) } @@ -91,7 +96,7 @@ func (m *MockPolicyChecks) Read(ctx context.Context, policyCheckID string) (*tfe } // Read indicates an expected call of Read. -func (mr *MockPolicyChecksMockRecorder) Read(ctx, policyCheckID interface{}) *gomock.Call { +func (mr *MockPolicyChecksMockRecorder) Read(ctx, policyCheckID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockPolicyChecks)(nil).Read), ctx, policyCheckID) } diff --git a/mocks/policy_evaluation.go b/mocks/policy_evaluation.go index 5ee675825..8f6769d59 100644 --- a/mocks/policy_evaluation.go +++ b/mocks/policy_evaluation.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: policy_evaluation.go +// +// Generated by this command: +// +// mockgen -source=policy_evaluation.go -destination=mocks/policy_evaluation.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockPolicyEvaluations is a mock of PolicyEvaluations interface. @@ -45,7 +50,7 @@ func (m *MockPolicyEvaluations) List(ctx context.Context, taskStageID string, op } // List indicates an expected call of List. -func (mr *MockPolicyEvaluationsMockRecorder) List(ctx, taskStageID, options interface{}) *gomock.Call { +func (mr *MockPolicyEvaluationsMockRecorder) List(ctx, taskStageID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockPolicyEvaluations)(nil).List), ctx, taskStageID, options) } @@ -83,7 +88,7 @@ func (m *MockPolicySetOutcomes) List(ctx context.Context, policyEvaluationID str } // List indicates an expected call of List. -func (mr *MockPolicySetOutcomesMockRecorder) List(ctx, policyEvaluationID, options interface{}) *gomock.Call { +func (mr *MockPolicySetOutcomesMockRecorder) List(ctx, policyEvaluationID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockPolicySetOutcomes)(nil).List), ctx, policyEvaluationID, options) } @@ -98,7 +103,7 @@ func (m *MockPolicySetOutcomes) Read(ctx context.Context, policySetOutcomeID str } // Read indicates an expected call of Read. -func (mr *MockPolicySetOutcomesMockRecorder) Read(ctx, policySetOutcomeID interface{}) *gomock.Call { +func (mr *MockPolicySetOutcomesMockRecorder) Read(ctx, policySetOutcomeID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockPolicySetOutcomes)(nil).Read), ctx, policySetOutcomeID) } diff --git a/mocks/policy_mocks.go b/mocks/policy_mocks.go index 0c75538c0..58783c469 100644 --- a/mocks/policy_mocks.go +++ b/mocks/policy_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: policy.go +// +// Generated by this command: +// +// mockgen -source=policy.go -destination=mocks/policy_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockPolicies is a mock of Policies interface. @@ -45,7 +50,7 @@ func (m *MockPolicies) Create(ctx context.Context, organization string, options } // Create indicates an expected call of Create. -func (mr *MockPoliciesMockRecorder) Create(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockPoliciesMockRecorder) Create(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockPolicies)(nil).Create), ctx, organization, options) } @@ -59,7 +64,7 @@ func (m *MockPolicies) Delete(ctx context.Context, policyID string) error { } // Delete indicates an expected call of Delete. -func (mr *MockPoliciesMockRecorder) Delete(ctx, policyID interface{}) *gomock.Call { +func (mr *MockPoliciesMockRecorder) Delete(ctx, policyID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockPolicies)(nil).Delete), ctx, policyID) } @@ -74,7 +79,7 @@ func (m *MockPolicies) Download(ctx context.Context, policyID string) ([]byte, e } // Download indicates an expected call of Download. -func (mr *MockPoliciesMockRecorder) Download(ctx, policyID interface{}) *gomock.Call { +func (mr *MockPoliciesMockRecorder) Download(ctx, policyID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Download", reflect.TypeOf((*MockPolicies)(nil).Download), ctx, policyID) } @@ -89,7 +94,7 @@ func (m *MockPolicies) List(ctx context.Context, organization string, options *t } // List indicates an expected call of List. -func (mr *MockPoliciesMockRecorder) List(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockPoliciesMockRecorder) List(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockPolicies)(nil).List), ctx, organization, options) } @@ -104,7 +109,7 @@ func (m *MockPolicies) Read(ctx context.Context, policyID string) (*tfe.Policy, } // Read indicates an expected call of Read. -func (mr *MockPoliciesMockRecorder) Read(ctx, policyID interface{}) *gomock.Call { +func (mr *MockPoliciesMockRecorder) Read(ctx, policyID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockPolicies)(nil).Read), ctx, policyID) } @@ -119,7 +124,7 @@ func (m *MockPolicies) Update(ctx context.Context, policyID string, options tfe. } // Update indicates an expected call of Update. -func (mr *MockPoliciesMockRecorder) Update(ctx, policyID, options interface{}) *gomock.Call { +func (mr *MockPoliciesMockRecorder) Update(ctx, policyID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockPolicies)(nil).Update), ctx, policyID, options) } @@ -133,7 +138,7 @@ func (m *MockPolicies) Upload(ctx context.Context, policyID string, content []by } // Upload indicates an expected call of Upload. -func (mr *MockPoliciesMockRecorder) Upload(ctx, policyID, content interface{}) *gomock.Call { +func (mr *MockPoliciesMockRecorder) Upload(ctx, policyID, content any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Upload", reflect.TypeOf((*MockPolicies)(nil).Upload), ctx, policyID, content) } diff --git a/mocks/policy_set_mocks.go b/mocks/policy_set_mocks.go index 5766cdc01..5ab611144 100644 --- a/mocks/policy_set_mocks.go +++ b/mocks/policy_set_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: policy_set.go +// +// Generated by this command: +// +// mockgen -source=policy_set.go -destination=mocks/policy_set_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockPolicySets is a mock of PolicySets interface. @@ -44,7 +49,7 @@ func (m *MockPolicySets) AddPolicies(ctx context.Context, policySetID string, op } // AddPolicies indicates an expected call of AddPolicies. -func (mr *MockPolicySetsMockRecorder) AddPolicies(ctx, policySetID, options interface{}) *gomock.Call { +func (mr *MockPolicySetsMockRecorder) AddPolicies(ctx, policySetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPolicies", reflect.TypeOf((*MockPolicySets)(nil).AddPolicies), ctx, policySetID, options) } @@ -58,7 +63,7 @@ func (m *MockPolicySets) AddProjects(ctx context.Context, policySetID string, op } // AddProjects indicates an expected call of AddProjects. -func (mr *MockPolicySetsMockRecorder) AddProjects(ctx, policySetID, options interface{}) *gomock.Call { +func (mr *MockPolicySetsMockRecorder) AddProjects(ctx, policySetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddProjects", reflect.TypeOf((*MockPolicySets)(nil).AddProjects), ctx, policySetID, options) } @@ -72,7 +77,7 @@ func (m *MockPolicySets) AddWorkspaceExclusions(ctx context.Context, policySetID } // AddWorkspaceExclusions indicates an expected call of AddWorkspaceExclusions. -func (mr *MockPolicySetsMockRecorder) AddWorkspaceExclusions(ctx, policySetID, options interface{}) *gomock.Call { +func (mr *MockPolicySetsMockRecorder) AddWorkspaceExclusions(ctx, policySetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkspaceExclusions", reflect.TypeOf((*MockPolicySets)(nil).AddWorkspaceExclusions), ctx, policySetID, options) } @@ -86,7 +91,7 @@ func (m *MockPolicySets) AddWorkspaces(ctx context.Context, policySetID string, } // AddWorkspaces indicates an expected call of AddWorkspaces. -func (mr *MockPolicySetsMockRecorder) AddWorkspaces(ctx, policySetID, options interface{}) *gomock.Call { +func (mr *MockPolicySetsMockRecorder) AddWorkspaces(ctx, policySetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkspaces", reflect.TypeOf((*MockPolicySets)(nil).AddWorkspaces), ctx, policySetID, options) } @@ -101,7 +106,7 @@ func (m *MockPolicySets) Create(ctx context.Context, organization string, option } // Create indicates an expected call of Create. -func (mr *MockPolicySetsMockRecorder) Create(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockPolicySetsMockRecorder) Create(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockPolicySets)(nil).Create), ctx, organization, options) } @@ -115,7 +120,7 @@ func (m *MockPolicySets) Delete(ctx context.Context, policyID string) error { } // Delete indicates an expected call of Delete. -func (mr *MockPolicySetsMockRecorder) Delete(ctx, policyID interface{}) *gomock.Call { +func (mr *MockPolicySetsMockRecorder) Delete(ctx, policyID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockPolicySets)(nil).Delete), ctx, policyID) } @@ -130,7 +135,7 @@ func (m *MockPolicySets) List(ctx context.Context, organization string, options } // List indicates an expected call of List. -func (mr *MockPolicySetsMockRecorder) List(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockPolicySetsMockRecorder) List(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockPolicySets)(nil).List), ctx, organization, options) } @@ -145,7 +150,7 @@ func (m *MockPolicySets) Read(ctx context.Context, policySetID string) (*tfe.Pol } // Read indicates an expected call of Read. -func (mr *MockPolicySetsMockRecorder) Read(ctx, policySetID interface{}) *gomock.Call { +func (mr *MockPolicySetsMockRecorder) Read(ctx, policySetID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockPolicySets)(nil).Read), ctx, policySetID) } @@ -160,7 +165,7 @@ func (m *MockPolicySets) ReadWithOptions(ctx context.Context, policySetID string } // ReadWithOptions indicates an expected call of ReadWithOptions. -func (mr *MockPolicySetsMockRecorder) ReadWithOptions(ctx, policySetID, options interface{}) *gomock.Call { +func (mr *MockPolicySetsMockRecorder) ReadWithOptions(ctx, policySetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadWithOptions", reflect.TypeOf((*MockPolicySets)(nil).ReadWithOptions), ctx, policySetID, options) } @@ -174,7 +179,7 @@ func (m *MockPolicySets) RemovePolicies(ctx context.Context, policySetID string, } // RemovePolicies indicates an expected call of RemovePolicies. -func (mr *MockPolicySetsMockRecorder) RemovePolicies(ctx, policySetID, options interface{}) *gomock.Call { +func (mr *MockPolicySetsMockRecorder) RemovePolicies(ctx, policySetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemovePolicies", reflect.TypeOf((*MockPolicySets)(nil).RemovePolicies), ctx, policySetID, options) } @@ -188,7 +193,7 @@ func (m *MockPolicySets) RemoveProjects(ctx context.Context, policySetID string, } // RemoveProjects indicates an expected call of RemoveProjects. -func (mr *MockPolicySetsMockRecorder) RemoveProjects(ctx, policySetID, options interface{}) *gomock.Call { +func (mr *MockPolicySetsMockRecorder) RemoveProjects(ctx, policySetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveProjects", reflect.TypeOf((*MockPolicySets)(nil).RemoveProjects), ctx, policySetID, options) } @@ -202,7 +207,7 @@ func (m *MockPolicySets) RemoveWorkspaceExclusions(ctx context.Context, policySe } // RemoveWorkspaceExclusions indicates an expected call of RemoveWorkspaceExclusions. -func (mr *MockPolicySetsMockRecorder) RemoveWorkspaceExclusions(ctx, policySetID, options interface{}) *gomock.Call { +func (mr *MockPolicySetsMockRecorder) RemoveWorkspaceExclusions(ctx, policySetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveWorkspaceExclusions", reflect.TypeOf((*MockPolicySets)(nil).RemoveWorkspaceExclusions), ctx, policySetID, options) } @@ -216,7 +221,7 @@ func (m *MockPolicySets) RemoveWorkspaces(ctx context.Context, policySetID strin } // RemoveWorkspaces indicates an expected call of RemoveWorkspaces. -func (mr *MockPolicySetsMockRecorder) RemoveWorkspaces(ctx, policySetID, options interface{}) *gomock.Call { +func (mr *MockPolicySetsMockRecorder) RemoveWorkspaces(ctx, policySetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveWorkspaces", reflect.TypeOf((*MockPolicySets)(nil).RemoveWorkspaces), ctx, policySetID, options) } @@ -231,7 +236,7 @@ func (m *MockPolicySets) Update(ctx context.Context, policySetID string, options } // Update indicates an expected call of Update. -func (mr *MockPolicySetsMockRecorder) Update(ctx, policySetID, options interface{}) *gomock.Call { +func (mr *MockPolicySetsMockRecorder) Update(ctx, policySetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockPolicySets)(nil).Update), ctx, policySetID, options) } diff --git a/mocks/policy_set_parameter_mocks.go b/mocks/policy_set_parameter_mocks.go index ab6210203..a339f13e3 100644 --- a/mocks/policy_set_parameter_mocks.go +++ b/mocks/policy_set_parameter_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: policy_set_parameter.go +// +// Generated by this command: +// +// mockgen -source=policy_set_parameter.go -destination=mocks/policy_set_parameter_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockPolicySetParameters is a mock of PolicySetParameters interface. @@ -45,7 +50,7 @@ func (m *MockPolicySetParameters) Create(ctx context.Context, policySetID string } // Create indicates an expected call of Create. -func (mr *MockPolicySetParametersMockRecorder) Create(ctx, policySetID, options interface{}) *gomock.Call { +func (mr *MockPolicySetParametersMockRecorder) Create(ctx, policySetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockPolicySetParameters)(nil).Create), ctx, policySetID, options) } @@ -59,7 +64,7 @@ func (m *MockPolicySetParameters) Delete(ctx context.Context, policySetID, param } // Delete indicates an expected call of Delete. -func (mr *MockPolicySetParametersMockRecorder) Delete(ctx, policySetID, parameterID interface{}) *gomock.Call { +func (mr *MockPolicySetParametersMockRecorder) Delete(ctx, policySetID, parameterID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockPolicySetParameters)(nil).Delete), ctx, policySetID, parameterID) } @@ -74,7 +79,7 @@ func (m *MockPolicySetParameters) List(ctx context.Context, policySetID string, } // List indicates an expected call of List. -func (mr *MockPolicySetParametersMockRecorder) List(ctx, policySetID, options interface{}) *gomock.Call { +func (mr *MockPolicySetParametersMockRecorder) List(ctx, policySetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockPolicySetParameters)(nil).List), ctx, policySetID, options) } @@ -89,7 +94,7 @@ func (m *MockPolicySetParameters) Read(ctx context.Context, policySetID, paramet } // Read indicates an expected call of Read. -func (mr *MockPolicySetParametersMockRecorder) Read(ctx, policySetID, parameterID interface{}) *gomock.Call { +func (mr *MockPolicySetParametersMockRecorder) Read(ctx, policySetID, parameterID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockPolicySetParameters)(nil).Read), ctx, policySetID, parameterID) } @@ -104,7 +109,7 @@ func (m *MockPolicySetParameters) Update(ctx context.Context, policySetID, param } // Update indicates an expected call of Update. -func (mr *MockPolicySetParametersMockRecorder) Update(ctx, policySetID, parameterID, options interface{}) *gomock.Call { +func (mr *MockPolicySetParametersMockRecorder) Update(ctx, policySetID, parameterID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockPolicySetParameters)(nil).Update), ctx, policySetID, parameterID, options) } diff --git a/mocks/policy_set_version_mocks.go b/mocks/policy_set_version_mocks.go index b23ad046e..2c73b2ade 100644 --- a/mocks/policy_set_version_mocks.go +++ b/mocks/policy_set_version_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: policy_set_version.go +// +// Generated by this command: +// +// mockgen -source=policy_set_version.go -destination=mocks/policy_set_version_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockPolicySetVersions is a mock of PolicySetVersions interface. @@ -45,7 +50,7 @@ func (m *MockPolicySetVersions) Create(ctx context.Context, policySetID string) } // Create indicates an expected call of Create. -func (mr *MockPolicySetVersionsMockRecorder) Create(ctx, policySetID interface{}) *gomock.Call { +func (mr *MockPolicySetVersionsMockRecorder) Create(ctx, policySetID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockPolicySetVersions)(nil).Create), ctx, policySetID) } @@ -60,7 +65,7 @@ func (m *MockPolicySetVersions) Read(ctx context.Context, policySetVersionID str } // Read indicates an expected call of Read. -func (mr *MockPolicySetVersionsMockRecorder) Read(ctx, policySetVersionID interface{}) *gomock.Call { +func (mr *MockPolicySetVersionsMockRecorder) Read(ctx, policySetVersionID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockPolicySetVersions)(nil).Read), ctx, policySetVersionID) } @@ -74,7 +79,7 @@ func (m *MockPolicySetVersions) Upload(ctx context.Context, psv tfe.PolicySetVer } // Upload indicates an expected call of Upload. -func (mr *MockPolicySetVersionsMockRecorder) Upload(ctx, psv, path interface{}) *gomock.Call { +func (mr *MockPolicySetVersionsMockRecorder) Upload(ctx, psv, path any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Upload", reflect.TypeOf((*MockPolicySetVersions)(nil).Upload), ctx, psv, path) } diff --git a/mocks/project_mocks.go b/mocks/project_mocks.go index 6c8eddb82..1f440a188 100644 --- a/mocks/project_mocks.go +++ b/mocks/project_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: project.go +// +// Generated by this command: +// +// mockgen -source=project.go -destination=mocks/project_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockProjects is a mock of Projects interface. @@ -45,7 +50,7 @@ func (m *MockProjects) Create(ctx context.Context, organization string, options } // Create indicates an expected call of Create. -func (mr *MockProjectsMockRecorder) Create(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockProjectsMockRecorder) Create(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockProjects)(nil).Create), ctx, organization, options) } @@ -59,7 +64,7 @@ func (m *MockProjects) Delete(ctx context.Context, projectID string) error { } // Delete indicates an expected call of Delete. -func (mr *MockProjectsMockRecorder) Delete(ctx, projectID interface{}) *gomock.Call { +func (mr *MockProjectsMockRecorder) Delete(ctx, projectID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockProjects)(nil).Delete), ctx, projectID) } @@ -74,7 +79,7 @@ func (m *MockProjects) List(ctx context.Context, organization string, options *t } // List indicates an expected call of List. -func (mr *MockProjectsMockRecorder) List(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockProjectsMockRecorder) List(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockProjects)(nil).List), ctx, organization, options) } @@ -89,7 +94,7 @@ func (m *MockProjects) Read(ctx context.Context, projectID string) (*tfe.Project } // Read indicates an expected call of Read. -func (mr *MockProjectsMockRecorder) Read(ctx, projectID interface{}) *gomock.Call { +func (mr *MockProjectsMockRecorder) Read(ctx, projectID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockProjects)(nil).Read), ctx, projectID) } @@ -104,7 +109,7 @@ func (m *MockProjects) Update(ctx context.Context, projectID string, options tfe } // Update indicates an expected call of Update. -func (mr *MockProjectsMockRecorder) Update(ctx, projectID, options interface{}) *gomock.Call { +func (mr *MockProjectsMockRecorder) Update(ctx, projectID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockProjects)(nil).Update), ctx, projectID, options) } diff --git a/mocks/registry_module_mocks.go b/mocks/registry_module_mocks.go index 3bfc2de8e..4fd29cdc7 100644 --- a/mocks/registry_module_mocks.go +++ b/mocks/registry_module_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: registry_module.go +// +// Generated by this command: +// +// mockgen -source=registry_module.go -destination=mocks/registry_module_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -9,8 +14,8 @@ import ( io "io" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockRegistryModules is a mock of RegistryModules interface. @@ -46,7 +51,7 @@ func (m *MockRegistryModules) Create(ctx context.Context, organization string, o } // Create indicates an expected call of Create. -func (mr *MockRegistryModulesMockRecorder) Create(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockRegistryModulesMockRecorder) Create(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockRegistryModules)(nil).Create), ctx, organization, options) } @@ -61,7 +66,7 @@ func (m *MockRegistryModules) CreateVersion(ctx context.Context, moduleID tfe.Re } // CreateVersion indicates an expected call of CreateVersion. -func (mr *MockRegistryModulesMockRecorder) CreateVersion(ctx, moduleID, options interface{}) *gomock.Call { +func (mr *MockRegistryModulesMockRecorder) CreateVersion(ctx, moduleID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVersion", reflect.TypeOf((*MockRegistryModules)(nil).CreateVersion), ctx, moduleID, options) } @@ -76,7 +81,7 @@ func (m *MockRegistryModules) CreateWithVCSConnection(ctx context.Context, optio } // CreateWithVCSConnection indicates an expected call of CreateWithVCSConnection. -func (mr *MockRegistryModulesMockRecorder) CreateWithVCSConnection(ctx, options interface{}) *gomock.Call { +func (mr *MockRegistryModulesMockRecorder) CreateWithVCSConnection(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWithVCSConnection", reflect.TypeOf((*MockRegistryModules)(nil).CreateWithVCSConnection), ctx, options) } @@ -90,7 +95,7 @@ func (m *MockRegistryModules) Delete(ctx context.Context, organization, name str } // Delete indicates an expected call of Delete. -func (mr *MockRegistryModulesMockRecorder) Delete(ctx, organization, name interface{}) *gomock.Call { +func (mr *MockRegistryModulesMockRecorder) Delete(ctx, organization, name any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockRegistryModules)(nil).Delete), ctx, organization, name) } @@ -104,7 +109,7 @@ func (m *MockRegistryModules) DeleteByName(ctx context.Context, module tfe.Regis } // DeleteByName indicates an expected call of DeleteByName. -func (mr *MockRegistryModulesMockRecorder) DeleteByName(ctx, module interface{}) *gomock.Call { +func (mr *MockRegistryModulesMockRecorder) DeleteByName(ctx, module any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteByName", reflect.TypeOf((*MockRegistryModules)(nil).DeleteByName), ctx, module) } @@ -118,7 +123,7 @@ func (m *MockRegistryModules) DeleteProvider(ctx context.Context, moduleID tfe.R } // DeleteProvider indicates an expected call of DeleteProvider. -func (mr *MockRegistryModulesMockRecorder) DeleteProvider(ctx, moduleID interface{}) *gomock.Call { +func (mr *MockRegistryModulesMockRecorder) DeleteProvider(ctx, moduleID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteProvider", reflect.TypeOf((*MockRegistryModules)(nil).DeleteProvider), ctx, moduleID) } @@ -132,7 +137,7 @@ func (m *MockRegistryModules) DeleteVersion(ctx context.Context, moduleID tfe.Re } // DeleteVersion indicates an expected call of DeleteVersion. -func (mr *MockRegistryModulesMockRecorder) DeleteVersion(ctx, moduleID, version interface{}) *gomock.Call { +func (mr *MockRegistryModulesMockRecorder) DeleteVersion(ctx, moduleID, version any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVersion", reflect.TypeOf((*MockRegistryModules)(nil).DeleteVersion), ctx, moduleID, version) } @@ -147,7 +152,7 @@ func (m *MockRegistryModules) List(ctx context.Context, organization string, opt } // List indicates an expected call of List. -func (mr *MockRegistryModulesMockRecorder) List(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockRegistryModulesMockRecorder) List(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockRegistryModules)(nil).List), ctx, organization, options) } @@ -162,7 +167,7 @@ func (m *MockRegistryModules) ListCommits(ctx context.Context, moduleID tfe.Regi } // ListCommits indicates an expected call of ListCommits. -func (mr *MockRegistryModulesMockRecorder) ListCommits(ctx, moduleID interface{}) *gomock.Call { +func (mr *MockRegistryModulesMockRecorder) ListCommits(ctx, moduleID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCommits", reflect.TypeOf((*MockRegistryModules)(nil).ListCommits), ctx, moduleID) } @@ -177,7 +182,7 @@ func (m *MockRegistryModules) Read(ctx context.Context, moduleID tfe.RegistryMod } // Read indicates an expected call of Read. -func (mr *MockRegistryModulesMockRecorder) Read(ctx, moduleID interface{}) *gomock.Call { +func (mr *MockRegistryModulesMockRecorder) Read(ctx, moduleID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockRegistryModules)(nil).Read), ctx, moduleID) } @@ -192,7 +197,7 @@ func (m *MockRegistryModules) ReadVersion(ctx context.Context, moduleID tfe.Regi } // ReadVersion indicates an expected call of ReadVersion. -func (mr *MockRegistryModulesMockRecorder) ReadVersion(ctx, moduleID, version interface{}) *gomock.Call { +func (mr *MockRegistryModulesMockRecorder) ReadVersion(ctx, moduleID, version any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadVersion", reflect.TypeOf((*MockRegistryModules)(nil).ReadVersion), ctx, moduleID, version) } @@ -207,7 +212,7 @@ func (m *MockRegistryModules) Update(ctx context.Context, moduleID tfe.RegistryM } // Update indicates an expected call of Update. -func (mr *MockRegistryModulesMockRecorder) Update(ctx, moduleID, options interface{}) *gomock.Call { +func (mr *MockRegistryModulesMockRecorder) Update(ctx, moduleID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockRegistryModules)(nil).Update), ctx, moduleID, options) } @@ -221,7 +226,7 @@ func (m *MockRegistryModules) Upload(ctx context.Context, rmv tfe.RegistryModule } // Upload indicates an expected call of Upload. -func (mr *MockRegistryModulesMockRecorder) Upload(ctx, rmv, path interface{}) *gomock.Call { +func (mr *MockRegistryModulesMockRecorder) Upload(ctx, rmv, path any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Upload", reflect.TypeOf((*MockRegistryModules)(nil).Upload), ctx, rmv, path) } @@ -235,7 +240,7 @@ func (m *MockRegistryModules) UploadTarGzip(ctx context.Context, url string, r i } // UploadTarGzip indicates an expected call of UploadTarGzip. -func (mr *MockRegistryModulesMockRecorder) UploadTarGzip(ctx, url, r interface{}) *gomock.Call { +func (mr *MockRegistryModulesMockRecorder) UploadTarGzip(ctx, url, r any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadTarGzip", reflect.TypeOf((*MockRegistryModules)(nil).UploadTarGzip), ctx, url, r) } diff --git a/mocks/registry_no_code_module_mocks.go b/mocks/registry_no_code_module_mocks.go index b3b28f4bd..b4b9f0db8 100644 --- a/mocks/registry_no_code_module_mocks.go +++ b/mocks/registry_no_code_module_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: registry_no_code_module.go +// +// Generated by this command: +// +// mockgen -source=registry_no_code_module.go -destination=mocks/registry_no_code_module_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockRegistryNoCodeModules is a mock of RegistryNoCodeModules interface. @@ -45,7 +50,7 @@ func (m *MockRegistryNoCodeModules) Create(ctx context.Context, organization str } // Create indicates an expected call of Create. -func (mr *MockRegistryNoCodeModulesMockRecorder) Create(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockRegistryNoCodeModulesMockRecorder) Create(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockRegistryNoCodeModules)(nil).Create), ctx, organization, options) } @@ -59,7 +64,7 @@ func (m *MockRegistryNoCodeModules) Delete(ctx context.Context, ID string) error } // Delete indicates an expected call of Delete. -func (mr *MockRegistryNoCodeModulesMockRecorder) Delete(ctx, ID interface{}) *gomock.Call { +func (mr *MockRegistryNoCodeModulesMockRecorder) Delete(ctx, ID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockRegistryNoCodeModules)(nil).Delete), ctx, ID) } @@ -74,7 +79,7 @@ func (m *MockRegistryNoCodeModules) Read(ctx context.Context, noCodeModuleID str } // Read indicates an expected call of Read. -func (mr *MockRegistryNoCodeModulesMockRecorder) Read(ctx, noCodeModuleID, options interface{}) *gomock.Call { +func (mr *MockRegistryNoCodeModulesMockRecorder) Read(ctx, noCodeModuleID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockRegistryNoCodeModules)(nil).Read), ctx, noCodeModuleID, options) } @@ -89,7 +94,7 @@ func (m *MockRegistryNoCodeModules) Update(ctx context.Context, noCodeModuleID s } // Update indicates an expected call of Update. -func (mr *MockRegistryNoCodeModulesMockRecorder) Update(ctx, noCodeModuleID, options interface{}) *gomock.Call { +func (mr *MockRegistryNoCodeModulesMockRecorder) Update(ctx, noCodeModuleID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockRegistryNoCodeModules)(nil).Update), ctx, noCodeModuleID, options) } diff --git a/mocks/registry_provider_mocks.go b/mocks/registry_provider_mocks.go index 06285fdce..0974fc875 100644 --- a/mocks/registry_provider_mocks.go +++ b/mocks/registry_provider_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: registry_provider.go +// +// Generated by this command: +// +// mockgen -source=registry_provider.go -destination=mocks/registry_provider_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockRegistryProviders is a mock of RegistryProviders interface. @@ -45,7 +50,7 @@ func (m *MockRegistryProviders) Create(ctx context.Context, organization string, } // Create indicates an expected call of Create. -func (mr *MockRegistryProvidersMockRecorder) Create(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockRegistryProvidersMockRecorder) Create(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockRegistryProviders)(nil).Create), ctx, organization, options) } @@ -59,7 +64,7 @@ func (m *MockRegistryProviders) Delete(ctx context.Context, providerID tfe.Regis } // Delete indicates an expected call of Delete. -func (mr *MockRegistryProvidersMockRecorder) Delete(ctx, providerID interface{}) *gomock.Call { +func (mr *MockRegistryProvidersMockRecorder) Delete(ctx, providerID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockRegistryProviders)(nil).Delete), ctx, providerID) } @@ -74,7 +79,7 @@ func (m *MockRegistryProviders) List(ctx context.Context, organization string, o } // List indicates an expected call of List. -func (mr *MockRegistryProvidersMockRecorder) List(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockRegistryProvidersMockRecorder) List(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockRegistryProviders)(nil).List), ctx, organization, options) } @@ -89,7 +94,7 @@ func (m *MockRegistryProviders) Read(ctx context.Context, providerID tfe.Registr } // Read indicates an expected call of Read. -func (mr *MockRegistryProvidersMockRecorder) Read(ctx, providerID, options interface{}) *gomock.Call { +func (mr *MockRegistryProvidersMockRecorder) Read(ctx, providerID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockRegistryProviders)(nil).Read), ctx, providerID, options) } diff --git a/mocks/registry_provider_platform_mocks.go b/mocks/registry_provider_platform_mocks.go index 7c518abf4..aaac3beeb 100644 --- a/mocks/registry_provider_platform_mocks.go +++ b/mocks/registry_provider_platform_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: registry_provider_platform.go +// +// Generated by this command: +// +// mockgen -source=registry_provider_platform.go -destination=mocks/registry_provider_platform_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockRegistryProviderPlatforms is a mock of RegistryProviderPlatforms interface. @@ -45,7 +50,7 @@ func (m *MockRegistryProviderPlatforms) Create(ctx context.Context, versionID tf } // Create indicates an expected call of Create. -func (mr *MockRegistryProviderPlatformsMockRecorder) Create(ctx, versionID, options interface{}) *gomock.Call { +func (mr *MockRegistryProviderPlatformsMockRecorder) Create(ctx, versionID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockRegistryProviderPlatforms)(nil).Create), ctx, versionID, options) } @@ -59,7 +64,7 @@ func (m *MockRegistryProviderPlatforms) Delete(ctx context.Context, platformID t } // Delete indicates an expected call of Delete. -func (mr *MockRegistryProviderPlatformsMockRecorder) Delete(ctx, platformID interface{}) *gomock.Call { +func (mr *MockRegistryProviderPlatformsMockRecorder) Delete(ctx, platformID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockRegistryProviderPlatforms)(nil).Delete), ctx, platformID) } @@ -74,7 +79,7 @@ func (m *MockRegistryProviderPlatforms) List(ctx context.Context, versionID tfe. } // List indicates an expected call of List. -func (mr *MockRegistryProviderPlatformsMockRecorder) List(ctx, versionID, options interface{}) *gomock.Call { +func (mr *MockRegistryProviderPlatformsMockRecorder) List(ctx, versionID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockRegistryProviderPlatforms)(nil).List), ctx, versionID, options) } @@ -89,7 +94,7 @@ func (m *MockRegistryProviderPlatforms) Read(ctx context.Context, platformID tfe } // Read indicates an expected call of Read. -func (mr *MockRegistryProviderPlatformsMockRecorder) Read(ctx, platformID interface{}) *gomock.Call { +func (mr *MockRegistryProviderPlatformsMockRecorder) Read(ctx, platformID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockRegistryProviderPlatforms)(nil).Read), ctx, platformID) } diff --git a/mocks/registry_provider_version_mocks.go b/mocks/registry_provider_version_mocks.go index b9b84816c..cf51c4c57 100644 --- a/mocks/registry_provider_version_mocks.go +++ b/mocks/registry_provider_version_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: registry_provider_version.go +// +// Generated by this command: +// +// mockgen -source=registry_provider_version.go -destination=mocks/registry_provider_version_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockRegistryProviderVersions is a mock of RegistryProviderVersions interface. @@ -45,7 +50,7 @@ func (m *MockRegistryProviderVersions) Create(ctx context.Context, providerID tf } // Create indicates an expected call of Create. -func (mr *MockRegistryProviderVersionsMockRecorder) Create(ctx, providerID, options interface{}) *gomock.Call { +func (mr *MockRegistryProviderVersionsMockRecorder) Create(ctx, providerID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockRegistryProviderVersions)(nil).Create), ctx, providerID, options) } @@ -59,7 +64,7 @@ func (m *MockRegistryProviderVersions) Delete(ctx context.Context, versionID tfe } // Delete indicates an expected call of Delete. -func (mr *MockRegistryProviderVersionsMockRecorder) Delete(ctx, versionID interface{}) *gomock.Call { +func (mr *MockRegistryProviderVersionsMockRecorder) Delete(ctx, versionID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockRegistryProviderVersions)(nil).Delete), ctx, versionID) } @@ -74,7 +79,7 @@ func (m *MockRegistryProviderVersions) List(ctx context.Context, providerID tfe. } // List indicates an expected call of List. -func (mr *MockRegistryProviderVersionsMockRecorder) List(ctx, providerID, options interface{}) *gomock.Call { +func (mr *MockRegistryProviderVersionsMockRecorder) List(ctx, providerID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockRegistryProviderVersions)(nil).List), ctx, providerID, options) } @@ -89,7 +94,7 @@ func (m *MockRegistryProviderVersions) Read(ctx context.Context, versionID tfe.R } // Read indicates an expected call of Read. -func (mr *MockRegistryProviderVersionsMockRecorder) Read(ctx, versionID interface{}) *gomock.Call { +func (mr *MockRegistryProviderVersionsMockRecorder) Read(ctx, versionID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockRegistryProviderVersions)(nil).Read), ctx, versionID) } diff --git a/mocks/run_events_mocks.go b/mocks/run_events_mocks.go index 1e7cd73f1..3af0ac41a 100644 --- a/mocks/run_events_mocks.go +++ b/mocks/run_events_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: run_event.go +// +// Generated by this command: +// +// mockgen -source=run_event.go -destination=mocks/run_events_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockRunEvents is a mock of RunEvents interface. @@ -45,7 +50,7 @@ func (m *MockRunEvents) List(ctx context.Context, runID string, options *tfe.Run } // List indicates an expected call of List. -func (mr *MockRunEventsMockRecorder) List(ctx, runID, options interface{}) *gomock.Call { +func (mr *MockRunEventsMockRecorder) List(ctx, runID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockRunEvents)(nil).List), ctx, runID, options) } @@ -60,7 +65,7 @@ func (m *MockRunEvents) Read(ctx context.Context, runEventID string) (*tfe.RunEv } // Read indicates an expected call of Read. -func (mr *MockRunEventsMockRecorder) Read(ctx, runEventID interface{}) *gomock.Call { +func (mr *MockRunEventsMockRecorder) Read(ctx, runEventID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockRunEvents)(nil).Read), ctx, runEventID) } @@ -75,7 +80,7 @@ func (m *MockRunEvents) ReadWithOptions(ctx context.Context, runEventID string, } // ReadWithOptions indicates an expected call of ReadWithOptions. -func (mr *MockRunEventsMockRecorder) ReadWithOptions(ctx, runEventID, options interface{}) *gomock.Call { +func (mr *MockRunEventsMockRecorder) ReadWithOptions(ctx, runEventID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadWithOptions", reflect.TypeOf((*MockRunEvents)(nil).ReadWithOptions), ctx, runEventID, options) } diff --git a/mocks/run_mocks.go b/mocks/run_mocks.go index 4c1f156ef..da01c808d 100644 --- a/mocks/run_mocks.go +++ b/mocks/run_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: run.go +// +// Generated by this command: +// +// mockgen -source=run.go -destination=mocks/run_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockRuns is a mock of Runs interface. @@ -44,7 +49,7 @@ func (m *MockRuns) Apply(ctx context.Context, runID string, options tfe.RunApply } // Apply indicates an expected call of Apply. -func (mr *MockRunsMockRecorder) Apply(ctx, runID, options interface{}) *gomock.Call { +func (mr *MockRunsMockRecorder) Apply(ctx, runID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockRuns)(nil).Apply), ctx, runID, options) } @@ -58,7 +63,7 @@ func (m *MockRuns) Cancel(ctx context.Context, runID string, options tfe.RunCanc } // Cancel indicates an expected call of Cancel. -func (mr *MockRunsMockRecorder) Cancel(ctx, runID, options interface{}) *gomock.Call { +func (mr *MockRunsMockRecorder) Cancel(ctx, runID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cancel", reflect.TypeOf((*MockRuns)(nil).Cancel), ctx, runID, options) } @@ -73,7 +78,7 @@ func (m *MockRuns) Create(ctx context.Context, options tfe.RunCreateOptions) (*t } // Create indicates an expected call of Create. -func (mr *MockRunsMockRecorder) Create(ctx, options interface{}) *gomock.Call { +func (mr *MockRunsMockRecorder) Create(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockRuns)(nil).Create), ctx, options) } @@ -87,7 +92,7 @@ func (m *MockRuns) Discard(ctx context.Context, runID string, options tfe.RunDis } // Discard indicates an expected call of Discard. -func (mr *MockRunsMockRecorder) Discard(ctx, runID, options interface{}) *gomock.Call { +func (mr *MockRunsMockRecorder) Discard(ctx, runID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Discard", reflect.TypeOf((*MockRuns)(nil).Discard), ctx, runID, options) } @@ -101,7 +106,7 @@ func (m *MockRuns) ForceCancel(ctx context.Context, runID string, options tfe.Ru } // ForceCancel indicates an expected call of ForceCancel. -func (mr *MockRunsMockRecorder) ForceCancel(ctx, runID, options interface{}) *gomock.Call { +func (mr *MockRunsMockRecorder) ForceCancel(ctx, runID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForceCancel", reflect.TypeOf((*MockRuns)(nil).ForceCancel), ctx, runID, options) } @@ -115,7 +120,7 @@ func (m *MockRuns) ForceExecute(ctx context.Context, runID string) error { } // ForceExecute indicates an expected call of ForceExecute. -func (mr *MockRunsMockRecorder) ForceExecute(ctx, runID interface{}) *gomock.Call { +func (mr *MockRunsMockRecorder) ForceExecute(ctx, runID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForceExecute", reflect.TypeOf((*MockRuns)(nil).ForceExecute), ctx, runID) } @@ -130,7 +135,7 @@ func (m *MockRuns) List(ctx context.Context, workspaceID string, options *tfe.Ru } // List indicates an expected call of List. -func (mr *MockRunsMockRecorder) List(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockRunsMockRecorder) List(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockRuns)(nil).List), ctx, workspaceID, options) } @@ -145,7 +150,7 @@ func (m *MockRuns) Read(ctx context.Context, runID string) (*tfe.Run, error) { } // Read indicates an expected call of Read. -func (mr *MockRunsMockRecorder) Read(ctx, runID interface{}) *gomock.Call { +func (mr *MockRunsMockRecorder) Read(ctx, runID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockRuns)(nil).Read), ctx, runID) } @@ -160,7 +165,7 @@ func (m *MockRuns) ReadWithOptions(ctx context.Context, runID string, options *t } // ReadWithOptions indicates an expected call of ReadWithOptions. -func (mr *MockRunsMockRecorder) ReadWithOptions(ctx, runID, options interface{}) *gomock.Call { +func (mr *MockRunsMockRecorder) ReadWithOptions(ctx, runID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadWithOptions", reflect.TypeOf((*MockRuns)(nil).ReadWithOptions), ctx, runID, options) } diff --git a/mocks/run_tasks_mocks.go b/mocks/run_tasks_mocks.go index 5b0485563..3038e2426 100644 --- a/mocks/run_tasks_mocks.go +++ b/mocks/run_tasks_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: run_task.go +// +// Generated by this command: +// +// mockgen -source=run_task.go -destination=mocks/run_tasks_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockRunTasks is a mock of RunTasks interface. @@ -45,7 +50,7 @@ func (m *MockRunTasks) AttachToWorkspace(ctx context.Context, workspaceID, runTa } // AttachToWorkspace indicates an expected call of AttachToWorkspace. -func (mr *MockRunTasksMockRecorder) AttachToWorkspace(ctx, workspaceID, runTaskID, enforcementLevel interface{}) *gomock.Call { +func (mr *MockRunTasksMockRecorder) AttachToWorkspace(ctx, workspaceID, runTaskID, enforcementLevel any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachToWorkspace", reflect.TypeOf((*MockRunTasks)(nil).AttachToWorkspace), ctx, workspaceID, runTaskID, enforcementLevel) } @@ -60,7 +65,7 @@ func (m *MockRunTasks) Create(ctx context.Context, organization string, options } // Create indicates an expected call of Create. -func (mr *MockRunTasksMockRecorder) Create(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockRunTasksMockRecorder) Create(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockRunTasks)(nil).Create), ctx, organization, options) } @@ -74,7 +79,7 @@ func (m *MockRunTasks) Delete(ctx context.Context, runTaskID string) error { } // Delete indicates an expected call of Delete. -func (mr *MockRunTasksMockRecorder) Delete(ctx, runTaskID interface{}) *gomock.Call { +func (mr *MockRunTasksMockRecorder) Delete(ctx, runTaskID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockRunTasks)(nil).Delete), ctx, runTaskID) } @@ -89,7 +94,7 @@ func (m *MockRunTasks) List(ctx context.Context, organization string, options *t } // List indicates an expected call of List. -func (mr *MockRunTasksMockRecorder) List(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockRunTasksMockRecorder) List(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockRunTasks)(nil).List), ctx, organization, options) } @@ -104,7 +109,7 @@ func (m *MockRunTasks) Read(ctx context.Context, runTaskID string) (*tfe.RunTask } // Read indicates an expected call of Read. -func (mr *MockRunTasksMockRecorder) Read(ctx, runTaskID interface{}) *gomock.Call { +func (mr *MockRunTasksMockRecorder) Read(ctx, runTaskID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockRunTasks)(nil).Read), ctx, runTaskID) } @@ -119,7 +124,7 @@ func (m *MockRunTasks) ReadWithOptions(ctx context.Context, runTaskID string, op } // ReadWithOptions indicates an expected call of ReadWithOptions. -func (mr *MockRunTasksMockRecorder) ReadWithOptions(ctx, runTaskID, options interface{}) *gomock.Call { +func (mr *MockRunTasksMockRecorder) ReadWithOptions(ctx, runTaskID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadWithOptions", reflect.TypeOf((*MockRunTasks)(nil).ReadWithOptions), ctx, runTaskID, options) } @@ -134,7 +139,7 @@ func (m *MockRunTasks) Update(ctx context.Context, runTaskID string, options tfe } // Update indicates an expected call of Update. -func (mr *MockRunTasksMockRecorder) Update(ctx, runTaskID, options interface{}) *gomock.Call { +func (mr *MockRunTasksMockRecorder) Update(ctx, runTaskID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockRunTasks)(nil).Update), ctx, runTaskID, options) } diff --git a/mocks/run_trigger_mocks.go b/mocks/run_trigger_mocks.go index 13c9796e3..1668f9632 100644 --- a/mocks/run_trigger_mocks.go +++ b/mocks/run_trigger_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: run_trigger.go +// +// Generated by this command: +// +// mockgen -source=run_trigger.go -destination=mocks/run_trigger_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockRunTriggers is a mock of RunTriggers interface. @@ -45,7 +50,7 @@ func (m *MockRunTriggers) Create(ctx context.Context, workspaceID string, option } // Create indicates an expected call of Create. -func (mr *MockRunTriggersMockRecorder) Create(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockRunTriggersMockRecorder) Create(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockRunTriggers)(nil).Create), ctx, workspaceID, options) } @@ -59,7 +64,7 @@ func (m *MockRunTriggers) Delete(ctx context.Context, RunTriggerID string) error } // Delete indicates an expected call of Delete. -func (mr *MockRunTriggersMockRecorder) Delete(ctx, RunTriggerID interface{}) *gomock.Call { +func (mr *MockRunTriggersMockRecorder) Delete(ctx, RunTriggerID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockRunTriggers)(nil).Delete), ctx, RunTriggerID) } @@ -74,7 +79,7 @@ func (m *MockRunTriggers) List(ctx context.Context, workspaceID string, options } // List indicates an expected call of List. -func (mr *MockRunTriggersMockRecorder) List(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockRunTriggersMockRecorder) List(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockRunTriggers)(nil).List), ctx, workspaceID, options) } @@ -89,7 +94,7 @@ func (m *MockRunTriggers) Read(ctx context.Context, RunTriggerID string) (*tfe.R } // Read indicates an expected call of Read. -func (mr *MockRunTriggersMockRecorder) Read(ctx, RunTriggerID interface{}) *gomock.Call { +func (mr *MockRunTriggersMockRecorder) Read(ctx, RunTriggerID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockRunTriggers)(nil).Read), ctx, RunTriggerID) } diff --git a/mocks/ssh_key_mocks.go b/mocks/ssh_key_mocks.go index 8a14ae140..f1e4fcd66 100644 --- a/mocks/ssh_key_mocks.go +++ b/mocks/ssh_key_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: ssh_key.go +// +// Generated by this command: +// +// mockgen -source=ssh_key.go -destination=mocks/ssh_key_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockSSHKeys is a mock of SSHKeys interface. @@ -45,7 +50,7 @@ func (m *MockSSHKeys) Create(ctx context.Context, organization string, options t } // Create indicates an expected call of Create. -func (mr *MockSSHKeysMockRecorder) Create(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockSSHKeysMockRecorder) Create(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockSSHKeys)(nil).Create), ctx, organization, options) } @@ -59,7 +64,7 @@ func (m *MockSSHKeys) Delete(ctx context.Context, sshKeyID string) error { } // Delete indicates an expected call of Delete. -func (mr *MockSSHKeysMockRecorder) Delete(ctx, sshKeyID interface{}) *gomock.Call { +func (mr *MockSSHKeysMockRecorder) Delete(ctx, sshKeyID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockSSHKeys)(nil).Delete), ctx, sshKeyID) } @@ -74,7 +79,7 @@ func (m *MockSSHKeys) List(ctx context.Context, organization string, options *tf } // List indicates an expected call of List. -func (mr *MockSSHKeysMockRecorder) List(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockSSHKeysMockRecorder) List(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockSSHKeys)(nil).List), ctx, organization, options) } @@ -89,7 +94,7 @@ func (m *MockSSHKeys) Read(ctx context.Context, sshKeyID string) (*tfe.SSHKey, e } // Read indicates an expected call of Read. -func (mr *MockSSHKeysMockRecorder) Read(ctx, sshKeyID interface{}) *gomock.Call { +func (mr *MockSSHKeysMockRecorder) Read(ctx, sshKeyID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockSSHKeys)(nil).Read), ctx, sshKeyID) } @@ -104,7 +109,7 @@ func (m *MockSSHKeys) Update(ctx context.Context, sshKeyID string, options tfe.S } // Update indicates an expected call of Update. -func (mr *MockSSHKeysMockRecorder) Update(ctx, sshKeyID, options interface{}) *gomock.Call { +func (mr *MockSSHKeysMockRecorder) Update(ctx, sshKeyID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockSSHKeys)(nil).Update), ctx, sshKeyID, options) } diff --git a/mocks/state_version_mocks.go b/mocks/state_version_mocks.go index c764fb61e..cb8073cfd 100644 --- a/mocks/state_version_mocks.go +++ b/mocks/state_version_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: state_version.go +// +// Generated by this command: +// +// mockgen -source=state_version.go -destination=mocks/state_version_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockStateVersions is a mock of StateVersions interface. @@ -45,7 +50,7 @@ func (m *MockStateVersions) Create(ctx context.Context, workspaceID string, opti } // Create indicates an expected call of Create. -func (mr *MockStateVersionsMockRecorder) Create(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockStateVersionsMockRecorder) Create(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockStateVersions)(nil).Create), ctx, workspaceID, options) } @@ -60,7 +65,7 @@ func (m *MockStateVersions) Download(ctx context.Context, url string) ([]byte, e } // Download indicates an expected call of Download. -func (mr *MockStateVersionsMockRecorder) Download(ctx, url interface{}) *gomock.Call { +func (mr *MockStateVersionsMockRecorder) Download(ctx, url any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Download", reflect.TypeOf((*MockStateVersions)(nil).Download), ctx, url) } @@ -75,7 +80,7 @@ func (m *MockStateVersions) List(ctx context.Context, options *tfe.StateVersionL } // List indicates an expected call of List. -func (mr *MockStateVersionsMockRecorder) List(ctx, options interface{}) *gomock.Call { +func (mr *MockStateVersionsMockRecorder) List(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockStateVersions)(nil).List), ctx, options) } @@ -90,7 +95,7 @@ func (m *MockStateVersions) ListOutputs(ctx context.Context, svID string, option } // ListOutputs indicates an expected call of ListOutputs. -func (mr *MockStateVersionsMockRecorder) ListOutputs(ctx, svID, options interface{}) *gomock.Call { +func (mr *MockStateVersionsMockRecorder) ListOutputs(ctx, svID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOutputs", reflect.TypeOf((*MockStateVersions)(nil).ListOutputs), ctx, svID, options) } @@ -104,7 +109,7 @@ func (m *MockStateVersions) PermanentlyDeleteBackingData(ctx context.Context, sv } // PermanentlyDeleteBackingData indicates an expected call of PermanentlyDeleteBackingData. -func (mr *MockStateVersionsMockRecorder) PermanentlyDeleteBackingData(ctx, svID interface{}) *gomock.Call { +func (mr *MockStateVersionsMockRecorder) PermanentlyDeleteBackingData(ctx, svID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PermanentlyDeleteBackingData", reflect.TypeOf((*MockStateVersions)(nil).PermanentlyDeleteBackingData), ctx, svID) } @@ -119,7 +124,7 @@ func (m *MockStateVersions) Read(ctx context.Context, svID string) (*tfe.StateVe } // Read indicates an expected call of Read. -func (mr *MockStateVersionsMockRecorder) Read(ctx, svID interface{}) *gomock.Call { +func (mr *MockStateVersionsMockRecorder) Read(ctx, svID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockStateVersions)(nil).Read), ctx, svID) } @@ -134,7 +139,7 @@ func (m *MockStateVersions) ReadCurrent(ctx context.Context, workspaceID string) } // ReadCurrent indicates an expected call of ReadCurrent. -func (mr *MockStateVersionsMockRecorder) ReadCurrent(ctx, workspaceID interface{}) *gomock.Call { +func (mr *MockStateVersionsMockRecorder) ReadCurrent(ctx, workspaceID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadCurrent", reflect.TypeOf((*MockStateVersions)(nil).ReadCurrent), ctx, workspaceID) } @@ -149,7 +154,7 @@ func (m *MockStateVersions) ReadCurrentWithOptions(ctx context.Context, workspac } // ReadCurrentWithOptions indicates an expected call of ReadCurrentWithOptions. -func (mr *MockStateVersionsMockRecorder) ReadCurrentWithOptions(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockStateVersionsMockRecorder) ReadCurrentWithOptions(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadCurrentWithOptions", reflect.TypeOf((*MockStateVersions)(nil).ReadCurrentWithOptions), ctx, workspaceID, options) } @@ -164,7 +169,7 @@ func (m *MockStateVersions) ReadWithOptions(ctx context.Context, svID string, op } // ReadWithOptions indicates an expected call of ReadWithOptions. -func (mr *MockStateVersionsMockRecorder) ReadWithOptions(ctx, svID, options interface{}) *gomock.Call { +func (mr *MockStateVersionsMockRecorder) ReadWithOptions(ctx, svID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadWithOptions", reflect.TypeOf((*MockStateVersions)(nil).ReadWithOptions), ctx, svID, options) } @@ -178,7 +183,7 @@ func (m *MockStateVersions) RestoreBackingData(ctx context.Context, svID string) } // RestoreBackingData indicates an expected call of RestoreBackingData. -func (mr *MockStateVersionsMockRecorder) RestoreBackingData(ctx, svID interface{}) *gomock.Call { +func (mr *MockStateVersionsMockRecorder) RestoreBackingData(ctx, svID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreBackingData", reflect.TypeOf((*MockStateVersions)(nil).RestoreBackingData), ctx, svID) } @@ -192,7 +197,7 @@ func (m *MockStateVersions) SoftDeleteBackingData(ctx context.Context, svID stri } // SoftDeleteBackingData indicates an expected call of SoftDeleteBackingData. -func (mr *MockStateVersionsMockRecorder) SoftDeleteBackingData(ctx, svID interface{}) *gomock.Call { +func (mr *MockStateVersionsMockRecorder) SoftDeleteBackingData(ctx, svID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SoftDeleteBackingData", reflect.TypeOf((*MockStateVersions)(nil).SoftDeleteBackingData), ctx, svID) } @@ -207,7 +212,7 @@ func (m *MockStateVersions) Upload(ctx context.Context, workspaceID string, opti } // Upload indicates an expected call of Upload. -func (mr *MockStateVersionsMockRecorder) Upload(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockStateVersionsMockRecorder) Upload(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Upload", reflect.TypeOf((*MockStateVersions)(nil).Upload), ctx, workspaceID, options) } diff --git a/mocks/state_version_output_mocks.go b/mocks/state_version_output_mocks.go index d6c9e5aab..c2db9b478 100644 --- a/mocks/state_version_output_mocks.go +++ b/mocks/state_version_output_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: state_version_output.go +// +// Generated by this command: +// +// mockgen -source=state_version_output.go -destination=mocks/state_version_output_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockStateVersionOutputs is a mock of StateVersionOutputs interface. @@ -45,7 +50,7 @@ func (m *MockStateVersionOutputs) Read(ctx context.Context, outputID string) (*t } // Read indicates an expected call of Read. -func (mr *MockStateVersionOutputsMockRecorder) Read(ctx, outputID interface{}) *gomock.Call { +func (mr *MockStateVersionOutputsMockRecorder) Read(ctx, outputID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockStateVersionOutputs)(nil).Read), ctx, outputID) } @@ -60,7 +65,7 @@ func (m *MockStateVersionOutputs) ReadCurrent(ctx context.Context, workspaceID s } // ReadCurrent indicates an expected call of ReadCurrent. -func (mr *MockStateVersionOutputsMockRecorder) ReadCurrent(ctx, workspaceID interface{}) *gomock.Call { +func (mr *MockStateVersionOutputsMockRecorder) ReadCurrent(ctx, workspaceID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadCurrent", reflect.TypeOf((*MockStateVersionOutputs)(nil).ReadCurrent), ctx, workspaceID) } diff --git a/mocks/tag_mocks.go b/mocks/tag_mocks.go index 828587e01..59b1d0c95 100644 --- a/mocks/tag_mocks.go +++ b/mocks/tag_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: tag.go +// +// Generated by this command: +// +// mockgen -source=tag.go -destination=mocks/tag_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks diff --git a/mocks/task_result_mocks.go b/mocks/task_result_mocks.go index 6f2aa759b..fc1231a04 100644 --- a/mocks/task_result_mocks.go +++ b/mocks/task_result_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: task_result.go +// +// Generated by this command: +// +// mockgen -source=task_result.go -destination=mocks/task_result_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockTaskResults is a mock of TaskResults interface. @@ -45,7 +50,7 @@ func (m *MockTaskResults) Read(ctx context.Context, taskResultID string) (*tfe.T } // Read indicates an expected call of Read. -func (mr *MockTaskResultsMockRecorder) Read(ctx, taskResultID interface{}) *gomock.Call { +func (mr *MockTaskResultsMockRecorder) Read(ctx, taskResultID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockTaskResults)(nil).Read), ctx, taskResultID) } diff --git a/mocks/task_stages_mocks.go b/mocks/task_stages_mocks.go index 2c8b79451..e1271c706 100644 --- a/mocks/task_stages_mocks.go +++ b/mocks/task_stages_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: task_stages.go +// +// Generated by this command: +// +// mockgen -source=task_stages.go -destination=mocks/task_stages_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockTaskStages is a mock of TaskStages interface. @@ -45,7 +50,7 @@ func (m *MockTaskStages) List(ctx context.Context, runID string, options *tfe.Ta } // List indicates an expected call of List. -func (mr *MockTaskStagesMockRecorder) List(ctx, runID, options interface{}) *gomock.Call { +func (mr *MockTaskStagesMockRecorder) List(ctx, runID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockTaskStages)(nil).List), ctx, runID, options) } @@ -60,7 +65,7 @@ func (m *MockTaskStages) Override(ctx context.Context, taskStageID string, optio } // Override indicates an expected call of Override. -func (mr *MockTaskStagesMockRecorder) Override(ctx, taskStageID, options interface{}) *gomock.Call { +func (mr *MockTaskStagesMockRecorder) Override(ctx, taskStageID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Override", reflect.TypeOf((*MockTaskStages)(nil).Override), ctx, taskStageID, options) } @@ -75,7 +80,7 @@ func (m *MockTaskStages) Read(ctx context.Context, taskStageID string, options * } // Read indicates an expected call of Read. -func (mr *MockTaskStagesMockRecorder) Read(ctx, taskStageID, options interface{}) *gomock.Call { +func (mr *MockTaskStagesMockRecorder) Read(ctx, taskStageID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockTaskStages)(nil).Read), ctx, taskStageID, options) } diff --git a/mocks/team_access_mocks.go b/mocks/team_access_mocks.go index 1db60e391..45387dc71 100644 --- a/mocks/team_access_mocks.go +++ b/mocks/team_access_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: team_access.go +// +// Generated by this command: +// +// mockgen -source=team_access.go -destination=mocks/team_access_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockTeamAccesses is a mock of TeamAccesses interface. @@ -45,7 +50,7 @@ func (m *MockTeamAccesses) Add(ctx context.Context, options tfe.TeamAccessAddOpt } // Add indicates an expected call of Add. -func (mr *MockTeamAccessesMockRecorder) Add(ctx, options interface{}) *gomock.Call { +func (mr *MockTeamAccessesMockRecorder) Add(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockTeamAccesses)(nil).Add), ctx, options) } @@ -60,7 +65,7 @@ func (m *MockTeamAccesses) List(ctx context.Context, options *tfe.TeamAccessList } // List indicates an expected call of List. -func (mr *MockTeamAccessesMockRecorder) List(ctx, options interface{}) *gomock.Call { +func (mr *MockTeamAccessesMockRecorder) List(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockTeamAccesses)(nil).List), ctx, options) } @@ -75,7 +80,7 @@ func (m *MockTeamAccesses) Read(ctx context.Context, teamAccessID string) (*tfe. } // Read indicates an expected call of Read. -func (mr *MockTeamAccessesMockRecorder) Read(ctx, teamAccessID interface{}) *gomock.Call { +func (mr *MockTeamAccessesMockRecorder) Read(ctx, teamAccessID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockTeamAccesses)(nil).Read), ctx, teamAccessID) } @@ -89,7 +94,7 @@ func (m *MockTeamAccesses) Remove(ctx context.Context, teamAccessID string) erro } // Remove indicates an expected call of Remove. -func (mr *MockTeamAccessesMockRecorder) Remove(ctx, teamAccessID interface{}) *gomock.Call { +func (mr *MockTeamAccessesMockRecorder) Remove(ctx, teamAccessID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockTeamAccesses)(nil).Remove), ctx, teamAccessID) } @@ -104,7 +109,7 @@ func (m *MockTeamAccesses) Update(ctx context.Context, teamAccessID string, opti } // Update indicates an expected call of Update. -func (mr *MockTeamAccessesMockRecorder) Update(ctx, teamAccessID, options interface{}) *gomock.Call { +func (mr *MockTeamAccessesMockRecorder) Update(ctx, teamAccessID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockTeamAccesses)(nil).Update), ctx, teamAccessID, options) } diff --git a/mocks/team_member_mocks.go b/mocks/team_member_mocks.go index a3c95bd5a..2b823b7b6 100644 --- a/mocks/team_member_mocks.go +++ b/mocks/team_member_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: team_member.go +// +// Generated by this command: +// +// mockgen -source=team_member.go -destination=mocks/team_member_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockTeamMembers is a mock of TeamMembers interface. @@ -44,7 +49,7 @@ func (m *MockTeamMembers) Add(ctx context.Context, teamID string, options tfe.Te } // Add indicates an expected call of Add. -func (mr *MockTeamMembersMockRecorder) Add(ctx, teamID, options interface{}) *gomock.Call { +func (mr *MockTeamMembersMockRecorder) Add(ctx, teamID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockTeamMembers)(nil).Add), ctx, teamID, options) } @@ -59,7 +64,7 @@ func (m *MockTeamMembers) List(ctx context.Context, teamID string) ([]*tfe.User, } // List indicates an expected call of List. -func (mr *MockTeamMembersMockRecorder) List(ctx, teamID interface{}) *gomock.Call { +func (mr *MockTeamMembersMockRecorder) List(ctx, teamID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockTeamMembers)(nil).List), ctx, teamID) } @@ -74,7 +79,7 @@ func (m *MockTeamMembers) ListOrganizationMemberships(ctx context.Context, teamI } // ListOrganizationMemberships indicates an expected call of ListOrganizationMemberships. -func (mr *MockTeamMembersMockRecorder) ListOrganizationMemberships(ctx, teamID interface{}) *gomock.Call { +func (mr *MockTeamMembersMockRecorder) ListOrganizationMemberships(ctx, teamID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOrganizationMemberships", reflect.TypeOf((*MockTeamMembers)(nil).ListOrganizationMemberships), ctx, teamID) } @@ -89,7 +94,7 @@ func (m *MockTeamMembers) ListUsers(ctx context.Context, teamID string) ([]*tfe. } // ListUsers indicates an expected call of ListUsers. -func (mr *MockTeamMembersMockRecorder) ListUsers(ctx, teamID interface{}) *gomock.Call { +func (mr *MockTeamMembersMockRecorder) ListUsers(ctx, teamID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsers", reflect.TypeOf((*MockTeamMembers)(nil).ListUsers), ctx, teamID) } @@ -103,7 +108,7 @@ func (m *MockTeamMembers) Remove(ctx context.Context, teamID string, options tfe } // Remove indicates an expected call of Remove. -func (mr *MockTeamMembersMockRecorder) Remove(ctx, teamID, options interface{}) *gomock.Call { +func (mr *MockTeamMembersMockRecorder) Remove(ctx, teamID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockTeamMembers)(nil).Remove), ctx, teamID, options) } diff --git a/mocks/team_mocks.go b/mocks/team_mocks.go index 6a46713a7..e3b13008a 100644 --- a/mocks/team_mocks.go +++ b/mocks/team_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: team.go +// +// Generated by this command: +// +// mockgen -source=team.go -destination=mocks/team_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockTeams is a mock of Teams interface. @@ -45,7 +50,7 @@ func (m *MockTeams) Create(ctx context.Context, organization string, options tfe } // Create indicates an expected call of Create. -func (mr *MockTeamsMockRecorder) Create(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockTeamsMockRecorder) Create(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockTeams)(nil).Create), ctx, organization, options) } @@ -59,7 +64,7 @@ func (m *MockTeams) Delete(ctx context.Context, teamID string) error { } // Delete indicates an expected call of Delete. -func (mr *MockTeamsMockRecorder) Delete(ctx, teamID interface{}) *gomock.Call { +func (mr *MockTeamsMockRecorder) Delete(ctx, teamID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockTeams)(nil).Delete), ctx, teamID) } @@ -74,7 +79,7 @@ func (m *MockTeams) List(ctx context.Context, organization string, options *tfe. } // List indicates an expected call of List. -func (mr *MockTeamsMockRecorder) List(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockTeamsMockRecorder) List(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockTeams)(nil).List), ctx, organization, options) } @@ -89,7 +94,7 @@ func (m *MockTeams) Read(ctx context.Context, teamID string) (*tfe.Team, error) } // Read indicates an expected call of Read. -func (mr *MockTeamsMockRecorder) Read(ctx, teamID interface{}) *gomock.Call { +func (mr *MockTeamsMockRecorder) Read(ctx, teamID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockTeams)(nil).Read), ctx, teamID) } @@ -104,7 +109,7 @@ func (m *MockTeams) Update(ctx context.Context, teamID string, options tfe.TeamU } // Update indicates an expected call of Update. -func (mr *MockTeamsMockRecorder) Update(ctx, teamID, options interface{}) *gomock.Call { +func (mr *MockTeamsMockRecorder) Update(ctx, teamID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockTeams)(nil).Update), ctx, teamID, options) } diff --git a/mocks/team_project_access_mocks.go b/mocks/team_project_access_mocks.go index ec6f9d4d5..946e52f38 100644 --- a/mocks/team_project_access_mocks.go +++ b/mocks/team_project_access_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: team_project_access.go +// +// Generated by this command: +// +// mockgen -source=team_project_access.go -destination=mocks/team_project_access_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockTeamProjectAccesses is a mock of TeamProjectAccesses interface. @@ -45,7 +50,7 @@ func (m *MockTeamProjectAccesses) Add(ctx context.Context, options tfe.TeamProje } // Add indicates an expected call of Add. -func (mr *MockTeamProjectAccessesMockRecorder) Add(ctx, options interface{}) *gomock.Call { +func (mr *MockTeamProjectAccessesMockRecorder) Add(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockTeamProjectAccesses)(nil).Add), ctx, options) } @@ -60,7 +65,7 @@ func (m *MockTeamProjectAccesses) List(ctx context.Context, options tfe.TeamProj } // List indicates an expected call of List. -func (mr *MockTeamProjectAccessesMockRecorder) List(ctx, options interface{}) *gomock.Call { +func (mr *MockTeamProjectAccessesMockRecorder) List(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockTeamProjectAccesses)(nil).List), ctx, options) } @@ -75,7 +80,7 @@ func (m *MockTeamProjectAccesses) Read(ctx context.Context, teamProjectAccessID } // Read indicates an expected call of Read. -func (mr *MockTeamProjectAccessesMockRecorder) Read(ctx, teamProjectAccessID interface{}) *gomock.Call { +func (mr *MockTeamProjectAccessesMockRecorder) Read(ctx, teamProjectAccessID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockTeamProjectAccesses)(nil).Read), ctx, teamProjectAccessID) } @@ -89,7 +94,7 @@ func (m *MockTeamProjectAccesses) Remove(ctx context.Context, teamProjectAccessI } // Remove indicates an expected call of Remove. -func (mr *MockTeamProjectAccessesMockRecorder) Remove(ctx, teamProjectAccessID interface{}) *gomock.Call { +func (mr *MockTeamProjectAccessesMockRecorder) Remove(ctx, teamProjectAccessID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockTeamProjectAccesses)(nil).Remove), ctx, teamProjectAccessID) } @@ -104,7 +109,7 @@ func (m *MockTeamProjectAccesses) Update(ctx context.Context, teamProjectAccessI } // Update indicates an expected call of Update. -func (mr *MockTeamProjectAccessesMockRecorder) Update(ctx, teamProjectAccessID, options interface{}) *gomock.Call { +func (mr *MockTeamProjectAccessesMockRecorder) Update(ctx, teamProjectAccessID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockTeamProjectAccesses)(nil).Update), ctx, teamProjectAccessID, options) } diff --git a/mocks/team_token_mocks.go b/mocks/team_token_mocks.go index e0e3798bb..f8f5df79e 100644 --- a/mocks/team_token_mocks.go +++ b/mocks/team_token_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: team_token.go +// +// Generated by this command: +// +// mockgen -source=team_token.go -destination=mocks/team_token_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockTeamTokens is a mock of TeamTokens interface. @@ -45,7 +50,7 @@ func (m *MockTeamTokens) Create(ctx context.Context, teamID string) (*tfe.TeamTo } // Create indicates an expected call of Create. -func (mr *MockTeamTokensMockRecorder) Create(ctx, teamID interface{}) *gomock.Call { +func (mr *MockTeamTokensMockRecorder) Create(ctx, teamID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockTeamTokens)(nil).Create), ctx, teamID) } @@ -60,7 +65,7 @@ func (m *MockTeamTokens) CreateWithOptions(ctx context.Context, teamID string, o } // CreateWithOptions indicates an expected call of CreateWithOptions. -func (mr *MockTeamTokensMockRecorder) CreateWithOptions(ctx, teamID, options interface{}) *gomock.Call { +func (mr *MockTeamTokensMockRecorder) CreateWithOptions(ctx, teamID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWithOptions", reflect.TypeOf((*MockTeamTokens)(nil).CreateWithOptions), ctx, teamID, options) } @@ -74,7 +79,7 @@ func (m *MockTeamTokens) Delete(ctx context.Context, teamID string) error { } // Delete indicates an expected call of Delete. -func (mr *MockTeamTokensMockRecorder) Delete(ctx, teamID interface{}) *gomock.Call { +func (mr *MockTeamTokensMockRecorder) Delete(ctx, teamID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockTeamTokens)(nil).Delete), ctx, teamID) } @@ -89,7 +94,7 @@ func (m *MockTeamTokens) Read(ctx context.Context, teamID string) (*tfe.TeamToke } // Read indicates an expected call of Read. -func (mr *MockTeamTokensMockRecorder) Read(ctx, teamID interface{}) *gomock.Call { +func (mr *MockTeamTokensMockRecorder) Read(ctx, teamID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockTeamTokens)(nil).Read), ctx, teamID) } diff --git a/mocks/test_run_mocks.go b/mocks/test_run_mocks.go index 959b22168..b989e256f 100644 --- a/mocks/test_run_mocks.go +++ b/mocks/test_run_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: test_run.go +// +// Generated by this command: +// +// mockgen -source=test_run.go -destination=mocks/test_run_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -9,8 +14,8 @@ import ( io "io" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockTestRuns is a mock of TestRuns interface. @@ -45,7 +50,7 @@ func (m *MockTestRuns) Cancel(ctx context.Context, moduleID tfe.RegistryModuleID } // Cancel indicates an expected call of Cancel. -func (mr *MockTestRunsMockRecorder) Cancel(ctx, moduleID, testRunID interface{}) *gomock.Call { +func (mr *MockTestRunsMockRecorder) Cancel(ctx, moduleID, testRunID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cancel", reflect.TypeOf((*MockTestRuns)(nil).Cancel), ctx, moduleID, testRunID) } @@ -60,7 +65,7 @@ func (m *MockTestRuns) Create(ctx context.Context, options tfe.TestRunCreateOpti } // Create indicates an expected call of Create. -func (mr *MockTestRunsMockRecorder) Create(ctx, options interface{}) *gomock.Call { +func (mr *MockTestRunsMockRecorder) Create(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockTestRuns)(nil).Create), ctx, options) } @@ -74,7 +79,7 @@ func (m *MockTestRuns) ForceCancel(ctx context.Context, moduleID tfe.RegistryMod } // ForceCancel indicates an expected call of ForceCancel. -func (mr *MockTestRunsMockRecorder) ForceCancel(ctx, moduleID, testRunID interface{}) *gomock.Call { +func (mr *MockTestRunsMockRecorder) ForceCancel(ctx, moduleID, testRunID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForceCancel", reflect.TypeOf((*MockTestRuns)(nil).ForceCancel), ctx, moduleID, testRunID) } @@ -89,7 +94,7 @@ func (m *MockTestRuns) List(ctx context.Context, moduleID tfe.RegistryModuleID, } // List indicates an expected call of List. -func (mr *MockTestRunsMockRecorder) List(ctx, moduleID, options interface{}) *gomock.Call { +func (mr *MockTestRunsMockRecorder) List(ctx, moduleID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockTestRuns)(nil).List), ctx, moduleID, options) } @@ -104,7 +109,7 @@ func (m *MockTestRuns) Logs(ctx context.Context, moduleID tfe.RegistryModuleID, } // Logs indicates an expected call of Logs. -func (mr *MockTestRunsMockRecorder) Logs(ctx, moduleID, testRunID interface{}) *gomock.Call { +func (mr *MockTestRunsMockRecorder) Logs(ctx, moduleID, testRunID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Logs", reflect.TypeOf((*MockTestRuns)(nil).Logs), ctx, moduleID, testRunID) } @@ -119,7 +124,7 @@ func (m *MockTestRuns) Read(ctx context.Context, moduleID tfe.RegistryModuleID, } // Read indicates an expected call of Read. -func (mr *MockTestRunsMockRecorder) Read(ctx, moduleID, testRunID interface{}) *gomock.Call { +func (mr *MockTestRunsMockRecorder) Read(ctx, moduleID, testRunID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockTestRuns)(nil).Read), ctx, moduleID, testRunID) } diff --git a/mocks/test_variables_mocks.go b/mocks/test_variables_mocks.go new file mode 100644 index 000000000..26c57b93c --- /dev/null +++ b/mocks/test_variables_mocks.go @@ -0,0 +1,115 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: test_variables.go +// +// Generated by this command: +// +// mockgen -source=test_variables.go -destination=mocks/test_variables_mocks.go -package=mocks +// + +// Package mocks is a generated GoMock package. +package mocks + +import ( + context "context" + reflect "reflect" + + tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" +) + +// MockTestVariables is a mock of TestVariables interface. +type MockTestVariables struct { + ctrl *gomock.Controller + recorder *MockTestVariablesMockRecorder +} + +// MockTestVariablesMockRecorder is the mock recorder for MockTestVariables. +type MockTestVariablesMockRecorder struct { + mock *MockTestVariables +} + +// NewMockTestVariables creates a new mock instance. +func NewMockTestVariables(ctrl *gomock.Controller) *MockTestVariables { + mock := &MockTestVariables{ctrl: ctrl} + mock.recorder = &MockTestVariablesMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockTestVariables) EXPECT() *MockTestVariablesMockRecorder { + return m.recorder +} + +// Create mocks base method. +func (m *MockTestVariables) Create(ctx context.Context, moduleID tfe.RegistryModuleID, options tfe.VariableCreateOptions) (*tfe.Variable, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Create", ctx, moduleID, options) + ret0, _ := ret[0].(*tfe.Variable) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Create indicates an expected call of Create. +func (mr *MockTestVariablesMockRecorder) Create(ctx, moduleID, options any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockTestVariables)(nil).Create), ctx, moduleID, options) +} + +// Delete mocks base method. +func (m *MockTestVariables) Delete(ctx context.Context, moduleID tfe.RegistryModuleID, variableID string) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Delete", ctx, moduleID, variableID) + ret0, _ := ret[0].(error) + return ret0 +} + +// Delete indicates an expected call of Delete. +func (mr *MockTestVariablesMockRecorder) Delete(ctx, moduleID, variableID any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockTestVariables)(nil).Delete), ctx, moduleID, variableID) +} + +// List mocks base method. +func (m *MockTestVariables) List(ctx context.Context, moduleID tfe.RegistryModuleID, options *tfe.VariableListOptions) (*tfe.VariableList, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "List", ctx, moduleID, options) + ret0, _ := ret[0].(*tfe.VariableList) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// List indicates an expected call of List. +func (mr *MockTestVariablesMockRecorder) List(ctx, moduleID, options any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockTestVariables)(nil).List), ctx, moduleID, options) +} + +// Read mocks base method. +func (m *MockTestVariables) Read(ctx context.Context, moduleID tfe.RegistryModuleID, variableID string) (*tfe.Variable, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Read", ctx, moduleID, variableID) + ret0, _ := ret[0].(*tfe.Variable) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Read indicates an expected call of Read. +func (mr *MockTestVariablesMockRecorder) Read(ctx, moduleID, variableID any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockTestVariables)(nil).Read), ctx, moduleID, variableID) +} + +// Update mocks base method. +func (m *MockTestVariables) Update(ctx context.Context, moduleID tfe.RegistryModuleID, variableID string, options tfe.VariableUpdateOptions) (*tfe.Variable, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Update", ctx, moduleID, variableID, options) + ret0, _ := ret[0].(*tfe.Variable) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Update indicates an expected call of Update. +func (mr *MockTestVariablesMockRecorder) Update(ctx, moduleID, variableID, options any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockTestVariables)(nil).Update), ctx, moduleID, variableID, options) +} diff --git a/mocks/user_mocks.go b/mocks/user_mocks.go index 70bae8dfa..08ae2b8a9 100644 --- a/mocks/user_mocks.go +++ b/mocks/user_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: user.go +// +// Generated by this command: +// +// mockgen -source=user.go -destination=mocks/user_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockUsers is a mock of Users interface. @@ -45,7 +50,7 @@ func (m *MockUsers) ReadCurrent(ctx context.Context) (*tfe.User, error) { } // ReadCurrent indicates an expected call of ReadCurrent. -func (mr *MockUsersMockRecorder) ReadCurrent(ctx interface{}) *gomock.Call { +func (mr *MockUsersMockRecorder) ReadCurrent(ctx any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadCurrent", reflect.TypeOf((*MockUsers)(nil).ReadCurrent), ctx) } @@ -60,7 +65,7 @@ func (m *MockUsers) UpdateCurrent(ctx context.Context, options tfe.UserUpdateOpt } // UpdateCurrent indicates an expected call of UpdateCurrent. -func (mr *MockUsersMockRecorder) UpdateCurrent(ctx, options interface{}) *gomock.Call { +func (mr *MockUsersMockRecorder) UpdateCurrent(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCurrent", reflect.TypeOf((*MockUsers)(nil).UpdateCurrent), ctx, options) } diff --git a/mocks/user_token_mocks.go b/mocks/user_token_mocks.go index 1cb67d034..747617ec3 100644 --- a/mocks/user_token_mocks.go +++ b/mocks/user_token_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: user_token.go +// +// Generated by this command: +// +// mockgen -source=user_token.go -destination=mocks/user_token_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockUserTokens is a mock of UserTokens interface. @@ -45,7 +50,7 @@ func (m *MockUserTokens) Create(ctx context.Context, userID string, options tfe. } // Create indicates an expected call of Create. -func (mr *MockUserTokensMockRecorder) Create(ctx, userID, options interface{}) *gomock.Call { +func (mr *MockUserTokensMockRecorder) Create(ctx, userID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockUserTokens)(nil).Create), ctx, userID, options) } @@ -59,7 +64,7 @@ func (m *MockUserTokens) Delete(ctx context.Context, tokenID string) error { } // Delete indicates an expected call of Delete. -func (mr *MockUserTokensMockRecorder) Delete(ctx, tokenID interface{}) *gomock.Call { +func (mr *MockUserTokensMockRecorder) Delete(ctx, tokenID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockUserTokens)(nil).Delete), ctx, tokenID) } @@ -74,7 +79,7 @@ func (m *MockUserTokens) List(ctx context.Context, userID string) (*tfe.UserToke } // List indicates an expected call of List. -func (mr *MockUserTokensMockRecorder) List(ctx, userID interface{}) *gomock.Call { +func (mr *MockUserTokensMockRecorder) List(ctx, userID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockUserTokens)(nil).List), ctx, userID) } @@ -89,7 +94,7 @@ func (m *MockUserTokens) Read(ctx context.Context, tokenID string) (*tfe.UserTok } // Read indicates an expected call of Read. -func (mr *MockUserTokensMockRecorder) Read(ctx, tokenID interface{}) *gomock.Call { +func (mr *MockUserTokensMockRecorder) Read(ctx, tokenID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockUserTokens)(nil).Read), ctx, tokenID) } diff --git a/mocks/variable_mocks.go b/mocks/variable_mocks.go index 15bb5ec51..6f40ec114 100644 --- a/mocks/variable_mocks.go +++ b/mocks/variable_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: variable.go +// +// Generated by this command: +// +// mockgen -source=variable.go -destination=mocks/variable_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockVariables is a mock of Variables interface. @@ -45,7 +50,7 @@ func (m *MockVariables) Create(ctx context.Context, workspaceID string, options } // Create indicates an expected call of Create. -func (mr *MockVariablesMockRecorder) Create(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockVariablesMockRecorder) Create(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockVariables)(nil).Create), ctx, workspaceID, options) } @@ -59,7 +64,7 @@ func (m *MockVariables) Delete(ctx context.Context, workspaceID, variableID stri } // Delete indicates an expected call of Delete. -func (mr *MockVariablesMockRecorder) Delete(ctx, workspaceID, variableID interface{}) *gomock.Call { +func (mr *MockVariablesMockRecorder) Delete(ctx, workspaceID, variableID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockVariables)(nil).Delete), ctx, workspaceID, variableID) } @@ -74,7 +79,7 @@ func (m *MockVariables) List(ctx context.Context, workspaceID string, options *t } // List indicates an expected call of List. -func (mr *MockVariablesMockRecorder) List(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockVariablesMockRecorder) List(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockVariables)(nil).List), ctx, workspaceID, options) } @@ -89,7 +94,7 @@ func (m *MockVariables) Read(ctx context.Context, workspaceID, variableID string } // Read indicates an expected call of Read. -func (mr *MockVariablesMockRecorder) Read(ctx, workspaceID, variableID interface{}) *gomock.Call { +func (mr *MockVariablesMockRecorder) Read(ctx, workspaceID, variableID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockVariables)(nil).Read), ctx, workspaceID, variableID) } @@ -104,7 +109,7 @@ func (m *MockVariables) Update(ctx context.Context, workspaceID, variableID stri } // Update indicates an expected call of Update. -func (mr *MockVariablesMockRecorder) Update(ctx, workspaceID, variableID, options interface{}) *gomock.Call { +func (mr *MockVariablesMockRecorder) Update(ctx, workspaceID, variableID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockVariables)(nil).Update), ctx, workspaceID, variableID, options) } diff --git a/mocks/variable_set_mocks.go b/mocks/variable_set_mocks.go index 63140901e..0179072a0 100644 --- a/mocks/variable_set_mocks.go +++ b/mocks/variable_set_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: variable_set.go +// +// Generated by this command: +// +// mockgen -source=variable_set.go -destination=mocks/variable_set_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockVariableSets is a mock of VariableSets interface. @@ -44,7 +49,7 @@ func (m *MockVariableSets) ApplyToProjects(ctx context.Context, variableSetID st } // ApplyToProjects indicates an expected call of ApplyToProjects. -func (mr *MockVariableSetsMockRecorder) ApplyToProjects(ctx, variableSetID, options interface{}) *gomock.Call { +func (mr *MockVariableSetsMockRecorder) ApplyToProjects(ctx, variableSetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyToProjects", reflect.TypeOf((*MockVariableSets)(nil).ApplyToProjects), ctx, variableSetID, options) } @@ -58,7 +63,7 @@ func (m *MockVariableSets) ApplyToWorkspaces(ctx context.Context, variableSetID } // ApplyToWorkspaces indicates an expected call of ApplyToWorkspaces. -func (mr *MockVariableSetsMockRecorder) ApplyToWorkspaces(ctx, variableSetID, options interface{}) *gomock.Call { +func (mr *MockVariableSetsMockRecorder) ApplyToWorkspaces(ctx, variableSetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyToWorkspaces", reflect.TypeOf((*MockVariableSets)(nil).ApplyToWorkspaces), ctx, variableSetID, options) } @@ -73,7 +78,7 @@ func (m *MockVariableSets) Create(ctx context.Context, organization string, opti } // Create indicates an expected call of Create. -func (mr *MockVariableSetsMockRecorder) Create(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockVariableSetsMockRecorder) Create(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockVariableSets)(nil).Create), ctx, organization, options) } @@ -87,7 +92,7 @@ func (m *MockVariableSets) Delete(ctx context.Context, variableSetID string) err } // Delete indicates an expected call of Delete. -func (mr *MockVariableSetsMockRecorder) Delete(ctx, variableSetID interface{}) *gomock.Call { +func (mr *MockVariableSetsMockRecorder) Delete(ctx, variableSetID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockVariableSets)(nil).Delete), ctx, variableSetID) } @@ -102,7 +107,7 @@ func (m *MockVariableSets) List(ctx context.Context, organization string, option } // List indicates an expected call of List. -func (mr *MockVariableSetsMockRecorder) List(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockVariableSetsMockRecorder) List(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockVariableSets)(nil).List), ctx, organization, options) } @@ -117,7 +122,7 @@ func (m *MockVariableSets) ListForProject(ctx context.Context, projectID string, } // ListForProject indicates an expected call of ListForProject. -func (mr *MockVariableSetsMockRecorder) ListForProject(ctx, projectID, options interface{}) *gomock.Call { +func (mr *MockVariableSetsMockRecorder) ListForProject(ctx, projectID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListForProject", reflect.TypeOf((*MockVariableSets)(nil).ListForProject), ctx, projectID, options) } @@ -132,7 +137,7 @@ func (m *MockVariableSets) ListForWorkspace(ctx context.Context, workspaceID str } // ListForWorkspace indicates an expected call of ListForWorkspace. -func (mr *MockVariableSetsMockRecorder) ListForWorkspace(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockVariableSetsMockRecorder) ListForWorkspace(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListForWorkspace", reflect.TypeOf((*MockVariableSets)(nil).ListForWorkspace), ctx, workspaceID, options) } @@ -147,7 +152,7 @@ func (m *MockVariableSets) Read(ctx context.Context, variableSetID string, optio } // Read indicates an expected call of Read. -func (mr *MockVariableSetsMockRecorder) Read(ctx, variableSetID, options interface{}) *gomock.Call { +func (mr *MockVariableSetsMockRecorder) Read(ctx, variableSetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockVariableSets)(nil).Read), ctx, variableSetID, options) } @@ -161,7 +166,7 @@ func (m *MockVariableSets) RemoveFromProjects(ctx context.Context, variableSetID } // RemoveFromProjects indicates an expected call of RemoveFromProjects. -func (mr *MockVariableSetsMockRecorder) RemoveFromProjects(ctx, variableSetID, options interface{}) *gomock.Call { +func (mr *MockVariableSetsMockRecorder) RemoveFromProjects(ctx, variableSetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveFromProjects", reflect.TypeOf((*MockVariableSets)(nil).RemoveFromProjects), ctx, variableSetID, options) } @@ -175,7 +180,7 @@ func (m *MockVariableSets) RemoveFromWorkspaces(ctx context.Context, variableSet } // RemoveFromWorkspaces indicates an expected call of RemoveFromWorkspaces. -func (mr *MockVariableSetsMockRecorder) RemoveFromWorkspaces(ctx, variableSetID, options interface{}) *gomock.Call { +func (mr *MockVariableSetsMockRecorder) RemoveFromWorkspaces(ctx, variableSetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveFromWorkspaces", reflect.TypeOf((*MockVariableSets)(nil).RemoveFromWorkspaces), ctx, variableSetID, options) } @@ -190,7 +195,7 @@ func (m *MockVariableSets) Update(ctx context.Context, variableSetID string, opt } // Update indicates an expected call of Update. -func (mr *MockVariableSetsMockRecorder) Update(ctx, variableSetID, options interface{}) *gomock.Call { +func (mr *MockVariableSetsMockRecorder) Update(ctx, variableSetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockVariableSets)(nil).Update), ctx, variableSetID, options) } @@ -205,7 +210,7 @@ func (m *MockVariableSets) UpdateWorkspaces(ctx context.Context, variableSetID s } // UpdateWorkspaces indicates an expected call of UpdateWorkspaces. -func (mr *MockVariableSetsMockRecorder) UpdateWorkspaces(ctx, variableSetID, options interface{}) *gomock.Call { +func (mr *MockVariableSetsMockRecorder) UpdateWorkspaces(ctx, variableSetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkspaces", reflect.TypeOf((*MockVariableSets)(nil).UpdateWorkspaces), ctx, variableSetID, options) } diff --git a/mocks/variable_set_variable_mocks.go b/mocks/variable_set_variable_mocks.go index b635f59ea..651586990 100644 --- a/mocks/variable_set_variable_mocks.go +++ b/mocks/variable_set_variable_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: variable_set_variable.go +// +// Generated by this command: +// +// mockgen -source=variable_set_variable.go -destination=mocks/variable_set_variable_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockVariableSetVariables is a mock of VariableSetVariables interface. @@ -45,7 +50,7 @@ func (m *MockVariableSetVariables) Create(ctx context.Context, variableSetID str } // Create indicates an expected call of Create. -func (mr *MockVariableSetVariablesMockRecorder) Create(ctx, variableSetID, options interface{}) *gomock.Call { +func (mr *MockVariableSetVariablesMockRecorder) Create(ctx, variableSetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockVariableSetVariables)(nil).Create), ctx, variableSetID, options) } @@ -59,7 +64,7 @@ func (m *MockVariableSetVariables) Delete(ctx context.Context, variableSetID, va } // Delete indicates an expected call of Delete. -func (mr *MockVariableSetVariablesMockRecorder) Delete(ctx, variableSetID, variableID interface{}) *gomock.Call { +func (mr *MockVariableSetVariablesMockRecorder) Delete(ctx, variableSetID, variableID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockVariableSetVariables)(nil).Delete), ctx, variableSetID, variableID) } @@ -74,7 +79,7 @@ func (m *MockVariableSetVariables) List(ctx context.Context, variableSetID strin } // List indicates an expected call of List. -func (mr *MockVariableSetVariablesMockRecorder) List(ctx, variableSetID, options interface{}) *gomock.Call { +func (mr *MockVariableSetVariablesMockRecorder) List(ctx, variableSetID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockVariableSetVariables)(nil).List), ctx, variableSetID, options) } @@ -89,7 +94,7 @@ func (m *MockVariableSetVariables) Read(ctx context.Context, variableSetID, vari } // Read indicates an expected call of Read. -func (mr *MockVariableSetVariablesMockRecorder) Read(ctx, variableSetID, variableID interface{}) *gomock.Call { +func (mr *MockVariableSetVariablesMockRecorder) Read(ctx, variableSetID, variableID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockVariableSetVariables)(nil).Read), ctx, variableSetID, variableID) } @@ -104,7 +109,7 @@ func (m *MockVariableSetVariables) Update(ctx context.Context, variableSetID, va } // Update indicates an expected call of Update. -func (mr *MockVariableSetVariablesMockRecorder) Update(ctx, variableSetID, variableID, options interface{}) *gomock.Call { +func (mr *MockVariableSetVariablesMockRecorder) Update(ctx, variableSetID, variableID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockVariableSetVariables)(nil).Update), ctx, variableSetID, variableID, options) } diff --git a/mocks/workspace_mocks.go b/mocks/workspace_mocks.go index 979d89189..4689ad6e1 100644 --- a/mocks/workspace_mocks.go +++ b/mocks/workspace_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: workspace.go +// +// Generated by this command: +// +// mockgen -source=workspace.go -destination=mocks/workspace_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -9,8 +14,8 @@ import ( io "io" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockWorkspaces is a mock of Workspaces interface. @@ -45,7 +50,7 @@ func (m *MockWorkspaces) AddRemoteStateConsumers(ctx context.Context, workspaceI } // AddRemoteStateConsumers indicates an expected call of AddRemoteStateConsumers. -func (mr *MockWorkspacesMockRecorder) AddRemoteStateConsumers(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) AddRemoteStateConsumers(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRemoteStateConsumers", reflect.TypeOf((*MockWorkspaces)(nil).AddRemoteStateConsumers), ctx, workspaceID, options) } @@ -59,7 +64,7 @@ func (m *MockWorkspaces) AddTags(ctx context.Context, workspaceID string, option } // AddTags indicates an expected call of AddTags. -func (mr *MockWorkspacesMockRecorder) AddTags(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) AddTags(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTags", reflect.TypeOf((*MockWorkspaces)(nil).AddTags), ctx, workspaceID, options) } @@ -74,7 +79,7 @@ func (m *MockWorkspaces) AssignSSHKey(ctx context.Context, workspaceID string, o } // AssignSSHKey indicates an expected call of AssignSSHKey. -func (mr *MockWorkspacesMockRecorder) AssignSSHKey(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) AssignSSHKey(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssignSSHKey", reflect.TypeOf((*MockWorkspaces)(nil).AssignSSHKey), ctx, workspaceID, options) } @@ -89,7 +94,7 @@ func (m *MockWorkspaces) Create(ctx context.Context, organization string, option } // Create indicates an expected call of Create. -func (mr *MockWorkspacesMockRecorder) Create(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) Create(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockWorkspaces)(nil).Create), ctx, organization, options) } @@ -103,7 +108,7 @@ func (m *MockWorkspaces) Delete(ctx context.Context, organization, workspace str } // Delete indicates an expected call of Delete. -func (mr *MockWorkspacesMockRecorder) Delete(ctx, organization, workspace interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) Delete(ctx, organization, workspace any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockWorkspaces)(nil).Delete), ctx, organization, workspace) } @@ -117,7 +122,7 @@ func (m *MockWorkspaces) DeleteByID(ctx context.Context, workspaceID string) err } // DeleteByID indicates an expected call of DeleteByID. -func (mr *MockWorkspacesMockRecorder) DeleteByID(ctx, workspaceID interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) DeleteByID(ctx, workspaceID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteByID", reflect.TypeOf((*MockWorkspaces)(nil).DeleteByID), ctx, workspaceID) } @@ -131,7 +136,7 @@ func (m *MockWorkspaces) DeleteDataRetentionPolicy(ctx context.Context, workspac } // DeleteDataRetentionPolicy indicates an expected call of DeleteDataRetentionPolicy. -func (mr *MockWorkspacesMockRecorder) DeleteDataRetentionPolicy(ctx, workspaceID interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) DeleteDataRetentionPolicy(ctx, workspaceID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDataRetentionPolicy", reflect.TypeOf((*MockWorkspaces)(nil).DeleteDataRetentionPolicy), ctx, workspaceID) } @@ -146,7 +151,7 @@ func (m *MockWorkspaces) ForceUnlock(ctx context.Context, workspaceID string) (* } // ForceUnlock indicates an expected call of ForceUnlock. -func (mr *MockWorkspacesMockRecorder) ForceUnlock(ctx, workspaceID interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) ForceUnlock(ctx, workspaceID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForceUnlock", reflect.TypeOf((*MockWorkspaces)(nil).ForceUnlock), ctx, workspaceID) } @@ -161,7 +166,7 @@ func (m *MockWorkspaces) List(ctx context.Context, organization string, options } // List indicates an expected call of List. -func (mr *MockWorkspacesMockRecorder) List(ctx, organization, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) List(ctx, organization, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockWorkspaces)(nil).List), ctx, organization, options) } @@ -176,7 +181,7 @@ func (m *MockWorkspaces) ListRemoteStateConsumers(ctx context.Context, workspace } // ListRemoteStateConsumers indicates an expected call of ListRemoteStateConsumers. -func (mr *MockWorkspacesMockRecorder) ListRemoteStateConsumers(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) ListRemoteStateConsumers(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRemoteStateConsumers", reflect.TypeOf((*MockWorkspaces)(nil).ListRemoteStateConsumers), ctx, workspaceID, options) } @@ -191,7 +196,7 @@ func (m *MockWorkspaces) ListTags(ctx context.Context, workspaceID string, optio } // ListTags indicates an expected call of ListTags. -func (mr *MockWorkspacesMockRecorder) ListTags(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) ListTags(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTags", reflect.TypeOf((*MockWorkspaces)(nil).ListTags), ctx, workspaceID, options) } @@ -206,7 +211,7 @@ func (m *MockWorkspaces) Lock(ctx context.Context, workspaceID string, options t } // Lock indicates an expected call of Lock. -func (mr *MockWorkspacesMockRecorder) Lock(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) Lock(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Lock", reflect.TypeOf((*MockWorkspaces)(nil).Lock), ctx, workspaceID, options) } @@ -221,7 +226,7 @@ func (m *MockWorkspaces) Read(ctx context.Context, organization, workspace strin } // Read indicates an expected call of Read. -func (mr *MockWorkspacesMockRecorder) Read(ctx, organization, workspace interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) Read(ctx, organization, workspace any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockWorkspaces)(nil).Read), ctx, organization, workspace) } @@ -236,7 +241,7 @@ func (m *MockWorkspaces) ReadByID(ctx context.Context, workspaceID string) (*tfe } // ReadByID indicates an expected call of ReadByID. -func (mr *MockWorkspacesMockRecorder) ReadByID(ctx, workspaceID interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) ReadByID(ctx, workspaceID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadByID", reflect.TypeOf((*MockWorkspaces)(nil).ReadByID), ctx, workspaceID) } @@ -251,7 +256,7 @@ func (m *MockWorkspaces) ReadByIDWithOptions(ctx context.Context, workspaceID st } // ReadByIDWithOptions indicates an expected call of ReadByIDWithOptions. -func (mr *MockWorkspacesMockRecorder) ReadByIDWithOptions(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) ReadByIDWithOptions(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadByIDWithOptions", reflect.TypeOf((*MockWorkspaces)(nil).ReadByIDWithOptions), ctx, workspaceID, options) } @@ -266,7 +271,7 @@ func (m *MockWorkspaces) ReadDataRetentionPolicy(ctx context.Context, workspaceI } // ReadDataRetentionPolicy indicates an expected call of ReadDataRetentionPolicy. -func (mr *MockWorkspacesMockRecorder) ReadDataRetentionPolicy(ctx, workspaceID interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) ReadDataRetentionPolicy(ctx, workspaceID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadDataRetentionPolicy", reflect.TypeOf((*MockWorkspaces)(nil).ReadDataRetentionPolicy), ctx, workspaceID) } @@ -281,7 +286,7 @@ func (m *MockWorkspaces) ReadDataRetentionPolicyChoice(ctx context.Context, work } // ReadDataRetentionPolicyChoice indicates an expected call of ReadDataRetentionPolicyChoice. -func (mr *MockWorkspacesMockRecorder) ReadDataRetentionPolicyChoice(ctx, workspaceID interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) ReadDataRetentionPolicyChoice(ctx, workspaceID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadDataRetentionPolicyChoice", reflect.TypeOf((*MockWorkspaces)(nil).ReadDataRetentionPolicyChoice), ctx, workspaceID) } @@ -296,7 +301,7 @@ func (m *MockWorkspaces) ReadWithOptions(ctx context.Context, organization, work } // ReadWithOptions indicates an expected call of ReadWithOptions. -func (mr *MockWorkspacesMockRecorder) ReadWithOptions(ctx, organization, workspace, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) ReadWithOptions(ctx, organization, workspace, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadWithOptions", reflect.TypeOf((*MockWorkspaces)(nil).ReadWithOptions), ctx, organization, workspace, options) } @@ -311,7 +316,7 @@ func (m *MockWorkspaces) Readme(ctx context.Context, workspaceID string) (io.Rea } // Readme indicates an expected call of Readme. -func (mr *MockWorkspacesMockRecorder) Readme(ctx, workspaceID interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) Readme(ctx, workspaceID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Readme", reflect.TypeOf((*MockWorkspaces)(nil).Readme), ctx, workspaceID) } @@ -325,7 +330,7 @@ func (m *MockWorkspaces) RemoveRemoteStateConsumers(ctx context.Context, workspa } // RemoveRemoteStateConsumers indicates an expected call of RemoveRemoteStateConsumers. -func (mr *MockWorkspacesMockRecorder) RemoveRemoteStateConsumers(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) RemoveRemoteStateConsumers(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveRemoteStateConsumers", reflect.TypeOf((*MockWorkspaces)(nil).RemoveRemoteStateConsumers), ctx, workspaceID, options) } @@ -339,7 +344,7 @@ func (m *MockWorkspaces) RemoveTags(ctx context.Context, workspaceID string, opt } // RemoveTags indicates an expected call of RemoveTags. -func (mr *MockWorkspacesMockRecorder) RemoveTags(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) RemoveTags(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveTags", reflect.TypeOf((*MockWorkspaces)(nil).RemoveTags), ctx, workspaceID, options) } @@ -354,7 +359,7 @@ func (m *MockWorkspaces) RemoveVCSConnection(ctx context.Context, organization, } // RemoveVCSConnection indicates an expected call of RemoveVCSConnection. -func (mr *MockWorkspacesMockRecorder) RemoveVCSConnection(ctx, organization, workspace interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) RemoveVCSConnection(ctx, organization, workspace any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveVCSConnection", reflect.TypeOf((*MockWorkspaces)(nil).RemoveVCSConnection), ctx, organization, workspace) } @@ -369,7 +374,7 @@ func (m *MockWorkspaces) RemoveVCSConnectionByID(ctx context.Context, workspaceI } // RemoveVCSConnectionByID indicates an expected call of RemoveVCSConnectionByID. -func (mr *MockWorkspacesMockRecorder) RemoveVCSConnectionByID(ctx, workspaceID interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) RemoveVCSConnectionByID(ctx, workspaceID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveVCSConnectionByID", reflect.TypeOf((*MockWorkspaces)(nil).RemoveVCSConnectionByID), ctx, workspaceID) } @@ -383,7 +388,7 @@ func (m *MockWorkspaces) SafeDelete(ctx context.Context, organization, workspace } // SafeDelete indicates an expected call of SafeDelete. -func (mr *MockWorkspacesMockRecorder) SafeDelete(ctx, organization, workspace interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) SafeDelete(ctx, organization, workspace any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SafeDelete", reflect.TypeOf((*MockWorkspaces)(nil).SafeDelete), ctx, organization, workspace) } @@ -397,7 +402,7 @@ func (m *MockWorkspaces) SafeDeleteByID(ctx context.Context, workspaceID string) } // SafeDeleteByID indicates an expected call of SafeDeleteByID. -func (mr *MockWorkspacesMockRecorder) SafeDeleteByID(ctx, workspaceID interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) SafeDeleteByID(ctx, workspaceID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SafeDeleteByID", reflect.TypeOf((*MockWorkspaces)(nil).SafeDeleteByID), ctx, workspaceID) } @@ -412,7 +417,7 @@ func (m *MockWorkspaces) SetDataRetentionPolicy(ctx context.Context, workspaceID } // SetDataRetentionPolicy indicates an expected call of SetDataRetentionPolicy. -func (mr *MockWorkspacesMockRecorder) SetDataRetentionPolicy(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) SetDataRetentionPolicy(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDataRetentionPolicy", reflect.TypeOf((*MockWorkspaces)(nil).SetDataRetentionPolicy), ctx, workspaceID, options) } @@ -427,7 +432,7 @@ func (m *MockWorkspaces) SetDataRetentionPolicyDeleteOlder(ctx context.Context, } // SetDataRetentionPolicyDeleteOlder indicates an expected call of SetDataRetentionPolicyDeleteOlder. -func (mr *MockWorkspacesMockRecorder) SetDataRetentionPolicyDeleteOlder(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) SetDataRetentionPolicyDeleteOlder(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDataRetentionPolicyDeleteOlder", reflect.TypeOf((*MockWorkspaces)(nil).SetDataRetentionPolicyDeleteOlder), ctx, workspaceID, options) } @@ -442,7 +447,7 @@ func (m *MockWorkspaces) SetDataRetentionPolicyDontDelete(ctx context.Context, w } // SetDataRetentionPolicyDontDelete indicates an expected call of SetDataRetentionPolicyDontDelete. -func (mr *MockWorkspacesMockRecorder) SetDataRetentionPolicyDontDelete(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) SetDataRetentionPolicyDontDelete(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDataRetentionPolicyDontDelete", reflect.TypeOf((*MockWorkspaces)(nil).SetDataRetentionPolicyDontDelete), ctx, workspaceID, options) } @@ -457,7 +462,7 @@ func (m *MockWorkspaces) UnassignSSHKey(ctx context.Context, workspaceID string) } // UnassignSSHKey indicates an expected call of UnassignSSHKey. -func (mr *MockWorkspacesMockRecorder) UnassignSSHKey(ctx, workspaceID interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) UnassignSSHKey(ctx, workspaceID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnassignSSHKey", reflect.TypeOf((*MockWorkspaces)(nil).UnassignSSHKey), ctx, workspaceID) } @@ -472,7 +477,7 @@ func (m *MockWorkspaces) Unlock(ctx context.Context, workspaceID string) (*tfe.W } // Unlock indicates an expected call of Unlock. -func (mr *MockWorkspacesMockRecorder) Unlock(ctx, workspaceID interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) Unlock(ctx, workspaceID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unlock", reflect.TypeOf((*MockWorkspaces)(nil).Unlock), ctx, workspaceID) } @@ -487,7 +492,7 @@ func (m *MockWorkspaces) Update(ctx context.Context, organization, workspace str } // Update indicates an expected call of Update. -func (mr *MockWorkspacesMockRecorder) Update(ctx, organization, workspace, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) Update(ctx, organization, workspace, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockWorkspaces)(nil).Update), ctx, organization, workspace, options) } @@ -502,7 +507,7 @@ func (m *MockWorkspaces) UpdateByID(ctx context.Context, workspaceID string, opt } // UpdateByID indicates an expected call of UpdateByID. -func (mr *MockWorkspacesMockRecorder) UpdateByID(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) UpdateByID(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateByID", reflect.TypeOf((*MockWorkspaces)(nil).UpdateByID), ctx, workspaceID, options) } @@ -516,7 +521,7 @@ func (m *MockWorkspaces) UpdateRemoteStateConsumers(ctx context.Context, workspa } // UpdateRemoteStateConsumers indicates an expected call of UpdateRemoteStateConsumers. -func (mr *MockWorkspacesMockRecorder) UpdateRemoteStateConsumers(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockWorkspacesMockRecorder) UpdateRemoteStateConsumers(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRemoteStateConsumers", reflect.TypeOf((*MockWorkspaces)(nil).UpdateRemoteStateConsumers), ctx, workspaceID, options) } diff --git a/mocks/workspace_resources.go b/mocks/workspace_resources.go index 8b5f14d2e..b39f8c9ed 100644 --- a/mocks/workspace_resources.go +++ b/mocks/workspace_resources.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: workspace_resources.go +// +// Generated by this command: +// +// mockgen -source=workspace_resources.go -destination=mocks/workspace_resources.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockWorkspaceResources is a mock of WorkspaceResources interface. @@ -45,7 +50,7 @@ func (m *MockWorkspaceResources) List(ctx context.Context, workspaceID string, o } // List indicates an expected call of List. -func (mr *MockWorkspaceResourcesMockRecorder) List(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockWorkspaceResourcesMockRecorder) List(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockWorkspaceResources)(nil).List), ctx, workspaceID, options) } diff --git a/mocks/workspace_run_tasks_mocks.go b/mocks/workspace_run_tasks_mocks.go index 31bde848c..23a58fb49 100644 --- a/mocks/workspace_run_tasks_mocks.go +++ b/mocks/workspace_run_tasks_mocks.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: workspace_run_task.go +// +// Generated by this command: +// +// mockgen -source=workspace_run_task.go -destination=mocks/workspace_run_tasks_mocks.go -package=mocks +// // Package mocks is a generated GoMock package. package mocks @@ -8,8 +13,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" tfe "github.com/hashicorp/go-tfe" + gomock "go.uber.org/mock/gomock" ) // MockWorkspaceRunTasks is a mock of WorkspaceRunTasks interface. @@ -45,7 +50,7 @@ func (m *MockWorkspaceRunTasks) Create(ctx context.Context, workspaceID string, } // Create indicates an expected call of Create. -func (mr *MockWorkspaceRunTasksMockRecorder) Create(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockWorkspaceRunTasksMockRecorder) Create(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockWorkspaceRunTasks)(nil).Create), ctx, workspaceID, options) } @@ -59,7 +64,7 @@ func (m *MockWorkspaceRunTasks) Delete(ctx context.Context, workspaceID, workspa } // Delete indicates an expected call of Delete. -func (mr *MockWorkspaceRunTasksMockRecorder) Delete(ctx, workspaceID, workspaceTaskID interface{}) *gomock.Call { +func (mr *MockWorkspaceRunTasksMockRecorder) Delete(ctx, workspaceID, workspaceTaskID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockWorkspaceRunTasks)(nil).Delete), ctx, workspaceID, workspaceTaskID) } @@ -74,7 +79,7 @@ func (m *MockWorkspaceRunTasks) List(ctx context.Context, workspaceID string, op } // List indicates an expected call of List. -func (mr *MockWorkspaceRunTasksMockRecorder) List(ctx, workspaceID, options interface{}) *gomock.Call { +func (mr *MockWorkspaceRunTasksMockRecorder) List(ctx, workspaceID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockWorkspaceRunTasks)(nil).List), ctx, workspaceID, options) } @@ -89,7 +94,7 @@ func (m *MockWorkspaceRunTasks) Read(ctx context.Context, workspaceID, workspace } // Read indicates an expected call of Read. -func (mr *MockWorkspaceRunTasksMockRecorder) Read(ctx, workspaceID, workspaceTaskID interface{}) *gomock.Call { +func (mr *MockWorkspaceRunTasksMockRecorder) Read(ctx, workspaceID, workspaceTaskID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockWorkspaceRunTasks)(nil).Read), ctx, workspaceID, workspaceTaskID) } @@ -104,7 +109,7 @@ func (m *MockWorkspaceRunTasks) Update(ctx context.Context, workspaceID, workspa } // Update indicates an expected call of Update. -func (mr *MockWorkspaceRunTasksMockRecorder) Update(ctx, workspaceID, workspaceTaskID, options interface{}) *gomock.Call { +func (mr *MockWorkspaceRunTasksMockRecorder) Update(ctx, workspaceID, workspaceTaskID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockWorkspaceRunTasks)(nil).Update), ctx, workspaceID, workspaceTaskID, options) } From 9ee136c85ba73d751c968f61fe1cfbb90fae3fc9 Mon Sep 17 00:00:00 2001 From: Sebastian Rivera Date: Tue, 7 May 2024 17:02:41 -0400 Subject: [PATCH 3/3] Update v1.53.0 changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 185ac8ba6..d27e8310f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ## Enhancements * Adds `ManageTeams`, `ManageOrganizationAccess`, and `AccessSecretTeams` permissions to team `OrganizationAccess` by @juliannatetreault [#874](https://github.com/hashicorp/go-tfe/pull/874) +* Mocks are now generated using the go.uber.org/mock package [#897](https://github.com/hashicorp/go-tfe/pull/897) # v1.52.0