From e5daf49c3153412e73df8e6d45a53052c426c324 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 00:45:18 -0700 Subject: [PATCH 01/28] cleanup workflows and makefile --- .copywrite.hcl | 20 + .github/ISSUE_TEMPLATE/bug_report.md | 107 +- .github/ISSUE_TEMPLATE/documentation.md | 52 + .github/ISSUE_TEMPLATE/feature_request.md | 76 +- .github/dependabot.yml | 5 + .github/workflows/codeql-analysis.yml | 51 - .github/workflows/codeql.yml | 82 + .github/workflows/generate.yml | 27 + .github/workflows/go-fmt.yml | 43 - .github/workflows/golanglint-ci.yml | 37 + .github/workflows/goreleaser.yml | 31 + .github/workflows/integration.yml | 129 -- .github/workflows/ok-to-test.yml | 29 - .github/workflows/pull_request.yml | 31 + .github/workflows/release-please.yml | 14 + .github/workflows/release.yml | 71 - .github/workflows/team-slack-bot.yml | 17 - .github/workflows/test.yml | 24 + .github/workflows/tfproviderlint.yml | 11 - .../{titleLint.yml => title-lint.yml} | 0 .github/workflows/unit.yml | 22 - .goreleaser.prerelease.yml | 41 - .goreleaser.yml | 44 +- .reviewdog.yml | 8 - CONTRIBUTING.md | 21 +- GNUmakefile | 61 + Makefile | 112 -- README.md | 2 +- codecov.yml | 7 - docs/resources/table.md | 12 +- download.sh | 381 ----- .../snowflake_dynamic_tables/data-sources.tf | 14 +- .../resources/snowflake_table/resource.tf | 12 +- go.mod | 195 ++- go.sum | 1080 +++++++++++++ {pkg => internal}/acceptance/testing.go | 7 +- {pkg => internal}/datasources/accounts.go | 5 +- .../datasources/accounts_acceptance_test.go | 3 + {pkg => internal}/datasources/alerts.go | 5 +- .../datasources/current_account.go | 5 +- .../current_account_acceptance_test.go | 3 + {pkg => internal}/datasources/current_role.go | 5 +- .../current_role_acceptance_test.go | 3 + {pkg => internal}/datasources/database.go | 5 +- .../datasources/database_acceptance_test.go | 3 + .../datasources/database_roles.go | 5 +- .../database_roles_acceptance_test.go | 3 + {pkg => internal}/datasources/databases.go | 5 +- .../datasources/databases_acceptance_test.go | 3 + .../datasources/dynamic_tables.go | 5 +- .../dynamic_tables_acceptance_test.go | 7 +- .../datasources/external_functions.go | 5 +- .../external_functions_acceptance_test.go | 3 + .../datasources/external_tables.go | 5 +- .../external_tables_acceptance_test.go | 3 + .../datasources/failover_groups.go | 5 +- .../failover_groups_acceptance_test.go | 3 + {pkg => internal}/datasources/file_formats.go | 5 +- .../file_formats_acceptance_test.go | 3 + {pkg => internal}/datasources/functions.go | 5 +- .../datasources/functions_acceptance_test.go | 3 + {pkg => internal}/datasources/grants.go | 5 +- .../datasources/grants_acceptance_test.go | 3 + {pkg => internal}/datasources/helpers_test.go | 5 +- .../datasources/masking_policies.go | 7 +- .../masking_policies_acceptance_test.go | 3 + .../datasources/materialized_views.go | 5 +- .../materialized_views_acceptance_test.go | 3 + {pkg => internal}/datasources/parameters.go | 5 +- .../datasources/parameters_acceptance_test.go | 3 + {pkg => internal}/datasources/pipes.go | 5 +- .../datasources/pipes_acceptance_test.go | 3 + {pkg => internal}/datasources/procedures.go | 5 +- .../datasources/procedures_acceptance_test.go | 3 + .../datasources/resource_monitors.go | 5 +- .../resource_monitors_acceptance_test.go | 3 + {pkg => internal}/datasources/role.go | 5 +- .../datasources/role_acceptance_test.go | 3 + {pkg => internal}/datasources/roles.go | 5 +- .../datasources/roles_acceptance_test.go | 3 + .../datasources/row_access_policies.go | 5 +- .../row_access_policies_acceptance_test.go | 3 + {pkg => internal}/datasources/schemas.go | 5 +- .../datasources/schemas_acceptance_test.go | 3 + {pkg => internal}/datasources/sequences.go | 5 +- .../datasources/sequences_acceptance_test.go | 3 + {pkg => internal}/datasources/shares.go | 5 +- .../datasources/shares_acceptance_test.go | 3 + {pkg => internal}/datasources/stages.go | 5 +- .../datasources/stages_acceptance_test.go | 3 + .../datasources/storage_integrations.go | 5 +- .../storage_integrations_acceptance_test.go | 3 + {pkg => internal}/datasources/streams.go | 5 +- .../datasources/streams_acceptance_test.go | 3 + .../system_generate_scim_access_token.go | 5 +- ...erate_scim_access_token_acceptance_test.go | 3 + .../system_get_aws_sns_iam_policy.go | 5 +- ..._get_aws_sns_iam_policy_acceptance_test.go | 3 + .../system_get_privatelink_config.go | 5 +- ..._get_privatelink_config_acceptance_test.go | 3 + .../system_get_snowflake_platform_info.go | 5 +- ...snowflake_platform_info_acceptance_test.go | 3 + {pkg => internal}/datasources/tables.go | 5 +- .../datasources/tables_acceptance_test.go | 3 + {pkg => internal}/datasources/tasks.go | 5 +- .../datasources/tasks_acceptance_test.go | 3 + .../TestAcc_DynamicTables_complete/1/test.tf | 3 + .../1}/variables.tf | 3 + {pkg => internal}/datasources/users.go | 7 +- .../datasources/users_acceptance_test.go | 3 + {pkg => internal}/datasources/views.go | 5 +- .../datasources/views_acceptance_test.go | 3 + {pkg => internal}/datasources/warehouses.go | 7 +- .../datasources/warehouses_acceptance_test.go | 3 + {pkg => internal}/helpers/helpers.go | 5 +- {pkg => internal}/helpers/helpers_test.go | 3 + {pkg => internal}/helpers/random.go | 3 + {pkg => internal}/provider/provider.go | 9 +- .../provider/provider_helpers.go | 3 + {pkg => internal}/provider/provider_test.go | 3 + {pkg => internal}/resources/account.go | 9 +- .../resources/account_acceptance_test.go | 5 +- {pkg => internal}/resources/account_grant.go | 7 +- .../account_grant_acceptance_test.go | 5 +- .../resources/account_grant_test.go | 9 +- .../resources/account_parameter.go | 5 +- .../account_parameter_acceptance_test.go | 5 +- .../account_password_policy_attachment.go | 7 +- ...sword_policy_attachment_acceptance_test.go | 5 +- {pkg => internal}/resources/alert.go | 7 +- .../resources/alert_acceptance_test.go | 5 +- .../resources/api_integration.go | 5 +- .../api_integration_acceptance_test.go | 5 +- .../resources/api_integration_test.go | 9 +- {pkg => internal}/resources/database.go | 5 +- .../resources/database_acceptance_test.go | 5 +- {pkg => internal}/resources/database_grant.go | 9 +- .../database_grant_acceptance_test.go | 5 +- .../resources/database_grant_test.go | 9 +- {pkg => internal}/resources/database_role.go | 7 +- .../database_role_acceptance_test.go | 5 +- {pkg => internal}/resources/dynamic_table.go | 7 +- .../dynamic_table_acceptance_test.go | 7 +- .../resources/dynamic_table_test.go | 7 +- .../email_notification_integration.go | 5 +- ...otification_integration_acceptance_test.go | 5 +- .../resources/external_function.go | 5 +- .../external_function_acceptance_test.go | 5 +- .../resources/external_function_test.go | 9 +- .../resources/external_oauth_integration.go | 5 +- ...ernal_oauth_integration_acceptance_test.go | 5 +- .../external_stage_acceptance_test.go | 5 +- {pkg => internal}/resources/external_table.go | 5 +- .../external_table_acceptance_test.go | 5 +- .../resources/external_table_grant.go | 9 +- .../external_table_grant_acceptance_test.go | 5 +- .../resources/external_table_grant_test.go | 9 +- .../resources/external_table_test.go | 9 +- {pkg => internal}/resources/failover_group.go | 5 +- .../failover_group_acceptance_test.go | 5 +- .../resources/failover_group_grant.go | 9 +- .../failover_group_grant_acceptance_test.go | 5 +- {pkg => internal}/resources/file_format.go | 5 +- .../resources/file_format_acceptance_test.go | 5 +- .../resources/file_format_grant.go | 9 +- .../file_format_grant_acceptance_test.go | 5 +- .../resources/file_format_grant_test.go | 9 +- {pkg => internal}/resources/function.go | 5 +- .../resources/function_acceptance_test.go | 5 +- {pkg => internal}/resources/function_grant.go | 9 +- .../function_grant_acceptance_test.go | 5 +- {pkg => internal}/resources/function_test.go | 9 +- {pkg => internal}/resources/grant_helpers.go | 5 +- .../resources/grant_privileges_to_role.go | 7 +- ...rant_privileges_to_role_acceptance_test.go | 5 +- .../resources/helper_expansion.go | 3 + .../helper_expansion_internal_test.go | 3 + {pkg => internal}/resources/helpers.go | 5 +- {pkg => internal}/resources/helpers_test.go | 5 +- .../resources/integration_grant.go | 9 +- .../resources/integration_grant_test.go | 9 +- .../internal_stage_acceptance_test.go | 5 +- .../resources/managed_account.go | 7 +- .../managed_account_acceptance_test.go | 5 +- .../resources/managed_account_test.go | 11 +- {pkg => internal}/resources/masking_policy.go | 7 +- .../masking_policy_acceptance_test.go | 5 +- .../resources/masking_policy_grant.go | 9 +- .../masking_policy_grant_acceptance_test.go | 5 +- .../resources/masking_policy_grant_test.go | 9 +- .../resources/materialized_view.go | 5 +- .../materialized_view_acceptance_test.go | 5 +- .../resources/materialized_view_grant.go | 9 +- ...materialized_view_grant_acceptance_test.go | 5 +- .../resources/materialized_view_grant_test.go | 9 +- .../resources/materialized_view_test.go | 11 +- {pkg => internal}/resources/network_policy.go | 5 +- .../network_policy_acceptance_test.go | 5 +- .../resources/network_policy_attachment.go | 5 +- ...twork_policy_attachment_acceptance_test.go | 5 +- .../network_policy_attachment_test.go | 9 +- .../resources/notification_integration.go | 5 +- ...otification_integration_acceptance_test.go | 5 +- .../notification_integration_test.go | 9 +- .../resources/oauth_integration.go | 5 +- .../oauth_integration_acceptance_test.go | 5 +- .../resources/oauth_integration_test.go | 9 +- .../resources/object_parameter.go | 7 +- .../object_parameter_acceptance_test.go | 5 +- .../resources/password_policy.go | 7 +- .../password_policy_acceptance_test.go | 5 +- {pkg => internal}/resources/pipe.go | 7 +- .../resources/pipe_acceptance_test.go | 5 +- {pkg => internal}/resources/pipe_grant.go | 9 +- .../resources/pipe_grant_acceptance_test.go | 5 +- .../resources/pipe_grant_test.go | 9 +- .../resources/pipe_internal_test.go | 3 + {pkg => internal}/resources/privileges.go | 3 + {pkg => internal}/resources/procedure.go | 5 +- .../resources/procedure_acceptance_test.go | 5 +- .../resources/procedure_grant.go | 9 +- .../procedure_grant_acceptance_test.go | 5 +- {pkg => internal}/resources/procedure_test.go | 9 +- {pkg => internal}/resources/resource.go | 5 +- .../resources/resource_monitor.go | 7 +- .../resource_monitor_acceptance_test.go | 5 +- .../resources/resource_monitor_grant.go | 7 +- .../resource_monitor_grant_acceptance_test.go | 5 +- .../resources/resource_monitor_grant_test.go | 9 +- {pkg => internal}/resources/role.go | 7 +- .../resources/role_acceptance_test.go | 5 +- {pkg => internal}/resources/role_grants.go | 9 +- .../resources/role_grants_acceptance_test.go | 5 +- .../resources/role_grants_internal_test.go | 5 +- .../resources/role_grants_test.go | 9 +- .../resources/role_ownership_grant.go | 7 +- .../role_ownership_grant_acceptance_test.go | 5 +- .../resources/role_ownership_grant_test.go | 9 +- .../resources/row_access_policy.go | 5 +- .../row_access_policy_acceptance_test.go | 5 +- .../resources/row_access_policy_grant.go | 9 +- ...row_access_policy_grant_acceptance_test.go | 5 +- .../resources/row_access_policy_grant_test.go | 9 +- .../resources/row_access_policy_test.go | 9 +- .../resources/saml_integration.go | 5 +- .../saml_integration_acceptance_test.go | 5 +- .../resources/saml_integration_test.go | 9 +- {pkg => internal}/resources/schema.go | 7 +- .../resources/schema_acceptance_test.go | 5 +- {pkg => internal}/resources/schema_grant.go | 9 +- .../resources/schema_grant_acceptance_test.go | 5 +- .../resources/schema_grant_test.go | 9 +- .../resources/scim_integration.go | 5 +- .../scim_integration_acceptance_test.go | 5 +- .../resources/scim_integration_test.go | 9 +- {pkg => internal}/resources/sequence.go | 5 +- .../resources/sequence_acceptance_test.go | 5 +- {pkg => internal}/resources/sequence_grant.go | 9 +- .../sequence_grant_acceptance_test.go | 5 +- .../resources/sequence_grant_test.go | 9 +- {pkg => internal}/resources/sequence_test.go | 9 +- .../resources/session_parameter.go | 5 +- .../session_parameter_acceptance_test.go | 5 +- {pkg => internal}/resources/share.go | 7 +- .../resources/share_acceptance_test.go | 5 +- {pkg => internal}/resources/stage.go | 5 +- .../resources/stage_acceptance_test.go | 5 +- {pkg => internal}/resources/stage_grant.go | 9 +- .../resources/stage_grant_acceptance_test.go | 5 +- .../resources/stage_grant_test.go | 9 +- {pkg => internal}/resources/stage_test.go | 11 +- .../resources/storage_integration.go | 5 +- .../storage_integration_acceptance_test.go | 5 +- .../resources/storage_integration_test.go | 9 +- {pkg => internal}/resources/stream.go | 9 +- .../resources/stream_acceptance_test.go | 5 +- {pkg => internal}/resources/stream_grant.go | 9 +- .../resources/stream_grant_acceptance_test.go | 5 +- .../resources/stream_grant_test.go | 9 +- {pkg => internal}/resources/table.go | 5 +- .../resources/table_acceptance_test.go | 5 +- ...table_column_masking_policy_application.go | 5 +- ...king_policy_application_acceptance_test.go | 5 +- .../resources/table_constraint.go | 7 +- .../table_constraint_acceptance_test.go | 5 +- {pkg => internal}/resources/table_grant.go | 9 +- .../resources/table_grant_acceptance_test.go | 5 +- .../resources/table_grant_test.go | 9 +- .../resources/table_internal_test.go | 3 + {pkg => internal}/resources/tag.go | 7 +- .../resources/tag_acceptance_test.go | 5 +- .../resources/tag_association.go | 7 +- .../tag_association_acceptance_test.go | 5 +- {pkg => internal}/resources/tag_grant.go | 9 +- .../resources/tag_grant_acceptance_test.go | 5 +- {pkg => internal}/resources/tag_grant_test.go | 9 +- .../tag_masking_policy_association.go | 11 +- ...king_policy_association_acceptance_test.go | 5 +- {pkg => internal}/resources/tag_test.go | 11 +- {pkg => internal}/resources/task.go | 7 +- .../resources/task_acceptance_test.go | 5 +- {pkg => internal}/resources/task_grant.go | 9 +- .../resources/task_grant_acceptance_test.go | 5 +- .../resources/task_grant_test.go | 9 +- .../TestAcc_DynamicTable_basic/1/test.tf | 3 + .../1}/variables.tf | 3 + .../TestAcc_DynamicTable_basic/2/test.tf | 3 + .../2}/variables.tf | 3 + .../TestAcc_DynamicTable_basic/3/test.tf | 3 + .../3}/variables.tf | 3 + {pkg => internal}/resources/testdata/userkey1 | 0 {pkg => internal}/resources/testdata/userkey2 | 0 .../resources/testdata/view_1a.sql | 3 + .../resources/testdata/view_1b.sql | 3 + .../resources/testdata/view_2a.sql | 3 + .../resources/testdata/view_2b.sql | 3 + {pkg => internal}/resources/user.go | 7 +- .../resources/user_acceptance_test.go | 7 +- {pkg => internal}/resources/user_grant.go | 7 +- .../resources/user_grant_acceptance_test.go | 5 +- .../resources/user_grant_test.go | 9 +- .../resources/user_ownership_grant.go | 7 +- .../user_ownership_grant_acceptance_test.go | 5 +- .../resources/user_ownership_grant_test.go | 9 +- .../resources/user_public_keys.go | 5 +- .../user_public_keys_acceptance_test.go | 7 +- {pkg => internal}/resources/view.go | 5 +- .../resources/view_acceptance_test.go | 5 +- {pkg => internal}/resources/view_grant.go | 9 +- .../resources/view_grant_acceptance_test.go | 5 +- .../resources/view_grant_test.go | 9 +- {pkg => internal}/resources/view_test.go | 11 +- {pkg => internal}/resources/warehouse.go | 9 +- .../resources/warehouse_acceptance_test.go | 5 +- .../resources/warehouse_grant.go | 9 +- .../warehouse_grant_acceptance_test.go | 5 +- .../resources/warehouse_grant_test.go | 9 +- {pkg => internal}/sdk/README.md | 0 {pkg => internal}/sdk/accounts.go | 3 + {pkg => internal}/sdk/accounts_test.go | 3 + {pkg => internal}/sdk/alerts.go | 3 + {pkg => internal}/sdk/alerts_test.go | 5 +- {pkg => internal}/sdk/assertions_test.go | 3 + {pkg => internal}/sdk/client.go | 3 + .../sdk/client_integration_test.go | 3 + {pkg => internal}/sdk/comments.go | 3 + {pkg => internal}/sdk/comments_test.go | 3 + {pkg => internal}/sdk/common_types.go | 3 + {pkg => internal}/sdk/common_types_test.go | 3 + {pkg => internal}/sdk/config.go | 3 + {pkg => internal}/sdk/config_test.go | 3 + {pkg => internal}/sdk/context_functions.go | 3 + {pkg => internal}/sdk/conversion_functions.go | 3 + {pkg => internal}/sdk/data_types.go | 3 + {pkg => internal}/sdk/data_types_test.go | 3 + {pkg => internal}/sdk/database_role.go | 3 + {pkg => internal}/sdk/database_role_dto.go | 3 + .../sdk/database_role_dto_builders.go | 3 + {pkg => internal}/sdk/database_role_impl.go | 5 +- {pkg => internal}/sdk/database_role_test.go | 5 +- .../sdk/database_role_validations.go | 3 + {pkg => internal}/sdk/databases.go | 3 + {pkg => internal}/sdk/databases_test.go | 3 + .../sdk/dto-builder-generator/README.md | 0 .../example/pipes_dto.go | 5 +- .../example/pipes_dto_generated.go | 2 +- .../sdk/dto-builder-generator/main.go | 3 + {pkg => internal}/sdk/dynamic_table.go | 3 + {pkg => internal}/sdk/dynamic_table_dto.go | 3 + .../sdk/dynamic_table_dto_builders.go | 3 + {pkg => internal}/sdk/dynamic_table_impl.go | 5 +- {pkg => internal}/sdk/dynamic_table_test.go | 3 + .../sdk/dynamic_table_validations.go | 3 + {pkg => internal}/sdk/errors.go | 3 + {pkg => internal}/sdk/external_tables.go | 3 + {pkg => internal}/sdk/external_tables_dto.go | 3 + .../sdk/external_tables_dto_builders_gen.go | 2 - {pkg => internal}/sdk/external_tables_impl.go | 5 +- {pkg => internal}/sdk/external_tables_test.go | 3 + .../sdk/external_tables_validations.go | 3 + {pkg => internal}/sdk/failover_groups.go | 3 + {pkg => internal}/sdk/failover_groups_test.go | 3 + {pkg => internal}/sdk/file_format.go | 3 + {pkg => internal}/sdk/file_format_test.go | 3 + {pkg => internal}/sdk/grants.go | 3 + {pkg => internal}/sdk/grants_impl.go | 3 + {pkg => internal}/sdk/grants_test.go | 3 + {pkg => internal}/sdk/grants_validations.go | 3 + {pkg => internal}/sdk/helper_test.go | 3 + {pkg => internal}/sdk/helpers_proposal.go | 3 + {pkg => internal}/sdk/identifier_helpers.go | 3 + .../sdk/identifier_helpers_test.go | 3 + .../sdk/integration_test_imports.go | 3 + .../collections/collection_helpers.go | 3 + .../sdk/internal/random/random_helpers.go | 3 + {pkg => internal}/sdk/masking_policy.go | 3 + {pkg => internal}/sdk/masking_policy_test.go | 5 +- {pkg => internal}/sdk/network_policies_def.go | 5 +- .../sdk/network_policies_dto_builders_gen.go | 2 - .../sdk/network_policies_dto_gen.go | 3 + {pkg => internal}/sdk/network_policies_gen.go | 3 + .../sdk/network_policies_gen_test.go | 3 + .../sdk/network_policies_impl_gen.go | 5 +- .../sdk/network_policies_validations_gen.go | 3 + {pkg => internal}/sdk/object_types.go | 3 + {pkg => internal}/sdk/parameters.go | 3 + {pkg => internal}/sdk/parameters_impl.go | 3 + {pkg => internal}/sdk/parameters_test.go | 3 + {pkg => internal}/sdk/password_policy.go | 3 + {pkg => internal}/sdk/password_policy_test.go | 5 +- {pkg => internal}/sdk/pipes.go | 3 + {pkg => internal}/sdk/pipes_impl.go | 5 +- {pkg => internal}/sdk/pipes_test.go | 3 + {pkg => internal}/sdk/pipes_validations.go | 3 + {pkg => internal}/sdk/poc/README.md | 0 .../sdk/poc/example/database_role_def.go | 5 +- .../example/database_role_dto_builders_gen.go | 2 - .../sdk/poc/example/database_role_dto_gen.go | 3 + .../sdk/poc/example/database_role_gen.go | 3 + .../database_role_gen_integration_test.go | 3 + .../sdk/poc/example/database_role_gen_test.go | 3 + .../sdk/poc/example/database_role_impl_gen.go | 3 + .../example/database_role_validations_gen.go | 3 + .../sdk/poc/example/sdk_definitions.go | 3 + .../sdk/poc/generator/db_struct.go | 3 + {pkg => internal}/sdk/poc/generator/field.go | 3 + .../sdk/poc/generator/field_transformers.go | 3 + .../sdk/poc/generator/file_util.go | 3 + .../sdk/poc/generator/identifier_builders.go | 3 + .../sdk/poc/generator/interface.go | 3 + .../sdk/poc/generator/keyword_builders.go | 3 + {pkg => internal}/sdk/poc/generator/kind.go | 3 + .../sdk/poc/generator/operation.go | 3 + .../sdk/poc/generator/parameter_builders.go | 3 + .../sdk/poc/generator/plain_struct.go | 3 + .../sdk/poc/generator/query_struct.go | 3 + .../sdk/poc/generator/static_builders.go | 3 + .../sdk/poc/generator/tag_builder.go | 3 + .../sdk/poc/generator/template_executors.go | 3 + .../sdk/poc/generator/templates.go | 7 +- {pkg => internal}/sdk/poc/generator/util.go | 3 + .../sdk/poc/generator/validation.go | 3 + {pkg => internal}/sdk/poc/main.go | 9 +- {pkg => internal}/sdk/privileges.go | 3 + {pkg => internal}/sdk/random.go | 5 +- .../sdk/replication_functions.go | 3 + {pkg => internal}/sdk/replication_groups.go | 3 + .../sdk/resource_monitor_internal_test.go | 3 + {pkg => internal}/sdk/resource_monitors.go | 3 + .../sdk/resource_monitors_test.go | 3 + {pkg => internal}/sdk/roles.go | 3 + {pkg => internal}/sdk/roles_dto.go | 3 + {pkg => internal}/sdk/roles_impl.go | 5 +- {pkg => internal}/sdk/roles_test.go | 3 + {pkg => internal}/sdk/roles_validations.go | 3 + {pkg => internal}/sdk/schemas.go | 3 + {pkg => internal}/sdk/schemas_test.go | 3 + {pkg => internal}/sdk/session_policies_def.go | 5 +- .../sdk/session_policies_dto_builders_gen.go | 2 - .../sdk/session_policies_dto_gen.go | 3 + {pkg => internal}/sdk/session_policies_gen.go | 3 + .../sdk/session_policies_gen_test.go | 3 + .../sdk/session_policies_impl_gen.go | 5 +- .../sdk/session_policies_validations_gen.go | 3 + {pkg => internal}/sdk/sessions.go | 3 + {pkg => internal}/sdk/shares.go | 3 + {pkg => internal}/sdk/shares_test.go | 5 +- {pkg => internal}/sdk/sql_builder.go | 3 + {pkg => internal}/sdk/sql_builder_test.go | 3 + {pkg => internal}/sdk/stages.go | 3 + {pkg => internal}/sdk/streams_def.go | 5 +- .../sdk/streams_dto_builders_gen.go | 0 {pkg => internal}/sdk/streams_dto_gen.go | 3 + {pkg => internal}/sdk/streams_gen.go | 3 + {pkg => internal}/sdk/streams_gen_test.go | 3 + {pkg => internal}/sdk/streams_impl_gen.go | 5 +- .../sdk/streams_validations_gen.go | 3 + {pkg => internal}/sdk/sweepers.go | 3 + {pkg => internal}/sdk/sweepers_test.go | 3 + {pkg => internal}/sdk/system_functions.go | 3 + {pkg => internal}/sdk/tables.go | 3 + {pkg => internal}/sdk/tags.go | 3 + {pkg => internal}/sdk/tags_dto.go | 3 + {pkg => internal}/sdk/tags_dto_builders.go | 3 + {pkg => internal}/sdk/tags_impl.go | 5 +- {pkg => internal}/sdk/tags_test.go | 5 +- {pkg => internal}/sdk/tags_validations.go | 3 + {pkg => internal}/sdk/tasks_def.go | 5 +- .../sdk/tasks_dto_builders_gen.go | 2 - {pkg => internal}/sdk/tasks_dto_gen.go | 3 + {pkg => internal}/sdk/tasks_gen.go | 3 + {pkg => internal}/sdk/tasks_gen_test.go | 3 + {pkg => internal}/sdk/tasks_impl_gen.go | 3 + {pkg => internal}/sdk/tasks_test.go | 3 + .../sdk/tasks_validations_gen.go | 3 + .../sdk/testint/accounts_integration_test.go | 7 +- .../sdk/testint/alerts_integration_test.go | 7 +- .../sdk/testint/comments_integration_test.go | 7 +- .../context_functions_integration_test.go | 5 +- .../conversion_functions_integration_test.go | 5 +- .../testint/database_role_integration_test.go | 9 +- .../sdk/testint/databases_integration_test.go | 7 +- .../testint/dynamic_table_integration_test.go | 7 +- .../external_tables_integration_test.go | 9 +- .../failover_groups_integration_test.go | 5 +- .../testint/file_format_integration_test.go | 7 +- .../sdk/testint/grants_integration_test.go | 7 +- {pkg => internal}/sdk/testint/helpers_test.go | 7 +- .../masking_policy_integration_test.go | 7 +- .../network_policies_gen_integration_test.go | 7 +- {pkg => internal}/sdk/testint/parsers.go | 3 + .../password_policy_integration_test.go | 7 +- .../sdk/testint/pipes_integration_test.go | 7 +- .../replication_functions_integration_test.go | 5 +- .../resource_monitors_integration_test.go | 7 +- .../sdk/testint/roles_integration_test.go | 7 +- .../sdk/testint/schemas_integration_test.go | 7 +- .../session_policies_gen_integration_test.go | 9 +- .../sdk/testint/sessions_integration_test.go | 5 +- .../sdk/testint/setup_integration_test.go | 7 +- .../sdk/testint/shares_integration_test.go | 7 +- .../testint/streams_gen_integration_test.go | 9 +- .../system_functions_integration_test.go | 7 +- .../sdk/testint/tags_integration_test.go | 9 +- .../sdk/testint/tasks_gen_integration_test.go | 7 +- .../sdk/testint/users_integration_test.go | 7 +- .../testint/warehouses_integration_test.go | 5 +- {pkg => internal}/sdk/type_helpers.go | 3 + {pkg => internal}/sdk/users.go | 3 + {pkg => internal}/sdk/users_test.go | 5 +- {pkg => internal}/sdk/validation.go | 3 + {pkg => internal}/sdk/validation_test.go | 5 +- {pkg => internal}/sdk/validations.go | 3 + {pkg => internal}/sdk/validations_test.go | 5 +- {pkg => internal}/sdk/warehouses.go | 3 + {pkg => internal}/sdk/warehouses_test.go | 3 + {pkg => internal}/snowflake/all_grant.go | 3 + {pkg => internal}/snowflake/all_grant_test.go | 5 +- .../snowflake/api_integration.go | 3 + .../snowflake/api_integration_test.go | 5 +- {pkg => internal}/snowflake/builder.go | 3 + .../snowflake/current_account.go | 3 + .../snowflake/current_account_test.go | 5 +- {pkg => internal}/snowflake/current_role.go | 3 + .../snowflake/current_role_test.go | 5 +- .../email_notification_integration.go | 3 + {pkg => internal}/snowflake/errors.go | 3 + {pkg => internal}/snowflake/escaping.go | 3 + {pkg => internal}/snowflake/escaping_test.go | 5 +- {pkg => internal}/snowflake/exec.go | 3 + .../snowflake/external_function.go | 3 + .../snowflake/external_function_test.go | 3 + .../snowflake/external_oauth_integration.go | 3 + .../external_oauth_integration_test.go | 5 +- {pkg => internal}/snowflake/external_table.go | 3 + .../snowflake/external_table_test.go | 3 + {pkg => internal}/snowflake/function.go | 3 + {pkg => internal}/snowflake/function_test.go | 3 + {pkg => internal}/snowflake/future_grant.go | 3 + .../snowflake/future_grant_test.go | 5 +- {pkg => internal}/snowflake/generic.go | 3 + {pkg => internal}/snowflake/generic_test.go | 3 + {pkg => internal}/snowflake/grant.go | 3 + {pkg => internal}/snowflake/grant_test.go | 5 +- {pkg => internal}/snowflake/identifier.go | 3 + .../snowflake/managed_account.go | 3 + .../snowflake/managed_account_test.go | 5 +- {pkg => internal}/snowflake/manager.go | 3 + {pkg => internal}/snowflake/masking_policy.go | 3 + .../snowflake/masking_policy_application.go | 3 + .../masking_policy_application_test.go | 5 +- .../snowflake/materialized_view.go | 3 + {pkg => internal}/snowflake/network_policy.go | 3 + .../snowflake/network_policy_test.go | 5 +- .../snowflake/notification_integration.go | 3 + .../notification_integration_test.go | 5 +- .../snowflake/oauth_integration.go | 3 + .../snowflake/oauth_integration_test.go | 5 +- {pkg => internal}/snowflake/parser.go | 3 + .../snowflake/parser_internal_test.go | 3 + {pkg => internal}/snowflake/parser_test.go | 3 + {pkg => internal}/snowflake/procedure.go | 3 + {pkg => internal}/snowflake/procedure_test.go | 3 + {pkg => internal}/snowflake/replication.go | 3 + .../snowflake/resource_monitor.go | 3 + .../snowflake/resource_monitor_test.go | 5 +- {pkg => internal}/snowflake/role.go | 3 + {pkg => internal}/snowflake/role_grant.go | 3 + .../snowflake/role_grant_test.go | 5 +- .../snowflake/role_ownership_grant.go | 3 + .../snowflake/role_ownership_grant_test.go | 5 +- .../snowflake/row_access_policy.go | 3 + .../snowflake/row_access_policy_test.go | 5 +- .../snowflake/saml_integration.go | 3 + .../snowflake/saml_integration_test.go | 5 +- .../snowflake/scim_integration.go | 3 + .../snowflake/scim_integration_test.go | 5 +- {pkg => internal}/snowflake/sequence.go | 3 + {pkg => internal}/snowflake/sequence_test.go | 3 + {pkg => internal}/snowflake/sorting.go | 3 + {pkg => internal}/snowflake/sorting_test.go | 3 + {pkg => internal}/snowflake/stage.go | 3 + {pkg => internal}/snowflake/stage_test.go | 3 + .../snowflake/storage_integration.go | 3 + .../snowflake/storage_integration_test.go | 5 +- .../system_generate_scim_access_token.go | 3 + .../system_generate_scim_access_token_test.go | 3 + .../system_get_aws_sns_iam_policy.go | 3 + .../system_get_aws_sns_iam_policy_test.go | 3 + .../system_get_privatelink_config.go | 3 + .../system_get_privatelink_config_test.go | 3 + .../system_get_snowflake_platform_info.go | 3 + ...system_get_snowflake_platform_info_test.go | 3 + {pkg => internal}/snowflake/table.go | 5 +- .../snowflake/table_constraint.go | 3 + {pkg => internal}/snowflake/tag.go | 5 +- .../snowflake/tag_association.go | 5 +- .../snowflake/tag_association_test.go | 3 + {pkg => internal}/snowflake/tag_test.go | 3 + {pkg => internal}/snowflake/user.go | 5 +- .../snowflake/user_ownership_grant.go | 3 + .../snowflake/user_ownership_grant_test.go | 5 +- {pkg => internal}/snowflake/user_test.go | 5 +- {pkg => internal}/snowflake/view.go | 3 + {pkg => internal}/snowflake/view_test.go | 3 + {pkg => internal}/testhelpers/fixtures.go | 3 + {pkg => internal}/testhelpers/helpers.go | 3 + {pkg => internal}/validation/validation.go | 5 +- .../validation/validation_test.go | 3 + main.go | 5 +- tools/go.mod | 253 ++++ tools/go.sum | 1332 +++++++++++++++++ tools/tools.go | 16 +- 633 files changed, 5734 insertions(+), 1567 deletions(-) create mode 100644 .copywrite.hcl create mode 100644 .github/ISSUE_TEMPLATE/documentation.md delete mode 100644 .github/workflows/codeql-analysis.yml create mode 100644 .github/workflows/codeql.yml create mode 100644 .github/workflows/generate.yml delete mode 100644 .github/workflows/go-fmt.yml create mode 100644 .github/workflows/golanglint-ci.yml create mode 100644 .github/workflows/goreleaser.yml delete mode 100644 .github/workflows/integration.yml delete mode 100644 .github/workflows/ok-to-test.yml create mode 100644 .github/workflows/pull_request.yml create mode 100644 .github/workflows/release-please.yml delete mode 100644 .github/workflows/release.yml delete mode 100644 .github/workflows/team-slack-bot.yml create mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/tfproviderlint.yml rename .github/workflows/{titleLint.yml => title-lint.yml} (100%) delete mode 100644 .github/workflows/unit.yml delete mode 100644 .goreleaser.prerelease.yml delete mode 100644 .reviewdog.yml create mode 100644 GNUmakefile delete mode 100644 Makefile delete mode 100644 codecov.yml delete mode 100644 download.sh rename {pkg => internal}/acceptance/testing.go (89%) rename {pkg => internal}/datasources/accounts.go (97%) rename {pkg => internal}/datasources/accounts_acceptance_test.go (90%) rename {pkg => internal}/datasources/alerts.go (95%) rename {pkg => internal}/datasources/current_account.go (91%) rename {pkg => internal}/datasources/current_account_acceptance_test.go (91%) rename {pkg => internal}/datasources/current_role.go (86%) rename {pkg => internal}/datasources/current_role_acceptance_test.go (88%) rename {pkg => internal}/datasources/database.go (93%) rename {pkg => internal}/datasources/database_acceptance_test.go (95%) rename {pkg => internal}/datasources/database_roles.go (94%) rename {pkg => internal}/datasources/database_roles_acceptance_test.go (97%) rename {pkg => internal}/datasources/databases.go (96%) rename {pkg => internal}/datasources/databases_acceptance_test.go (98%) rename {pkg => internal}/datasources/dynamic_tables.go (98%) rename {pkg => internal}/datasources/dynamic_tables_acceptance_test.go (95%) rename {pkg => internal}/datasources/external_functions.go (94%) rename {pkg => internal}/datasources/external_functions_acceptance_test.go (97%) rename {pkg => internal}/datasources/external_tables.go (94%) rename {pkg => internal}/datasources/external_tables_acceptance_test.go (97%) rename {pkg => internal}/datasources/failover_groups.go (97%) rename {pkg => internal}/datasources/failover_groups_acceptance_test.go (96%) rename {pkg => internal}/datasources/file_formats.go (94%) rename {pkg => internal}/datasources/file_formats_acceptance_test.go (98%) rename {pkg => internal}/datasources/functions.go (94%) rename {pkg => internal}/datasources/functions_acceptance_test.go (96%) rename {pkg => internal}/datasources/grants.go (98%) rename {pkg => internal}/datasources/grants_acceptance_test.go (89%) rename {pkg => internal}/datasources/helpers_test.go (62%) rename {pkg => internal}/datasources/masking_policies.go (91%) rename {pkg => internal}/datasources/masking_policies_acceptance_test.go (97%) rename {pkg => internal}/datasources/materialized_views.go (93%) rename {pkg => internal}/datasources/materialized_views_acceptance_test.go (97%) rename {pkg => internal}/datasources/parameters.go (97%) rename {pkg => internal}/datasources/parameters_acceptance_test.go (97%) rename {pkg => internal}/datasources/pipes.go (94%) rename {pkg => internal}/datasources/pipes_acceptance_test.go (97%) rename {pkg => internal}/datasources/procedures.go (95%) rename {pkg => internal}/datasources/procedures_acceptance_test.go (97%) rename {pkg => internal}/datasources/resource_monitors.go (93%) rename {pkg => internal}/datasources/resource_monitors_acceptance_test.go (94%) rename {pkg => internal}/datasources/role.go (89%) rename {pkg => internal}/datasources/role_acceptance_test.go (94%) rename {pkg => internal}/datasources/roles.go (93%) rename {pkg => internal}/datasources/roles_acceptance_test.go (96%) rename {pkg => internal}/datasources/row_access_policies.go (94%) rename {pkg => internal}/datasources/row_access_policies_acceptance_test.go (97%) rename {pkg => internal}/datasources/schemas.go (92%) rename {pkg => internal}/datasources/schemas_acceptance_test.go (95%) rename {pkg => internal}/datasources/sequences.go (93%) rename {pkg => internal}/datasources/sequences_acceptance_test.go (96%) rename {pkg => internal}/datasources/shares.go (94%) rename {pkg => internal}/datasources/shares_acceptance_test.go (96%) rename {pkg => internal}/datasources/stages.go (94%) rename {pkg => internal}/datasources/stages_acceptance_test.go (96%) rename {pkg => internal}/datasources/storage_integrations.go (94%) rename {pkg => internal}/datasources/storage_integrations_acceptance_test.go (94%) rename {pkg => internal}/datasources/streams.go (93%) rename {pkg => internal}/datasources/streams_acceptance_test.go (97%) rename {pkg => internal}/datasources/system_generate_scim_access_token.go (91%) rename {pkg => internal}/datasources/system_generate_scim_access_token_acceptance_test.go (96%) rename {pkg => internal}/datasources/system_get_aws_sns_iam_policy.go (90%) rename {pkg => internal}/datasources/system_get_aws_sns_iam_policy_acceptance_test.go (92%) rename {pkg => internal}/datasources/system_get_privatelink_config.go (96%) rename {pkg => internal}/datasources/system_get_privatelink_config_acceptance_test.go (95%) rename {pkg => internal}/datasources/system_get_snowflake_platform_info.go (94%) rename {pkg => internal}/datasources/system_get_snowflake_platform_info_acceptance_test.go (92%) rename {pkg => internal}/datasources/tables.go (93%) rename {pkg => internal}/datasources/tables_acceptance_test.go (97%) rename {pkg => internal}/datasources/tasks.go (94%) rename {pkg => internal}/datasources/tasks_acceptance_test.go (97%) rename {pkg => internal}/datasources/testdata/TestAcc_DynamicTables_complete/1/test.tf (92%) rename {pkg/resources/testdata/TestAcc_DynamicTable_basic/3 => internal/datasources/testdata/TestAcc_DynamicTables_complete/1}/variables.tf (82%) rename {pkg => internal}/datasources/users.go (94%) rename {pkg => internal}/datasources/users_acceptance_test.go (95%) rename {pkg => internal}/datasources/views.go (93%) rename {pkg => internal}/datasources/views_acceptance_test.go (96%) rename {pkg => internal}/datasources/warehouses.go (90%) rename {pkg => internal}/datasources/warehouses_acceptance_test.go (94%) rename {pkg => internal}/helpers/helpers.go (97%) rename {pkg => internal}/helpers/helpers_test.go (97%) rename {pkg => internal}/helpers/random.go (87%) rename {pkg => internal}/provider/provider.go (99%) rename {pkg => internal}/provider/provider_helpers.go (98%) rename {pkg => internal}/provider/provider_test.go (82%) rename {pkg => internal}/resources/account.go (98%) rename {pkg => internal}/resources/account_acceptance_test.go (95%) rename {pkg => internal}/resources/account_grant.go (96%) rename {pkg => internal}/resources/account_grant_acceptance_test.go (95%) rename {pkg => internal}/resources/account_grant_test.go (92%) rename {pkg => internal}/resources/account_parameter.go (95%) rename {pkg => internal}/resources/account_parameter_acceptance_test.go (93%) rename {pkg => internal}/resources/account_password_policy_attachment.go (92%) rename {pkg => internal}/resources/account_password_policy_attachment_acceptance_test.go (91%) rename {pkg => internal}/resources/alert.go (98%) rename {pkg => internal}/resources/alert_acceptance_test.go (98%) rename {pkg => internal}/resources/api_integration.go (98%) rename {pkg => internal}/resources/api_integration_acceptance_test.go (96%) rename {pkg => internal}/resources/api_integration_test.go (94%) rename {pkg => internal}/resources/database.go (98%) rename {pkg => internal}/resources/database_acceptance_test.go (95%) rename {pkg => internal}/resources/database_grant.go (96%) rename {pkg => internal}/resources/database_grant_acceptance_test.go (96%) rename {pkg => internal}/resources/database_grant_test.go (91%) rename {pkg => internal}/resources/database_role.go (94%) rename {pkg => internal}/resources/database_role_acceptance_test.go (91%) rename {pkg => internal}/resources/dynamic_table.go (97%) rename {pkg => internal}/resources/dynamic_table_acceptance_test.go (95%) rename {pkg => internal}/resources/dynamic_table_test.go (82%) rename {pkg => internal}/resources/email_notification_integration.go (96%) rename {pkg => internal}/resources/email_notification_integration_acceptance_test.go (91%) rename {pkg => internal}/resources/external_function.go (99%) rename {pkg => internal}/resources/external_function_acceptance_test.go (96%) rename {pkg => internal}/resources/external_function_test.go (96%) rename {pkg => internal}/resources/external_oauth_integration.go (99%) rename {pkg => internal}/resources/external_oauth_integration_acceptance_test.go (98%) rename {pkg => internal}/resources/external_stage_acceptance_test.go (89%) rename {pkg => internal}/resources/external_table.go (98%) rename {pkg => internal}/resources/external_table_acceptance_test.go (94%) rename {pkg => internal}/resources/external_table_grant.go (97%) rename {pkg => internal}/resources/external_table_grant_acceptance_test.go (96%) rename {pkg => internal}/resources/external_table_grant_test.go (95%) rename {pkg => internal}/resources/external_table_test.go (90%) rename {pkg => internal}/resources/failover_group.go (99%) rename {pkg => internal}/resources/failover_group_acceptance_test.go (98%) rename {pkg => internal}/resources/failover_group_grant.go (95%) rename {pkg => internal}/resources/failover_group_grant_acceptance_test.go (93%) rename {pkg => internal}/resources/file_format.go (99%) rename {pkg => internal}/resources/file_format_acceptance_test.go (99%) rename {pkg => internal}/resources/file_format_grant.go (97%) rename {pkg => internal}/resources/file_format_grant_acceptance_test.go (97%) rename {pkg => internal}/resources/file_format_grant_test.go (94%) rename {pkg => internal}/resources/function.go (99%) rename {pkg => internal}/resources/function_acceptance_test.go (97%) rename {pkg => internal}/resources/function_grant.go (97%) rename {pkg => internal}/resources/function_grant_acceptance_test.go (96%) rename {pkg => internal}/resources/function_test.go (94%) rename {pkg => internal}/resources/grant_helpers.go (98%) rename {pkg => internal}/resources/grant_privileges_to_role.go (99%) rename {pkg => internal}/resources/grant_privileges_to_role_acceptance_test.go (99%) rename {pkg => internal}/resources/helper_expansion.go (97%) rename {pkg => internal}/resources/helper_expansion_internal_test.go (88%) rename {pkg => internal}/resources/helpers.go (94%) rename {pkg => internal}/resources/helpers_test.go (98%) rename {pkg => internal}/resources/integration_grant.go (95%) rename {pkg => internal}/resources/integration_grant_test.go (88%) rename {pkg => internal}/resources/internal_stage_acceptance_test.go (89%) rename {pkg => internal}/resources/managed_account.go (96%) rename {pkg => internal}/resources/managed_account_acceptance_test.go (93%) rename {pkg => internal}/resources/managed_account_test.go (83%) rename {pkg => internal}/resources/masking_policy.go (97%) rename {pkg => internal}/resources/masking_policy_acceptance_test.go (96%) rename {pkg => internal}/resources/masking_policy_grant.go (96%) rename {pkg => internal}/resources/masking_policy_grant_acceptance_test.go (95%) rename {pkg => internal}/resources/masking_policy_grant_test.go (89%) rename {pkg => internal}/resources/materialized_view.go (98%) rename {pkg => internal}/resources/materialized_view_acceptance_test.go (96%) rename {pkg => internal}/resources/materialized_view_grant.go (97%) rename {pkg => internal}/resources/materialized_view_grant_acceptance_test.go (96%) rename {pkg => internal}/resources/materialized_view_grant_test.go (96%) rename {pkg => internal}/resources/materialized_view_test.go (92%) rename {pkg => internal}/resources/network_policy.go (98%) rename {pkg => internal}/resources/network_policy_acceptance_test.go (94%) rename {pkg => internal}/resources/network_policy_attachment.go (98%) rename {pkg => internal}/resources/network_policy_attachment_acceptance_test.go (95%) rename {pkg => internal}/resources/network_policy_attachment_test.go (89%) rename {pkg => internal}/resources/notification_integration.go (98%) rename {pkg => internal}/resources/notification_integration_acceptance_test.go (97%) rename {pkg => internal}/resources/notification_integration_test.go (96%) rename {pkg => internal}/resources/oauth_integration.go (98%) rename {pkg => internal}/resources/oauth_integration_acceptance_test.go (96%) rename {pkg => internal}/resources/oauth_integration_test.go (89%) rename {pkg => internal}/resources/object_parameter.go (97%) rename {pkg => internal}/resources/object_parameter_acceptance_test.go (92%) rename {pkg => internal}/resources/password_policy.go (98%) rename {pkg => internal}/resources/password_policy_acceptance_test.go (96%) rename {pkg => internal}/resources/pipe.go (97%) rename {pkg => internal}/resources/pipe_acceptance_test.go (93%) rename {pkg => internal}/resources/pipe_grant.go (96%) rename {pkg => internal}/resources/pipe_grant_acceptance_test.go (97%) rename {pkg => internal}/resources/pipe_grant_test.go (94%) rename {pkg => internal}/resources/pipe_internal_test.go (98%) rename {pkg => internal}/resources/privileges.go (98%) rename {pkg => internal}/resources/procedure.go (99%) rename {pkg => internal}/resources/procedure_acceptance_test.go (96%) rename {pkg => internal}/resources/procedure_grant.go (97%) rename {pkg => internal}/resources/procedure_grant_acceptance_test.go (95%) rename {pkg => internal}/resources/procedure_test.go (93%) rename {pkg => internal}/resources/resource.go (96%) rename {pkg => internal}/resources/resource_monitor.go (98%) rename {pkg => internal}/resources/resource_monitor_acceptance_test.go (96%) rename {pkg => internal}/resources/resource_monitor_grant.go (96%) rename {pkg => internal}/resources/resource_monitor_grant_acceptance_test.go (91%) rename {pkg => internal}/resources/resource_monitor_grant_test.go (88%) rename {pkg => internal}/resources/role.go (93%) rename {pkg => internal}/resources/role_acceptance_test.go (92%) rename {pkg => internal}/resources/role_grants.go (96%) rename {pkg => internal}/resources/role_grants_acceptance_test.go (97%) rename {pkg => internal}/resources/role_grants_internal_test.go (92%) rename {pkg => internal}/resources/role_grants_test.go (93%) rename {pkg => internal}/resources/role_ownership_grant.go (95%) rename {pkg => internal}/resources/role_ownership_grant_acceptance_test.go (91%) rename {pkg => internal}/resources/role_ownership_grant_test.go (88%) rename {pkg => internal}/resources/row_access_policy.go (98%) rename {pkg => internal}/resources/row_access_policy_acceptance_test.go (93%) rename {pkg => internal}/resources/row_access_policy_grant.go (96%) rename {pkg => internal}/resources/row_access_policy_grant_acceptance_test.go (95%) rename {pkg => internal}/resources/row_access_policy_grant_test.go (90%) rename {pkg => internal}/resources/row_access_policy_test.go (90%) rename {pkg => internal}/resources/saml_integration.go (99%) rename {pkg => internal}/resources/saml_integration_acceptance_test.go (97%) rename {pkg => internal}/resources/saml_integration_test.go (92%) rename {pkg => internal}/resources/schema.go (97%) rename {pkg => internal}/resources/schema_acceptance_test.go (95%) rename {pkg => internal}/resources/schema_grant.go (97%) rename {pkg => internal}/resources/schema_grant_acceptance_test.go (95%) rename {pkg => internal}/resources/schema_grant_test.go (94%) rename {pkg => internal}/resources/scim_integration.go (97%) rename {pkg => internal}/resources/scim_integration_acceptance_test.go (94%) rename {pkg => internal}/resources/scim_integration_test.go (89%) rename {pkg => internal}/resources/sequence.go (97%) rename {pkg => internal}/resources/sequence_acceptance_test.go (96%) rename {pkg => internal}/resources/sequence_grant.go (97%) rename {pkg => internal}/resources/sequence_grant_acceptance_test.go (95%) rename {pkg => internal}/resources/sequence_grant_test.go (94%) rename {pkg => internal}/resources/sequence_test.go (90%) rename {pkg => internal}/resources/session_parameter.go (97%) rename {pkg => internal}/resources/session_parameter_acceptance_test.go (93%) rename {pkg => internal}/resources/share.go (97%) rename {pkg => internal}/resources/share_acceptance_test.go (95%) rename {pkg => internal}/resources/stage.go (98%) rename {pkg => internal}/resources/stage_acceptance_test.go (92%) rename {pkg => internal}/resources/stage_grant.go (97%) rename {pkg => internal}/resources/stage_grant_acceptance_test.go (97%) rename {pkg => internal}/resources/stage_grant_test.go (94%) rename {pkg => internal}/resources/stage_test.go (93%) rename {pkg => internal}/resources/storage_integration.go (98%) rename {pkg => internal}/resources/storage_integration_acceptance_test.go (93%) rename {pkg => internal}/resources/storage_integration_test.go (96%) rename {pkg => internal}/resources/stream.go (97%) rename {pkg => internal}/resources/stream_acceptance_test.go (98%) rename {pkg => internal}/resources/stream_grant.go (97%) rename {pkg => internal}/resources/stream_grant_acceptance_test.go (97%) rename {pkg => internal}/resources/stream_grant_test.go (94%) rename {pkg => internal}/resources/table.go (99%) rename {pkg => internal}/resources/table_acceptance_test.go (99%) rename {pkg => internal}/resources/table_column_masking_policy_application.go (96%) rename {pkg => internal}/resources/table_column_masking_policy_application_acceptance_test.go (92%) rename {pkg => internal}/resources/table_constraint.go (98%) rename {pkg => internal}/resources/table_constraint_acceptance_test.go (95%) rename {pkg => internal}/resources/table_grant.go (97%) rename {pkg => internal}/resources/table_grant_acceptance_test.go (97%) rename {pkg => internal}/resources/table_grant_test.go (96%) rename {pkg => internal}/resources/table_internal_test.go (95%) rename {pkg => internal}/resources/tag.go (97%) rename {pkg => internal}/resources/tag_acceptance_test.go (90%) rename {pkg => internal}/resources/tag_association.go (97%) rename {pkg => internal}/resources/tag_association_acceptance_test.go (97%) rename {pkg => internal}/resources/tag_grant.go (95%) rename {pkg => internal}/resources/tag_grant_acceptance_test.go (94%) rename {pkg => internal}/resources/tag_grant_test.go (88%) rename {pkg => internal}/resources/tag_masking_policy_association.go (96%) rename {pkg => internal}/resources/tag_masking_policy_association_acceptance_test.go (92%) rename {pkg => internal}/resources/tag_test.go (90%) rename {pkg => internal}/resources/task.go (99%) rename {pkg => internal}/resources/task_acceptance_test.go (99%) rename {pkg => internal}/resources/task_grant.go (97%) rename {pkg => internal}/resources/task_grant_acceptance_test.go (98%) rename {pkg => internal}/resources/task_grant_test.go (94%) rename {pkg => internal}/resources/testdata/TestAcc_DynamicTable_basic/1/test.tf (88%) rename {pkg/resources/testdata/TestAcc_DynamicTable_basic/2 => internal/resources/testdata/TestAcc_DynamicTable_basic/1}/variables.tf (82%) rename {pkg => internal}/resources/testdata/TestAcc_DynamicTable_basic/2/test.tf (87%) rename {pkg/datasources/testdata/TestAcc_DynamicTables_complete/1 => internal/resources/testdata/TestAcc_DynamicTable_basic/2}/variables.tf (82%) rename {pkg => internal}/resources/testdata/TestAcc_DynamicTable_basic/3/test.tf (87%) rename {pkg/resources/testdata/TestAcc_DynamicTable_basic/1 => internal/resources/testdata/TestAcc_DynamicTable_basic/3}/variables.tf (82%) rename {pkg => internal}/resources/testdata/userkey1 (100%) rename {pkg => internal}/resources/testdata/userkey2 (100%) rename {pkg => internal}/resources/testdata/view_1a.sql (97%) rename {pkg => internal}/resources/testdata/view_1b.sql (97%) rename {pkg => internal}/resources/testdata/view_2a.sql (83%) rename {pkg => internal}/resources/testdata/view_2b.sql (87%) rename {pkg => internal}/resources/user.go (98%) rename {pkg => internal}/resources/user_acceptance_test.go (96%) rename {pkg => internal}/resources/user_grant.go (96%) rename {pkg => internal}/resources/user_grant_acceptance_test.go (92%) rename {pkg => internal}/resources/user_grant_test.go (84%) rename {pkg => internal}/resources/user_ownership_grant.go (95%) rename {pkg => internal}/resources/user_ownership_grant_acceptance_test.go (91%) rename {pkg => internal}/resources/user_ownership_grant_test.go (89%) rename {pkg => internal}/resources/user_public_keys.go (96%) rename {pkg => internal}/resources/user_public_keys_acceptance_test.go (90%) rename {pkg => internal}/resources/view.go (98%) rename {pkg => internal}/resources/view_acceptance_test.go (97%) rename {pkg => internal}/resources/view_grant.go (97%) rename {pkg => internal}/resources/view_grant_acceptance_test.go (98%) rename {pkg => internal}/resources/view_grant_test.go (95%) rename {pkg => internal}/resources/view_test.go (92%) rename {pkg => internal}/resources/warehouse.go (98%) rename {pkg => internal}/resources/warehouse_acceptance_test.go (96%) rename {pkg => internal}/resources/warehouse_grant.go (95%) rename {pkg => internal}/resources/warehouse_grant_acceptance_test.go (93%) rename {pkg => internal}/resources/warehouse_grant_test.go (85%) rename {pkg => internal}/sdk/README.md (100%) rename {pkg => internal}/sdk/accounts.go (99%) rename {pkg => internal}/sdk/accounts_test.go (99%) rename {pkg => internal}/sdk/alerts.go (99%) rename {pkg => internal}/sdk/alerts_test.go (97%) rename {pkg => internal}/sdk/assertions_test.go (95%) rename {pkg => internal}/sdk/client.go (98%) rename {pkg => internal}/sdk/client_integration_test.go (95%) rename {pkg => internal}/sdk/comments.go (97%) rename {pkg => internal}/sdk/comments_test.go (93%) rename {pkg => internal}/sdk/common_types.go (98%) rename {pkg => internal}/sdk/common_types_test.go (97%) rename {pkg => internal}/sdk/config.go (97%) rename {pkg => internal}/sdk/config_test.go (98%) rename {pkg => internal}/sdk/context_functions.go (98%) rename {pkg => internal}/sdk/conversion_functions.go (94%) rename {pkg => internal}/sdk/data_types.go (97%) rename {pkg => internal}/sdk/data_types_test.go (97%) rename {pkg => internal}/sdk/database_role.go (99%) rename {pkg => internal}/sdk/database_role_dto.go (96%) rename {pkg => internal}/sdk/database_role_dto_builders.go (98%) rename {pkg => internal}/sdk/database_role_impl.go (96%) rename {pkg => internal}/sdk/database_role_test.go (98%) rename {pkg => internal}/sdk/database_role_validations.go (98%) rename {pkg => internal}/sdk/databases.go (99%) rename {pkg => internal}/sdk/databases_test.go (99%) rename {pkg => internal}/sdk/dto-builder-generator/README.md (100%) rename {pkg => internal}/sdk/dto-builder-generator/example/pipes_dto.go (88%) rename {pkg => internal}/sdk/dto-builder-generator/example/pipes_dto_generated.go (98%) rename {pkg => internal}/sdk/dto-builder-generator/main.go (98%) rename {pkg => internal}/sdk/dynamic_table.go (99%) rename {pkg => internal}/sdk/dynamic_table_dto.go (94%) rename {pkg => internal}/sdk/dynamic_table_dto_builders.go (97%) rename {pkg => internal}/sdk/dynamic_table_impl.go (94%) rename {pkg => internal}/sdk/dynamic_table_test.go (98%) rename {pkg => internal}/sdk/dynamic_table_validations.go (97%) rename {pkg => internal}/sdk/errors.go (95%) rename {pkg => internal}/sdk/external_tables.go (99%) rename {pkg => internal}/sdk/external_tables_dto.go (99%) rename {pkg => internal}/sdk/external_tables_dto_builders_gen.go (99%) rename {pkg => internal}/sdk/external_tables_impl.go (94%) rename {pkg => internal}/sdk/external_tables_test.go (99%) rename {pkg => internal}/sdk/external_tables_validations.go (99%) rename {pkg => internal}/sdk/failover_groups.go (99%) rename {pkg => internal}/sdk/failover_groups_test.go (98%) rename {pkg => internal}/sdk/file_format.go (99%) rename {pkg => internal}/sdk/file_format_test.go (99%) rename {pkg => internal}/sdk/grants.go (99%) rename {pkg => internal}/sdk/grants_impl.go (97%) rename {pkg => internal}/sdk/grants_test.go (99%) rename {pkg => internal}/sdk/grants_validations.go (99%) rename {pkg => internal}/sdk/helper_test.go (91%) rename {pkg => internal}/sdk/helpers_proposal.go (96%) rename {pkg => internal}/sdk/identifier_helpers.go (99%) rename {pkg => internal}/sdk/identifier_helpers_test.go (97%) rename {pkg => internal}/sdk/integration_test_imports.go (91%) rename {pkg => internal}/sdk/internal/collections/collection_helpers.go (81%) rename {pkg => internal}/sdk/internal/random/random_helpers.go (91%) rename {pkg => internal}/sdk/masking_policy.go (99%) rename {pkg => internal}/sdk/masking_policy_test.go (97%) rename {pkg => internal}/sdk/network_policies_def.go (97%) rename {pkg => internal}/sdk/network_policies_dto_builders_gen.go (99%) rename {pkg => internal}/sdk/network_policies_dto_gen.go (95%) rename {pkg => internal}/sdk/network_policies_gen.go (98%) rename {pkg => internal}/sdk/network_policies_gen_test.go (98%) rename {pkg => internal}/sdk/network_policies_impl_gen.go (96%) rename {pkg => internal}/sdk/network_policies_validations_gen.go (96%) rename {pkg => internal}/sdk/object_types.go (99%) rename {pkg => internal}/sdk/parameters.go (99%) rename {pkg => internal}/sdk/parameters_impl.go (99%) rename {pkg => internal}/sdk/parameters_test.go (89%) rename {pkg => internal}/sdk/password_policy.go (99%) rename {pkg => internal}/sdk/password_policy_test.go (97%) rename {pkg => internal}/sdk/pipes.go (98%) rename {pkg => internal}/sdk/pipes_impl.go (91%) rename {pkg => internal}/sdk/pipes_test.go (99%) rename {pkg => internal}/sdk/pipes_validations.go (97%) rename {pkg => internal}/sdk/poc/README.md (100%) rename {pkg => internal}/sdk/poc/example/database_role_def.go (93%) rename {pkg => internal}/sdk/poc/example/database_role_dto_builders_gen.go (99%) rename {pkg => internal}/sdk/poc/example/database_role_dto_gen.go (93%) rename {pkg => internal}/sdk/poc/example/database_role_gen.go (96%) rename {pkg => internal}/sdk/poc/example/database_role_gen_integration_test.go (78%) rename {pkg => internal}/sdk/poc/example/database_role_gen_test.go (97%) rename {pkg => internal}/sdk/poc/example/database_role_impl_gen.go (95%) rename {pkg => internal}/sdk/poc/example/database_role_validations_gen.go (95%) rename {pkg => internal}/sdk/poc/example/sdk_definitions.go (97%) rename {pkg => internal}/sdk/poc/generator/db_struct.go (90%) rename {pkg => internal}/sdk/poc/generator/field.go (98%) rename {pkg => internal}/sdk/poc/generator/field_transformers.go (98%) rename {pkg => internal}/sdk/poc/generator/file_util.go (87%) rename {pkg => internal}/sdk/poc/generator/identifier_builders.go (92%) rename {pkg => internal}/sdk/poc/generator/interface.go (93%) rename {pkg => internal}/sdk/poc/generator/keyword_builders.go (97%) rename {pkg => internal}/sdk/poc/generator/kind.go (85%) rename {pkg => internal}/sdk/poc/generator/operation.go (98%) rename {pkg => internal}/sdk/poc/generator/parameter_builders.go (97%) rename {pkg => internal}/sdk/poc/generator/plain_struct.go (90%) rename {pkg => internal}/sdk/poc/generator/query_struct.go (96%) rename {pkg => internal}/sdk/poc/generator/static_builders.go (89%) rename {pkg => internal}/sdk/poc/generator/tag_builder.go (96%) rename {pkg => internal}/sdk/poc/generator/template_executors.go (97%) rename {pkg => internal}/sdk/poc/generator/templates.go (97%) rename {pkg => internal}/sdk/poc/generator/util.go (95%) rename {pkg => internal}/sdk/poc/generator/validation.go (98%) rename {pkg => internal}/sdk/poc/main.go (90%) rename {pkg => internal}/sdk/privileges.go (99%) rename {pkg => internal}/sdk/random.go (93%) rename {pkg => internal}/sdk/replication_functions.go (98%) rename {pkg => internal}/sdk/replication_groups.go (71%) rename {pkg => internal}/sdk/resource_monitor_internal_test.go (89%) rename {pkg => internal}/sdk/resource_monitors.go (99%) rename {pkg => internal}/sdk/resource_monitors_test.go (98%) rename {pkg => internal}/sdk/roles.go (98%) rename {pkg => internal}/sdk/roles_dto.go (98%) rename {pkg => internal}/sdk/roles_impl.go (91%) rename {pkg => internal}/sdk/roles_test.go (99%) rename {pkg => internal}/sdk/roles_validations.go (97%) rename {pkg => internal}/sdk/schemas.go (99%) rename {pkg => internal}/sdk/schemas_test.go (99%) rename {pkg => internal}/sdk/session_policies_def.go (97%) rename {pkg => internal}/sdk/session_policies_dto_builders_gen.go (99%) rename {pkg => internal}/sdk/session_policies_dto_gen.go (95%) rename {pkg => internal}/sdk/session_policies_gen.go (98%) rename {pkg => internal}/sdk/session_policies_gen_test.go (99%) rename {pkg => internal}/sdk/session_policies_impl_gen.go (96%) rename {pkg => internal}/sdk/session_policies_validations_gen.go (97%) rename {pkg => internal}/sdk/sessions.go (98%) rename {pkg => internal}/sdk/shares.go (99%) rename {pkg => internal}/sdk/shares_test.go (96%) rename {pkg => internal}/sdk/sql_builder.go (99%) rename {pkg => internal}/sdk/sql_builder_test.go (99%) rename {pkg => internal}/sdk/stages.go (84%) rename {pkg => internal}/sdk/streams_def.go (98%) rename {pkg => internal}/sdk/streams_dto_builders_gen.go (100%) rename {pkg => internal}/sdk/streams_dto_gen.go (97%) rename {pkg => internal}/sdk/streams_gen.go (99%) rename {pkg => internal}/sdk/streams_gen_test.go (99%) rename {pkg => internal}/sdk/streams_impl_gen.go (97%) rename {pkg => internal}/sdk/streams_validations_gen.go (98%) rename {pkg => internal}/sdk/sweepers.go (98%) rename {pkg => internal}/sdk/sweepers_test.go (93%) rename {pkg => internal}/sdk/system_functions.go (91%) rename {pkg => internal}/sdk/tables.go (84%) rename {pkg => internal}/sdk/tags.go (98%) rename {pkg => internal}/sdk/tags_dto.go (94%) rename {pkg => internal}/sdk/tags_dto_builders.go (98%) rename {pkg => internal}/sdk/tags_impl.go (92%) rename {pkg => internal}/sdk/tags_test.go (98%) rename {pkg => internal}/sdk/tags_validations.go (98%) rename {pkg => internal}/sdk/tasks_def.go (98%) rename {pkg => internal}/sdk/tasks_dto_builders_gen.go (99%) rename {pkg => internal}/sdk/tasks_dto_gen.go (98%) rename {pkg => internal}/sdk/tasks_gen.go (99%) rename {pkg => internal}/sdk/tasks_gen_test.go (99%) rename {pkg => internal}/sdk/tasks_impl_gen.go (99%) rename {pkg => internal}/sdk/tasks_test.go (98%) rename {pkg => internal}/sdk/tasks_validations_gen.go (98%) rename {pkg => internal}/sdk/testint/accounts_integration_test.go (97%) rename {pkg => internal}/sdk/testint/alerts_integration_test.go (98%) rename {pkg => internal}/sdk/testint/comments_integration_test.go (82%) rename {pkg => internal}/sdk/testint/context_functions_integration_test.go (97%) rename {pkg => internal}/sdk/testint/conversion_functions_integration_test.go (94%) rename {pkg => internal}/sdk/testint/database_role_integration_test.go (96%) rename {pkg => internal}/sdk/testint/databases_integration_test.go (98%) rename {pkg => internal}/sdk/testint/dynamic_table_integration_test.go (96%) rename {pkg => internal}/sdk/testint/external_tables_integration_test.go (97%) rename {pkg => internal}/sdk/testint/failover_groups_integration_test.go (99%) rename {pkg => internal}/sdk/testint/file_format_integration_test.go (98%) rename {pkg => internal}/sdk/testint/grants_integration_test.go (98%) rename {pkg => internal}/sdk/testint/helpers_test.go (99%) rename {pkg => internal}/sdk/testint/masking_policy_integration_test.go (98%) rename {pkg => internal}/sdk/testint/network_policies_gen_integration_test.go (96%) rename {pkg => internal}/sdk/testint/parsers.go (81%) rename {pkg => internal}/sdk/testint/password_policy_integration_test.go (98%) rename {pkg => internal}/sdk/testint/pipes_integration_test.go (98%) rename {pkg => internal}/sdk/testint/replication_functions_integration_test.go (89%) rename {pkg => internal}/sdk/testint/resource_monitors_integration_test.go (97%) rename {pkg => internal}/sdk/testint/roles_integration_test.go (97%) rename {pkg => internal}/sdk/testint/schemas_integration_test.go (98%) rename {pkg => internal}/sdk/testint/session_policies_gen_integration_test.go (96%) rename {pkg => internal}/sdk/testint/sessions_integration_test.go (97%) rename {pkg => internal}/sdk/testint/setup_integration_test.go (94%) rename {pkg => internal}/sdk/testint/shares_integration_test.go (98%) rename {pkg => internal}/sdk/testint/streams_gen_integration_test.go (97%) rename {pkg => internal}/sdk/testint/system_functions_integration_test.go (85%) rename {pkg => internal}/sdk/testint/tags_integration_test.go (96%) rename {pkg => internal}/sdk/testint/tasks_gen_integration_test.go (98%) rename {pkg => internal}/sdk/testint/users_integration_test.go (96%) rename {pkg => internal}/sdk/testint/warehouses_integration_test.go (99%) rename {pkg => internal}/sdk/type_helpers.go (93%) rename {pkg => internal}/sdk/users.go (99%) rename {pkg => internal}/sdk/users_test.go (98%) rename {pkg => internal}/sdk/validation.go (98%) rename {pkg => internal}/sdk/validation_test.go (85%) rename {pkg => internal}/sdk/validations.go (96%) rename {pkg => internal}/sdk/validations_test.go (97%) rename {pkg => internal}/sdk/warehouses.go (99%) rename {pkg => internal}/sdk/warehouses_test.go (99%) rename {pkg => internal}/snowflake/all_grant.go (99%) rename {pkg => internal}/snowflake/all_grant_test.go (80%) rename {pkg => internal}/snowflake/api_integration.go (94%) rename {pkg => internal}/snowflake/api_integration_test.go (87%) rename {pkg => internal}/snowflake/builder.go (99%) rename {pkg => internal}/snowflake/current_account.go (97%) rename {pkg => internal}/snowflake/current_account_test.go (92%) rename {pkg => internal}/snowflake/current_role.go (88%) rename {pkg => internal}/snowflake/current_role_test.go (87%) rename {pkg => internal}/snowflake/email_notification_integration.go (94%) rename {pkg => internal}/snowflake/errors.go (88%) rename {pkg => internal}/snowflake/escaping.go (95%) rename {pkg => internal}/snowflake/escaping_test.go (90%) rename {pkg => internal}/snowflake/exec.go (95%) rename {pkg => internal}/snowflake/external_function.go (99%) rename {pkg => internal}/snowflake/external_function_test.go (96%) rename {pkg => internal}/snowflake/external_oauth_integration.go (98%) rename {pkg => internal}/snowflake/external_oauth_integration_test.go (95%) rename {pkg => internal}/snowflake/external_table.go (99%) rename {pkg => internal}/snowflake/external_table_test.go (96%) rename {pkg => internal}/snowflake/function.go (99%) rename {pkg => internal}/snowflake/function_test.go (99%) rename {pkg => internal}/snowflake/future_grant.go (99%) rename {pkg => internal}/snowflake/future_grant_test.go (98%) rename {pkg => internal}/snowflake/generic.go (99%) rename {pkg => internal}/snowflake/generic_test.go (88%) rename {pkg => internal}/snowflake/grant.go (99%) rename {pkg => internal}/snowflake/grant_test.go (99%) rename {pkg => internal}/snowflake/identifier.go (96%) rename {pkg => internal}/snowflake/managed_account.go (94%) rename {pkg => internal}/snowflake/managed_account_test.go (78%) rename {pkg => internal}/snowflake/manager.go (67%) rename {pkg => internal}/snowflake/masking_policy.go (95%) rename {pkg => internal}/snowflake/masking_policy_application.go (96%) rename {pkg => internal}/snowflake/masking_policy_application_test.go (92%) rename {pkg => internal}/snowflake/materialized_view.go (99%) rename {pkg => internal}/snowflake/network_policy.go (97%) rename {pkg => internal}/snowflake/network_policy_test.go (91%) rename {pkg => internal}/snowflake/notification_integration.go (94%) rename {pkg => internal}/snowflake/notification_integration_test.go (93%) rename {pkg => internal}/snowflake/oauth_integration.go (96%) rename {pkg => internal}/snowflake/oauth_integration_test.go (83%) rename {pkg => internal}/snowflake/parser.go (98%) rename {pkg => internal}/snowflake/parser_internal_test.go (51%) rename {pkg => internal}/snowflake/parser_test.go (99%) rename {pkg => internal}/snowflake/procedure.go (99%) rename {pkg => internal}/snowflake/procedure_test.go (98%) rename {pkg => internal}/snowflake/replication.go (96%) rename {pkg => internal}/snowflake/resource_monitor.go (99%) rename {pkg => internal}/snowflake/resource_monitor_test.go (93%) rename {pkg => internal}/snowflake/role.go (98%) rename {pkg => internal}/snowflake/role_grant.go (93%) rename {pkg => internal}/snowflake/role_grant_test.go (78%) rename {pkg => internal}/snowflake/role_ownership_grant.go (96%) rename {pkg => internal}/snowflake/role_ownership_grant_test.go (85%) rename {pkg => internal}/snowflake/row_access_policy.go (98%) rename {pkg => internal}/snowflake/row_access_policy_test.go (94%) rename {pkg => internal}/snowflake/saml_integration.go (94%) rename {pkg => internal}/snowflake/saml_integration_test.go (97%) rename {pkg => internal}/snowflake/scim_integration.go (94%) rename {pkg => internal}/snowflake/scim_integration_test.go (88%) rename {pkg => internal}/snowflake/sequence.go (97%) rename {pkg => internal}/snowflake/sequence_test.go (94%) rename {pkg => internal}/snowflake/sorting.go (95%) rename {pkg => internal}/snowflake/sorting_test.go (90%) rename {pkg => internal}/snowflake/stage.go (99%) rename {pkg => internal}/snowflake/stage_test.go (99%) rename {pkg => internal}/snowflake/storage_integration.go (96%) rename {pkg => internal}/snowflake/storage_integration_test.go (84%) rename {pkg => internal}/snowflake/system_generate_scim_access_token.go (94%) rename {pkg => internal}/snowflake/system_generate_scim_access_token_test.go (83%) rename {pkg => internal}/snowflake/system_get_aws_sns_iam_policy.go (94%) rename {pkg => internal}/snowflake/system_get_aws_sns_iam_policy_test.go (84%) rename {pkg => internal}/snowflake/system_get_privatelink_config.go (97%) rename {pkg => internal}/snowflake/system_get_privatelink_config_test.go (98%) rename {pkg => internal}/snowflake/system_get_snowflake_platform_info.go (94%) rename {pkg => internal}/snowflake/system_get_snowflake_platform_info_test.go (93%) rename {pkg => internal}/snowflake/table.go (99%) rename {pkg => internal}/snowflake/table_constraint.go (99%) rename {pkg => internal}/snowflake/tag.go (98%) rename {pkg => internal}/snowflake/tag_association.go (97%) rename {pkg => internal}/snowflake/tag_association_test.go (98%) rename {pkg => internal}/snowflake/tag_test.go (97%) rename {pkg => internal}/snowflake/user.go (95%) rename {pkg => internal}/snowflake/user_ownership_grant.go (97%) rename {pkg => internal}/snowflake/user_ownership_grant_test.go (85%) rename {pkg => internal}/snowflake/user_test.go (84%) rename {pkg => internal}/snowflake/view.go (99%) rename {pkg => internal}/snowflake/view_test.go (97%) rename {pkg => internal}/testhelpers/fixtures.go (83%) rename {pkg => internal}/testhelpers/helpers.go (89%) rename {pkg => internal}/validation/validation.go (97%) rename {pkg => internal}/validation/validation_test.go (95%) create mode 100644 tools/go.mod create mode 100644 tools/go.sum diff --git a/.copywrite.hcl b/.copywrite.hcl new file mode 100644 index 0000000000..5fa4ba9274 --- /dev/null +++ b/.copywrite.hcl @@ -0,0 +1,20 @@ +schema_version = 1 + +project { + license = "MIT" + copyright_holder = "Snowflake, Inc." + copyright_year = 2022 + header_ignore = [ + # examples used within documentation (prose) + "examples/**", + + # GitHub issue template configuration + ".github/ISSUE_TEMPLATE/*.yml", + + # golangci-lint tooling configuration + ".golangci.yml", + + # GoReleaser tooling configuration + ".goreleaser.yml", + ] +} diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 5a91344267..a677910fd8 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,32 +1,77 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: bug -assignees: '' +name: Bug Report +description: Something is incorrect or not working as expected. +labels: ["bug"] +body: + - type: markdown + attributes: + value: | + Thank you for taking the time to fill out this bug report! Please note that this issue tracker is only used for bug reports and feature requests. Other issues will be closed. ---- - -**Provider Version** - -The provider version you are using. - -**Terraform Version** - -The version of Terraform you were using when the bug was encountered. - -**Describe the bug** - -A clear and concise description of what the bug is. - -**Expected behavior** - -A clear and concise description of what you expected to happen. - -**Code samples and commands** - -Please add code examples and commands that were run to cause the problem. - -**Additional context** - -Add any other context about the problem here. + If you have a configuration, workflow, or other question, please go back to the issue chooser and select one of the question links. + - type: textarea + id: versions + attributes: + label: Terraform CLI and Provider Versions + description: What versions of Terraform CLI and the provider? + placeholder: Output of `terraform version` from configuration directory + validations: + required: true + - type: textarea + id: terraform-configuration + attributes: + label: Terraform Configuration + description: Please copy and paste any relevant Terraform configuration. This will be automatically formatted into code, so no need for backticks. + render: terraform + validations: + required: true + - type: textarea + id: expected-behavior + attributes: + label: Expected Behavior + description: What did you expect to happen? + placeholder: Description of what should have happened. + validations: + required: true + - type: textarea + id: actual-behavior + attributes: + label: Actual Behavior + description: What actually happened? + placeholder: Description of what actually happened. + validations: + required: true + - type: textarea + id: reproduction-steps + attributes: + label: Steps to Reproduce + description: List of steps to reproduce the issue. + value: | + 1. `terraform apply` + validations: + required: true + - type: dropdown + id: impact + attributes: + label: How much impact is this issue causing? + description: High represents completely not able to use the provider or unexpected destruction of data/infrastructure. Medium represents unable to upgrade provider version or an issue with potential workaround. Low represents minor provider code, configuration, or documentation issues. + options: + - High + - Medium + - Low + validations: + required: true + - type: input + id: logs + attributes: + label: Logs + description: Please provide a link to a [GitHub Gist](https://gist.github.com) containing TRACE log output. [Terraform Debugging Documentation](https://www.terraform.io/internals/debugging) + placeholder: https://gist.github.com/example/12345678 + validations: + required: false + - type: textarea + id: additional-information + attributes: + label: Additional Information + description: Are there any additional details about your environment, workflow, or recent changes that might be relevant? Have you discovered a workaround? Are there links to other related issues? + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/documentation.md b/.github/ISSUE_TEMPLATE/documentation.md new file mode 100644 index 0000000000..ae2c2d3e6f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/documentation.md @@ -0,0 +1,52 @@ +name: "Report a Documentation Error" +description: "Choose this option if you've found an error in the provider documentation or contribution guides." +title: "[Docs]: " +labels: ["documentation"] +body: + - type: markdown + attributes: + value: | + # Thank you for raising a documentation issue! + + This form is meant to alert the maintainers to an issue with the provider documentation found on the [Terraform Registry](https://registry.terraform.io/providers/hashicorp/snowflake/latest) (such as resource and data source documentation, guides and examples), as well as the [contribution guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/CONTRIBUTING.md). + + Documentation edits are generally a bit less involved, so are often a great entrypoint if you've ever been interested in contributing! + + - type: input + id: registry_link + attributes: + label: Documentation Link + description: Please provide a link to the affected page on the Terraform Registry or contribution guide. + validations: + required: true + + - type: textarea + id: description + attributes: + label: Description + description: Please leave a brief description of the documentation issue. + validations: + required: true + + - type: textarea + id: references + attributes: + label: References + description: | + Where possible, please supply links to Snowflake SQL documentation, other GitHub issues (open or closed) or pull requests that give additional context. + + [Information about referencing Github Issues](https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests) + validations: + required: false + + - type: dropdown + id: will_contribute + attributes: + label: Would you like to implement a fix? + description: | + If you plan to implement a fix for this, check this box to let the maintainers and community know (you can update this later if you change your mind). If this would be your first contribution, refer to the [contribution guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/CONTRIBUTING.md) for tips on getting started. + options: + - "No" + - "Yes" + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 28e4e06a9d..11cdb5d72c 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,24 +1,52 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: '' -labels: feature-request -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** - -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** - -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** - -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** - -Add any other context or screenshots about the feature request here. +name: Feature Request +description: Something is missing or could be improved. +labels: ["feature-request"] +body: + - type: markdown + attributes: + value: | + Thank you for taking the time to fill out this feature request! Please note that this issue tracker is only used for bug reports and feature requests. Other issues will be closed. + + If you have a configuration, workflow, or other question, please go back to the issue chooser and select one of the question links. + - type: textarea + id: versions + attributes: + label: Terraform CLI and Provider Versions + description: What versions of Terraform CLI and the provider? + placeholder: Output of `terraform version` from configuration directory + validations: + required: true + - type: textarea + id: use-case + attributes: + label: Use Cases or Problem Statement + description: What use cases or problems are you trying to solve? + placeholder: Description of use cases or problems. + validations: + required: true + - type: textarea + id: proposal + attributes: + label: Proposal + description: What solutions would you prefer? + placeholder: Description of proposed solutions. + validations: + required: true + - type: dropdown + id: impact + attributes: + label: How much impact is this issue causing? + description: High represents completely not able to use the provider without this. Medium represents unable to solve a specific problem or understand something. Low represents minor provider code, configuration, or documentation issues. + options: + - High + - Medium + - Low + validations: + required: true + - type: textarea + id: additional-information + attributes: + label: Additional Information + description: Are there any additional details about your environment, workflow, or recent changes that might be relevant? Have you discovered a workaround? Are there links to other related issues? + validations: + required: false diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f29ca53667..824845527a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,9 +2,14 @@ version: 2 updates: - package-ecosystem: gomod directory: '/' + open-pull-requests-limit: 10 schedule: interval: daily + - package-ecosystem: "gomod" + directory: "/tools" open-pull-requests-limit: 10 + schedule: + interval: "daily" - package-ecosystem: 'github-actions' directory: '/' schedule: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index 0dd6831987..0000000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: 'Code scanning - action' - -on: - push: - pull_request: - schedule: - - cron: '0 2 * * *' - -jobs: - CodeQL-Build: - # CodeQL runs on ubuntu-latest and windows-latest - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - with: - # We must fetch at least the immediate parents so that if this is - # a pull request then we can checkout the head. - fetch-depth: 2 - - # If this run was triggered by a pull request event, then checkout - # the head of the pull request instead of the merge commit. - - run: git checkout HEAD^2 - if: ${{ github.event_name == 'pull_request' }} - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - # Override language selection by uncommenting this and choosing your languages - # with: - # languages: go, javascript, csharp, python, cpp, java - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - # ℹ️ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000000..97180f3f25 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,82 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "CodeQL" + +on: + push: + branches: [ "main", "master" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "main" ] + schedule: + - cron: '40 5 * * 4' + +jobs: + analyze: + name: Analyze + # Runner size impacts CodeQL analysis time. To learn more, please see: + # - https://gh.io/recommended-hardware-resources-for-running-codeql + # - https://gh.io/supported-runners-and-hardware-resources + # - https://gh.io/using-larger-runners + # Consider using larger runners for possible analysis time improvements. + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'go' ] + # CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ] + # Use only 'java-kotlin' to analyze code written in Java, Kotlin or both + # Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both + # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + + # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality + + + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + # ℹ️ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + + # If the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. + + # - run: | + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}" diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml new file mode 100644 index 0000000000..16e3f84c19 --- /dev/null +++ b/.github/workflows/generate.yml @@ -0,0 +1,27 @@ +name: generate +on: + push: + branches: + - main + pull_request: + +permissions: + contents: read + # Optional: allow read access to pull request. Use with `only-new-issues` option. + # pull-requests: read + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version-file: ./go.mod + cache: false + - run: make generate + - name: Confirm no diff + run: | + git diff --compact-summary --exit-code || \ + (echo "*** Unexpected differences after code generation. Run 'make generate' and commit."; exit 1) diff --git a/.github/workflows/go-fmt.yml b/.github/workflows/go-fmt.yml deleted file mode 100644 index fa2b21e3a6..0000000000 --- a/.github/workflows/go-fmt.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: 'Go formatting checker' - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version-file: ./go.mod - - - name: Check Go formatting - run: if [ "$(gofmt -l . | wc -l)" -gt 0 ]; then exit 1; fi - - golang-ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version-file: ./go.mod - cache: true - - - name: Install golangci-lint - run: make dev-setup - - - name: make lint-ci integration - env: - REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: make lint-ci - - - name: Run golangci-lint - run: make lint-check diff --git a/.github/workflows/golanglint-ci.yml b/.github/workflows/golanglint-ci.yml new file mode 100644 index 0000000000..89fdec4dc9 --- /dev/null +++ b/.github/workflows/golanglint-ci.yml @@ -0,0 +1,37 @@ +name: golangci-lint +on: + push: + branches: + - main + pull_request: + +permissions: + contents: read + # Optional: allow read access to pull request. Use with `only-new-issues` option. + # pull-requests: read + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version-file: ./go.mod + cache: false + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + # Require: The version of golangci-lint to use. + # When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version. + # When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit. + version: latest + + - name: Generate + run: make generate + + - name: Confirm no diff + run: | + git diff --compact-summary --exit-code || \ + (echo "*** Unexpected differences after code generation. Run 'make generate' and commit."; exit 1) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml new file mode 100644 index 0000000000..66123f6055 --- /dev/null +++ b/.github/workflows/goreleaser.yml @@ -0,0 +1,31 @@ +on: + push: + branches: + - main +name: goreleaser +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 + with: + # Allow goreleaser to access older tag information. + fetch-depth: 0 + - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 + with: + go-version-file: 'go.mod' + cache: true + - name: Import GPG key + uses: crazy-max/ghaction-import-gpg@82a020f1f7f605c65dd2449b392a52c3fcfef7ef # v6.0.0 + id: import_gpg + with: + gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.PASSPHRASE }} + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0 + with: + args: release --clean + env: + # GitHub sets the GITHUB_TOKEN secret automatically. + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml deleted file mode 100644 index fb963ebe61..0000000000 --- a/.github/workflows/integration.yml +++ /dev/null @@ -1,129 +0,0 @@ -# Run secret-dependent integration tests only after /ok-to-test approval -on: - pull_request: - repository_dispatch: - types: [ok-to-test-command] - -name: Integration tests - -jobs: - integration-trusted: - runs-on: ubuntu-latest - if: (github.event_name == 'repository_dispatch') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) - steps: - - id: debug-outputs - run: | - echo ${{ github.event_name }} - echo ${{ github.event.client_payload }} - - - id: verify-sha-input - if: github.event_name == 'repository_dispatch' - run: | - echo \"${{ github.event.client_payload.pull_request.head.sha }}\" - echo \"${{ github.event.client_payload.slash_command.args.named.sha }}\" - SHAINPUT=$(echo ${{github.event.client_payload.slash_command.args.named.sha}} | cut -c1-7) - if [ ${#SHAINPUT} -le 6 ]; then echo "error::input sha not at least 7 characters long" ; exit 1 - else echo "done" - fi - SHAHEAD=$(echo ${{github.event.client_payload.pull_request.head.sha}} | cut -c1-7) - echo ${#SHAINPUT} - echo ${#SHAHEAD} - if [ "${SHAHEAD}" != "${SHAINPUT}" ]; then echo "sha input from slash command does not equal the head sha" ; exit 1 - else echo "shas are equal" - fi - - - name: pull_request actions/checkout - if: github.event_name == 'pull_request' - uses: actions/checkout@v3 - - - name: pull_request actions/checkout - if: github.event_name == 'repository_dispatch' - uses: actions/checkout@v3 - with: - ref: 'refs/pull/${{ github.event.client_payload.pull_request.number }}/merge' - - - name: setup-go - uses: actions/setup-go@v4 - with: - go-version-file: ./go.mod - - - name: Install dependencies - run: make dev-setup - - - name: make test-acceptance integration - if: always() - env: - SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }} - SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }} - SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }} - SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }} - SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }} - SNOWFLAKE_ACCOUNT_SECOND: ${{ secrets.SNOWFLAKE_ACCOUNT_SECOND }} - SNOWFLAKE_ACCOUNT_THIRD: ${{ secrets.SNOWFLAKE_ACCOUNT_THIRD }} - run: make test-acceptance - - - name: sweepers cleanup - if: always() - env: - SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }} - SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }} - SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }} - SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }} - SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }} - run: echo y | make sweep - - - name: find comment - if: ${{ always() }} - uses: peter-evans/find-comment@v2 - id: fc - with: - issue-number: ${{ github.event.pull_request.number || github.event.client_payload.pull_request.number }} - comment-author: 'github-actions[bot]' - body-includes: Integration tests ran for - - - name: create or update comment - if: (${{ always() }}) - uses: peter-evans/create-or-update-comment@v2 - with: - issue-number: ${{ github.event.pull_request.number || github.event.client_payload.pull_request.number }} - comment-id: ${{ steps.fc.outputs.comment-id }} - body: | - Integration tests ${{ job.status }} for [${{ github.event.client_payload.slash_command.args.named.sha || github.event.pull_request.head.sha }}](https://github.com/Snowflake-Labs/terraform-provider-snowflake/actions/runs/${{ github.run_id }}) - - - name: set fork job status - uses: actions/github-script@v6 - if: ${{ always() }} - id: update-check-run - env: - number: ${{ github.event.client_payload.pull_request.number }} - job: ${{ github.job }} - # Conveniently, job.status maps to https://developer.github.com/v3/checks/runs/#update-a-check-run - conclusion: ${{ job.status }} - sha: ${{ github.event.client_payload.slash_command.args.named.sha }} - event_name: ${{ github.event_name }} - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - if (process.env.event_name !== 'repository_dispatch') { - console.log("Not repository_dispatch... nothing to do!"); - return process.env.event_name; - } - - const ref = process.env.sha; - - const { data: checks } = await github.rest.checks.listForRef({ - ...context.repo, - ref - }); - - const check = checks.check_runs.filter(c => c.name === process.env.job); - console.log(check); - - const { data: result } = await github.rest.checks.update({ - ...context.repo, - check_run_id: check[0].id, - status: 'completed', - conclusion: process.env.conclusion - }); - - return result; diff --git a/.github/workflows/ok-to-test.yml b/.github/workflows/ok-to-test.yml deleted file mode 100644 index 8b4e881dca..0000000000 --- a/.github/workflows/ok-to-test.yml +++ /dev/null @@ -1,29 +0,0 @@ -# If someone with write access comments "/ok-to-test" on a pull request, emit repository_dispatch event -name: ok-to-test - -on: - issue_comment: - types: [created] - -jobs: - ok-to-test: - runs-on: ubuntu-latest - steps: - - name: Generate token - id: generate_token - uses: chanzuckerberg/github-app-token@v1.1.4 - with: - app_id: ${{ secrets.OK_TO_TEST_APP_ID }} - private_key: ${{ secrets.OK_TO_TEST_PRIVATE_KEY }} - - - name: Slash Command Dispatch - uses: peter-evans/slash-command-dispatch@v3 - env: - TOKEN: ${{ steps.generate_token.outputs.token }} - ACTIONS_STEP_DEBUG: true - with: - token: ${{ env.TOKEN }} # GitHub App installation access token - reaction-token: ${{ secrets.GITHUB_TOKEN }} - issue-type: pull-request - commands: ok-to-test - permission: write diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000000..ef730621e5 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,31 @@ +name: "Pull Request Triage" + +on: [pull_request_target] + +permissions: + # CodelyTV/pr-size-labeler uses issues URL for labeling + issues: write + pull-requests: write + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@ac9175f8a1f3625fd0d4fb234536d26811351594 # v4.3.0 + with: + configuration-path: .github/labeler-pull-request-triage.yml + repo-token: "${{ secrets.GITHUB_TOKEN }}" + - uses: CodelyTV/pr-size-labeler@54ef36785e9f4cb5ecf1949cfc9b00dbb621d761 # v1.8.1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + xs_label: 'size/XS' + xs_max_size: '30' + s_label: 'size/S' + s_max_size: '60' + m_label: 'size/M' + m_max_size: '150' + l_label: 'size/L' + l_max_size: '300' + xl_label: 'size/XL' + message_if_xl: '' + files_to_ignore: 'go.sum' diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000000..fe9960d976 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,14 @@ +on: + push: + branches: + - main +name: release-please +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v3 + with: + release-type: go + package-name: release-please-action + changelog-types: '[{"type":"feat","section":"🎉 **What's new:**","hidden":false},{"type":"fix","section":"🐛 **Bug fixes:**","hidden":false},{"type":"chore","section":"🔧 **Misc**","hidden":false}]' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index c421845161..0000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,71 +0,0 @@ -on: - push: - branches: - - main - tags: - - '*' - -name: release-please -jobs: - release-please: - runs-on: ubuntu-latest - steps: - - uses: actions/github-script@v6 - id: configure-changelog - with: - result-encoding: string - script: | - const changelogTypes = [ - {type: "feat", section: "Features", hidden: false}, - {type: "chore", section: "Misc", hidden: false}, - {type: "fix", section: "BugFixes", hidden: false}, - ] - - return JSON.stringify(changelogTypes) - # See https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow - # For why we need to generate a token and not use the default - - name: Generate token - id: generate_token - uses: chanzuckerberg/github-app-token@v1.1.4 - with: - app_id: ${{ secrets.CZI_RELEASE_PLEASE_APP_ID }} - private_key: ${{ secrets.CZI_RELEASE_PLEASE_PK }} - - - name: Import GPG key - id: import_gpg - uses: crazy-max/ghaction-import-gpg@v5 - with: - # These secrets will need to be configured for the repository: - GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} - PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - - - name: release please - uses: google-github-actions/release-please-action@v3 - id: release - with: - release-type: simple - bump-minor-pre-major: true - changelog-types: ${{ steps.configure-changelog.outputs.result }} - token: ${{ steps.generate_token.outputs.token }} - - - uses: actions/checkout@v3 - # we need to fetch all history and tags - # so we build the proper version - with: - fetch-depth: 0 - if: ${{ steps.release.outputs.release_created }} - - - uses: actions/setup-go@v4 - with: - go-version-file: ./go.mod - if: ${{ steps.release.outputs.release_created }} - - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v4 - with: - version: latest - args: release --rm-dist - env: - GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} - GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} - if: ${{ steps.release.outputs.release_created }} diff --git a/.github/workflows/team-slack-bot.yml b/.github/workflows/team-slack-bot.yml deleted file mode 100644 index 5c688fa420..0000000000 --- a/.github/workflows/team-slack-bot.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: slack-notifications-prs-issues - -on: - pull_request: - types: [ready_for_review] - issues: - types: [opened] - -jobs: - slack-action: - runs-on: ubuntu-latest - name: Notify Team in Slack - - steps: - - name: Curl to webhook - run: | - curl -X POST -H 'Content-type: application/json' --data '{"text":"A new ${{ github.event_name }} has been published. Please review ${{ github.event.pull_request.html_url }}${{ github.event.issue.html_url }}"}' ${{ secrets.SLACK_WEBHOOK }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000000..10a60bbd6a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +# Run secret-dependent integration tests only after /ok-to-test approval +on: + pull_request: + branches: [ main ] + paths-ignore: + - 'README.md' + - 'CHANGELOG.md' +name: Test + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version-file: ./go.mod + cache: false + - name: Install dependencies + run: make tools + - name: Create and populate .snowflake/config file + run: echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > $HOME/.snowflake/config + - run: make test + - run: make testacc diff --git a/.github/workflows/tfproviderlint.yml b/.github/workflows/tfproviderlint.yml deleted file mode 100644 index 98b278d9cf..0000000000 --- a/.github/workflows/tfproviderlint.yml +++ /dev/null @@ -1,11 +0,0 @@ -# on: [pull_request, push] - -# jobs: -# snowflake-provider: -# runs-on: ubuntu-latest -# continue-on-error: true # this workflow fails because it is not updated recently and uses old packages -# steps: -# - uses: actions/checkout@v3 -# - uses: bflad/tfproviderlint-github-action@master -# with: -# args: ./... diff --git a/.github/workflows/titleLint.yml b/.github/workflows/title-lint.yml similarity index 100% rename from .github/workflows/titleLint.yml rename to .github/workflows/title-lint.yml diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml deleted file mode 100644 index 16d35e4cfb..0000000000 --- a/.github/workflows/unit.yml +++ /dev/null @@ -1,22 +0,0 @@ -# Run unit tests that don't require secrets on any branch/fork pull request -on: - pull_request: -name: Unit tests - -jobs: - unit: - runs-on: ubuntu-latest - strategy: - matrix: - target: - - docs-check - - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 - with: - go-version-file: ./go.mod - - name: Install dependencies - run: make dev-setup - - name: make ${{ matrix.target }} - run: make ${{ matrix.target }} diff --git a/.goreleaser.prerelease.yml b/.goreleaser.prerelease.yml deleted file mode 100644 index 143fd5ddf7..0000000000 --- a/.goreleaser.prerelease.yml +++ /dev/null @@ -1,41 +0,0 @@ -builds: -- env: - - CGO_ENABLED=0 - goos: - - windows - - linux - - darwin - - freebsd - goarch: - - amd64 - - arm64 - - '386' - ignore: - binary: '{{ .ProjectName }}_v{{ .Version }}' - -archives: - - format: zip - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' - -checksum: - name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' - algorithm: sha256 - -signs: - - artifacts: checksum - cmd: keybase - args: - - pgp - - sign - - "-b" - - "-d" - - "-i" - - "${artifact}" - - "-o" - - "${signature}" - - "-k" - - "{{.Env.KEYBASE_KEY_ID}}" - - -release: - prerelease: true diff --git a/.goreleaser.yml b/.goreleaser.yml index e35c0bb88b..4bb39e825c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,46 +1,60 @@ +# Visit https://goreleaser.com for documentation on how to customize this +# behavior. +before: + hooks: + # this is just an example and not a requirement for provider building/publishing + - go mod tidy builds: - env: - - CGO_ENABLED=0 + # goreleaser does not work with CGO, it could also complicate + # usage by users in CI/CD systems like Terraform Cloud where + # they are unable to install libraries. + - CGO_ENABLED=0 + mod_timestamp: '{{ .CommitTimestamp }}' + flags: + - -trimpath + ldflags: + - '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}' goos: + - freebsd - windows - linux - darwin - - freebsd goarch: - amd64 - - arm64 - '386' - flags: - - -trimpath + - arm + - arm64 ignore: + - goos: darwin + goarch: '386' binary: '{{ .ProjectName }}_v{{ .Version }}' - archives: - - format: zip - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' - +- format: zip + name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' checksum: extra_files: - glob: 'terraform-registry-manifest.json' name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json' name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' algorithm: sha256 - signs: - artifacts: checksum args: + # if you are using this in a GitHub action or some other automated pipeline, you + # need to pass the batch flag to indicate its not interactive. - "--batch" - "--local-user" - - "{{ .Env.GPG_FINGERPRINT }}" + - "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key - "--output" - "${signature}" - "--detach-sign" - "${artifact}" - release: - github: - owner: Snowflake-Labs - name: terraform-provider-snowflake extra_files: - glob: 'terraform-registry-manifest.json' name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json' + # If you want to manually examine the release before its live, uncomment this line: + # draft: true +changelog: + skip: true diff --git a/.reviewdog.yml b/.reviewdog.yml deleted file mode 100644 index 6b5c8ccd3b..0000000000 --- a/.reviewdog.yml +++ /dev/null @@ -1,8 +0,0 @@ -runner: - golangci: - cmd: ./bin/golangci-lint run --out-format=line-number --timeout 5m - errorformat: - - '%E%f:%l:%c: %m' - - '%E%f:%l: %m' - - '%C%.%#' - level: warning diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bc4fdc2daa..3e22bf5b63 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,7 @@ 2. Ensure that your `GOPATH` is set to the desired location 3. Fork this repo and clone it into `$GOPATH/src/github.com/Snowflake-Labs/terraform-provider-snowflake` 4. cd to `terraform-provider-snowflake` and install all the required packages with `go get` -5. Build provider with `go install` +5. Build provider with `make build` ## Testing @@ -46,15 +46,15 @@ role='ACCOUNTADMIN' For the Terraform resources, there are 3 levels of testing - internal, unit and acceptance tests. -The 'internal' tests are run in the `github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources` package so that they can test functions that are not exported. These tests are intended to be limited to unit tests for simple functions. +The 'internal' tests are run in the `github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources` package so that they can test functions that are not exported. These tests are intended to be limited to unit tests for simple functions. -The 'unit' tests are run in `github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources_test`, so they only have access to the exported methods of `resources`. These tests exercise the CRUD methods that on the terraform resources. Note that all tests here make use of database mocking and are run locally. This means the tests are fast, but are liable to be wrong in subtle ways (since the mocks are unlikely to be perfect). +The 'unit' tests are run in `github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources_test`, so they only have access to the exported methods of `resources`. These tests exercise the CRUD methods that on the terraform resources. Note that all tests here make use of database mocking and are run locally. This means the tests are fast, but are liable to be wrong in subtle ways (since the mocks are unlikely to be perfect). You can run these first two sets of tests with `make test`. The 'acceptance' tests run the full stack, creating, modifying and destroying resources in a live snowflake account. To run them you need a snowflake account and the proper authentication set up. These tests are slower but have higher fidelity. You can create a new Snowflake Enterprise trial account and setup the environment variables for running acceptance tests. -To run all tests, including the acceptance tests, run `make test-acceptance`. +To run all tests, including the acceptance tests, run `make testacc`. ### Running tests in VSCode @@ -67,7 +67,18 @@ We've included an example env file `test.env.example` with the environment varia ## Advanced Debugging -If you want to build and test the provider locally there is a make target `make install-tf` that will build the provider binary and install it in a location that terraform can find. +If you want to build and test the provider locally you should edit you `~.terraformrc` file to include the following: + +``` +provider_installation { + + dev_overrides { + "registry.terraform.io/Snowflake-Labs/snowflake" = "" + } + + direct {} +} +``` To debug the provider with a debugger: diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 0000000000..587b24d20e --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,61 @@ + +default: build + +build: + go build -v ./... + +install: build + go install -v ./... + +# See https://golangci-lint.run/ +lint: + golangci-lint run + +fmt: ## Run gofumpt + @echo "==> Fixing source code with gofumpt..." + gofumpt -l -w . + +fumpt: fmt + +test: + go test -v -cover -timeout=120s -parallel=4 ./... + +testacc: + TF_ACC=1 go test -v -cover -timeout 120m ./... + +docs: + go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate + +# Generate docs, terraform fmt the examples folder, and create copywrite headers +generate: + cd tools && go generate ./... + +tools: + cd tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint + cd tools && go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs + cd tools && go install github.com/hashicorp/copywrite + cd tools && go install go install mvdan.cc/gofumpt@latest + +generate-all-dto: ## Generate all DTOs for SDK interfaces + go generate ./internal/sdk/*_dto.go + +generate-dto-%: ./internal/sdk/%_dto.go ## Generate DTO for given SDK interface + go generate $< + +run-generator-poc: + go generate ./internal/sdk/poc/example/*_def.go + go generate ./internal/sdk/poc/example/*_dto_gen.go + +clean-generator-poc: + rm -f ./internal/sdk/poc/example/*_gen.go + rm -f ./internal/sdk/poc/example/*_gen_test.go + +run-generator-%: ./internal/sdk/%_def.go ## Run go generate on given object definition + go generate $< + go generate ./internal/sdk/$*_dto_gen.go + +clean-generator-%: ## Clean generated files for specified resource + rm -f ./internal/sdk/$**_gen.go + rm -f ./internal/sdk/$**_gen_*test.go + +.PHONY: build install lint generate fmt test testacc tools docs diff --git a/Makefile b/Makefile deleted file mode 100644 index b792b776cc..0000000000 --- a/Makefile +++ /dev/null @@ -1,112 +0,0 @@ -export GO111MODULE=on -export TF_ACC_TERRAFORM_VERSION=1.5.7 -export SKIP_EXTERNAL_TABLE_TESTS=true -export SKIP_SCIM_INTEGRATION_TESTS=true -export SKIP_TABLE_DATA_RETENTION_TESTS=true - -BASE_BINARY_NAME=terraform-provider-snowflake -TERRAFORM_PLUGINS_DIR=$(HOME)/.terraform.d/plugins -TERRAFORM_PLUGIN_LOCAL_INSTALL=$(TERRAFORM_PLUGINS_DIR)/$(BASE_BINARY_NAME) -COVERAGE_REPORT_FILE=coverage.txt -COVERAGE_FLAGS=-coverprofile=$(COVERAGE_REPORT_FILE) -covermode=atomic - -help: ## display help for this makefile - @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' -.PHONY: help - -dev-setup: ## setup development dependencies - @which ./bin/golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./bin v1.53.3 - @which ./bin/reviewdog || curl -sSfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b ./bin v0.14.2 -.PHONY: dev-setup - -dev-cleanup: ## cleanup development dependencies - rm -rf bin/* -.PHONY: dev-cleanup - -sweep: ## destroy the whole architecture; USE ONLY FOR DEVELOPMENT ACCOUNTS - @echo "WARNING: This will destroy infrastructure. Use only in development accounts." - @echo "Are you sure? [y/n]" >&2 - @read -r REPLY; \ - if echo "$$REPLY" | grep -qG "^[yY]$$"; then \ - SNOWFLAKE_ENABLE_SWEEP=1 go test -timeout 300s -run ^TestSweepAll ./pkg/sdk -v; \ - else echo "Aborting..."; \ - fi; -.PHONY: sweep - -lint-ci: ## run the fast go linters - ./bin/reviewdog -conf .reviewdog.yml -reporter=github-pr-review -tee -fail-on-error=true -.PHONY: lint-ci - -test-acceptance: ## runs all tests, including the acceptance tests which create and destroys real resources - SKIP_MANAGED_ACCOUNT_TEST=1 SKIP_EMAIL_INTEGRATION_TESTS=1 TF_ACC=1 go test -timeout 2000s -v $(COVERAGE_FLAGS) ./... -.PHONY: test-acceptance - -build-local: ## build the binary locally - go build -o $(BASE_BINARY_NAME) . -.PHONY: build-local - -install-tf: build-local ## installs plugin where terraform can find it - mkdir -p $(TERRAFORM_PLUGINS_DIR) - cp ./$(BASE_BINARY_NAME) $(TERRAFORM_PLUGIN_LOCAL_INSTALL) -.PHONY: install-tf - -uninstall-tf: ## uninstalls plugin from where terraform can find it - rm -f $(TERRAFORM_PLUGIN_LOCAL_INSTALL) -.PHONY: uninstall-tf - -clean: ## clean local binaries - rm -f $(BASE_BINARY_NAME) - go clean -.PHONY: clean - -docs: ## generate docs for terraform plugin - SNOWFLAKE_USER= SNOWFLAKE_ACCOUNT= go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs -.PHONY: docs - -docs-check: docs ## check that docs have been generated - git diff --exit-code -- docs -.PHONY: docs-check - -mod: ## add missing and remove unused modules - go mod tidy -compat=1.20 -.PHONY: mod - -mod-check: mod ## check if there are any missing/unused modules - git diff --exit-code -- go.mod go.sum -.PHONY: mod-check - -lint-check: ## Run static code analysis and check formatting - ./bin/golangci-lint run ./... -v -.PHONY: lint-check - -lint-fix: ## Run static code analysis, check formatting and try to fix findings - ./bin/golangci-lint run ./... -v --fix -.PHONY: lint-fix - -pre-push: docs-check lint-check mod-check; ## Run a few checks before pushing a change (docs, fmt, mod, etc.) -.PHONY: pre-push - -generate-all-dto: ## Generate all DTOs for SDK interfaces - go generate ./pkg/sdk/*_dto.go -.PHONY: generate-all - -generate-dto-%: ./pkg/sdk/%_dto.go ## Generate DTO for given SDK interface - go generate $< - -run-generator-poc: - go generate ./pkg/sdk/poc/example/*_def.go - go generate ./pkg/sdk/poc/example/*_dto_gen.go -.PHONY: run-generator-poc - -clean-generator-poc: - rm -f ./pkg/sdk/poc/example/*_gen.go - rm -f ./pkg/sdk/poc/example/*_gen_test.go -.PHONY: run-generator-poc - -run-generator-%: ./pkg/sdk/%_def.go ## Run go generate on given object definition - go generate $< - go generate ./pkg/sdk/$*_dto_gen.go - -clean-generator-%: ## Clean generated files for specified resource - rm -f ./pkg/sdk/$**_gen.go - rm -f ./pkg/sdk/$**_gen_*test.go diff --git a/README.md b/README.md index fa7aadd62e..bae8da7a9f 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ terraform { provider "snowflake" { account = "abc12345" # the Snowflake account identifier - username = "johndoe" + user = "johndoe" password = "v3ry$3cr3t" role = "ACCOUNTADMIN" } diff --git a/codecov.yml b/codecov.yml deleted file mode 100644 index 293810d294..0000000000 --- a/codecov.yml +++ /dev/null @@ -1,7 +0,0 @@ -coverage: - status: - project: - default: - target: 50 - threshold: 2 - patch: off \ No newline at end of file diff --git a/docs/resources/table.md b/docs/resources/table.md index 1c454294be..fee4fc3856 100644 --- a/docs/resources/table.md +++ b/docs/resources/table.md @@ -26,13 +26,13 @@ resource "snowflake_sequence" "sequence" { } resource "snowflake_table" "table" { - database = snowflake_schema.schema.database - schema = snowflake_schema.schema.name - name = "table" - comment = "A table." - cluster_by = ["to_date(DATE)"] + database = snowflake_schema.schema.database + schema = snowflake_schema.schema.name + name = "table" + comment = "A table." + cluster_by = ["to_date(DATE)"] data_retention_time_in_days = snowflake_schema.schema.data_retention_time_in_days - change_tracking = false + change_tracking = false column { name = "id" diff --git a/download.sh b/download.sh deleted file mode 100644 index 2476568482..0000000000 --- a/download.sh +++ /dev/null @@ -1,381 +0,0 @@ -#!/bin/sh -set -e -# Code generated by godownloader on 2019-02-06T21:15:11Z. DO NOT EDIT. -# - -usage() { - this=$1 - cat </dev/null -} -echoerr() { - echo "$@" 1>&2 -} -log_prefix() { - echo "$0" -} -_logp=6 -log_set_priority() { - _logp="$1" -} -log_priority() { - if test -z "$1"; then - echo "$_logp" - return - fi - [ "$1" -le "$_logp" ] -} -log_tag() { - case $1 in - 0) echo "emerg" ;; - 1) echo "alert" ;; - 2) echo "crit" ;; - 3) echo "err" ;; - 4) echo "warning" ;; - 5) echo "notice" ;; - 6) echo "info" ;; - 7) echo "debug" ;; - *) echo "$1" ;; - esac -} -log_debug() { - log_priority 7 || return 0 - echoerr "$(log_prefix)" "$(log_tag 7)" "$@" -} -log_info() { - log_priority 6 || return 0 - echoerr "$(log_prefix)" "$(log_tag 6)" "$@" -} -log_err() { - log_priority 3 || return 0 - echoerr "$(log_prefix)" "$(log_tag 3)" "$@" -} -log_crit() { - log_priority 2 || return 0 - echoerr "$(log_prefix)" "$(log_tag 2)" "$@" -} -uname_os() { - os=$(uname -s | tr '[:upper:]' '[:lower:]') - case "$os" in - msys_nt) os="windows" ;; - esac - echo "$os" -} -uname_arch() { - arch=$(uname -m) - case $arch in - x86_64) arch="amd64" ;; - x86) arch="386" ;; - i686) arch="386" ;; - i386) arch="386" ;; - aarch64) arch="arm64" ;; - armv5*) arch="armv5" ;; - armv6*) arch="armv6" ;; - armv7*) arch="armv7" ;; - esac - echo ${arch} -} -uname_os_check() { - os=$(uname_os) - case "$os" in - darwin) return 0 ;; - dragonfly) return 0 ;; - freebsd) return 0 ;; - linux) return 0 ;; - android) return 0 ;; - nacl) return 0 ;; - netbsd) return 0 ;; - openbsd) return 0 ;; - plan9) return 0 ;; - solaris) return 0 ;; - windows) return 0 ;; - esac - log_crit "uname_os_check '$(uname -s)' got converted to '$os' which is not a GOOS value. Please file bug at https://github.com/client9/shlib" - return 1 -} -uname_arch_check() { - arch=$(uname_arch) - case "$arch" in - 386) return 0 ;; - amd64) return 0 ;; - arm64) return 0 ;; - armv5) return 0 ;; - armv6) return 0 ;; - armv7) return 0 ;; - ppc64) return 0 ;; - ppc64le) return 0 ;; - mips) return 0 ;; - mipsle) return 0 ;; - mips64) return 0 ;; - mips64le) return 0 ;; - s390x) return 0 ;; - amd64p32) return 0 ;; - esac - log_crit "uname_arch_check '$(uname -m)' got converted to '$arch' which is not a GOARCH value. Please file bug report at https://github.com/client9/shlib" - return 1 -} -untar() { - tarball=$1 - case "${tarball}" in - *.tar.gz | *.tgz) tar -xzf "${tarball}" ;; - *.tar) tar -xf "${tarball}" ;; - *.zip) unzip "${tarball}" ;; - *) - log_err "untar unknown archive format for ${tarball}" - return 1 - ;; - esac -} -mktmpdir() { - test -z "$TMPDIR" && TMPDIR="$(mktemp -d)" - mkdir -p "${TMPDIR}" - echo "${TMPDIR}" -} -http_download_curl() { - local_file=$1 - source_url=$2 - header=$3 - if [ -z "$header" ]; then - code=$(curl -w '%{http_code}' -sL -o "$local_file" "$source_url") - else - code=$(curl -w '%{http_code}' -sL -H "$header" -o "$local_file" "$source_url") - fi - if [ "$code" != "200" ]; then - log_debug "http_download_curl received HTTP status $code" - return 1 - fi - return 0 -} -http_download_wget() { - local_file=$1 - source_url=$2 - header=$3 - if [ -z "$header" ]; then - wget -q -O "$local_file" "$source_url" - else - wget -q --header "$header" -O "$local_file" "$source_url" - fi -} -http_download() { - log_debug "http_download $2" - if is_command curl; then - http_download_curl "$@" - return - elif is_command wget; then - http_download_wget "$@" - return - fi - log_crit "http_download unable to find wget or curl" - return 1 -} -http_copy() { - tmp=$(mktemp) - http_download "${tmp}" "$1" "$2" || return 1 - body=$(cat "$tmp") - rm -f "${tmp}" - echo "$body" -} -github_release() { - owner_repo=$1 - version=$2 - test -z "$version" && version="latest" - giturl="https://github.com/${owner_repo}/releases/${version}" - json=$(http_copy "$giturl" "Accept:application/json") - test -z "$json" && return 1 - version=$(echo "$json" | tr -s '\n' ' ' | sed 's/.*"tag_name":"//' | sed 's/".*//') - test -z "$version" && return 1 - echo "$version" -} -hash_sha256() { - TARGET=${1:-/dev/stdin} - if is_command gsha256sum; then - hash=$(gsha256sum "$TARGET") || return 1 - echo "$hash" | cut -d ' ' -f 1 - elif is_command sha256sum; then - hash=$(sha256sum "$TARGET") || return 1 - echo "$hash" | cut -d ' ' -f 1 - elif is_command shasum; then - hash=$(shasum -a 256 "$TARGET" 2>/dev/null) || return 1 - echo "$hash" | cut -d ' ' -f 1 - elif is_command openssl; then - hash=$(openssl -dst openssl dgst -sha256 "$TARGET") || return 1 - echo "$hash" | cut -d ' ' -f a - else - log_crit "hash_sha256 unable to find command to compute sha-256 hash" - return 1 - fi -} -hash_sha256_verify() { - TARGET=$1 - checksums=$2 - if [ -z "$checksums" ]; then - log_err "hash_sha256_verify checksum file not specified in arg2" - return 1 - fi - BASENAME=${TARGET##*/} - want=$(grep "${BASENAME}" "${checksums}" 2>/dev/null | tr '\t' ' ' | cut -d ' ' -f 1) - if [ -z "$want" ]; then - log_err "hash_sha256_verify unable to find checksum for '${TARGET}' in '${checksums}'" - return 1 - fi - got=$(hash_sha256 "$TARGET") - if [ "$want" != "$got" ]; then - log_err "hash_sha256_verify checksum for '$TARGET' did not verify ${want} vs $got" - return 1 - fi -} -cat /dev/null < SRC) \ No newline at end of file diff --git a/pkg/resources/testdata/view_2b.sql b/internal/resources/testdata/view_2b.sql similarity index 87% rename from pkg/resources/testdata/view_2b.sql rename to internal/resources/testdata/view_2b.sql index f01338351d..25f9121721 100644 --- a/pkg/resources/testdata/view_2b.sql +++ b/internal/resources/testdata/view_2b.sql @@ -1,3 +1,6 @@ +-- Copyright (c) HashiCorp, Inc. +-- SPDX-License-Identifier: MIT + SELECT value:configRuleName::VARCHAR AS CONFIG_RULE_NAME, VALUE:complianceType::VARCHAR AS COMPLIANCE_TYPE, diff --git a/pkg/resources/user.go b/internal/resources/user.go similarity index 98% rename from pkg/resources/user.go rename to internal/resources/user.go index 450a6bd263..2bd1d38160 100644 --- a/pkg/resources/user.go +++ b/internal/resources/user.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources import ( @@ -9,8 +12,8 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" ) var userProperties = []string{ diff --git a/pkg/resources/user_acceptance_test.go b/internal/resources/user_acceptance_test.go similarity index 96% rename from pkg/resources/user_acceptance_test.go rename to internal/resources/user_acceptance_test.go index f88a943ebd..577ad48cb4 100644 --- a/pkg/resources/user_acceptance_test.go +++ b/internal/resources/user_acceptance_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources_test import ( @@ -7,8 +10,8 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" diff --git a/pkg/resources/user_grant.go b/internal/resources/user_grant.go similarity index 96% rename from pkg/resources/user_grant.go rename to internal/resources/user_grant.go index e944c4e38d..e39a7cf874 100644 --- a/pkg/resources/user_grant.go +++ b/internal/resources/user_grant.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources import ( @@ -5,8 +8,8 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/pkg/resources/user_grant_acceptance_test.go b/internal/resources/user_grant_acceptance_test.go similarity index 92% rename from pkg/resources/user_grant_acceptance_test.go rename to internal/resources/user_grant_acceptance_test.go index 94b4027fa0..973297de2c 100644 --- a/pkg/resources/user_grant_acceptance_test.go +++ b/internal/resources/user_grant_acceptance_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources_test import ( @@ -6,7 +9,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/pkg/resources/user_grant_test.go b/internal/resources/user_grant_test.go similarity index 84% rename from pkg/resources/user_grant_test.go rename to internal/resources/user_grant_test.go index 0f2d6e78f7..a7fdd2cc1d 100644 --- a/pkg/resources/user_grant_test.go +++ b/internal/resources/user_grant_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources_test import ( @@ -6,9 +9,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/pkg/resources/user_ownership_grant.go b/internal/resources/user_ownership_grant.go similarity index 95% rename from pkg/resources/user_ownership_grant.go rename to internal/resources/user_ownership_grant.go index 09584976ce..2f95e5fb40 100644 --- a/pkg/resources/user_ownership_grant.go +++ b/internal/resources/user_ownership_grant.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources import ( @@ -7,9 +10,9 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/pkg/resources/user_ownership_grant_acceptance_test.go b/internal/resources/user_ownership_grant_acceptance_test.go similarity index 91% rename from pkg/resources/user_ownership_grant_acceptance_test.go rename to internal/resources/user_ownership_grant_acceptance_test.go index 0c525a39c4..76376ca078 100644 --- a/pkg/resources/user_ownership_grant_acceptance_test.go +++ b/internal/resources/user_ownership_grant_acceptance_test.go @@ -1,10 +1,13 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources_test import ( "fmt" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/pkg/resources/user_ownership_grant_test.go b/internal/resources/user_ownership_grant_test.go similarity index 89% rename from pkg/resources/user_ownership_grant_test.go rename to internal/resources/user_ownership_grant_test.go index 19782a0a04..d58794264b 100644 --- a/pkg/resources/user_ownership_grant_test.go +++ b/internal/resources/user_ownership_grant_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources_test import ( @@ -5,9 +8,9 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" "github.com/stretchr/testify/require" ) diff --git a/pkg/resources/user_public_keys.go b/internal/resources/user_public_keys.go similarity index 96% rename from pkg/resources/user_public_keys.go rename to internal/resources/user_public_keys.go index e7c92ae3e7..2aa1ace129 100644 --- a/pkg/resources/user_public_keys.go +++ b/internal/resources/user_public_keys.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources import ( @@ -7,7 +10,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/pkg/resources/user_public_keys_acceptance_test.go b/internal/resources/user_public_keys_acceptance_test.go similarity index 90% rename from pkg/resources/user_public_keys_acceptance_test.go rename to internal/resources/user_public_keys_acceptance_test.go index f9eb0eb93b..bc0ab478b8 100644 --- a/pkg/resources/user_public_keys_acceptance_test.go +++ b/internal/resources/user_public_keys_acceptance_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources_test import ( @@ -6,8 +9,8 @@ import ( "testing" "text/template" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/stretchr/testify/require" diff --git a/pkg/resources/view.go b/internal/resources/view.go similarity index 98% rename from pkg/resources/view.go rename to internal/resources/view.go index 672e87a3be..ab90873da6 100644 --- a/pkg/resources/view.go +++ b/internal/resources/view.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources import ( @@ -10,7 +13,7 @@ import ( "regexp" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/pkg/resources/view_acceptance_test.go b/internal/resources/view_acceptance_test.go similarity index 97% rename from pkg/resources/view_acceptance_test.go rename to internal/resources/view_acceptance_test.go index 4383d3bade..2666dcd1ae 100644 --- a/pkg/resources/view_acceptance_test.go +++ b/internal/resources/view_acceptance_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources_test import ( @@ -5,7 +8,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/pkg/resources/view_grant.go b/internal/resources/view_grant.go similarity index 97% rename from pkg/resources/view_grant.go rename to internal/resources/view_grant.go index eb11f333af..3a5c6a5f17 100644 --- a/pkg/resources/view_grant.go +++ b/internal/resources/view_grant.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources import ( @@ -5,10 +8,10 @@ import ( "errors" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/pkg/resources/view_grant_acceptance_test.go b/internal/resources/view_grant_acceptance_test.go similarity index 98% rename from pkg/resources/view_grant_acceptance_test.go rename to internal/resources/view_grant_acceptance_test.go index 8c27671bbe..a145ad19ac 100644 --- a/pkg/resources/view_grant_acceptance_test.go +++ b/internal/resources/view_grant_acceptance_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources_test import ( @@ -7,7 +10,7 @@ import ( "testing" "text/template" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/stretchr/testify/require" diff --git a/pkg/resources/view_grant_test.go b/internal/resources/view_grant_test.go similarity index 95% rename from pkg/resources/view_grant_test.go rename to internal/resources/view_grant_test.go index 19db8f7b61..f22eb51158 100644 --- a/pkg/resources/view_grant_test.go +++ b/internal/resources/view_grant_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources_test import ( @@ -6,9 +9,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/pkg/resources/view_test.go b/internal/resources/view_test.go similarity index 92% rename from pkg/resources/view_test.go rename to internal/resources/view_test.go index 558e5dc8ea..45146410c3 100644 --- a/pkg/resources/view_test.go +++ b/internal/resources/view_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources_test import ( @@ -7,10 +10,10 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/pkg/resources/warehouse.go b/internal/resources/warehouse.go similarity index 98% rename from pkg/resources/warehouse.go rename to internal/resources/warehouse.go index f27fb75c05..6cd46c4dd3 100644 --- a/pkg/resources/warehouse.go +++ b/internal/resources/warehouse.go @@ -1,12 +1,15 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources import ( "context" "database/sql" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - snowflakevalidation "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/validation" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + snowflakevalidation "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/validation" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/pkg/resources/warehouse_acceptance_test.go b/internal/resources/warehouse_acceptance_test.go similarity index 96% rename from pkg/resources/warehouse_acceptance_test.go rename to internal/resources/warehouse_acceptance_test.go index ea4012c529..ef411fb06c 100644 --- a/pkg/resources/warehouse_acceptance_test.go +++ b/internal/resources/warehouse_acceptance_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources_test import ( @@ -6,7 +9,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/pkg/resources/warehouse_grant.go b/internal/resources/warehouse_grant.go similarity index 95% rename from pkg/resources/warehouse_grant.go rename to internal/resources/warehouse_grant.go index 5351eb579a..f49178b42d 100644 --- a/pkg/resources/warehouse_grant.go +++ b/internal/resources/warehouse_grant.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources import ( @@ -5,10 +8,10 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/pkg/resources/warehouse_grant_acceptance_test.go b/internal/resources/warehouse_grant_acceptance_test.go similarity index 93% rename from pkg/resources/warehouse_grant_acceptance_test.go rename to internal/resources/warehouse_grant_acceptance_test.go index 70c3f0ea09..b8f07d5114 100644 --- a/pkg/resources/warehouse_grant_acceptance_test.go +++ b/internal/resources/warehouse_grant_acceptance_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources_test import ( @@ -6,7 +9,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/pkg/resources/warehouse_grant_test.go b/internal/resources/warehouse_grant_test.go similarity index 85% rename from pkg/resources/warehouse_grant_test.go rename to internal/resources/warehouse_grant_test.go index 2f7531781d..3665c528e5 100644 --- a/pkg/resources/warehouse_grant_test.go +++ b/internal/resources/warehouse_grant_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package resources_test import ( @@ -6,9 +9,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/README.md b/internal/sdk/README.md similarity index 100% rename from pkg/sdk/README.md rename to internal/sdk/README.md diff --git a/pkg/sdk/accounts.go b/internal/sdk/accounts.go similarity index 99% rename from pkg/sdk/accounts.go rename to internal/sdk/accounts.go index 08facba0ac..00d058a017 100644 --- a/pkg/sdk/accounts.go +++ b/internal/sdk/accounts.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/accounts_test.go b/internal/sdk/accounts_test.go similarity index 99% rename from pkg/sdk/accounts_test.go rename to internal/sdk/accounts_test.go index f3e0b16a21..b11a8565c3 100644 --- a/pkg/sdk/accounts_test.go +++ b/internal/sdk/accounts_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/alerts.go b/internal/sdk/alerts.go similarity index 99% rename from pkg/sdk/alerts.go rename to internal/sdk/alerts.go index 31cc85d42d..c0d1a90265 100644 --- a/pkg/sdk/alerts.go +++ b/internal/sdk/alerts.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/alerts_test.go b/internal/sdk/alerts_test.go similarity index 97% rename from pkg/sdk/alerts_test.go rename to internal/sdk/alerts_test.go index b1305bc100..6332afb8ef 100644 --- a/pkg/sdk/alerts_test.go +++ b/internal/sdk/alerts_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" ) func TestAlertCreate(t *testing.T) { diff --git a/pkg/sdk/assertions_test.go b/internal/sdk/assertions_test.go similarity index 95% rename from pkg/sdk/assertions_test.go rename to internal/sdk/assertions_test.go index e67f67963a..97ef9dc36a 100644 --- a/pkg/sdk/assertions_test.go +++ b/internal/sdk/assertions_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/client.go b/internal/sdk/client.go similarity index 98% rename from pkg/sdk/client.go rename to internal/sdk/client.go index 1dc78da8cf..ad4c841e6c 100644 --- a/pkg/sdk/client.go +++ b/internal/sdk/client.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/client_integration_test.go b/internal/sdk/client_integration_test.go similarity index 95% rename from pkg/sdk/client_integration_test.go rename to internal/sdk/client_integration_test.go index 71f5b42365..2e3dd3ac0d 100644 --- a/pkg/sdk/client_integration_test.go +++ b/internal/sdk/client_integration_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/comments.go b/internal/sdk/comments.go similarity index 97% rename from pkg/sdk/comments.go rename to internal/sdk/comments.go index df0bfcf06b..1d1fcf2e2a 100644 --- a/pkg/sdk/comments.go +++ b/internal/sdk/comments.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/comments_test.go b/internal/sdk/comments_test.go similarity index 93% rename from pkg/sdk/comments_test.go rename to internal/sdk/comments_test.go index fbcb7864b5..1bf4743343 100644 --- a/pkg/sdk/comments_test.go +++ b/internal/sdk/comments_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/common_types.go b/internal/sdk/common_types.go similarity index 98% rename from pkg/sdk/common_types.go rename to internal/sdk/common_types.go index 57a4f862e0..f680eec643 100644 --- a/pkg/sdk/common_types.go +++ b/internal/sdk/common_types.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/common_types_test.go b/internal/sdk/common_types_test.go similarity index 97% rename from pkg/sdk/common_types_test.go rename to internal/sdk/common_types_test.go index 71bdfea4c1..c3e0e7277c 100644 --- a/pkg/sdk/common_types_test.go +++ b/internal/sdk/common_types_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/config.go b/internal/sdk/config.go similarity index 97% rename from pkg/sdk/config.go rename to internal/sdk/config.go index b30cb85acb..b48e6f4a58 100644 --- a/pkg/sdk/config.go +++ b/internal/sdk/config.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/config_test.go b/internal/sdk/config_test.go similarity index 98% rename from pkg/sdk/config_test.go rename to internal/sdk/config_test.go index 71a33f5533..447dece8d7 100644 --- a/pkg/sdk/config_test.go +++ b/internal/sdk/config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/context_functions.go b/internal/sdk/context_functions.go similarity index 98% rename from pkg/sdk/context_functions.go rename to internal/sdk/context_functions.go index c8ee69ef4c..97adeb8ad0 100644 --- a/pkg/sdk/context_functions.go +++ b/internal/sdk/context_functions.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/conversion_functions.go b/internal/sdk/conversion_functions.go similarity index 94% rename from pkg/sdk/conversion_functions.go rename to internal/sdk/conversion_functions.go index 9c6676a8ed..4154d31aa7 100644 --- a/pkg/sdk/conversion_functions.go +++ b/internal/sdk/conversion_functions.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/data_types.go b/internal/sdk/data_types.go similarity index 97% rename from pkg/sdk/data_types.go rename to internal/sdk/data_types.go index 132f2a94d5..dcad2caf4f 100644 --- a/pkg/sdk/data_types.go +++ b/internal/sdk/data_types.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/data_types_test.go b/internal/sdk/data_types_test.go similarity index 97% rename from pkg/sdk/data_types_test.go rename to internal/sdk/data_types_test.go index 21de63b921..66d483b18c 100644 --- a/pkg/sdk/data_types_test.go +++ b/internal/sdk/data_types_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/database_role.go b/internal/sdk/database_role.go similarity index 99% rename from pkg/sdk/database_role.go rename to internal/sdk/database_role.go index dbe2378cce..cfc3f4f98d 100644 --- a/pkg/sdk/database_role.go +++ b/internal/sdk/database_role.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/database_role_dto.go b/internal/sdk/database_role_dto.go similarity index 96% rename from pkg/sdk/database_role_dto.go rename to internal/sdk/database_role_dto.go index 8be5f38a5f..7e7547c081 100644 --- a/pkg/sdk/database_role_dto.go +++ b/internal/sdk/database_role_dto.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk //go:generate go run ./dto-builder-generator/main.go diff --git a/pkg/sdk/database_role_dto_builders.go b/internal/sdk/database_role_dto_builders.go similarity index 98% rename from pkg/sdk/database_role_dto_builders.go rename to internal/sdk/database_role_dto_builders.go index 3d215a8d42..d94d311573 100644 --- a/pkg/sdk/database_role_dto_builders.go +++ b/internal/sdk/database_role_dto_builders.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk func NewCreateDatabaseRoleRequest( diff --git a/pkg/sdk/database_role_impl.go b/internal/sdk/database_role_impl.go similarity index 96% rename from pkg/sdk/database_role_impl.go rename to internal/sdk/database_role_impl.go index 7876bc63bf..8d97f8984d 100644 --- a/pkg/sdk/database_role_impl.go +++ b/internal/sdk/database_role_impl.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" ) var _ DatabaseRoles = (*databaseRoles)(nil) diff --git a/pkg/sdk/database_role_test.go b/internal/sdk/database_role_test.go similarity index 98% rename from pkg/sdk/database_role_test.go rename to internal/sdk/database_role_test.go index f40c2514be..6684ee34df 100644 --- a/pkg/sdk/database_role_test.go +++ b/internal/sdk/database_role_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" ) func TestDatabaseRoleCreate(t *testing.T) { diff --git a/pkg/sdk/database_role_validations.go b/internal/sdk/database_role_validations.go similarity index 98% rename from pkg/sdk/database_role_validations.go rename to internal/sdk/database_role_validations.go index c62162e130..3754a0053e 100644 --- a/pkg/sdk/database_role_validations.go +++ b/internal/sdk/database_role_validations.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import "errors" diff --git a/pkg/sdk/databases.go b/internal/sdk/databases.go similarity index 99% rename from pkg/sdk/databases.go rename to internal/sdk/databases.go index ee27b23cb8..455406ac27 100644 --- a/pkg/sdk/databases.go +++ b/internal/sdk/databases.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/databases_test.go b/internal/sdk/databases_test.go similarity index 99% rename from pkg/sdk/databases_test.go rename to internal/sdk/databases_test.go index 873530efb9..ba92e4455b 100644 --- a/pkg/sdk/databases_test.go +++ b/internal/sdk/databases_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/dto-builder-generator/README.md b/internal/sdk/dto-builder-generator/README.md similarity index 100% rename from pkg/sdk/dto-builder-generator/README.md rename to internal/sdk/dto-builder-generator/README.md diff --git a/pkg/sdk/dto-builder-generator/example/pipes_dto.go b/internal/sdk/dto-builder-generator/example/pipes_dto.go similarity index 88% rename from pkg/sdk/dto-builder-generator/example/pipes_dto.go rename to internal/sdk/dto-builder-generator/example/pipes_dto.go index 7f011854c0..4d9790e522 100644 --- a/pkg/sdk/dto-builder-generator/example/pipes_dto.go +++ b/internal/sdk/dto-builder-generator/example/pipes_dto.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package example import ( "bytes" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" ) //go:generate go run ../main.go diff --git a/pkg/sdk/dto-builder-generator/example/pipes_dto_generated.go b/internal/sdk/dto-builder-generator/example/pipes_dto_generated.go similarity index 98% rename from pkg/sdk/dto-builder-generator/example/pipes_dto_generated.go rename to internal/sdk/dto-builder-generator/example/pipes_dto_generated.go index d0fe8fb7ad..933be8af59 100644 --- a/pkg/sdk/dto-builder-generator/example/pipes_dto_generated.go +++ b/internal/sdk/dto-builder-generator/example/pipes_dto_generated.go @@ -4,7 +4,7 @@ package example import ( "bytes" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" ) func NewCreatePipeRequest( diff --git a/pkg/sdk/dto-builder-generator/main.go b/internal/sdk/dto-builder-generator/main.go similarity index 98% rename from pkg/sdk/dto-builder-generator/main.go rename to internal/sdk/dto-builder-generator/main.go index e751bd88cb..d590179643 100644 --- a/pkg/sdk/dto-builder-generator/main.go +++ b/internal/sdk/dto-builder-generator/main.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + //go:build exclude package main diff --git a/pkg/sdk/dynamic_table.go b/internal/sdk/dynamic_table.go similarity index 99% rename from pkg/sdk/dynamic_table.go rename to internal/sdk/dynamic_table.go index 89040a487e..4a7116874f 100644 --- a/pkg/sdk/dynamic_table.go +++ b/internal/sdk/dynamic_table.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/dynamic_table_dto.go b/internal/sdk/dynamic_table_dto.go similarity index 94% rename from pkg/sdk/dynamic_table_dto.go rename to internal/sdk/dynamic_table_dto.go index f629a9c46f..b9e4626b3b 100644 --- a/pkg/sdk/dynamic_table_dto.go +++ b/internal/sdk/dynamic_table_dto.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk //go:generate go run ./dto-builder-generator/main.go diff --git a/pkg/sdk/dynamic_table_dto_builders.go b/internal/sdk/dynamic_table_dto_builders.go similarity index 97% rename from pkg/sdk/dynamic_table_dto_builders.go rename to internal/sdk/dynamic_table_dto_builders.go index dee9d715ea..3124be03be 100644 --- a/pkg/sdk/dynamic_table_dto_builders.go +++ b/internal/sdk/dynamic_table_dto_builders.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk func NewCreateDynamicTableRequest( diff --git a/pkg/sdk/dynamic_table_impl.go b/internal/sdk/dynamic_table_impl.go similarity index 94% rename from pkg/sdk/dynamic_table_impl.go rename to internal/sdk/dynamic_table_impl.go index 86d41c957b..d50a236f6f 100644 --- a/pkg/sdk/dynamic_table_impl.go +++ b/internal/sdk/dynamic_table_impl.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" ) var _ DynamicTables = (*dynamicTables)(nil) diff --git a/pkg/sdk/dynamic_table_test.go b/internal/sdk/dynamic_table_test.go similarity index 98% rename from pkg/sdk/dynamic_table_test.go rename to internal/sdk/dynamic_table_test.go index f5c9c637eb..00193ea4ae 100644 --- a/pkg/sdk/dynamic_table_test.go +++ b/internal/sdk/dynamic_table_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/dynamic_table_validations.go b/internal/sdk/dynamic_table_validations.go similarity index 97% rename from pkg/sdk/dynamic_table_validations.go rename to internal/sdk/dynamic_table_validations.go index 4448223985..c58914857b 100644 --- a/pkg/sdk/dynamic_table_validations.go +++ b/internal/sdk/dynamic_table_validations.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/errors.go b/internal/sdk/errors.go similarity index 95% rename from pkg/sdk/errors.go rename to internal/sdk/errors.go index e90d643889..88f65e4cc8 100644 --- a/pkg/sdk/errors.go +++ b/internal/sdk/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/external_tables.go b/internal/sdk/external_tables.go similarity index 99% rename from pkg/sdk/external_tables.go rename to internal/sdk/external_tables.go index eea89fc9bd..8f7d2da4b8 100644 --- a/pkg/sdk/external_tables.go +++ b/internal/sdk/external_tables.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/external_tables_dto.go b/internal/sdk/external_tables_dto.go similarity index 99% rename from pkg/sdk/external_tables_dto.go rename to internal/sdk/external_tables_dto.go index 3bcc01103f..ac026591f9 100644 --- a/pkg/sdk/external_tables_dto.go +++ b/internal/sdk/external_tables_dto.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk //go:generate go run ./dto-builder-generator/main.go diff --git a/pkg/sdk/external_tables_dto_builders_gen.go b/internal/sdk/external_tables_dto_builders_gen.go similarity index 99% rename from pkg/sdk/external_tables_dto_builders_gen.go rename to internal/sdk/external_tables_dto_builders_gen.go index a4c88c0f30..cad2cf1097 100644 --- a/pkg/sdk/external_tables_dto_builders_gen.go +++ b/internal/sdk/external_tables_dto_builders_gen.go @@ -2,8 +2,6 @@ package sdk -import () - func NewCreateExternalTableRequest( name SchemaObjectIdentifier, location string, diff --git a/pkg/sdk/external_tables_impl.go b/internal/sdk/external_tables_impl.go similarity index 94% rename from pkg/sdk/external_tables_impl.go rename to internal/sdk/external_tables_impl.go index b799040bf0..4e62f8fca8 100644 --- a/pkg/sdk/external_tables_impl.go +++ b/internal/sdk/external_tables_impl.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" ) var _ ExternalTables = (*externalTables)(nil) diff --git a/pkg/sdk/external_tables_test.go b/internal/sdk/external_tables_test.go similarity index 99% rename from pkg/sdk/external_tables_test.go rename to internal/sdk/external_tables_test.go index 71ea7b83e7..d65c143e82 100644 --- a/pkg/sdk/external_tables_test.go +++ b/internal/sdk/external_tables_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/external_tables_validations.go b/internal/sdk/external_tables_validations.go similarity index 99% rename from pkg/sdk/external_tables_validations.go rename to internal/sdk/external_tables_validations.go index 7d56812a59..c90b5f0061 100644 --- a/pkg/sdk/external_tables_validations.go +++ b/internal/sdk/external_tables_validations.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/failover_groups.go b/internal/sdk/failover_groups.go similarity index 99% rename from pkg/sdk/failover_groups.go rename to internal/sdk/failover_groups.go index f97163693a..91d9555108 100644 --- a/pkg/sdk/failover_groups.go +++ b/internal/sdk/failover_groups.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/failover_groups_test.go b/internal/sdk/failover_groups_test.go similarity index 98% rename from pkg/sdk/failover_groups_test.go rename to internal/sdk/failover_groups_test.go index 5ed41e9582..7137ade2c4 100644 --- a/pkg/sdk/failover_groups_test.go +++ b/internal/sdk/failover_groups_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/file_format.go b/internal/sdk/file_format.go similarity index 99% rename from pkg/sdk/file_format.go rename to internal/sdk/file_format.go index c3faf62920..770edf373c 100644 --- a/pkg/sdk/file_format.go +++ b/internal/sdk/file_format.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/file_format_test.go b/internal/sdk/file_format_test.go similarity index 99% rename from pkg/sdk/file_format_test.go rename to internal/sdk/file_format_test.go index 158051ec85..6bedb95ea5 100644 --- a/pkg/sdk/file_format_test.go +++ b/internal/sdk/file_format_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/grants.go b/internal/sdk/grants.go similarity index 99% rename from pkg/sdk/grants.go rename to internal/sdk/grants.go index b9af33ecfa..1f90baf984 100644 --- a/pkg/sdk/grants.go +++ b/internal/sdk/grants.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/grants_impl.go b/internal/sdk/grants_impl.go similarity index 97% rename from pkg/sdk/grants_impl.go rename to internal/sdk/grants_impl.go index e2a078556e..879dd498c4 100644 --- a/pkg/sdk/grants_impl.go +++ b/internal/sdk/grants_impl.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import "context" diff --git a/pkg/sdk/grants_test.go b/internal/sdk/grants_test.go similarity index 99% rename from pkg/sdk/grants_test.go rename to internal/sdk/grants_test.go index f478978562..6dfafc523b 100644 --- a/pkg/sdk/grants_test.go +++ b/internal/sdk/grants_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/grants_validations.go b/internal/sdk/grants_validations.go similarity index 99% rename from pkg/sdk/grants_validations.go rename to internal/sdk/grants_validations.go index 05f6a598bb..52a2448642 100644 --- a/pkg/sdk/grants_validations.go +++ b/internal/sdk/grants_validations.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/helper_test.go b/internal/sdk/helper_test.go similarity index 91% rename from pkg/sdk/helper_test.go rename to internal/sdk/helper_test.go index c6b7c68f32..a19536299b 100644 --- a/pkg/sdk/helper_test.go +++ b/internal/sdk/helper_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/helpers_proposal.go b/internal/sdk/helpers_proposal.go similarity index 96% rename from pkg/sdk/helpers_proposal.go rename to internal/sdk/helpers_proposal.go index 5787684345..aa66c70715 100644 --- a/pkg/sdk/helpers_proposal.go +++ b/internal/sdk/helpers_proposal.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/identifier_helpers.go b/internal/sdk/identifier_helpers.go similarity index 99% rename from pkg/sdk/identifier_helpers.go rename to internal/sdk/identifier_helpers.go index 99bc086092..6b0db99760 100644 --- a/pkg/sdk/identifier_helpers.go +++ b/internal/sdk/identifier_helpers.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/identifier_helpers_test.go b/internal/sdk/identifier_helpers_test.go similarity index 97% rename from pkg/sdk/identifier_helpers_test.go rename to internal/sdk/identifier_helpers_test.go index d3b0a98bd3..03cc181500 100644 --- a/pkg/sdk/identifier_helpers_test.go +++ b/internal/sdk/identifier_helpers_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/integration_test_imports.go b/internal/sdk/integration_test_imports.go similarity index 91% rename from pkg/sdk/integration_test_imports.go rename to internal/sdk/integration_test_imports.go index ea3398351c..e0c19d3f70 100644 --- a/pkg/sdk/integration_test_imports.go +++ b/internal/sdk/integration_test_imports.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/internal/collections/collection_helpers.go b/internal/sdk/internal/collections/collection_helpers.go similarity index 81% rename from pkg/sdk/internal/collections/collection_helpers.go rename to internal/sdk/internal/collections/collection_helpers.go index 79cd729aad..199b401519 100644 --- a/pkg/sdk/internal/collections/collection_helpers.go +++ b/internal/sdk/internal/collections/collection_helpers.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package collections import ( diff --git a/pkg/sdk/internal/random/random_helpers.go b/internal/sdk/internal/random/random_helpers.go similarity index 91% rename from pkg/sdk/internal/random/random_helpers.go rename to internal/sdk/internal/random/random_helpers.go index d9ddac43c0..7fb47cfef5 100644 --- a/pkg/sdk/internal/random/random_helpers.go +++ b/internal/sdk/internal/random/random_helpers.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package random import ( diff --git a/pkg/sdk/masking_policy.go b/internal/sdk/masking_policy.go similarity index 99% rename from pkg/sdk/masking_policy.go rename to internal/sdk/masking_policy.go index 26120d6b57..b2cb1994e2 100644 --- a/pkg/sdk/masking_policy.go +++ b/internal/sdk/masking_policy.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/masking_policy_test.go b/internal/sdk/masking_policy_test.go similarity index 97% rename from pkg/sdk/masking_policy_test.go rename to internal/sdk/masking_policy_test.go index 6bd8129d05..69c1f9d7b3 100644 --- a/pkg/sdk/masking_policy_test.go +++ b/internal/sdk/masking_policy_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" ) func TestMaskingPolicyCreate(t *testing.T) { diff --git a/pkg/sdk/network_policies_def.go b/internal/sdk/network_policies_def.go similarity index 97% rename from pkg/sdk/network_policies_def.go rename to internal/sdk/network_policies_def.go index b2beaf222d..b18167942f 100644 --- a/pkg/sdk/network_policies_def.go +++ b/internal/sdk/network_policies_def.go @@ -1,6 +1,9 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk -import g "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/poc/generator" +import g "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/poc/generator" //go:generate go run ./poc/main.go diff --git a/pkg/sdk/network_policies_dto_builders_gen.go b/internal/sdk/network_policies_dto_builders_gen.go similarity index 99% rename from pkg/sdk/network_policies_dto_builders_gen.go rename to internal/sdk/network_policies_dto_builders_gen.go index 9e6c1e87f4..eca91a4c25 100644 --- a/pkg/sdk/network_policies_dto_builders_gen.go +++ b/internal/sdk/network_policies_dto_builders_gen.go @@ -2,8 +2,6 @@ package sdk -import () - func NewCreateNetworkPolicyRequest( name AccountObjectIdentifier, ) *CreateNetworkPolicyRequest { diff --git a/pkg/sdk/network_policies_dto_gen.go b/internal/sdk/network_policies_dto_gen.go similarity index 95% rename from pkg/sdk/network_policies_dto_gen.go rename to internal/sdk/network_policies_dto_gen.go index 8902f05440..99cd9df91c 100644 --- a/pkg/sdk/network_policies_dto_gen.go +++ b/internal/sdk/network_policies_dto_gen.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk //go:generate go run ./dto-builder-generator/main.go diff --git a/pkg/sdk/network_policies_gen.go b/internal/sdk/network_policies_gen.go similarity index 98% rename from pkg/sdk/network_policies_gen.go rename to internal/sdk/network_policies_gen.go index d1aba59894..3aa0496ca4 100644 --- a/pkg/sdk/network_policies_gen.go +++ b/internal/sdk/network_policies_gen.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import "context" diff --git a/pkg/sdk/network_policies_gen_test.go b/internal/sdk/network_policies_gen_test.go similarity index 98% rename from pkg/sdk/network_policies_gen_test.go rename to internal/sdk/network_policies_gen_test.go index f03fd49bb3..740dc2f099 100644 --- a/pkg/sdk/network_policies_gen_test.go +++ b/internal/sdk/network_policies_gen_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/network_policies_impl_gen.go b/internal/sdk/network_policies_impl_gen.go similarity index 96% rename from pkg/sdk/network_policies_impl_gen.go rename to internal/sdk/network_policies_impl_gen.go index b8b787c225..4207da0364 100644 --- a/pkg/sdk/network_policies_impl_gen.go +++ b/internal/sdk/network_policies_impl_gen.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" ) var _ NetworkPolicies = (*networkPolicies)(nil) diff --git a/pkg/sdk/network_policies_validations_gen.go b/internal/sdk/network_policies_validations_gen.go similarity index 96% rename from pkg/sdk/network_policies_validations_gen.go rename to internal/sdk/network_policies_validations_gen.go index 6a7e5aff61..8318949ad6 100644 --- a/pkg/sdk/network_policies_validations_gen.go +++ b/internal/sdk/network_policies_validations_gen.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import "errors" diff --git a/pkg/sdk/object_types.go b/internal/sdk/object_types.go similarity index 99% rename from pkg/sdk/object_types.go rename to internal/sdk/object_types.go index 3f866bccbe..f7ea920f91 100644 --- a/pkg/sdk/object_types.go +++ b/internal/sdk/object_types.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/parameters.go b/internal/sdk/parameters.go similarity index 99% rename from pkg/sdk/parameters.go rename to internal/sdk/parameters.go index 7cff37644a..d2d8f59228 100644 --- a/pkg/sdk/parameters.go +++ b/internal/sdk/parameters.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/parameters_impl.go b/internal/sdk/parameters_impl.go similarity index 99% rename from pkg/sdk/parameters_impl.go rename to internal/sdk/parameters_impl.go index 110efbeff3..ca984818c8 100644 --- a/pkg/sdk/parameters_impl.go +++ b/internal/sdk/parameters_impl.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/parameters_test.go b/internal/sdk/parameters_test.go similarity index 89% rename from pkg/sdk/parameters_test.go rename to internal/sdk/parameters_test.go index 876290a4bd..37c88319f0 100644 --- a/pkg/sdk/parameters_test.go +++ b/internal/sdk/parameters_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/password_policy.go b/internal/sdk/password_policy.go similarity index 99% rename from pkg/sdk/password_policy.go rename to internal/sdk/password_policy.go index 578e8b264e..a8ec8da6fe 100644 --- a/pkg/sdk/password_policy.go +++ b/internal/sdk/password_policy.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/password_policy_test.go b/internal/sdk/password_policy_test.go similarity index 97% rename from pkg/sdk/password_policy_test.go rename to internal/sdk/password_policy_test.go index a3b62c2fd5..7b77012731 100644 --- a/pkg/sdk/password_policy_test.go +++ b/internal/sdk/password_policy_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" ) func TestPasswordPolicyCreate(t *testing.T) { diff --git a/pkg/sdk/pipes.go b/internal/sdk/pipes.go similarity index 98% rename from pkg/sdk/pipes.go rename to internal/sdk/pipes.go index a0cdee18cb..e70a1f33e9 100644 --- a/pkg/sdk/pipes.go +++ b/internal/sdk/pipes.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/pipes_impl.go b/internal/sdk/pipes_impl.go similarity index 91% rename from pkg/sdk/pipes_impl.go rename to internal/sdk/pipes_impl.go index 86bc728d7a..607ff5dfb9 100644 --- a/pkg/sdk/pipes_impl.go +++ b/internal/sdk/pipes_impl.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" ) var _ Pipes = (*pipes)(nil) diff --git a/pkg/sdk/pipes_test.go b/internal/sdk/pipes_test.go similarity index 99% rename from pkg/sdk/pipes_test.go rename to internal/sdk/pipes_test.go index 9c2047f1ff..e1ffd190a3 100644 --- a/pkg/sdk/pipes_test.go +++ b/internal/sdk/pipes_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/pipes_validations.go b/internal/sdk/pipes_validations.go similarity index 97% rename from pkg/sdk/pipes_validations.go rename to internal/sdk/pipes_validations.go index 593dd5f5e7..8d3c8c4a40 100644 --- a/pkg/sdk/pipes_validations.go +++ b/internal/sdk/pipes_validations.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/poc/README.md b/internal/sdk/poc/README.md similarity index 100% rename from pkg/sdk/poc/README.md rename to internal/sdk/poc/README.md diff --git a/pkg/sdk/poc/example/database_role_def.go b/internal/sdk/poc/example/database_role_def.go similarity index 93% rename from pkg/sdk/poc/example/database_role_def.go rename to internal/sdk/poc/example/database_role_def.go index af670efb71..b06d6bc588 100644 --- a/pkg/sdk/poc/example/database_role_def.go +++ b/internal/sdk/poc/example/database_role_def.go @@ -1,7 +1,10 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package example import ( - g "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/poc/generator" + g "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/poc/generator" ) //go:generate go run ../main.go diff --git a/pkg/sdk/poc/example/database_role_dto_builders_gen.go b/internal/sdk/poc/example/database_role_dto_builders_gen.go similarity index 99% rename from pkg/sdk/poc/example/database_role_dto_builders_gen.go rename to internal/sdk/poc/example/database_role_dto_builders_gen.go index 195f3f3b93..07a1ef6a55 100644 --- a/pkg/sdk/poc/example/database_role_dto_builders_gen.go +++ b/internal/sdk/poc/example/database_role_dto_builders_gen.go @@ -2,8 +2,6 @@ package example -import () - func NewCreateDatabaseRoleRequest( name DatabaseObjectIdentifier, ) *CreateDatabaseRoleRequest { diff --git a/pkg/sdk/poc/example/database_role_dto_gen.go b/internal/sdk/poc/example/database_role_dto_gen.go similarity index 93% rename from pkg/sdk/poc/example/database_role_dto_gen.go rename to internal/sdk/poc/example/database_role_dto_gen.go index 837b6e80be..b0ed1ebfa6 100644 --- a/pkg/sdk/poc/example/database_role_dto_gen.go +++ b/internal/sdk/poc/example/database_role_dto_gen.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package example //go:generate go run ./../../dto-builder-generator/main.go diff --git a/pkg/sdk/poc/example/database_role_gen.go b/internal/sdk/poc/example/database_role_gen.go similarity index 96% rename from pkg/sdk/poc/example/database_role_gen.go rename to internal/sdk/poc/example/database_role_gen.go index 0a1afd2b7d..f762c98dc4 100644 --- a/pkg/sdk/poc/example/database_role_gen.go +++ b/internal/sdk/poc/example/database_role_gen.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package example import "context" diff --git a/pkg/sdk/poc/example/database_role_gen_integration_test.go b/internal/sdk/poc/example/database_role_gen_integration_test.go similarity index 78% rename from pkg/sdk/poc/example/database_role_gen_integration_test.go rename to internal/sdk/poc/example/database_role_gen_integration_test.go index 4805c1fda2..e438f65421 100644 --- a/pkg/sdk/poc/example/database_role_gen_integration_test.go +++ b/internal/sdk/poc/example/database_role_gen_integration_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package example import "testing" diff --git a/pkg/sdk/poc/example/database_role_gen_test.go b/internal/sdk/poc/example/database_role_gen_test.go similarity index 97% rename from pkg/sdk/poc/example/database_role_gen_test.go rename to internal/sdk/poc/example/database_role_gen_test.go index 989e22d57c..787b7cc923 100644 --- a/pkg/sdk/poc/example/database_role_gen_test.go +++ b/internal/sdk/poc/example/database_role_gen_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package example import "testing" diff --git a/pkg/sdk/poc/example/database_role_impl_gen.go b/internal/sdk/poc/example/database_role_impl_gen.go similarity index 95% rename from pkg/sdk/poc/example/database_role_impl_gen.go rename to internal/sdk/poc/example/database_role_impl_gen.go index 15aec1074d..4cb6502a17 100644 --- a/pkg/sdk/poc/example/database_role_impl_gen.go +++ b/internal/sdk/poc/example/database_role_impl_gen.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package example import "context" diff --git a/pkg/sdk/poc/example/database_role_validations_gen.go b/internal/sdk/poc/example/database_role_validations_gen.go similarity index 95% rename from pkg/sdk/poc/example/database_role_validations_gen.go rename to internal/sdk/poc/example/database_role_validations_gen.go index 23da9af2c9..30d1d45a42 100644 --- a/pkg/sdk/poc/example/database_role_validations_gen.go +++ b/internal/sdk/poc/example/database_role_validations_gen.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package example import "errors" diff --git a/pkg/sdk/poc/example/sdk_definitions.go b/internal/sdk/poc/example/sdk_definitions.go similarity index 97% rename from pkg/sdk/poc/example/sdk_definitions.go rename to internal/sdk/poc/example/sdk_definitions.go index 7ba8672e28..25f78838f2 100644 --- a/pkg/sdk/poc/example/sdk_definitions.go +++ b/internal/sdk/poc/example/sdk_definitions.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package example import ( diff --git a/pkg/sdk/poc/generator/db_struct.go b/internal/sdk/poc/generator/db_struct.go similarity index 90% rename from pkg/sdk/poc/generator/db_struct.go rename to internal/sdk/poc/generator/db_struct.go index d42cf83d47..ecf8fbacd8 100644 --- a/pkg/sdk/poc/generator/db_struct.go +++ b/internal/sdk/poc/generator/db_struct.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator type dbStruct struct { diff --git a/pkg/sdk/poc/generator/field.go b/internal/sdk/poc/generator/field.go similarity index 98% rename from pkg/sdk/poc/generator/field.go rename to internal/sdk/poc/generator/field.go index edfc2b7106..8d632d35d5 100644 --- a/pkg/sdk/poc/generator/field.go +++ b/internal/sdk/poc/generator/field.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator import ( diff --git a/pkg/sdk/poc/generator/field_transformers.go b/internal/sdk/poc/generator/field_transformers.go similarity index 98% rename from pkg/sdk/poc/generator/field_transformers.go rename to internal/sdk/poc/generator/field_transformers.go index 9e404814c2..d5a549038e 100644 --- a/pkg/sdk/poc/generator/field_transformers.go +++ b/internal/sdk/poc/generator/field_transformers.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator import "golang.org/x/exp/slices" diff --git a/pkg/sdk/poc/generator/file_util.go b/internal/sdk/poc/generator/file_util.go similarity index 87% rename from pkg/sdk/poc/generator/file_util.go rename to internal/sdk/poc/generator/file_util.go index 1924265ef2..a8943eb7cf 100644 --- a/pkg/sdk/poc/generator/file_util.go +++ b/internal/sdk/poc/generator/file_util.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator import ( diff --git a/pkg/sdk/poc/generator/identifier_builders.go b/internal/sdk/poc/generator/identifier_builders.go similarity index 92% rename from pkg/sdk/poc/generator/identifier_builders.go rename to internal/sdk/poc/generator/identifier_builders.go index 1d697c6087..596db8f1a5 100644 --- a/pkg/sdk/poc/generator/identifier_builders.go +++ b/internal/sdk/poc/generator/identifier_builders.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator // Name adds identifier with field name "name" and type will be inferred from interface definition diff --git a/pkg/sdk/poc/generator/interface.go b/internal/sdk/poc/generator/interface.go similarity index 93% rename from pkg/sdk/poc/generator/interface.go rename to internal/sdk/poc/generator/interface.go index e5674b1e00..9004d81e29 100644 --- a/pkg/sdk/poc/generator/interface.go +++ b/internal/sdk/poc/generator/interface.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator // Interface groups operations for particular object or objects family (e.g. DATABASE ROLE) diff --git a/pkg/sdk/poc/generator/keyword_builders.go b/internal/sdk/poc/generator/keyword_builders.go similarity index 97% rename from pkg/sdk/poc/generator/keyword_builders.go rename to internal/sdk/poc/generator/keyword_builders.go index 73c5717232..008b5382af 100644 --- a/pkg/sdk/poc/generator/keyword_builders.go +++ b/internal/sdk/poc/generator/keyword_builders.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator func (v *queryStruct) OptionalSQL(sql string) *queryStruct { diff --git a/pkg/sdk/poc/generator/kind.go b/internal/sdk/poc/generator/kind.go similarity index 85% rename from pkg/sdk/poc/generator/kind.go rename to internal/sdk/poc/generator/kind.go index 68b962b76c..e32c94ef3b 100644 --- a/pkg/sdk/poc/generator/kind.go +++ b/internal/sdk/poc/generator/kind.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator import "reflect" diff --git a/pkg/sdk/poc/generator/operation.go b/internal/sdk/poc/generator/operation.go similarity index 98% rename from pkg/sdk/poc/generator/operation.go rename to internal/sdk/poc/generator/operation.go index 6dddf5d8d0..5d456f0c9d 100644 --- a/pkg/sdk/poc/generator/operation.go +++ b/internal/sdk/poc/generator/operation.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator type OperationKind string diff --git a/pkg/sdk/poc/generator/parameter_builders.go b/internal/sdk/poc/generator/parameter_builders.go similarity index 97% rename from pkg/sdk/poc/generator/parameter_builders.go rename to internal/sdk/poc/generator/parameter_builders.go index 8c5cf6d924..3c31548804 100644 --- a/pkg/sdk/poc/generator/parameter_builders.go +++ b/internal/sdk/poc/generator/parameter_builders.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator func (v *queryStruct) assignment(name string, kind string, transformer *ParameterTransformer) *queryStruct { diff --git a/pkg/sdk/poc/generator/plain_struct.go b/internal/sdk/poc/generator/plain_struct.go similarity index 90% rename from pkg/sdk/poc/generator/plain_struct.go rename to internal/sdk/poc/generator/plain_struct.go index c011326bbd..c6633b250a 100644 --- a/pkg/sdk/poc/generator/plain_struct.go +++ b/internal/sdk/poc/generator/plain_struct.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator type plainStruct struct { diff --git a/pkg/sdk/poc/generator/query_struct.go b/internal/sdk/poc/generator/query_struct.go similarity index 96% rename from pkg/sdk/poc/generator/query_struct.go rename to internal/sdk/poc/generator/query_struct.go index 68278308bb..7430e037f6 100644 --- a/pkg/sdk/poc/generator/query_struct.go +++ b/internal/sdk/poc/generator/query_struct.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator // TODO For Field abstractions use internal Field representation instead of copying only needed fields, e.g. diff --git a/pkg/sdk/poc/generator/static_builders.go b/internal/sdk/poc/generator/static_builders.go similarity index 89% rename from pkg/sdk/poc/generator/static_builders.go rename to internal/sdk/poc/generator/static_builders.go index b47a7d89dc..ad45dc026d 100644 --- a/pkg/sdk/poc/generator/static_builders.go +++ b/internal/sdk/poc/generator/static_builders.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator func (v *queryStruct) SQL(sql string) *queryStruct { diff --git a/pkg/sdk/poc/generator/tag_builder.go b/internal/sdk/poc/generator/tag_builder.go similarity index 96% rename from pkg/sdk/poc/generator/tag_builder.go rename to internal/sdk/poc/generator/tag_builder.go index cc9ac85303..4e9c42499f 100644 --- a/pkg/sdk/poc/generator/tag_builder.go +++ b/internal/sdk/poc/generator/tag_builder.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator type TagBuilder struct { diff --git a/pkg/sdk/poc/generator/template_executors.go b/internal/sdk/poc/generator/template_executors.go similarity index 97% rename from pkg/sdk/poc/generator/template_executors.go rename to internal/sdk/poc/generator/template_executors.go index 19537fc09c..b5d9e036a2 100644 --- a/pkg/sdk/poc/generator/template_executors.go +++ b/internal/sdk/poc/generator/template_executors.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator import ( diff --git a/pkg/sdk/poc/generator/templates.go b/internal/sdk/poc/generator/templates.go similarity index 97% rename from pkg/sdk/poc/generator/templates.go rename to internal/sdk/poc/generator/templates.go index 919b8e7fa3..5eae438c20 100644 --- a/pkg/sdk/poc/generator/templates.go +++ b/internal/sdk/poc/generator/templates.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator import "text/template" @@ -118,7 +121,7 @@ var ImplementationTemplate, _ = template.New("implementationTemplate"). import ( "context" -"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" +"github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" ) {{ $impl := .NameLowerCased }} @@ -276,7 +279,7 @@ import "errors" var ( {{- range .Operations }} - {{- if .OptsField }} + {{- if .OptsField }} _ validatable = new({{ .OptsField.KindNoPtr }}) {{- end }} {{- end }} diff --git a/pkg/sdk/poc/generator/util.go b/internal/sdk/poc/generator/util.go similarity index 95% rename from pkg/sdk/poc/generator/util.go rename to internal/sdk/poc/generator/util.go index 9619c2e540..ca05a7bfc2 100644 --- a/pkg/sdk/poc/generator/util.go +++ b/internal/sdk/poc/generator/util.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator import ( diff --git a/pkg/sdk/poc/generator/validation.go b/internal/sdk/poc/generator/validation.go similarity index 98% rename from pkg/sdk/poc/generator/validation.go rename to internal/sdk/poc/generator/validation.go index 39729f3a47..a8c0e23ffb 100644 --- a/pkg/sdk/poc/generator/validation.go +++ b/internal/sdk/poc/generator/validation.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package generator import ( diff --git a/pkg/sdk/poc/main.go b/internal/sdk/poc/main.go similarity index 90% rename from pkg/sdk/poc/main.go rename to internal/sdk/poc/main.go index a403ae1107..ae958c0691 100644 --- a/pkg/sdk/poc/main.go +++ b/internal/sdk/poc/main.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + //go:build exclude package main @@ -10,9 +13,9 @@ import ( "os" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/poc/example" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/poc/generator" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/poc/example" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/poc/generator" ) var definitionMapping = map[string]*generator.Interface{ diff --git a/pkg/sdk/privileges.go b/internal/sdk/privileges.go similarity index 99% rename from pkg/sdk/privileges.go rename to internal/sdk/privileges.go index 0d7a13d876..280a058edc 100644 --- a/pkg/sdk/privileges.go +++ b/internal/sdk/privileges.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk type GlobalPrivilege string diff --git a/pkg/sdk/random.go b/internal/sdk/random.go similarity index 93% rename from pkg/sdk/random.go rename to internal/sdk/random.go index a28b474858..c0dc0a852c 100644 --- a/pkg/sdk/random.go +++ b/internal/sdk/random.go @@ -1,7 +1,10 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" ) // Helper methods in this file are used both in SDK tests and also in integration tests. diff --git a/pkg/sdk/replication_functions.go b/internal/sdk/replication_functions.go similarity index 98% rename from pkg/sdk/replication_functions.go rename to internal/sdk/replication_functions.go index 2b42c42dbb..52d83cdb5a 100644 --- a/pkg/sdk/replication_functions.go +++ b/internal/sdk/replication_functions.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/replication_groups.go b/internal/sdk/replication_groups.go similarity index 71% rename from pkg/sdk/replication_groups.go rename to internal/sdk/replication_groups.go index f38687f4f5..58a07b8af3 100644 --- a/pkg/sdk/replication_groups.go +++ b/internal/sdk/replication_groups.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk // note: once Replication Groups is implemented, Databases Integration test for CreateSecondary needs to be implemented diff --git a/pkg/sdk/resource_monitor_internal_test.go b/internal/sdk/resource_monitor_internal_test.go similarity index 89% rename from pkg/sdk/resource_monitor_internal_test.go rename to internal/sdk/resource_monitor_internal_test.go index 4bc45e8184..af4a2966eb 100644 --- a/pkg/sdk/resource_monitor_internal_test.go +++ b/internal/sdk/resource_monitor_internal_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/resource_monitors.go b/internal/sdk/resource_monitors.go similarity index 99% rename from pkg/sdk/resource_monitors.go rename to internal/sdk/resource_monitors.go index ce9cea34ca..b4bca58f76 100644 --- a/pkg/sdk/resource_monitors.go +++ b/internal/sdk/resource_monitors.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/resource_monitors_test.go b/internal/sdk/resource_monitors_test.go similarity index 98% rename from pkg/sdk/resource_monitors_test.go rename to internal/sdk/resource_monitors_test.go index b42dbf8795..786a8a6d02 100644 --- a/pkg/sdk/resource_monitors_test.go +++ b/internal/sdk/resource_monitors_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/roles.go b/internal/sdk/roles.go similarity index 98% rename from pkg/sdk/roles.go rename to internal/sdk/roles.go index d0c32d2acc..b931be4218 100644 --- a/pkg/sdk/roles.go +++ b/internal/sdk/roles.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/roles_dto.go b/internal/sdk/roles_dto.go similarity index 98% rename from pkg/sdk/roles_dto.go rename to internal/sdk/roles_dto.go index 0300d36d6c..ed114b139b 100644 --- a/pkg/sdk/roles_dto.go +++ b/internal/sdk/roles_dto.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk var ( diff --git a/pkg/sdk/roles_impl.go b/internal/sdk/roles_impl.go similarity index 91% rename from pkg/sdk/roles_impl.go rename to internal/sdk/roles_impl.go index c6ce1dbabb..ef9094ffb7 100644 --- a/pkg/sdk/roles_impl.go +++ b/internal/sdk/roles_impl.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" ) var ( diff --git a/pkg/sdk/roles_test.go b/internal/sdk/roles_test.go similarity index 99% rename from pkg/sdk/roles_test.go rename to internal/sdk/roles_test.go index 96b219092d..a45a653013 100644 --- a/pkg/sdk/roles_test.go +++ b/internal/sdk/roles_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/roles_validations.go b/internal/sdk/roles_validations.go similarity index 97% rename from pkg/sdk/roles_validations.go rename to internal/sdk/roles_validations.go index a231928b59..356394279f 100644 --- a/pkg/sdk/roles_validations.go +++ b/internal/sdk/roles_validations.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import "errors" diff --git a/pkg/sdk/schemas.go b/internal/sdk/schemas.go similarity index 99% rename from pkg/sdk/schemas.go rename to internal/sdk/schemas.go index 90b0e32d7f..c2f85fde17 100644 --- a/pkg/sdk/schemas.go +++ b/internal/sdk/schemas.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/schemas_test.go b/internal/sdk/schemas_test.go similarity index 99% rename from pkg/sdk/schemas_test.go rename to internal/sdk/schemas_test.go index 26fecbbdbe..65c818b2ff 100644 --- a/pkg/sdk/schemas_test.go +++ b/internal/sdk/schemas_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/session_policies_def.go b/internal/sdk/session_policies_def.go similarity index 97% rename from pkg/sdk/session_policies_def.go rename to internal/sdk/session_policies_def.go index 86b86ae823..f6bb92313a 100644 --- a/pkg/sdk/session_policies_def.go +++ b/internal/sdk/session_policies_def.go @@ -1,6 +1,9 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk -import g "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/poc/generator" +import g "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/poc/generator" //go:generate go run ./poc/main.go diff --git a/pkg/sdk/session_policies_dto_builders_gen.go b/internal/sdk/session_policies_dto_builders_gen.go similarity index 99% rename from pkg/sdk/session_policies_dto_builders_gen.go rename to internal/sdk/session_policies_dto_builders_gen.go index a13df58290..5e1c392235 100644 --- a/pkg/sdk/session_policies_dto_builders_gen.go +++ b/internal/sdk/session_policies_dto_builders_gen.go @@ -2,8 +2,6 @@ package sdk -import () - func NewCreateSessionPolicyRequest( name SchemaObjectIdentifier, ) *CreateSessionPolicyRequest { diff --git a/pkg/sdk/session_policies_dto_gen.go b/internal/sdk/session_policies_dto_gen.go similarity index 95% rename from pkg/sdk/session_policies_dto_gen.go rename to internal/sdk/session_policies_dto_gen.go index e041323701..3c33d94533 100644 --- a/pkg/sdk/session_policies_dto_gen.go +++ b/internal/sdk/session_policies_dto_gen.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk //go:generate go run ./dto-builder-generator/main.go diff --git a/pkg/sdk/session_policies_gen.go b/internal/sdk/session_policies_gen.go similarity index 98% rename from pkg/sdk/session_policies_gen.go rename to internal/sdk/session_policies_gen.go index 00c0480541..c5cd86fd72 100644 --- a/pkg/sdk/session_policies_gen.go +++ b/internal/sdk/session_policies_gen.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/session_policies_gen_test.go b/internal/sdk/session_policies_gen_test.go similarity index 99% rename from pkg/sdk/session_policies_gen_test.go rename to internal/sdk/session_policies_gen_test.go index 0c68390c53..69a3c0f232 100644 --- a/pkg/sdk/session_policies_gen_test.go +++ b/internal/sdk/session_policies_gen_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import "testing" diff --git a/pkg/sdk/session_policies_impl_gen.go b/internal/sdk/session_policies_impl_gen.go similarity index 96% rename from pkg/sdk/session_policies_impl_gen.go rename to internal/sdk/session_policies_impl_gen.go index 1d48dadff7..3cd0d43a75 100644 --- a/pkg/sdk/session_policies_impl_gen.go +++ b/internal/sdk/session_policies_impl_gen.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" ) var _ SessionPolicies = (*sessionPolicies)(nil) diff --git a/pkg/sdk/session_policies_validations_gen.go b/internal/sdk/session_policies_validations_gen.go similarity index 97% rename from pkg/sdk/session_policies_validations_gen.go rename to internal/sdk/session_policies_validations_gen.go index f14894942c..48eb411eab 100644 --- a/pkg/sdk/session_policies_validations_gen.go +++ b/internal/sdk/session_policies_validations_gen.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import "errors" diff --git a/pkg/sdk/sessions.go b/internal/sdk/sessions.go similarity index 98% rename from pkg/sdk/sessions.go rename to internal/sdk/sessions.go index 74e95439ad..59c8626600 100644 --- a/pkg/sdk/sessions.go +++ b/internal/sdk/sessions.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/shares.go b/internal/sdk/shares.go similarity index 99% rename from pkg/sdk/shares.go rename to internal/sdk/shares.go index 7a55136e9e..87915314c8 100644 --- a/pkg/sdk/shares.go +++ b/internal/sdk/shares.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/shares_test.go b/internal/sdk/shares_test.go similarity index 96% rename from pkg/sdk/shares_test.go rename to internal/sdk/shares_test.go index 3f6e038442..c95cad7231 100644 --- a/pkg/sdk/shares_test.go +++ b/internal/sdk/shares_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" ) func TestSharesCreate(t *testing.T) { diff --git a/pkg/sdk/sql_builder.go b/internal/sdk/sql_builder.go similarity index 99% rename from pkg/sdk/sql_builder.go rename to internal/sdk/sql_builder.go index dd71e51b8f..9a826bbbf7 100644 --- a/pkg/sdk/sql_builder.go +++ b/internal/sdk/sql_builder.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/sql_builder_test.go b/internal/sdk/sql_builder_test.go similarity index 99% rename from pkg/sdk/sql_builder_test.go rename to internal/sdk/sql_builder_test.go index f6c0a895de..f0dd6f26f0 100644 --- a/pkg/sdk/sql_builder_test.go +++ b/internal/sdk/sql_builder_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/stages.go b/internal/sdk/stages.go similarity index 84% rename from pkg/sdk/stages.go rename to internal/sdk/stages.go index aecd5695a5..7587c437dd 100644 --- a/pkg/sdk/stages.go +++ b/internal/sdk/stages.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk // Stage is a placeholder for now, will be implemented later. diff --git a/pkg/sdk/streams_def.go b/internal/sdk/streams_def.go similarity index 98% rename from pkg/sdk/streams_def.go rename to internal/sdk/streams_def.go index 68bb7913cc..cd2398af91 100644 --- a/pkg/sdk/streams_def.go +++ b/internal/sdk/streams_def.go @@ -1,6 +1,9 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk -import g "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/poc/generator" +import g "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/poc/generator" //go:generate go run ./poc/main.go diff --git a/pkg/sdk/streams_dto_builders_gen.go b/internal/sdk/streams_dto_builders_gen.go similarity index 100% rename from pkg/sdk/streams_dto_builders_gen.go rename to internal/sdk/streams_dto_builders_gen.go diff --git a/pkg/sdk/streams_dto_gen.go b/internal/sdk/streams_dto_gen.go similarity index 97% rename from pkg/sdk/streams_dto_gen.go rename to internal/sdk/streams_dto_gen.go index ad0a868b05..ee5f72af3c 100644 --- a/pkg/sdk/streams_dto_gen.go +++ b/internal/sdk/streams_dto_gen.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk //go:generate go run ./dto-builder-generator/main.go diff --git a/pkg/sdk/streams_gen.go b/internal/sdk/streams_gen.go similarity index 99% rename from pkg/sdk/streams_gen.go rename to internal/sdk/streams_gen.go index 4980381263..2df9b3ab3a 100644 --- a/pkg/sdk/streams_gen.go +++ b/internal/sdk/streams_gen.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/streams_gen_test.go b/internal/sdk/streams_gen_test.go similarity index 99% rename from pkg/sdk/streams_gen_test.go rename to internal/sdk/streams_gen_test.go index 9ddf6362c3..9a9d555254 100644 --- a/pkg/sdk/streams_gen_test.go +++ b/internal/sdk/streams_gen_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import "testing" diff --git a/pkg/sdk/streams_impl_gen.go b/internal/sdk/streams_impl_gen.go similarity index 97% rename from pkg/sdk/streams_impl_gen.go rename to internal/sdk/streams_impl_gen.go index fcbbf46f15..1fa641c77c 100644 --- a/pkg/sdk/streams_impl_gen.go +++ b/internal/sdk/streams_impl_gen.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" ) var _ Streams = (*streams)(nil) diff --git a/pkg/sdk/streams_validations_gen.go b/internal/sdk/streams_validations_gen.go similarity index 98% rename from pkg/sdk/streams_validations_gen.go rename to internal/sdk/streams_validations_gen.go index b350ec10bb..4c6cc68e87 100644 --- a/pkg/sdk/streams_validations_gen.go +++ b/internal/sdk/streams_validations_gen.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import "errors" diff --git a/pkg/sdk/sweepers.go b/internal/sdk/sweepers.go similarity index 98% rename from pkg/sdk/sweepers.go rename to internal/sdk/sweepers.go index 659d763e30..2a3eb0516b 100644 --- a/pkg/sdk/sweepers.go +++ b/internal/sdk/sweepers.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/sweepers_test.go b/internal/sdk/sweepers_test.go similarity index 93% rename from pkg/sdk/sweepers_test.go rename to internal/sdk/sweepers_test.go index 2268a9e088..9ffbaa996e 100644 --- a/pkg/sdk/sweepers_test.go +++ b/internal/sdk/sweepers_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/system_functions.go b/internal/sdk/system_functions.go similarity index 91% rename from pkg/sdk/system_functions.go rename to internal/sdk/system_functions.go index d948fff328..2a63ebddd7 100644 --- a/pkg/sdk/system_functions.go +++ b/internal/sdk/system_functions.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/tables.go b/internal/sdk/tables.go similarity index 84% rename from pkg/sdk/tables.go rename to internal/sdk/tables.go index 29c881939e..b15e724ea6 100644 --- a/pkg/sdk/tables.go +++ b/internal/sdk/tables.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk // placeholder for the real implementation. diff --git a/pkg/sdk/tags.go b/internal/sdk/tags.go similarity index 98% rename from pkg/sdk/tags.go rename to internal/sdk/tags.go index 63497f1fa1..3ef7188ac0 100644 --- a/pkg/sdk/tags.go +++ b/internal/sdk/tags.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + //lint:file-ignore U1000 Ignore all unused code, it's generated package sdk diff --git a/pkg/sdk/tags_dto.go b/internal/sdk/tags_dto.go similarity index 94% rename from pkg/sdk/tags_dto.go rename to internal/sdk/tags_dto.go index 6e6169558f..359a0ebd2d 100644 --- a/pkg/sdk/tags_dto.go +++ b/internal/sdk/tags_dto.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk var ( diff --git a/pkg/sdk/tags_dto_builders.go b/internal/sdk/tags_dto_builders.go similarity index 98% rename from pkg/sdk/tags_dto_builders.go rename to internal/sdk/tags_dto_builders.go index c63cbd691c..529427ab31 100644 --- a/pkg/sdk/tags_dto_builders.go +++ b/internal/sdk/tags_dto_builders.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk func NewCreateTagRequest(name SchemaObjectIdentifier) *CreateTagRequest { diff --git a/pkg/sdk/tags_impl.go b/internal/sdk/tags_impl.go similarity index 92% rename from pkg/sdk/tags_impl.go rename to internal/sdk/tags_impl.go index 1fba0d1537..ac6ba7f140 100644 --- a/pkg/sdk/tags_impl.go +++ b/internal/sdk/tags_impl.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" ) var _ Tags = (*tags)(nil) diff --git a/pkg/sdk/tags_test.go b/internal/sdk/tags_test.go similarity index 98% rename from pkg/sdk/tags_test.go rename to internal/sdk/tags_test.go index a630b66b28..5333c730fa 100644 --- a/pkg/sdk/tags_test.go +++ b/internal/sdk/tags_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" ) func TestTagCreate(t *testing.T) { diff --git a/pkg/sdk/tags_validations.go b/internal/sdk/tags_validations.go similarity index 98% rename from pkg/sdk/tags_validations.go rename to internal/sdk/tags_validations.go index dc3d19c0d3..2ebbe41ced 100644 --- a/pkg/sdk/tags_validations.go +++ b/internal/sdk/tags_validations.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/tasks_def.go b/internal/sdk/tasks_def.go similarity index 98% rename from pkg/sdk/tasks_def.go rename to internal/sdk/tasks_def.go index 11e6840967..afd9017c8a 100644 --- a/pkg/sdk/tasks_def.go +++ b/internal/sdk/tasks_def.go @@ -1,6 +1,9 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk -import g "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/poc/generator" +import g "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/poc/generator" //go:generate go run ./poc/main.go diff --git a/pkg/sdk/tasks_dto_builders_gen.go b/internal/sdk/tasks_dto_builders_gen.go similarity index 99% rename from pkg/sdk/tasks_dto_builders_gen.go rename to internal/sdk/tasks_dto_builders_gen.go index fd02c08b2e..eb7317c18c 100644 --- a/pkg/sdk/tasks_dto_builders_gen.go +++ b/internal/sdk/tasks_dto_builders_gen.go @@ -2,8 +2,6 @@ package sdk -import () - func NewCreateTaskRequest( name SchemaObjectIdentifier, sql string, diff --git a/pkg/sdk/tasks_dto_gen.go b/internal/sdk/tasks_dto_gen.go similarity index 98% rename from pkg/sdk/tasks_dto_gen.go rename to internal/sdk/tasks_dto_gen.go index aa58a0c7aa..21d5c3b54f 100644 --- a/pkg/sdk/tasks_dto_gen.go +++ b/internal/sdk/tasks_dto_gen.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk //go:generate go run ./dto-builder-generator/main.go diff --git a/pkg/sdk/tasks_gen.go b/internal/sdk/tasks_gen.go similarity index 99% rename from pkg/sdk/tasks_gen.go rename to internal/sdk/tasks_gen.go index c7e31aeb11..2c035ba2b4 100644 --- a/pkg/sdk/tasks_gen.go +++ b/internal/sdk/tasks_gen.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/tasks_gen_test.go b/internal/sdk/tasks_gen_test.go similarity index 99% rename from pkg/sdk/tasks_gen_test.go rename to internal/sdk/tasks_gen_test.go index c167a0998d..4ced4cb772 100644 --- a/pkg/sdk/tasks_gen_test.go +++ b/internal/sdk/tasks_gen_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/tasks_impl_gen.go b/internal/sdk/tasks_impl_gen.go similarity index 99% rename from pkg/sdk/tasks_impl_gen.go rename to internal/sdk/tasks_impl_gen.go index dd6f3070aa..0b00fe0622 100644 --- a/pkg/sdk/tasks_impl_gen.go +++ b/internal/sdk/tasks_impl_gen.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/tasks_test.go b/internal/sdk/tasks_test.go similarity index 98% rename from pkg/sdk/tasks_test.go rename to internal/sdk/tasks_test.go index 9d9f27d7d5..5b1eb84955 100644 --- a/pkg/sdk/tasks_test.go +++ b/internal/sdk/tasks_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/tasks_validations_gen.go b/internal/sdk/tasks_validations_gen.go similarity index 98% rename from pkg/sdk/tasks_validations_gen.go rename to internal/sdk/tasks_validations_gen.go index b3b5317b53..85b8b9c040 100644 --- a/pkg/sdk/tasks_validations_gen.go +++ b/internal/sdk/tasks_validations_gen.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import "errors" diff --git a/pkg/sdk/testint/accounts_integration_test.go b/internal/sdk/testint/accounts_integration_test.go similarity index 97% rename from pkg/sdk/testint/accounts_integration_test.go rename to internal/sdk/testint/accounts_integration_test.go index 2bd7cb035f..4090dddba3 100644 --- a/pkg/sdk/testint/accounts_integration_test.go +++ b/internal/sdk/testint/accounts_integration_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( @@ -7,8 +10,8 @@ import ( "testing" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/avast/retry-go" "github.com/brianvoe/gofakeit/v6" "github.com/stretchr/testify/assert" diff --git a/pkg/sdk/testint/alerts_integration_test.go b/internal/sdk/testint/alerts_integration_test.go similarity index 98% rename from pkg/sdk/testint/alerts_integration_test.go rename to internal/sdk/testint/alerts_integration_test.go index 3d7c8ad6ce..8635b62632 100644 --- a/pkg/sdk/testint/alerts_integration_test.go +++ b/internal/sdk/testint/alerts_integration_test.go @@ -1,11 +1,14 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "strings" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/comments_integration_test.go b/internal/sdk/testint/comments_integration_test.go similarity index 82% rename from pkg/sdk/testint/comments_integration_test.go rename to internal/sdk/testint/comments_integration_test.go index 18afc97d52..232f34da0a 100644 --- a/pkg/sdk/testint/comments_integration_test.go +++ b/internal/sdk/testint/comments_integration_test.go @@ -1,10 +1,13 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/context_functions_integration_test.go b/internal/sdk/testint/context_functions_integration_test.go similarity index 97% rename from pkg/sdk/testint/context_functions_integration_test.go rename to internal/sdk/testint/context_functions_integration_test.go index 12906bae8c..4c857d649a 100644 --- a/pkg/sdk/testint/context_functions_integration_test.go +++ b/internal/sdk/testint/context_functions_integration_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/conversion_functions_integration_test.go b/internal/sdk/testint/conversion_functions_integration_test.go similarity index 94% rename from pkg/sdk/testint/conversion_functions_integration_test.go rename to internal/sdk/testint/conversion_functions_integration_test.go index 303e25e4bb..ba7b73f36d 100644 --- a/pkg/sdk/testint/conversion_functions_integration_test.go +++ b/internal/sdk/testint/conversion_functions_integration_test.go @@ -1,10 +1,13 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "testing" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/database_role_integration_test.go b/internal/sdk/testint/database_role_integration_test.go similarity index 96% rename from pkg/sdk/testint/database_role_integration_test.go rename to internal/sdk/testint/database_role_integration_test.go index c4c9a76e42..29b4a584c8 100644 --- a/pkg/sdk/testint/database_role_integration_test.go +++ b/internal/sdk/testint/database_role_integration_test.go @@ -1,11 +1,14 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/databases_integration_test.go b/internal/sdk/testint/databases_integration_test.go similarity index 98% rename from pkg/sdk/testint/databases_integration_test.go rename to internal/sdk/testint/databases_integration_test.go index 07ac07f5ed..ecc84a3b2f 100644 --- a/pkg/sdk/testint/databases_integration_test.go +++ b/internal/sdk/testint/databases_integration_test.go @@ -1,11 +1,14 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "strings" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/dynamic_table_integration_test.go b/internal/sdk/testint/dynamic_table_integration_test.go similarity index 96% rename from pkg/sdk/testint/dynamic_table_integration_test.go rename to internal/sdk/testint/dynamic_table_integration_test.go index 0c6edea858..55014e6dd4 100644 --- a/pkg/sdk/testint/dynamic_table_integration_test.go +++ b/internal/sdk/testint/dynamic_table_integration_test.go @@ -1,11 +1,14 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "context" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/external_tables_integration_test.go b/internal/sdk/testint/external_tables_integration_test.go similarity index 97% rename from pkg/sdk/testint/external_tables_integration_test.go rename to internal/sdk/testint/external_tables_integration_test.go index a3eb9e639b..0e263f599a 100644 --- a/pkg/sdk/testint/external_tables_integration_test.go +++ b/internal/sdk/testint/external_tables_integration_test.go @@ -1,12 +1,15 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "fmt" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/failover_groups_integration_test.go b/internal/sdk/testint/failover_groups_integration_test.go similarity index 99% rename from pkg/sdk/testint/failover_groups_integration_test.go rename to internal/sdk/testint/failover_groups_integration_test.go index 7974e5c633..8406c7f04b 100644 --- a/pkg/sdk/testint/failover_groups_integration_test.go +++ b/internal/sdk/testint/failover_groups_integration_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( @@ -6,7 +9,7 @@ import ( "testing" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" "github.com/avast/retry-go" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/pkg/sdk/testint/file_format_integration_test.go b/internal/sdk/testint/file_format_integration_test.go similarity index 98% rename from pkg/sdk/testint/file_format_integration_test.go rename to internal/sdk/testint/file_format_integration_test.go index 7803d2cd37..45c1a0a22c 100644 --- a/pkg/sdk/testint/file_format_integration_test.go +++ b/internal/sdk/testint/file_format_integration_test.go @@ -1,11 +1,14 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "testing" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/grants_integration_test.go b/internal/sdk/testint/grants_integration_test.go similarity index 98% rename from pkg/sdk/testint/grants_integration_test.go rename to internal/sdk/testint/grants_integration_test.go index a4c6cb7063..19393b40e7 100644 --- a/pkg/sdk/testint/grants_integration_test.go +++ b/internal/sdk/testint/grants_integration_test.go @@ -1,10 +1,13 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/helpers_test.go b/internal/sdk/testint/helpers_test.go similarity index 99% rename from pkg/sdk/testint/helpers_test.go rename to internal/sdk/testint/helpers_test.go index 97bd3fbb44..3a116636d2 100644 --- a/pkg/sdk/testint/helpers_test.go +++ b/internal/sdk/testint/helpers_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( @@ -6,8 +9,8 @@ import ( "fmt" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/masking_policy_integration_test.go b/internal/sdk/testint/masking_policy_integration_test.go similarity index 98% rename from pkg/sdk/testint/masking_policy_integration_test.go rename to internal/sdk/testint/masking_policy_integration_test.go index 16d487d27f..27cbdd9359 100644 --- a/pkg/sdk/testint/masking_policy_integration_test.go +++ b/internal/sdk/testint/masking_policy_integration_test.go @@ -1,11 +1,14 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "strings" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/network_policies_gen_integration_test.go b/internal/sdk/testint/network_policies_gen_integration_test.go similarity index 96% rename from pkg/sdk/testint/network_policies_gen_integration_test.go rename to internal/sdk/testint/network_policies_gen_integration_test.go index a0d8d219fa..699d0f6c0a 100644 --- a/pkg/sdk/testint/network_policies_gen_integration_test.go +++ b/internal/sdk/testint/network_policies_gen_integration_test.go @@ -1,11 +1,14 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "fmt" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/parsers.go b/internal/sdk/testint/parsers.go similarity index 81% rename from pkg/sdk/testint/parsers.go rename to internal/sdk/testint/parsers.go index 86d8a90fef..eaff4c072b 100644 --- a/pkg/sdk/testint/parsers.go +++ b/internal/sdk/testint/parsers.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import "time" diff --git a/pkg/sdk/testint/password_policy_integration_test.go b/internal/sdk/testint/password_policy_integration_test.go similarity index 98% rename from pkg/sdk/testint/password_policy_integration_test.go rename to internal/sdk/testint/password_policy_integration_test.go index de98ec4530..f0dc59c935 100644 --- a/pkg/sdk/testint/password_policy_integration_test.go +++ b/internal/sdk/testint/password_policy_integration_test.go @@ -1,10 +1,13 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/pipes_integration_test.go b/internal/sdk/testint/pipes_integration_test.go similarity index 98% rename from pkg/sdk/testint/pipes_integration_test.go rename to internal/sdk/testint/pipes_integration_test.go index 59b13f5080..0b93792adb 100644 --- a/pkg/sdk/testint/pipes_integration_test.go +++ b/internal/sdk/testint/pipes_integration_test.go @@ -1,11 +1,14 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "fmt" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/replication_functions_integration_test.go b/internal/sdk/testint/replication_functions_integration_test.go similarity index 89% rename from pkg/sdk/testint/replication_functions_integration_test.go rename to internal/sdk/testint/replication_functions_integration_test.go index 1bc7b8bfc3..274deb5e3e 100644 --- a/pkg/sdk/testint/replication_functions_integration_test.go +++ b/internal/sdk/testint/replication_functions_integration_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/resource_monitors_integration_test.go b/internal/sdk/testint/resource_monitors_integration_test.go similarity index 97% rename from pkg/sdk/testint/resource_monitors_integration_test.go rename to internal/sdk/testint/resource_monitors_integration_test.go index 86e19aa5fc..b82fe80efb 100644 --- a/pkg/sdk/testint/resource_monitors_integration_test.go +++ b/internal/sdk/testint/resource_monitors_integration_test.go @@ -1,10 +1,13 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/roles_integration_test.go b/internal/sdk/testint/roles_integration_test.go similarity index 97% rename from pkg/sdk/testint/roles_integration_test.go rename to internal/sdk/testint/roles_integration_test.go index 5e41541e95..14f7048e5d 100644 --- a/pkg/sdk/testint/roles_integration_test.go +++ b/internal/sdk/testint/roles_integration_test.go @@ -1,10 +1,13 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/schemas_integration_test.go b/internal/sdk/testint/schemas_integration_test.go similarity index 98% rename from pkg/sdk/testint/schemas_integration_test.go rename to internal/sdk/testint/schemas_integration_test.go index a4a8cf351c..bd465146e3 100644 --- a/pkg/sdk/testint/schemas_integration_test.go +++ b/internal/sdk/testint/schemas_integration_test.go @@ -1,11 +1,14 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "fmt" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/session_policies_gen_integration_test.go b/internal/sdk/testint/session_policies_gen_integration_test.go similarity index 96% rename from pkg/sdk/testint/session_policies_gen_integration_test.go rename to internal/sdk/testint/session_policies_gen_integration_test.go index 1f70f2cf15..881728b595 100644 --- a/pkg/sdk/testint/session_policies_gen_integration_test.go +++ b/internal/sdk/testint/session_policies_gen_integration_test.go @@ -1,11 +1,14 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/sessions_integration_test.go b/internal/sdk/testint/sessions_integration_test.go similarity index 97% rename from pkg/sdk/testint/sessions_integration_test.go rename to internal/sdk/testint/sessions_integration_test.go index f14211fac4..ae827393ce 100644 --- a/pkg/sdk/testint/sessions_integration_test.go +++ b/internal/sdk/testint/sessions_integration_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/setup_integration_test.go b/internal/sdk/testint/setup_integration_test.go similarity index 94% rename from pkg/sdk/testint/setup_integration_test.go rename to internal/sdk/testint/setup_integration_test.go index 4508bfdbc9..41808f1728 100644 --- a/pkg/sdk/testint/setup_integration_test.go +++ b/internal/sdk/testint/setup_integration_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( @@ -7,8 +10,8 @@ import ( "testing" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" ) var itc integrationTestContext diff --git a/pkg/sdk/testint/shares_integration_test.go b/internal/sdk/testint/shares_integration_test.go similarity index 98% rename from pkg/sdk/testint/shares_integration_test.go rename to internal/sdk/testint/shares_integration_test.go index 1a9724511a..f999879264 100644 --- a/pkg/sdk/testint/shares_integration_test.go +++ b/internal/sdk/testint/shares_integration_test.go @@ -1,10 +1,13 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/streams_gen_integration_test.go b/internal/sdk/testint/streams_gen_integration_test.go similarity index 97% rename from pkg/sdk/testint/streams_gen_integration_test.go rename to internal/sdk/testint/streams_gen_integration_test.go index a6d1aba37f..de89428748 100644 --- a/pkg/sdk/testint/streams_gen_integration_test.go +++ b/internal/sdk/testint/streams_gen_integration_test.go @@ -1,13 +1,16 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "fmt" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/pkg/sdk/testint/system_functions_integration_test.go b/internal/sdk/testint/system_functions_integration_test.go similarity index 85% rename from pkg/sdk/testint/system_functions_integration_test.go rename to internal/sdk/testint/system_functions_integration_test.go index 305a47ae42..d660ddd80d 100644 --- a/pkg/sdk/testint/system_functions_integration_test.go +++ b/internal/sdk/testint/system_functions_integration_test.go @@ -1,10 +1,13 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/tags_integration_test.go b/internal/sdk/testint/tags_integration_test.go similarity index 96% rename from pkg/sdk/testint/tags_integration_test.go rename to internal/sdk/testint/tags_integration_test.go index b473932c5f..51cd2e8326 100644 --- a/pkg/sdk/testint/tags_integration_test.go +++ b/internal/sdk/testint/tags_integration_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( @@ -5,9 +8,9 @@ import ( "errors" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/tasks_gen_integration_test.go b/internal/sdk/testint/tasks_gen_integration_test.go similarity index 98% rename from pkg/sdk/testint/tasks_gen_integration_test.go rename to internal/sdk/testint/tasks_gen_integration_test.go index f6dd6d9e5e..aaf66304eb 100644 --- a/pkg/sdk/testint/tasks_gen_integration_test.go +++ b/internal/sdk/testint/tasks_gen_integration_test.go @@ -1,10 +1,13 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/users_integration_test.go b/internal/sdk/testint/users_integration_test.go similarity index 96% rename from pkg/sdk/testint/users_integration_test.go rename to internal/sdk/testint/users_integration_test.go index 444b9a7b55..9117223154 100644 --- a/pkg/sdk/testint/users_integration_test.go +++ b/internal/sdk/testint/users_integration_test.go @@ -1,11 +1,14 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "strings" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/testint/warehouses_integration_test.go b/internal/sdk/testint/warehouses_integration_test.go similarity index 99% rename from pkg/sdk/testint/warehouses_integration_test.go rename to internal/sdk/testint/warehouses_integration_test.go index 4b96d45283..6b2a742363 100644 --- a/pkg/sdk/testint/warehouses_integration_test.go +++ b/internal/sdk/testint/warehouses_integration_test.go @@ -1,10 +1,13 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testint import ( "testing" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/sdk/type_helpers.go b/internal/sdk/type_helpers.go similarity index 93% rename from pkg/sdk/type_helpers.go rename to internal/sdk/type_helpers.go index e1c7034b9c..0d3bf5b816 100644 --- a/pkg/sdk/type_helpers.go +++ b/internal/sdk/type_helpers.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/users.go b/internal/sdk/users.go similarity index 99% rename from pkg/sdk/users.go rename to internal/sdk/users.go index 8d45365db6..095e975584 100644 --- a/pkg/sdk/users.go +++ b/internal/sdk/users.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/users_test.go b/internal/sdk/users_test.go similarity index 98% rename from pkg/sdk/users_test.go rename to internal/sdk/users_test.go index f7952d913b..79de76669c 100644 --- a/pkg/sdk/users_test.go +++ b/internal/sdk/users_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" ) func TestUserCreate(t *testing.T) { diff --git a/pkg/sdk/validation.go b/internal/sdk/validation.go similarity index 98% rename from pkg/sdk/validation.go rename to internal/sdk/validation.go index c5654f19fa..bc245e50bb 100644 --- a/pkg/sdk/validation.go +++ b/internal/sdk/validation.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import "fmt" diff --git a/pkg/sdk/validation_test.go b/internal/sdk/validation_test.go similarity index 85% rename from pkg/sdk/validation_test.go rename to internal/sdk/validation_test.go index 63a2b82eec..4b3870bfd1 100644 --- a/pkg/sdk/validation_test.go +++ b/internal/sdk/validation_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" ) // TODO write a test for a candidate that's not castable to a string. diff --git a/pkg/sdk/validations.go b/internal/sdk/validations.go similarity index 96% rename from pkg/sdk/validations.go rename to internal/sdk/validations.go index 546f7ac15f..1834c5f3b2 100644 --- a/pkg/sdk/validations.go +++ b/internal/sdk/validations.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/validations_test.go b/internal/sdk/validations_test.go similarity index 97% rename from pkg/sdk/validations_test.go rename to internal/sdk/validations_test.go index 3725c52661..0e4b423ab2 100644 --- a/pkg/sdk/validations_test.go +++ b/internal/sdk/validations_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" "github.com/stretchr/testify/assert" ) diff --git a/pkg/sdk/warehouses.go b/internal/sdk/warehouses.go similarity index 99% rename from pkg/sdk/warehouses.go rename to internal/sdk/warehouses.go index a5f98fb63b..225fbc0725 100644 --- a/pkg/sdk/warehouses.go +++ b/internal/sdk/warehouses.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/sdk/warehouses_test.go b/internal/sdk/warehouses_test.go similarity index 99% rename from pkg/sdk/warehouses_test.go rename to internal/sdk/warehouses_test.go index 403644eac5..2ba90277f6 100644 --- a/pkg/sdk/warehouses_test.go +++ b/internal/sdk/warehouses_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package sdk import ( diff --git a/pkg/snowflake/all_grant.go b/internal/snowflake/all_grant.go similarity index 99% rename from pkg/snowflake/all_grant.go rename to internal/snowflake/all_grant.go index 7ad100fde9..7b0420b31c 100644 --- a/pkg/snowflake/all_grant.go +++ b/internal/snowflake/all_grant.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/all_grant_test.go b/internal/snowflake/all_grant_test.go similarity index 80% rename from pkg/snowflake/all_grant_test.go rename to internal/snowflake/all_grant_test.go index 84fd341b4d..f6e3c87352 100644 --- a/pkg/snowflake/all_grant_test.go +++ b/internal/snowflake/all_grant_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/api_integration.go b/internal/snowflake/api_integration.go similarity index 94% rename from pkg/snowflake/api_integration.go rename to internal/snowflake/api_integration.go index 11ff2d6c71..1d70e4c450 100644 --- a/pkg/snowflake/api_integration.go +++ b/internal/snowflake/api_integration.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/api_integration_test.go b/internal/snowflake/api_integration_test.go similarity index 87% rename from pkg/snowflake/api_integration_test.go rename to internal/snowflake/api_integration_test.go index e6b726f695..8ad6d4b638 100644 --- a/pkg/snowflake/api_integration_test.go +++ b/internal/snowflake/api_integration_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/builder.go b/internal/snowflake/builder.go similarity index 99% rename from pkg/snowflake/builder.go rename to internal/snowflake/builder.go index f451a457ff..0b71573032 100644 --- a/pkg/snowflake/builder.go +++ b/internal/snowflake/builder.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/current_account.go b/internal/snowflake/current_account.go similarity index 97% rename from pkg/snowflake/current_account.go rename to internal/snowflake/current_account.go index c3540b5a71..70a965a2ec 100644 --- a/pkg/snowflake/current_account.go +++ b/internal/snowflake/current_account.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/current_account_test.go b/internal/snowflake/current_account_test.go similarity index 92% rename from pkg/snowflake/current_account_test.go rename to internal/snowflake/current_account_test.go index 0273157f21..81da743935 100644 --- a/pkg/snowflake/current_account_test.go +++ b/internal/snowflake/current_account_test.go @@ -1,10 +1,13 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/jmoiron/sqlx" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/current_role.go b/internal/snowflake/current_role.go similarity index 88% rename from pkg/snowflake/current_role.go rename to internal/snowflake/current_role.go index 93ca4f2e94..2277e7ebb3 100644 --- a/pkg/snowflake/current_role.go +++ b/internal/snowflake/current_role.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/current_role_test.go b/internal/snowflake/current_role_test.go similarity index 87% rename from pkg/snowflake/current_role_test.go rename to internal/snowflake/current_role_test.go index a5cf615ee7..e0b5edfbc0 100644 --- a/pkg/snowflake/current_role_test.go +++ b/internal/snowflake/current_role_test.go @@ -1,10 +1,13 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/jmoiron/sqlx" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/email_notification_integration.go b/internal/snowflake/email_notification_integration.go similarity index 94% rename from pkg/snowflake/email_notification_integration.go rename to internal/snowflake/email_notification_integration.go index 7f93c59dfc..4f4d1c71de 100644 --- a/pkg/snowflake/email_notification_integration.go +++ b/internal/snowflake/email_notification_integration.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/errors.go b/internal/snowflake/errors.go similarity index 88% rename from pkg/snowflake/errors.go rename to internal/snowflake/errors.go index 2da2aa3c5e..a0ec529302 100644 --- a/pkg/snowflake/errors.go +++ b/internal/snowflake/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/escaping.go b/internal/snowflake/escaping.go similarity index 95% rename from pkg/snowflake/escaping.go rename to internal/snowflake/escaping.go index 42e1883832..4eab02926b 100644 --- a/pkg/snowflake/escaping.go +++ b/internal/snowflake/escaping.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/escaping_test.go b/internal/snowflake/escaping_test.go similarity index 90% rename from pkg/snowflake/escaping_test.go rename to internal/snowflake/escaping_test.go index 93ad9d31e2..6df75af9b7 100644 --- a/pkg/snowflake/escaping_test.go +++ b/internal/snowflake/escaping_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/exec.go b/internal/snowflake/exec.go similarity index 95% rename from pkg/snowflake/exec.go rename to internal/snowflake/exec.go index 5bfef0c55a..f0c524c71b 100644 --- a/pkg/snowflake/exec.go +++ b/internal/snowflake/exec.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/external_function.go b/internal/snowflake/external_function.go similarity index 99% rename from pkg/snowflake/external_function.go rename to internal/snowflake/external_function.go index 9463802857..6efa97ac5c 100644 --- a/pkg/snowflake/external_function.go +++ b/internal/snowflake/external_function.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/external_function_test.go b/internal/snowflake/external_function_test.go similarity index 96% rename from pkg/snowflake/external_function_test.go rename to internal/snowflake/external_function_test.go index ef3ce489ba..9451787bf3 100644 --- a/pkg/snowflake/external_function_test.go +++ b/internal/snowflake/external_function_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/external_oauth_integration.go b/internal/snowflake/external_oauth_integration.go similarity index 98% rename from pkg/snowflake/external_oauth_integration.go rename to internal/snowflake/external_oauth_integration.go index 80a7c45786..6b7f24a4ce 100644 --- a/pkg/snowflake/external_oauth_integration.go +++ b/internal/snowflake/external_oauth_integration.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/external_oauth_integration_test.go b/internal/snowflake/external_oauth_integration_test.go similarity index 95% rename from pkg/snowflake/external_oauth_integration_test.go rename to internal/snowflake/external_oauth_integration_test.go index c14d28e907..8ebc70b155 100644 --- a/pkg/snowflake/external_oauth_integration_test.go +++ b/internal/snowflake/external_oauth_integration_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/external_table.go b/internal/snowflake/external_table.go similarity index 99% rename from pkg/snowflake/external_table.go rename to internal/snowflake/external_table.go index 9eceebf25b..a2394294dd 100644 --- a/pkg/snowflake/external_table.go +++ b/internal/snowflake/external_table.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/external_table_test.go b/internal/snowflake/external_table_test.go similarity index 96% rename from pkg/snowflake/external_table_test.go rename to internal/snowflake/external_table_test.go index f55ef97e30..0053d86189 100644 --- a/pkg/snowflake/external_table_test.go +++ b/internal/snowflake/external_table_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/function.go b/internal/snowflake/function.go similarity index 99% rename from pkg/snowflake/function.go rename to internal/snowflake/function.go index add3d143f0..442a83cef6 100644 --- a/pkg/snowflake/function.go +++ b/internal/snowflake/function.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/function_test.go b/internal/snowflake/function_test.go similarity index 99% rename from pkg/snowflake/function_test.go rename to internal/snowflake/function_test.go index b1c24e246b..b5df7a817c 100644 --- a/pkg/snowflake/function_test.go +++ b/internal/snowflake/function_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/future_grant.go b/internal/snowflake/future_grant.go similarity index 99% rename from pkg/snowflake/future_grant.go rename to internal/snowflake/future_grant.go index eb121de143..145bfab7b7 100644 --- a/pkg/snowflake/future_grant.go +++ b/internal/snowflake/future_grant.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/future_grant_test.go b/internal/snowflake/future_grant_test.go similarity index 98% rename from pkg/snowflake/future_grant_test.go rename to internal/snowflake/future_grant_test.go index 135c3e3710..66c82b41be 100644 --- a/pkg/snowflake/future_grant_test.go +++ b/internal/snowflake/future_grant_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/generic.go b/internal/snowflake/generic.go similarity index 99% rename from pkg/snowflake/generic.go rename to internal/snowflake/generic.go index 5ccd7ddc2b..89bc01262d 100644 --- a/pkg/snowflake/generic.go +++ b/internal/snowflake/generic.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/generic_test.go b/internal/snowflake/generic_test.go similarity index 88% rename from pkg/snowflake/generic_test.go rename to internal/snowflake/generic_test.go index 7ccbb55a14..610f71a912 100644 --- a/pkg/snowflake/generic_test.go +++ b/internal/snowflake/generic_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/grant.go b/internal/snowflake/grant.go similarity index 99% rename from pkg/snowflake/grant.go rename to internal/snowflake/grant.go index 2ee39bc330..0a25dfbfbf 100644 --- a/pkg/snowflake/grant.go +++ b/internal/snowflake/grant.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/grant_test.go b/internal/snowflake/grant_test.go similarity index 99% rename from pkg/snowflake/grant_test.go rename to internal/snowflake/grant_test.go index e92ffe3e40..a10e891b8b 100644 --- a/pkg/snowflake/grant_test.go +++ b/internal/snowflake/grant_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/identifier.go b/internal/snowflake/identifier.go similarity index 96% rename from pkg/snowflake/identifier.go rename to internal/snowflake/identifier.go index 534a977079..5eb5dda8d8 100644 --- a/pkg/snowflake/identifier.go +++ b/internal/snowflake/identifier.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/managed_account.go b/internal/snowflake/managed_account.go similarity index 94% rename from pkg/snowflake/managed_account.go rename to internal/snowflake/managed_account.go index 017f2685f5..b2c1065fcc 100644 --- a/pkg/snowflake/managed_account.go +++ b/internal/snowflake/managed_account.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/managed_account_test.go b/internal/snowflake/managed_account_test.go similarity index 78% rename from pkg/snowflake/managed_account_test.go rename to internal/snowflake/managed_account_test.go index 4213633c36..ff210d6fc7 100644 --- a/pkg/snowflake/managed_account_test.go +++ b/internal/snowflake/managed_account_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/manager.go b/internal/snowflake/manager.go similarity index 67% rename from pkg/snowflake/manager.go rename to internal/snowflake/manager.go index f8b4a90881..fb4414682f 100644 --- a/pkg/snowflake/manager.go +++ b/internal/snowflake/manager.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake type BaseManager struct { diff --git a/pkg/snowflake/masking_policy.go b/internal/snowflake/masking_policy.go similarity index 95% rename from pkg/snowflake/masking_policy.go rename to internal/snowflake/masking_policy.go index 0037a6ac7a..910aac7967 100644 --- a/pkg/snowflake/masking_policy.go +++ b/internal/snowflake/masking_policy.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/masking_policy_application.go b/internal/snowflake/masking_policy_application.go similarity index 96% rename from pkg/snowflake/masking_policy_application.go rename to internal/snowflake/masking_policy_application.go index 8e3c486d4b..533e0111c4 100644 --- a/pkg/snowflake/masking_policy_application.go +++ b/internal/snowflake/masking_policy_application.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/masking_policy_application_test.go b/internal/snowflake/masking_policy_application_test.go similarity index 92% rename from pkg/snowflake/masking_policy_application_test.go rename to internal/snowflake/masking_policy_application_test.go index 5d607173fd..80cc22e3d6 100644 --- a/pkg/snowflake/masking_policy_application_test.go +++ b/internal/snowflake/masking_policy_application_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/materialized_view.go b/internal/snowflake/materialized_view.go similarity index 99% rename from pkg/snowflake/materialized_view.go rename to internal/snowflake/materialized_view.go index b343a8fb4f..d790048a72 100644 --- a/pkg/snowflake/materialized_view.go +++ b/internal/snowflake/materialized_view.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/network_policy.go b/internal/snowflake/network_policy.go similarity index 97% rename from pkg/snowflake/network_policy.go rename to internal/snowflake/network_policy.go index d7d75dd5a5..bf1b41f5b5 100644 --- a/pkg/snowflake/network_policy.go +++ b/internal/snowflake/network_policy.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/network_policy_test.go b/internal/snowflake/network_policy_test.go similarity index 91% rename from pkg/snowflake/network_policy_test.go rename to internal/snowflake/network_policy_test.go index e85505dd64..7d67cd0274 100644 --- a/pkg/snowflake/network_policy_test.go +++ b/internal/snowflake/network_policy_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/notification_integration.go b/internal/snowflake/notification_integration.go similarity index 94% rename from pkg/snowflake/notification_integration.go rename to internal/snowflake/notification_integration.go index f27ed6d971..8445ab1dcd 100644 --- a/pkg/snowflake/notification_integration.go +++ b/internal/snowflake/notification_integration.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/notification_integration_test.go b/internal/snowflake/notification_integration_test.go similarity index 93% rename from pkg/snowflake/notification_integration_test.go rename to internal/snowflake/notification_integration_test.go index d14174d903..9b3084df60 100644 --- a/pkg/snowflake/notification_integration_test.go +++ b/internal/snowflake/notification_integration_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/oauth_integration.go b/internal/snowflake/oauth_integration.go similarity index 96% rename from pkg/snowflake/oauth_integration.go rename to internal/snowflake/oauth_integration.go index 503500732b..2c30178cfe 100644 --- a/pkg/snowflake/oauth_integration.go +++ b/internal/snowflake/oauth_integration.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/oauth_integration_test.go b/internal/snowflake/oauth_integration_test.go similarity index 83% rename from pkg/snowflake/oauth_integration_test.go rename to internal/snowflake/oauth_integration_test.go index 144c8a6740..286781debd 100644 --- a/pkg/snowflake/oauth_integration_test.go +++ b/internal/snowflake/oauth_integration_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/parser.go b/internal/snowflake/parser.go similarity index 98% rename from pkg/snowflake/parser.go rename to internal/snowflake/parser.go index bdd429886e..cf413fc0d2 100644 --- a/pkg/snowflake/parser.go +++ b/internal/snowflake/parser.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/parser_internal_test.go b/internal/snowflake/parser_internal_test.go similarity index 51% rename from pkg/snowflake/parser_internal_test.go rename to internal/snowflake/parser_internal_test.go index c2a7a09d9b..b3513ff646 100644 --- a/pkg/snowflake/parser_internal_test.go +++ b/internal/snowflake/parser_internal_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake // Internal tests for ViewSelectStatementExtractor diff --git a/pkg/snowflake/parser_test.go b/internal/snowflake/parser_test.go similarity index 99% rename from pkg/snowflake/parser_test.go rename to internal/snowflake/parser_test.go index 7eff62c371..637b9e81e5 100644 --- a/pkg/snowflake/parser_test.go +++ b/internal/snowflake/parser_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/procedure.go b/internal/snowflake/procedure.go similarity index 99% rename from pkg/snowflake/procedure.go rename to internal/snowflake/procedure.go index 81c1c32f3a..6ef3327cff 100644 --- a/pkg/snowflake/procedure.go +++ b/internal/snowflake/procedure.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/procedure_test.go b/internal/snowflake/procedure_test.go similarity index 98% rename from pkg/snowflake/procedure_test.go rename to internal/snowflake/procedure_test.go index b22e9db98b..109c5ac11f 100644 --- a/pkg/snowflake/procedure_test.go +++ b/internal/snowflake/procedure_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/replication.go b/internal/snowflake/replication.go similarity index 96% rename from pkg/snowflake/replication.go rename to internal/snowflake/replication.go index 28ba6615d8..e2650f71e3 100644 --- a/pkg/snowflake/replication.go +++ b/internal/snowflake/replication.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/resource_monitor.go b/internal/snowflake/resource_monitor.go similarity index 99% rename from pkg/snowflake/resource_monitor.go rename to internal/snowflake/resource_monitor.go index 1fa079a777..736a4e2717 100644 --- a/pkg/snowflake/resource_monitor.go +++ b/internal/snowflake/resource_monitor.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/resource_monitor_test.go b/internal/snowflake/resource_monitor_test.go similarity index 93% rename from pkg/snowflake/resource_monitor_test.go rename to internal/snowflake/resource_monitor_test.go index 1d2530ce25..4096b1d562 100644 --- a/pkg/snowflake/resource_monitor_test.go +++ b/internal/snowflake/resource_monitor_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/role.go b/internal/snowflake/role.go similarity index 98% rename from pkg/snowflake/role.go rename to internal/snowflake/role.go index f3c56b4bdf..3472e7441c 100644 --- a/pkg/snowflake/role.go +++ b/internal/snowflake/role.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/role_grant.go b/internal/snowflake/role_grant.go similarity index 93% rename from pkg/snowflake/role_grant.go rename to internal/snowflake/role_grant.go index 375443f6d3..bd2b68e891 100644 --- a/pkg/snowflake/role_grant.go +++ b/internal/snowflake/role_grant.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import "fmt" diff --git a/pkg/snowflake/role_grant_test.go b/internal/snowflake/role_grant_test.go similarity index 78% rename from pkg/snowflake/role_grant_test.go rename to internal/snowflake/role_grant_test.go index 4488ff1c9c..d52870aa65 100644 --- a/pkg/snowflake/role_grant_test.go +++ b/internal/snowflake/role_grant_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/role_ownership_grant.go b/internal/snowflake/role_ownership_grant.go similarity index 96% rename from pkg/snowflake/role_ownership_grant.go rename to internal/snowflake/role_ownership_grant.go index 7679501b09..cc3047507f 100644 --- a/pkg/snowflake/role_ownership_grant.go +++ b/internal/snowflake/role_ownership_grant.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/role_ownership_grant_test.go b/internal/snowflake/role_ownership_grant_test.go similarity index 85% rename from pkg/snowflake/role_ownership_grant_test.go rename to internal/snowflake/role_ownership_grant_test.go index f932bfd4bd..16d5dab2f8 100644 --- a/pkg/snowflake/role_ownership_grant_test.go +++ b/internal/snowflake/role_ownership_grant_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/row_access_policy.go b/internal/snowflake/row_access_policy.go similarity index 98% rename from pkg/snowflake/row_access_policy.go rename to internal/snowflake/row_access_policy.go index 1c8c3f6249..d11612876e 100644 --- a/pkg/snowflake/row_access_policy.go +++ b/internal/snowflake/row_access_policy.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/row_access_policy_test.go b/internal/snowflake/row_access_policy_test.go similarity index 94% rename from pkg/snowflake/row_access_policy_test.go rename to internal/snowflake/row_access_policy_test.go index f6dd72f2a5..bcd916b487 100644 --- a/pkg/snowflake/row_access_policy_test.go +++ b/internal/snowflake/row_access_policy_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/saml_integration.go b/internal/snowflake/saml_integration.go similarity index 94% rename from pkg/snowflake/saml_integration.go rename to internal/snowflake/saml_integration.go index a88d09ae74..4b7710e46e 100644 --- a/pkg/snowflake/saml_integration.go +++ b/internal/snowflake/saml_integration.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/saml_integration_test.go b/internal/snowflake/saml_integration_test.go similarity index 97% rename from pkg/snowflake/saml_integration_test.go rename to internal/snowflake/saml_integration_test.go index 27f064fb22..131f77eb63 100644 --- a/pkg/snowflake/saml_integration_test.go +++ b/internal/snowflake/saml_integration_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/scim_integration.go b/internal/snowflake/scim_integration.go similarity index 94% rename from pkg/snowflake/scim_integration.go rename to internal/snowflake/scim_integration.go index 2b91705363..e612fcbdd0 100644 --- a/pkg/snowflake/scim_integration.go +++ b/internal/snowflake/scim_integration.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/scim_integration_test.go b/internal/snowflake/scim_integration_test.go similarity index 88% rename from pkg/snowflake/scim_integration_test.go rename to internal/snowflake/scim_integration_test.go index b9ee16d504..c351312239 100644 --- a/pkg/snowflake/scim_integration_test.go +++ b/internal/snowflake/scim_integration_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/sequence.go b/internal/snowflake/sequence.go similarity index 97% rename from pkg/snowflake/sequence.go rename to internal/snowflake/sequence.go index e91f44b5cc..7465144db1 100644 --- a/pkg/snowflake/sequence.go +++ b/internal/snowflake/sequence.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/sequence_test.go b/internal/snowflake/sequence_test.go similarity index 94% rename from pkg/snowflake/sequence_test.go rename to internal/snowflake/sequence_test.go index 98d05f3a3a..2d837a1b7e 100644 --- a/pkg/snowflake/sequence_test.go +++ b/internal/snowflake/sequence_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/sorting.go b/internal/snowflake/sorting.go similarity index 95% rename from pkg/snowflake/sorting.go rename to internal/snowflake/sorting.go index b49f62231a..ae260566c7 100644 --- a/pkg/snowflake/sorting.go +++ b/internal/snowflake/sorting.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/sorting_test.go b/internal/snowflake/sorting_test.go similarity index 90% rename from pkg/snowflake/sorting_test.go rename to internal/snowflake/sorting_test.go index 4f464167ce..0505def694 100644 --- a/pkg/snowflake/sorting_test.go +++ b/internal/snowflake/sorting_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/stage.go b/internal/snowflake/stage.go similarity index 99% rename from pkg/snowflake/stage.go rename to internal/snowflake/stage.go index b96c1df016..bf23650f25 100644 --- a/pkg/snowflake/stage.go +++ b/internal/snowflake/stage.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/stage_test.go b/internal/snowflake/stage_test.go similarity index 99% rename from pkg/snowflake/stage_test.go rename to internal/snowflake/stage_test.go index 33074b2846..0c7a863d7d 100644 --- a/pkg/snowflake/stage_test.go +++ b/internal/snowflake/stage_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/storage_integration.go b/internal/snowflake/storage_integration.go similarity index 96% rename from pkg/snowflake/storage_integration.go rename to internal/snowflake/storage_integration.go index 7481be8e6a..5e6a376af4 100644 --- a/pkg/snowflake/storage_integration.go +++ b/internal/snowflake/storage_integration.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/storage_integration_test.go b/internal/snowflake/storage_integration_test.go similarity index 84% rename from pkg/snowflake/storage_integration_test.go rename to internal/snowflake/storage_integration_test.go index 12d4424d0a..55d9661ca6 100644 --- a/pkg/snowflake/storage_integration_test.go +++ b/internal/snowflake/storage_integration_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/system_generate_scim_access_token.go b/internal/snowflake/system_generate_scim_access_token.go similarity index 94% rename from pkg/snowflake/system_generate_scim_access_token.go rename to internal/snowflake/system_generate_scim_access_token.go index 70503c115a..3c55c32e88 100644 --- a/pkg/snowflake/system_generate_scim_access_token.go +++ b/internal/snowflake/system_generate_scim_access_token.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/system_generate_scim_access_token_test.go b/internal/snowflake/system_generate_scim_access_token_test.go similarity index 83% rename from pkg/snowflake/system_generate_scim_access_token_test.go rename to internal/snowflake/system_generate_scim_access_token_test.go index bea7591a40..89235e622e 100644 --- a/pkg/snowflake/system_generate_scim_access_token_test.go +++ b/internal/snowflake/system_generate_scim_access_token_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/system_get_aws_sns_iam_policy.go b/internal/snowflake/system_get_aws_sns_iam_policy.go similarity index 94% rename from pkg/snowflake/system_get_aws_sns_iam_policy.go rename to internal/snowflake/system_get_aws_sns_iam_policy.go index d5b0ee9c3b..52e0a60a3f 100644 --- a/pkg/snowflake/system_get_aws_sns_iam_policy.go +++ b/internal/snowflake/system_get_aws_sns_iam_policy.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/system_get_aws_sns_iam_policy_test.go b/internal/snowflake/system_get_aws_sns_iam_policy_test.go similarity index 84% rename from pkg/snowflake/system_get_aws_sns_iam_policy_test.go rename to internal/snowflake/system_get_aws_sns_iam_policy_test.go index 797fb4e37c..8555e061e3 100644 --- a/pkg/snowflake/system_get_aws_sns_iam_policy_test.go +++ b/internal/snowflake/system_get_aws_sns_iam_policy_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/system_get_privatelink_config.go b/internal/snowflake/system_get_privatelink_config.go similarity index 97% rename from pkg/snowflake/system_get_privatelink_config.go rename to internal/snowflake/system_get_privatelink_config.go index 89b2406ce2..74f8a83941 100644 --- a/pkg/snowflake/system_get_privatelink_config.go +++ b/internal/snowflake/system_get_privatelink_config.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/system_get_privatelink_config_test.go b/internal/snowflake/system_get_privatelink_config_test.go similarity index 98% rename from pkg/snowflake/system_get_privatelink_config_test.go rename to internal/snowflake/system_get_privatelink_config_test.go index dce8de351b..7b249f52ea 100644 --- a/pkg/snowflake/system_get_privatelink_config_test.go +++ b/internal/snowflake/system_get_privatelink_config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/system_get_snowflake_platform_info.go b/internal/snowflake/system_get_snowflake_platform_info.go similarity index 94% rename from pkg/snowflake/system_get_snowflake_platform_info.go rename to internal/snowflake/system_get_snowflake_platform_info.go index 63403c1ffc..15dd3b2682 100644 --- a/pkg/snowflake/system_get_snowflake_platform_info.go +++ b/internal/snowflake/system_get_snowflake_platform_info.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/system_get_snowflake_platform_info_test.go b/internal/snowflake/system_get_snowflake_platform_info_test.go similarity index 93% rename from pkg/snowflake/system_get_snowflake_platform_info_test.go rename to internal/snowflake/system_get_snowflake_platform_info_test.go index 6ac5ad6531..80784a63d9 100644 --- a/pkg/snowflake/system_get_snowflake_platform_info_test.go +++ b/internal/snowflake/system_get_snowflake_platform_info_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/table.go b/internal/snowflake/table.go similarity index 99% rename from pkg/snowflake/table.go rename to internal/snowflake/table.go index 7aa6f4c855..8733b36978 100644 --- a/pkg/snowflake/table.go +++ b/internal/snowflake/table.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( @@ -9,7 +12,7 @@ import ( "strconv" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" "github.com/jmoiron/sqlx" ) diff --git a/pkg/snowflake/table_constraint.go b/internal/snowflake/table_constraint.go similarity index 99% rename from pkg/snowflake/table_constraint.go rename to internal/snowflake/table_constraint.go index 3827859f5d..f6fca6acf1 100644 --- a/pkg/snowflake/table_constraint.go +++ b/internal/snowflake/table_constraint.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/tag.go b/internal/snowflake/tag.go similarity index 98% rename from pkg/snowflake/tag.go rename to internal/snowflake/tag.go index 80a513727a..ee3d73f2e0 100644 --- a/pkg/snowflake/tag.go +++ b/internal/snowflake/tag.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( @@ -7,7 +10,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" "github.com/jmoiron/sqlx" ) diff --git a/pkg/snowflake/tag_association.go b/internal/snowflake/tag_association.go similarity index 97% rename from pkg/snowflake/tag_association.go rename to internal/snowflake/tag_association.go index 9b2a0d753c..4ceb32e18f 100644 --- a/pkg/snowflake/tag_association.go +++ b/internal/snowflake/tag_association.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( @@ -7,7 +10,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/validation" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/validation" "github.com/jmoiron/sqlx" ) diff --git a/pkg/snowflake/tag_association_test.go b/internal/snowflake/tag_association_test.go similarity index 98% rename from pkg/snowflake/tag_association_test.go rename to internal/snowflake/tag_association_test.go index 736e7becee..45bf0e7cf0 100644 --- a/pkg/snowflake/tag_association_test.go +++ b/internal/snowflake/tag_association_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/tag_test.go b/internal/snowflake/tag_test.go similarity index 97% rename from pkg/snowflake/tag_test.go rename to internal/snowflake/tag_test.go index 3769ff4c2f..7bd2eb4060 100644 --- a/pkg/snowflake/tag_test.go +++ b/internal/snowflake/tag_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/user.go b/internal/snowflake/user.go similarity index 95% rename from pkg/snowflake/user.go rename to internal/snowflake/user.go index a3d8c60e37..2382c4ec92 100644 --- a/pkg/snowflake/user.go +++ b/internal/snowflake/user.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( @@ -6,7 +9,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" "github.com/jmoiron/sqlx" ) diff --git a/pkg/snowflake/user_ownership_grant.go b/internal/snowflake/user_ownership_grant.go similarity index 97% rename from pkg/snowflake/user_ownership_grant.go rename to internal/snowflake/user_ownership_grant.go index 4e54a86562..4435c0386b 100644 --- a/pkg/snowflake/user_ownership_grant.go +++ b/internal/snowflake/user_ownership_grant.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/user_ownership_grant_test.go b/internal/snowflake/user_ownership_grant_test.go similarity index 85% rename from pkg/snowflake/user_ownership_grant_test.go rename to internal/snowflake/user_ownership_grant_test.go index 3750d45c6d..3455957ed5 100644 --- a/pkg/snowflake/user_ownership_grant_test.go +++ b/internal/snowflake/user_ownership_grant_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/user_test.go b/internal/snowflake/user_test.go similarity index 84% rename from pkg/snowflake/user_test.go rename to internal/snowflake/user_test.go index 55b843d633..58ebc872e5 100644 --- a/pkg/snowflake/user_test.go +++ b/internal/snowflake/user_test.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" "github.com/stretchr/testify/require" ) diff --git a/pkg/snowflake/view.go b/internal/snowflake/view.go similarity index 99% rename from pkg/snowflake/view.go rename to internal/snowflake/view.go index c491b4161d..1b33f9b30d 100644 --- a/pkg/snowflake/view.go +++ b/internal/snowflake/view.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/snowflake/view_test.go b/internal/snowflake/view_test.go similarity index 97% rename from pkg/snowflake/view_test.go rename to internal/snowflake/view_test.go index b9ea6262d5..9a2d0fadf3 100644 --- a/pkg/snowflake/view_test.go +++ b/internal/snowflake/view_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package snowflake import ( diff --git a/pkg/testhelpers/fixtures.go b/internal/testhelpers/fixtures.go similarity index 83% rename from pkg/testhelpers/fixtures.go rename to internal/testhelpers/fixtures.go index 6e6946cf51..1e620549b8 100644 --- a/pkg/testhelpers/fixtures.go +++ b/internal/testhelpers/fixtures.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testhelpers import ( diff --git a/pkg/testhelpers/helpers.go b/internal/testhelpers/helpers.go similarity index 89% rename from pkg/testhelpers/helpers.go rename to internal/testhelpers/helpers.go index 298658a63c..09e663c893 100644 --- a/pkg/testhelpers/helpers.go +++ b/internal/testhelpers/helpers.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package testhelpers import ( diff --git a/pkg/validation/validation.go b/internal/validation/validation.go similarity index 97% rename from pkg/validation/validation.go rename to internal/validation/validation.go index 1ea65cb8d6..0bf6dab62f 100644 --- a/pkg/validation/validation.go +++ b/internal/validation/validation.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package validation import ( @@ -6,7 +9,7 @@ import ( "strings" "unicode" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" ) const ( diff --git a/pkg/validation/validation_test.go b/internal/validation/validation_test.go similarity index 95% rename from pkg/validation/validation_test.go rename to internal/validation/validation_test.go index 16f434046b..40005f7397 100644 --- a/pkg/validation/validation_test.go +++ b/internal/validation/validation_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package validation import ( diff --git a/main.go b/main.go index 18cc74af8c..18023fd6d8 100644 --- a/main.go +++ b/main.go @@ -1,9 +1,12 @@ +// Copyright (c) Snowflake, Inc. +// SPDX-License-Identifier: MIT + package main import ( "flag" - "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" "github.com/hashicorp/terraform-plugin-sdk/v2/plugin" ) diff --git a/tools/go.mod b/tools/go.mod new file mode 100644 index 0000000000..e9b09bbaee --- /dev/null +++ b/tools/go.mod @@ -0,0 +1,253 @@ +module tools + +go 1.20 + +require ( + github.com/golangci/golangci-lint v1.55.0 + github.com/hashicorp/copywrite v0.16.6 + github.com/hashicorp/terraform-plugin-docs v0.16.0 + mvdan.cc/gofumpt v0.5.0 +) + +require ( + 4d63.com/gocheckcompilerdirectives v1.2.1 // indirect + 4d63.com/gochecknoglobals v0.2.1 // indirect + github.com/4meepo/tagalign v1.3.3 // indirect + github.com/Abirdcfly/dupword v0.0.13 // indirect + github.com/AlecAivazis/survey/v2 v2.3.6 // indirect + github.com/Antonboom/errname v0.1.12 // indirect + github.com/Antonboom/nilnil v0.1.7 // indirect + github.com/Antonboom/testifylint v0.2.3 // indirect + github.com/BurntSushi/toml v1.3.2 // indirect + github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 // indirect + github.com/GaijinEntertainment/go-exhaustruct/v3 v3.1.0 // indirect + github.com/Masterminds/goutils v1.1.1 // indirect + github.com/Masterminds/semver v1.5.0 // indirect + github.com/Masterminds/semver/v3 v3.1.1 // indirect + github.com/Masterminds/sprig/v3 v3.2.2 // indirect + github.com/OpenPeeDeeP/depguard/v2 v2.1.0 // indirect + github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 // indirect + github.com/alecthomas/go-check-sumtype v0.1.3 // indirect + github.com/alexkohler/nakedret/v2 v2.0.2 // indirect + github.com/alexkohler/prealloc v1.0.0 // indirect + github.com/alingse/asasalint v0.0.11 // indirect + github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect + github.com/armon/go-radix v1.0.0 // indirect + github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef // indirect + github.com/ashanbrown/forbidigo v1.6.0 // indirect + github.com/ashanbrown/makezero v1.1.1 // indirect + github.com/beorn7/perks v1.0.1 // indirect + github.com/bgentry/speakeasy v0.1.0 // indirect + github.com/bkielbasa/cyclop v1.2.1 // indirect + github.com/blizzy78/varnamelen v0.8.0 // indirect + github.com/bmatcuk/doublestar/v4 v4.6.0 // indirect + github.com/bombsimon/wsl/v3 v3.4.0 // indirect + github.com/bradleyfalzon/ghinstallation/v2 v2.5.0 // indirect + github.com/breml/bidichk v0.2.7 // indirect + github.com/breml/errchkjson v0.3.6 // indirect + github.com/butuzov/ireturn v0.2.1 // indirect + github.com/butuzov/mirror v1.1.0 // indirect + github.com/catenacyber/perfsprint v0.2.0 // indirect + github.com/ccojocar/zxcvbn-go v1.0.1 // indirect + github.com/cespare/xxhash/v2 v2.1.2 // indirect + github.com/charithe/durationcheck v0.0.10 // indirect + github.com/chavacava/garif v0.1.0 // indirect + github.com/cli/go-gh v1.2.1 // indirect + github.com/cli/safeexec v1.0.0 // indirect + github.com/cli/shurcooL-graphql v0.0.2 // indirect + github.com/cloudflare/circl v1.3.3 // indirect + github.com/curioswitch/go-reassign v0.2.0 // indirect + github.com/daixiang0/gci v0.11.2 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/denis-tingaikin/go-header v0.4.3 // indirect + github.com/esimonov/ifshort v1.0.4 // indirect + github.com/ettle/strcase v0.1.1 // indirect + github.com/fatih/color v1.15.0 // indirect + github.com/fatih/structtag v1.2.0 // indirect + github.com/firefart/nonamedreturns v1.0.4 // indirect + github.com/fsnotify/fsnotify v1.5.4 // indirect + github.com/fzipp/gocyclo v0.6.0 // indirect + github.com/ghostiam/protogetter v0.2.3 // indirect + github.com/go-critic/go-critic v0.9.0 // indirect + github.com/go-openapi/errors v0.20.2 // indirect + github.com/go-openapi/strfmt v0.21.3 // indirect + github.com/go-toolsmith/astcast v1.1.0 // indirect + github.com/go-toolsmith/astcopy v1.1.0 // indirect + github.com/go-toolsmith/astequal v1.1.0 // indirect + github.com/go-toolsmith/astfmt v1.1.0 // indirect + github.com/go-toolsmith/astp v1.1.0 // indirect + github.com/go-toolsmith/strparse v1.1.0 // indirect + github.com/go-toolsmith/typep v1.1.0 // indirect + github.com/go-xmlfmt/xmlfmt v1.1.2 // indirect + github.com/gobwas/glob v0.2.3 // indirect + github.com/gofrs/flock v0.8.1 // indirect + github.com/golang-jwt/jwt/v4 v4.5.0 // indirect + github.com/golang/protobuf v1.5.2 // indirect + github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 // indirect + github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a // indirect + github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe // indirect + github.com/golangci/gofmt v0.0.0-20231018234816-f50ced29576e // indirect + github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 // indirect + github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca // indirect + github.com/golangci/misspell v0.4.1 // indirect + github.com/golangci/revgrep v0.5.0 // indirect + github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 // indirect + github.com/google/go-cmp v0.5.9 // indirect + github.com/google/go-github/v45 v45.2.0 // indirect + github.com/google/go-github/v53 v53.0.0 // indirect + github.com/google/go-querystring v1.1.0 // indirect + github.com/google/uuid v1.3.1 // indirect + github.com/gordonklaus/ineffassign v0.0.0-20230610083614-0e73809eb601 // indirect + github.com/gostaticanalysis/analysisutil v0.7.1 // indirect + github.com/gostaticanalysis/comment v1.4.2 // indirect + github.com/gostaticanalysis/forcetypeassert v0.1.0 // indirect + github.com/gostaticanalysis/nilerr v0.1.1 // indirect + github.com/hashicorp/errwrap v1.1.0 // indirect + github.com/hashicorp/go-checkpoint v0.5.0 // indirect + github.com/hashicorp/go-cleanhttp v0.5.2 // indirect + github.com/hashicorp/go-hclog v1.5.0 // indirect + github.com/hashicorp/go-multierror v1.1.1 // indirect + github.com/hashicorp/go-uuid v1.0.3 // indirect + github.com/hashicorp/go-version v1.6.0 // indirect + github.com/hashicorp/hc-install v0.5.2 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect + github.com/hashicorp/terraform-exec v0.18.1 // indirect + github.com/hashicorp/terraform-json v0.17.1 // indirect + github.com/henvic/httpretty v0.0.6 // indirect + github.com/hexops/gotextdiff v1.0.3 // indirect + github.com/huandu/xstrings v1.3.2 // indirect + github.com/imdario/mergo v0.3.13 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/jedib0t/go-pretty v4.3.0+incompatible // indirect + github.com/jedib0t/go-pretty/v6 v6.4.6 // indirect + github.com/jgautheron/goconst v1.6.0 // indirect + github.com/jingyugao/rowserrcheck v1.1.1 // indirect + github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af // indirect + github.com/joho/godotenv v1.3.0 // indirect + github.com/julz/importas v0.1.0 // indirect + github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect + github.com/kisielk/errcheck v1.6.3 // indirect + github.com/kisielk/gotool v1.0.0 // indirect + github.com/kkHAIKE/contextcheck v1.1.4 // indirect + github.com/knadh/koanf v1.5.0 // indirect + github.com/kulti/thelper v0.6.3 // indirect + github.com/kunwardeep/paralleltest v1.0.8 // indirect + github.com/kyoh86/exportloopref v0.1.11 // indirect + github.com/ldez/gomoddirectives v0.2.3 // indirect + github.com/ldez/tagliatelle v0.5.0 // indirect + github.com/leonklingele/grouper v1.1.1 // indirect + github.com/lucasb-eyer/go-colorful v1.2.0 // indirect + github.com/lufeee/execinquery v1.2.1 // indirect + github.com/macabu/inamedparam v0.1.2 // indirect + github.com/magiconair/properties v1.8.6 // indirect + github.com/maratori/testableexamples v1.0.0 // indirect + github.com/maratori/testpackage v1.1.1 // indirect + github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect + github.com/mattn/go-isatty v0.0.19 // indirect + github.com/mattn/go-runewidth v0.0.13 // indirect + github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect + github.com/mbilski/exhaustivestruct v1.2.0 // indirect + github.com/mergestat/timediff v0.0.3 // indirect + github.com/mgechev/revive v1.3.4 // indirect + github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect + github.com/mitchellh/cli v1.1.5 // indirect + github.com/mitchellh/copystructure v1.2.0 // indirect + github.com/mitchellh/go-homedir v1.1.0 // indirect + github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/mitchellh/reflectwalk v1.0.2 // indirect + github.com/moricho/tparallel v0.3.1 // indirect + github.com/muesli/termenv v0.12.0 // indirect + github.com/nakabonne/nestif v0.3.1 // indirect + github.com/nishanths/exhaustive v0.11.0 // indirect + github.com/nishanths/predeclared v0.2.2 // indirect + github.com/nunnatsa/ginkgolinter v0.14.0 // indirect + github.com/oklog/ulid v1.3.1 // indirect + github.com/olekukonko/tablewriter v0.0.5 // indirect + github.com/pelletier/go-toml v1.9.5 // indirect + github.com/pelletier/go-toml/v2 v2.0.5 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/polyfloyd/go-errorlint v1.4.5 // indirect + github.com/posener/complete v1.2.3 // indirect + github.com/prometheus/client_golang v1.12.1 // indirect + github.com/prometheus/client_model v0.2.0 // indirect + github.com/prometheus/common v0.32.1 // indirect + github.com/prometheus/procfs v0.7.3 // indirect + github.com/quasilyte/go-ruleguard v0.4.0 // indirect + github.com/quasilyte/gogrep v0.5.0 // indirect + github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 // indirect + github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 // indirect + github.com/rivo/uniseg v0.2.0 // indirect + github.com/rogpeppe/go-internal v1.10.0 // indirect + github.com/russross/blackfriday v1.6.0 // indirect + github.com/ryancurrah/gomodguard v1.3.0 // indirect + github.com/ryanrolds/sqlclosecheck v0.5.1 // indirect + github.com/samber/lo v1.37.0 // indirect + github.com/sanposhiho/wastedassign/v2 v2.0.7 // indirect + github.com/sashamelentyev/interfacebloat v1.1.0 // indirect + github.com/sashamelentyev/usestdlibvars v1.24.0 // indirect + github.com/securego/gosec/v2 v2.18.1 // indirect + github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c // indirect + github.com/shopspring/decimal v1.3.1 // indirect + github.com/sirupsen/logrus v1.9.3 // indirect + github.com/sivchari/containedctx v1.0.3 // indirect + github.com/sivchari/nosnakecase v1.7.0 // indirect + github.com/sivchari/tenv v1.7.1 // indirect + github.com/sonatard/noctx v0.0.2 // indirect + github.com/sourcegraph/go-diff v0.7.0 // indirect + github.com/spf13/afero v1.9.5 // indirect + github.com/spf13/cast v1.5.0 // indirect + github.com/spf13/cobra v1.7.0 // indirect + github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/spf13/viper v1.12.0 // indirect + github.com/ssgreg/nlreturn/v2 v2.2.1 // indirect + github.com/stbenjam/no-sprintf-host-port v0.1.1 // indirect + github.com/stretchr/objx v0.5.0 // indirect + github.com/stretchr/testify v1.8.4 // indirect + github.com/subosito/gotenv v1.4.1 // indirect + github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c // indirect + github.com/tdakkota/asciicheck v0.2.0 // indirect + github.com/tetafro/godot v1.4.15 // indirect + github.com/thanhpk/randstr v1.0.4 // indirect + github.com/thlib/go-timezone-local v0.0.0-20210907160436-ef149e42d28e // indirect + github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966 // indirect + github.com/timonwong/loggercheck v0.9.4 // indirect + github.com/tomarrell/wrapcheck/v2 v2.8.1 // indirect + github.com/tommy-muehle/go-mnd/v2 v2.5.1 // indirect + github.com/ultraware/funlen v0.1.0 // indirect + github.com/ultraware/whitespace v0.0.5 // indirect + github.com/uudashr/gocognit v1.1.2 // indirect + github.com/xen0n/gosmopolitan v1.2.2 // indirect + github.com/yagipy/maintidx v1.0.0 // indirect + github.com/yeya24/promlinter v0.2.0 // indirect + github.com/ykadowak/zerologlint v0.1.3 // indirect + github.com/zclconf/go-cty v1.13.2 // indirect + gitlab.com/bosi/decorder v0.4.1 // indirect + go-simpler.org/sloglint v0.1.2 // indirect + go.mongodb.org/mongo-driver v1.10.0 // indirect + go.tmz.dev/musttag v0.7.2 // indirect + go.uber.org/atomic v1.7.0 // indirect + go.uber.org/multierr v1.6.0 // indirect + go.uber.org/zap v1.24.0 // indirect + golang.org/x/crypto v0.14.0 // indirect + golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect + golang.org/x/exp/typeparams v0.0.0-20230307190834-24139beb5833 // indirect + golang.org/x/mod v0.13.0 // indirect + golang.org/x/net v0.17.0 // indirect + golang.org/x/oauth2 v0.8.0 // indirect + golang.org/x/sync v0.4.0 // indirect + golang.org/x/sys v0.13.0 // indirect + golang.org/x/term v0.13.0 // indirect + golang.org/x/text v0.13.0 // indirect + golang.org/x/tools v0.14.0 // indirect + google.golang.org/appengine v1.6.7 // indirect + google.golang.org/protobuf v1.28.0 // indirect + gopkg.in/ini.v1 v1.67.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect + honnef.co/go/tools v0.4.6 // indirect + mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed // indirect + mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b // indirect + mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d // indirect +) diff --git a/tools/go.sum b/tools/go.sum new file mode 100644 index 0000000000..d8bec2e1fa --- /dev/null +++ b/tools/go.sum @@ -0,0 +1,1332 @@ +4d63.com/gocheckcompilerdirectives v1.2.1 h1:AHcMYuw56NPjq/2y615IGg2kYkBdTvOaojYCBcRE7MA= +4d63.com/gocheckcompilerdirectives v1.2.1/go.mod h1:yjDJSxmDTtIHHCqX0ufRYZDL6vQtMG7tJdKVeWwsqvs= +4d63.com/gochecknoglobals v0.2.1 h1:1eiorGsgHOFOuoOiJDy2psSrQbRdIHrlge0IJIkUgDc= +4d63.com/gochecknoglobals v0.2.1/go.mod h1:KRE8wtJB3CXCsb1xy421JfTHIIbmT3U5ruxw2Qu8fSU= +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/4meepo/tagalign v1.3.3 h1:ZsOxcwGD/jP4U/aw7qeWu58i7dwYemfy5Y+IF1ACoNw= +github.com/4meepo/tagalign v1.3.3/go.mod h1:Q9c1rYMZJc9dPRkbQPpcBNCLEmY2njbAsXhQOZFE2dE= +github.com/Abirdcfly/dupword v0.0.13 h1:SMS17YXypwP000fA7Lr+kfyBQyW14tTT+nRv9ASwUUo= +github.com/Abirdcfly/dupword v0.0.13/go.mod h1:Ut6Ue2KgF/kCOawpW4LnExT+xZLQviJPE4klBPMK/5Y= +github.com/AlecAivazis/survey/v2 v2.3.6 h1:NvTuVHISgTHEHeBFqt6BHOe4Ny/NwGZr7w+F8S9ziyw= +github.com/AlecAivazis/survey/v2 v2.3.6/go.mod h1:4AuI9b7RjAR+G7v9+C4YSlX/YL3K3cWNXgWXOhllqvI= +github.com/Antonboom/errname v0.1.12 h1:oh9ak2zUtsLp5oaEd/erjB4GPu9w19NyoIskZClDcQY= +github.com/Antonboom/errname v0.1.12/go.mod h1:bK7todrzvlaZoQagP1orKzWXv59X/x0W0Io2XT1Ssro= +github.com/Antonboom/nilnil v0.1.7 h1:ofgL+BA7vlA1K2wNQOsHzLJ2Pw5B5DpWRLdDAVvvTow= +github.com/Antonboom/nilnil v0.1.7/go.mod h1:TP+ScQWVEq0eSIxqU8CbdT5DFWoHp0MbP+KMUO1BKYQ= +github.com/Antonboom/testifylint v0.2.3 h1:MFq9zyL+rIVpsvLX4vDPLojgN7qODzWsrnftNX2Qh60= +github.com/Antonboom/testifylint v0.2.3/go.mod h1:IYaXaOX9NbfAyO+Y04nfjGI8wDemC1rUyM/cYolz018= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8= +github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 h1:sHglBQTwgx+rWPdisA5ynNEsoARbiCBOyGcJM4/OzsM= +github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs= +github.com/GaijinEntertainment/go-exhaustruct/v3 v3.1.0 h1:3ZBs7LAezy8gh0uECsA6CGU43FF3zsx5f4eah5FxTMA= +github.com/GaijinEntertainment/go-exhaustruct/v3 v3.1.0/go.mod h1:rZLTje5A9kFBe0pzhpe2TdhRniBF++PRHQuRpR8esVc= +github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ= +github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= +github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= +github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= +github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= +github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc= +github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= +github.com/Masterminds/sprig/v3 v3.2.1/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk= +github.com/Masterminds/sprig/v3 v3.2.2 h1:17jRggJu518dr3QaafizSXOjKYp94wKfABxUmyxvxX8= +github.com/Masterminds/sprig/v3 v3.2.2/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk= +github.com/Microsoft/go-winio v0.5.2 h1:a9IhgEQBCUEk6QCdml9CiJGhAws+YwffDHEMp1VMrpA= +github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s= +github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w= +github.com/OpenPeeDeeP/depguard/v2 v2.1.0 h1:aQl70G173h/GZYhWf36aE5H0KaujXfVMnn/f1kSDVYY= +github.com/OpenPeeDeeP/depguard/v2 v2.1.0/go.mod h1:PUBgk35fX4i7JDmwzlJwJ+GMe6NfO1723wmJMgPThNQ= +github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 h1:wPbRQzjjwFc0ih8puEVAOFGELsn1zoIIYdxvML7mDxA= +github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8/go.mod h1:I0gYDMZ6Z5GRU7l58bNFSkPTFN6Yl12dsUlAZ8xy98g= +github.com/acomagu/bufpipe v1.0.4 h1:e3H4WUzM3npvo5uv95QuJM3cQspFNtFBzvJ2oNjKIDQ= +github.com/alecthomas/go-check-sumtype v0.1.3 h1:M+tqMxB68hcgccRXBMVCPI4UJ+QUfdSx0xdbypKCqA8= +github.com/alecthomas/go-check-sumtype v0.1.3/go.mod h1:WyYPfhfkdhyrdaligV6svFopZV8Lqdzn5pyVBaV6jhQ= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/alexkohler/nakedret/v2 v2.0.2 h1:qnXuZNvv3/AxkAb22q/sEsEpcA99YxLFACDtEw9TPxE= +github.com/alexkohler/nakedret/v2 v2.0.2/go.mod h1:2b8Gkk0GsOrqQv/gPWjNLDSKwG8I5moSXG1K4VIBcTQ= +github.com/alexkohler/prealloc v1.0.0 h1:Hbq0/3fJPQhNkN0dR95AVrr6R7tou91y0uHG5pOcUuw= +github.com/alexkohler/prealloc v1.0.0/go.mod h1:VetnK3dIgFBBKmg0YnD9F9x6Icjd+9cvfHR56wJVlKE= +github.com/alingse/asasalint v0.0.11 h1:SFwnQXJ49Kx/1GghOFz1XGqHYKp21Kq1nHad/0WQRnw= +github.com/alingse/asasalint v0.0.11/go.mod h1:nCaoMhw7a9kSJObvQyVzNTPBDbNpdocqrSP7t/cW5+I= +github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= +github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw= +github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo= +github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= +github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= +github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef h1:46PFijGLmAjMPwCCCo7Jf0W6f9slllCkkv7vyc1yOSg= +github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= +github.com/ashanbrown/forbidigo v1.6.0 h1:D3aewfM37Yb3pxHujIPSpTf6oQk9sc9WZi8gerOIVIY= +github.com/ashanbrown/forbidigo v1.6.0/go.mod h1:Y8j9jy9ZYAEHXdu723cUlraTqbzjKF1MUyfOKL+AjcU= +github.com/ashanbrown/makezero v1.1.1 h1:iCQ87C0V0vSyO+M9E/FZYbu65auqH0lnsOkf5FcB28s= +github.com/ashanbrown/makezero v1.1.1/go.mod h1:i1bJLCRSCHOcOa9Y6MyF2FTfMZMFdHvxKHxgO5Z1axI= +github.com/aws/aws-sdk-go-v2 v1.9.2/go.mod h1:cK/D0BBs0b/oWPIcX/Z/obahJK1TT7IPVjy53i/mX/4= +github.com/aws/aws-sdk-go-v2/config v1.8.3/go.mod h1:4AEiLtAb8kLs7vgw2ZV3p2VZ1+hBavOc84hqxVNpCyw= +github.com/aws/aws-sdk-go-v2/credentials v1.4.3/go.mod h1:FNNC6nQZQUuyhq5aE5c7ata8o9e4ECGmS4lAXC7o1mQ= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.6.0/go.mod h1:gqlclDEZp4aqJOancXK6TN24aKhT0W0Ae9MHk3wzTMM= +github.com/aws/aws-sdk-go-v2/internal/ini v1.2.4/go.mod h1:ZcBrrI3zBKlhGFNYWvju0I3TR93I7YIgAfy82Fh4lcQ= +github.com/aws/aws-sdk-go-v2/service/appconfig v1.4.2/go.mod h1:FZ3HkCe+b10uFZZkFdvf98LHW21k49W8o8J366lqVKY= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.3.2/go.mod h1:72HRZDLMtmVQiLG2tLfQcaWLCssELvGl+Zf2WVxMmR8= +github.com/aws/aws-sdk-go-v2/service/sso v1.4.2/go.mod h1:NBvT9R1MEF+Ud6ApJKM0G+IkPchKS7p7c2YPKwHmBOk= +github.com/aws/aws-sdk-go-v2/service/sts v1.7.2/go.mod h1:8EzeIqfWt2wWT4rJVu3f21TfrhJ8AEMzVybRNSb/b4g= +github.com/aws/smithy-go v1.8.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= +github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bkielbasa/cyclop v1.2.1 h1:AeF71HZDob1P2/pRm1so9cd1alZnrpyc4q2uP2l0gJY= +github.com/bkielbasa/cyclop v1.2.1/go.mod h1:K/dT/M0FPAiYjBgQGau7tz+3TMh4FWAEqlMhzFWCrgM= +github.com/blizzy78/varnamelen v0.8.0 h1:oqSblyuQvFsW1hbBHh1zfwrKe3kcSj0rnXkKzsQ089M= +github.com/blizzy78/varnamelen v0.8.0/go.mod h1:V9TzQZ4fLJ1DSrjVDfl89H7aMnTvKkApdHeyESmyR7k= +github.com/bmatcuk/doublestar/v4 v4.6.0 h1:HTuxyug8GyFbRkrffIpzNCSK4luc0TY3wzXvzIZhEXc= +github.com/bmatcuk/doublestar/v4 v4.6.0/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= +github.com/bombsimon/wsl/v3 v3.4.0 h1:RkSxjT3tmlptwfgEgTgU+KYKLI35p/tviNXNXiL2aNU= +github.com/bombsimon/wsl/v3 v3.4.0/go.mod h1:KkIB+TXkqy6MvK9BDZVbZxKNYsE1/oLRJbIFtf14qqo= +github.com/bradleyfalzon/ghinstallation/v2 v2.5.0 h1:yaYcGQ7yEIGbsJfW/9z7v1sLiZg/5rSNNXwmMct5XaE= +github.com/bradleyfalzon/ghinstallation/v2 v2.5.0/go.mod h1:amcvPQMrRkWNdueWOjPytGL25xQGzox7425qMgzo+Vo= +github.com/breml/bidichk v0.2.7 h1:dAkKQPLl/Qrk7hnP6P+E0xOodrq8Us7+U0o4UBOAlQY= +github.com/breml/bidichk v0.2.7/go.mod h1:YodjipAGI9fGcYM7II6wFvGhdMYsC5pHDlGzqvEW3tQ= +github.com/breml/errchkjson v0.3.6 h1:VLhVkqSBH96AvXEyclMR37rZslRrY2kcyq+31HCsVrA= +github.com/breml/errchkjson v0.3.6/go.mod h1:jhSDoFheAF2RSDOlCfhHO9KqhZgAYLyvHe7bRCX8f/U= +github.com/butuzov/ireturn v0.2.1 h1:w5Ks4tnfeFDZskGJ2x1GAkx5gaQV+kdU3NKNr3NEBzY= +github.com/butuzov/ireturn v0.2.1/go.mod h1:RfGHUvvAuFFxoHKf4Z8Yxuh6OjlCw1KvR2zM1NFHeBk= +github.com/butuzov/mirror v1.1.0 h1:ZqX54gBVMXu78QLoiqdwpl2mgmoOJTk7s4p4o+0avZI= +github.com/butuzov/mirror v1.1.0/go.mod h1:8Q0BdQU6rC6WILDiBM60DBfvV78OLJmMmixe7GF45AE= +github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= +github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= +github.com/catenacyber/perfsprint v0.2.0 h1:azOocHLscPjqXVJ7Mf14Zjlkn4uNua0+Hcg1wTR6vUo= +github.com/catenacyber/perfsprint v0.2.0/go.mod h1:/wclWYompEyjUD2FuIIDVKNkqz7IgBIWXIH3V0Zol50= +github.com/ccojocar/zxcvbn-go v1.0.1 h1:+sxrANSCj6CdadkcMnvde/GWU1vZiiXRbqYSCalV4/4= +github.com/ccojocar/zxcvbn-go v1.0.1/go.mod h1:g1qkXtUSvHP8lhHp5GrSmTz6uWALGRMQdw6Qnz/hi60= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= +github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/charithe/durationcheck v0.0.10 h1:wgw73BiocdBDQPik+zcEoBG/ob8uyBHf2iyoHGPf5w4= +github.com/charithe/durationcheck v0.0.10/go.mod h1:bCWXb7gYRysD1CU3C+u4ceO49LoGOY1C1L6uouGNreQ= +github.com/chavacava/garif v0.1.0 h1:2JHa3hbYf5D9dsgseMKAmc/MZ109otzgNFk5s87H9Pc= +github.com/chavacava/garif v0.1.0/go.mod h1:XMyYCkEL58DF0oyW4qDjjnPWONs2HBqYKI+UIPD+Gww= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/cli/go-gh v1.2.1 h1:xFrjejSsgPiwXFP6VYynKWwxLQcNJy3Twbu82ZDlR/o= +github.com/cli/go-gh v1.2.1/go.mod h1:Jxk8X+TCO4Ui/GarwY9tByWm/8zp4jJktzVZNlTW5VM= +github.com/cli/safeexec v1.0.0 h1:0VngyaIyqACHdcMNWfo6+KdUYnqEr2Sg+bSP1pdF+dI= +github.com/cli/safeexec v1.0.0/go.mod h1:Z/D4tTN8Vs5gXYHDCbaM1S/anmEDnJb1iW0+EJ5zx3Q= +github.com/cli/shurcooL-graphql v0.0.2 h1:rwP5/qQQ2fM0TzkUTwtt6E2LbIYf6R+39cUXTa04NYk= +github.com/cli/shurcooL-graphql v0.0.2/go.mod h1:tlrLmw/n5Q/+4qSvosT+9/W5zc8ZMjnJeYBxSdb4nWA= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I= +github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs= +github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= +github.com/creack/pty v1.1.17 h1:QeVUsEDNrLBW4tMgZHvxy18sKtr6VI492kBhUfhDJNI= +github.com/creack/pty v1.1.17/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= +github.com/curioswitch/go-reassign v0.2.0 h1:G9UZyOcpk/d7Gd6mqYgd8XYWFMw/znxwGDUstnC9DIo= +github.com/curioswitch/go-reassign v0.2.0/go.mod h1:x6OpXuWvgfQaMGks2BZybTngWjT84hqJfKoO8Tt/Roc= +github.com/daixiang0/gci v0.11.2 h1:Oji+oPsp3bQ6bNNgX30NBAVT18P4uBH4sRZnlOlTj7Y= +github.com/daixiang0/gci v0.11.2/go.mod h1:xtHP9N7AHdNvtRNfcx9gwTDfw7FRJx4bZUsiEfiNNAI= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +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/denis-tingaikin/go-header v0.4.3 h1:tEaZKAlqql6SKCY++utLmkPLd6K8IBM20Ha7UVm+mtU= +github.com/denis-tingaikin/go-header v0.4.3/go.mod h1:0wOCWuN71D5qIgE2nz9KrKmuYBAC2Mra5RassOIQ2/c= +github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/esimonov/ifshort v1.0.4 h1:6SID4yGWfRae/M7hkVDVVyppy8q/v9OuxNdmjLQStBA= +github.com/esimonov/ifshort v1.0.4/go.mod h1:Pe8zjlRrJ80+q2CxHLfEOfTwxCZ4O+MuhcHcfgNWTk0= +github.com/ettle/strcase v0.1.1 h1:htFueZyVeE1XNnMEfbqp5r67qAN/4r6ya1ysq8Q+Zcw= +github.com/ettle/strcase v0.1.1/go.mod h1:hzDLsPC7/lwKyBOywSHEP89nt2pDgdy+No1NBA9o9VY= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= +github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= +github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= +github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= +github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= +github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4= +github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94= +github.com/firefart/nonamedreturns v1.0.4 h1:abzI1p7mAEPYuR4A+VLKn4eNDOycjYo2phmY9sfv40Y= +github.com/firefart/nonamedreturns v1.0.4/go.mod h1:TDhe/tjI1BXo48CmYbUduTV7BdIga8MAO/xbKdcVsGI= +github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI= +github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= +github.com/fzipp/gocyclo v0.6.0 h1:lsblElZG7d3ALtGMx9fmxeTKZaLLpU8mET09yN4BBLo= +github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/ghostiam/protogetter v0.2.3 h1:qdv2pzo3BpLqezwqfGDLZ+nHEYmc5bUpIdsMbBVwMjw= +github.com/ghostiam/protogetter v0.2.3/go.mod h1:KmNLOsy1v04hKbvZs8EfGI1fk39AgTdRDxWNYPfXVc4= +github.com/go-critic/go-critic v0.9.0 h1:Pmys9qvU3pSML/3GEQ2Xd9RZ/ip+aXHKILuxczKGV/U= +github.com/go-critic/go-critic v0.9.0/go.mod h1:5P8tdXL7m/6qnyG6oRAlYLORvoXH0WDypYgAEmagT40= +github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4= +github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E= +github.com/go-git/go-billy/v5 v5.4.1 h1:Uwp5tDRkPr+l/TnbHOQzp+tmJfLceOlbVucgpTz8ix4= +github.com/go-git/go-git/v5 v5.6.1 h1:q4ZRqQl4pR/ZJHc1L5CFjGA1a10u76aV1iC+nh+bHsk= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-ldap/ldap v3.0.2+incompatible/go.mod h1:qfd9rJvER9Q0/D/Sqn1DfHRoBp40uXYvFoEVrNEPqRc= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-openapi/errors v0.20.2 h1:dxy7PGTqEh94zj2E3h1cUmQQWiM1+aeCROfAr02EmK8= +github.com/go-openapi/errors v0.20.2/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= +github.com/go-openapi/strfmt v0.21.3 h1:xwhj5X6CjXEZZHMWy1zKJxvW9AfHC9pkyUjLvHtKG7o= +github.com/go-openapi/strfmt v0.21.3/go.mod h1:k+RzNO0Da+k3FrrynSNN8F7n/peCmQQqbbXjtDfvmGg= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-test/deep v1.0.2-0.20181118220953-042da051cf31/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= +github.com/go-toolsmith/astcast v1.1.0 h1:+JN9xZV1A+Re+95pgnMgDboWNVnIMMQXwfBwLRPgSC8= +github.com/go-toolsmith/astcast v1.1.0/go.mod h1:qdcuFWeGGS2xX5bLM/c3U9lewg7+Zu4mr+xPwZIB4ZU= +github.com/go-toolsmith/astcopy v1.1.0 h1:YGwBN0WM+ekI/6SS6+52zLDEf8Yvp3n2seZITCUBt5s= +github.com/go-toolsmith/astcopy v1.1.0/go.mod h1:hXM6gan18VA1T/daUEHCFcYiW8Ai1tIwIzHY6srfEAw= +github.com/go-toolsmith/astequal v1.0.3/go.mod h1:9Ai4UglvtR+4up+bAD4+hCj7iTo4m/OXVTSLnCyTAx4= +github.com/go-toolsmith/astequal v1.1.0 h1:kHKm1AWqClYn15R0K1KKE4RG614D46n+nqUQ06E1dTw= +github.com/go-toolsmith/astequal v1.1.0/go.mod h1:sedf7VIdCL22LD8qIvv7Nn9MuWJruQA/ysswh64lffQ= +github.com/go-toolsmith/astfmt v1.1.0 h1:iJVPDPp6/7AaeLJEruMsBUlOYCmvg0MoCfJprsOmcco= +github.com/go-toolsmith/astfmt v1.1.0/go.mod h1:OrcLlRwu0CuiIBp/8b5PYF9ktGVZUjlNMV634mhwuQ4= +github.com/go-toolsmith/astp v1.1.0 h1:dXPuCl6u2llURjdPLLDxJeZInAeZ0/eZwFJmqZMnpQA= +github.com/go-toolsmith/astp v1.1.0/go.mod h1:0T1xFGz9hicKs8Z5MfAqSUitoUYS30pDMsRVIDHs8CA= +github.com/go-toolsmith/strparse v1.0.0/go.mod h1:YI2nUKP9YGZnL/L1/DLFBfixrcjslWct4wyljWhSRy8= +github.com/go-toolsmith/strparse v1.1.0 h1:GAioeZUK9TGxnLS+qfdqNbA4z0SSm5zVNtCQiyP2Bvw= +github.com/go-toolsmith/strparse v1.1.0/go.mod h1:7ksGy58fsaQkGQlY8WVoBFNyEPMGuJin1rfoPS4lBSQ= +github.com/go-toolsmith/typep v1.1.0 h1:fIRYDyF+JywLfqzyhdiHzRop/GQDxxNhLGQ6gFUNHus= +github.com/go-toolsmith/typep v1.1.0/go.mod h1:fVIw+7zjdsMxDA3ITWnH1yOiw1rnTQKCsF/sk2H/qig= +github.com/go-xmlfmt/xmlfmt v1.1.2 h1:Nea7b4icn8s57fTx1M5AI4qQT5HEM3rVUO8MuE6g80U= +github.com/go-xmlfmt/xmlfmt v1.1.2/go.mod h1:aUCEOzzezBEjDBbFBoSiya/gduyIiWYRP6CnSFIV8AM= +github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= +github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= +github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= +github.com/gofrs/flock v0.8.1 h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw= +github.com/gofrs/flock v0.8.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= +github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 h1:23T5iq8rbUYlhpt5DB4XJkc6BU31uODLD1o1gKvZmD0= +github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2/go.mod h1:k9Qvh+8juN+UKMCS/3jFtGICgW8O96FVaZsaxdzDkR4= +github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a h1:w8hkcTqaFpzKqonE9uMCefW1WDie15eSP/4MssdenaM= +github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a/go.mod h1:ryS0uhF+x9jgbj/N71xsEqODy9BN81/GonCZiOzirOk= +github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe h1:6RGUuS7EGotKx6J5HIP8ZtyMdiDscjMLfRBSPuzVVeo= +github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe/go.mod h1:gjqyPShc/m8pEMpk0a3SeagVb0kaqvhscv+i9jI5ZhQ= +github.com/golangci/gofmt v0.0.0-20231018234816-f50ced29576e h1:ULcKCDV1LOZPFxGZaA6TlQbiM3J2GCPnkx/bGF6sX/g= +github.com/golangci/gofmt v0.0.0-20231018234816-f50ced29576e/go.mod h1:Pm5KhLPA8gSnQwrQ6ukebRcapGb/BG9iUkdaiCcGHJM= +github.com/golangci/golangci-lint v1.55.0 h1:ePpc6YhM1ZV8kHU8dwmHDHAdeedZHdK8cmTXlkkRdi8= +github.com/golangci/golangci-lint v1.55.0/go.mod h1:Z/OawFQ4yqFo2/plDYlIjoZlJeVYkRcqS9dW55p0FXg= +github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 h1:MfyDlzVjl1hoaPzPD4Gpb/QgoRfSBR0jdhwGyAWwMSA= +github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0/go.mod h1:66R6K6P6VWk9I95jvqGxkqJxVWGFy9XlDwLwVz1RCFg= +github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca h1:kNY3/svz5T29MYHubXix4aDDuE3RWHkPvopM/EDv/MA= +github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca/go.mod h1:tvlJhZqDe4LMs4ZHD0oMUlt9G2LWuDGoisJTBzLMV9o= +github.com/golangci/misspell v0.4.1 h1:+y73iSicVy2PqyX7kmUefHusENlrP9YwuHZHPLGQj/g= +github.com/golangci/misspell v0.4.1/go.mod h1:9mAN1quEo3DlpbaIKKyEvRxK1pwqR9s/Sea1bJCtlNI= +github.com/golangci/revgrep v0.5.0 h1:GGBqHFtFOeHiSUQtFVZXPJtVZYOGB4iVlAjaoFRBQvY= +github.com/golangci/revgrep v0.5.0/go.mod h1:bjAMA+Sh/QUfTDcHzxfyHxr4xKvllVr/0sCv2e7jJHA= +github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 h1:zwtduBRr5SSWhqsYNgcuWO2kFlpdOZbP0+yRjmvPGys= +github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4/go.mod h1:Izgrg8RkN3rCIMLGE9CyYmU9pY2Jer6DgANEnZ/L/cQ= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-github/v45 v45.2.0 h1:5oRLszbrkvxDDqBCNj2hjDZMKmvexaZ1xw/FCD+K3FI= +github.com/google/go-github/v45 v45.2.0/go.mod h1:FObaZJEDSTa/WGCzZ2Z3eoCDXWJKMenWWTrd8jrta28= +github.com/google/go-github/v53 v53.0.0 h1:T1RyHbSnpHYnoF0ZYKiIPSgPtuJ8G6vgc0MKodXsQDQ= +github.com/google/go-github/v53 v53.0.0/go.mod h1:XhFRObz+m/l+UCm9b7KSIC3lT3NWSXGt7mOsAWEloao= +github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= +github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= +github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= +github.com/gordonklaus/ineffassign v0.0.0-20230610083614-0e73809eb601 h1:mrEEilTAUmaAORhssPPkxj84TsHrPMLBGW2Z4SoTxm8= +github.com/gordonklaus/ineffassign v0.0.0-20230610083614-0e73809eb601/go.mod h1:Qcp2HIAYhR7mNUVSIxZww3Guk4it82ghYcEXIAk+QT0= +github.com/gostaticanalysis/analysisutil v0.7.1 h1:ZMCjoue3DtDWQ5WyU16YbjbQEQ3VuzwxALrpYd+HeKk= +github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= +github.com/gostaticanalysis/comment v1.4.1/go.mod h1:ih6ZxzTHLdadaiSnF5WY3dxUoXfXAlTaRzuaNDlSado= +github.com/gostaticanalysis/comment v1.4.2 h1:hlnx5+S2fY9Zo9ePo4AhgYsYHbM2+eAv8m/s1JiCd6Q= +github.com/gostaticanalysis/comment v1.4.2/go.mod h1:KLUTGDv6HOCotCH8h2erHKmpci2ZoR8VPu34YA2uzdM= +github.com/gostaticanalysis/forcetypeassert v0.1.0 h1:6eUflI3DiGusXGK6X7cCcIgVCpZ2CiZ1Q7jl6ZxNV70= +github.com/gostaticanalysis/forcetypeassert v0.1.0/go.mod h1:qZEedyP/sY1lTGV1uJ3VhWZ2mqag3IkWsDHVbplHXak= +github.com/gostaticanalysis/nilerr v0.1.1 h1:ThE+hJP0fEp4zWLkWHWcRyI2Od0p7DlgYG3Uqrmrcpk= +github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= +github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542 h1:2VTzZjLZBgl62/EtslCrtky5vbi9dd7HrQPQIx6wqiw= +github.com/hashicorp/consul/api v1.13.0/go.mod h1:ZlVrynguJKcYr54zGaDbaL3fOvKC9m72FhPvA8T35KQ= +github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= +github.com/hashicorp/copywrite v0.16.6 h1:tTkXQiFwK/INXptOgxQ8Vu2i2+GjAf8iE8HRw3IhLA0= +github.com/hashicorp/copywrite v0.16.6/go.mod h1:6wvQH+ICDoD2bpjO1RJ6fi+h3aY5NeLEM12oTkEtFoc= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= +github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU= +github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg= +github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= +github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= +github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9uLqI8l75knNv3lV1kA55veR+WUPSiKIWcQHudI= +github.com/hashicorp/go-hclog v0.8.0/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= +github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= +github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= +github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= +github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= +github.com/hashicorp/go-plugin v1.0.1/go.mod h1:++UyYGoz3o5w9ZzAdZxtQKrWWP+iqPBn3cQptSMzBuY= +github.com/hashicorp/go-retryablehttp v0.5.4/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= +github.com/hashicorp/go-rootcerts v1.0.1/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= +github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= +github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= +github.com/hashicorp/go-sockaddr v1.0.2/go.mod h1:rB4wwRAUzs07qva3c5SdrY/NEtAUjGlgmH/UkBUC97A= +github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= +github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= +github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= +github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/hc-install v0.5.2 h1:SfwMFnEXVVirpwkDuSF5kymUOhrUxrTq3udEseZdOD0= +github.com/hashicorp/hc-install v0.5.2/go.mod h1:9QISwe6newMWIfEiXpzuu1k9HAGtQYgnSH8H9T8wmoI= +github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= +github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= +github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= +github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= +github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= +github.com/hashicorp/terraform-exec v0.18.1 h1:LAbfDvNQU1l0NOQlTuudjczVhHj061fNX5H8XZxHlH4= +github.com/hashicorp/terraform-exec v0.18.1/go.mod h1:58wg4IeuAJ6LVsLUeD2DWZZoc/bYi6dzhLHzxM41980= +github.com/hashicorp/terraform-json v0.17.1 h1:eMfvh/uWggKmY7Pmb3T85u86E2EQg6EQHgyRwf3RkyA= +github.com/hashicorp/terraform-json v0.17.1/go.mod h1:Huy6zt6euxaY9knPAFKjUITn8QxUFIe9VuSzb4zn/0o= +github.com/hashicorp/terraform-plugin-docs v0.16.0 h1:UmxFr3AScl6Wged84jndJIfFccGyBZn52KtMNsS12dI= +github.com/hashicorp/terraform-plugin-docs v0.16.0/go.mod h1:M3ZrlKBJAbPMtNOPwHicGi1c+hZUh7/g0ifT/z7TVfA= +github.com/hashicorp/vault/api v1.0.4/go.mod h1:gDcqh3WGcR1cpF5AJz/B1UFheUEneMoIospckxBxk6Q= +github.com/hashicorp/vault/sdk v0.1.13/go.mod h1:B+hVj7TpuQY1Y/GPbCpffmgd+tSEwvhkWnjtSYCaS2M= +github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= +github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= +github.com/henvic/httpretty v0.0.6 h1:JdzGzKZBajBfnvlMALXXMVQWxWMF/ofTy8C3/OSUTxs= +github.com/henvic/httpretty v0.0.6/go.mod h1:X38wLjWXHkXT7r2+uK8LjCMne9rsuNaBLJ+5cU2/Pmo= +github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= +github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= +github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec h1:qv2VnGeEQHchGaZ/u7lxST/RaJw+cv273q79D81Xbog= +github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68= +github.com/hjson/hjson-go/v4 v4.0.0 h1:wlm6IYYqHjOdXH1gHev4VoXCaW20HdQAGCxdOEEg2cs= +github.com/hjson/hjson-go/v4 v4.0.0/go.mod h1:KaYt3bTw3zhBjYqnXkYywcYctk0A2nxeEFTse3rH13E= +github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/huandu/xstrings v1.3.2 h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw= +github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= +github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk= +github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= +github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc= +github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= +github.com/jedib0t/go-pretty v4.3.0+incompatible h1:CGs8AVhEKg/n9YbUenWmNStRW2PHJzaeDodcfvRAbIo= +github.com/jedib0t/go-pretty v4.3.0+incompatible/go.mod h1:XemHduiw8R651AF9Pt4FwCTKeG3oo7hrHJAoznj9nag= +github.com/jedib0t/go-pretty/v6 v6.4.6 h1:v6aG9h6Uby3IusSSEjHaZNXpHFhzqMmjXcPq1Rjl9Jw= +github.com/jedib0t/go-pretty/v6 v6.4.6/go.mod h1:Ndk3ase2CkQbXLLNf5QDHoYb6J9WtVfmHZu9n8rk2xs= +github.com/jgautheron/goconst v1.6.0 h1:gbMLWKRMkzAc6kYsQL6/TxaoBUg3Jm9LSF/Ih1ADWGA= +github.com/jgautheron/goconst v1.6.0/go.mod h1:aAosetZ5zaeC/2EfMeRswtxUFBpe2Hr7HzkgX4fanO4= +github.com/jingyugao/rowserrcheck v1.1.1 h1:zibz55j/MJtLsjP1OF4bSdgXxwL1b+Vn7Tjzq7gFzUs= +github.com/jingyugao/rowserrcheck v1.1.1/go.mod h1:4yvlZSDb3IyDTUZJUmpZfm2Hwok+Dtp+nu2qOq+er9c= +github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af h1:KA9BjwUk7KlCh6S9EAGWBt1oExIUv9WyNCiRz5amv48= +github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af/go.mod h1:HEWGJkRDzjJY2sqdDwxccsGicWEf9BQOZsq2tV+xzM0= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc= +github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= +github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= +github.com/julz/importas v0.1.0 h1:F78HnrsjY3cR7j0etXy5+TU1Zuy7Xt08X/1aJnH5xXY= +github.com/julz/importas v0.1.0/go.mod h1:oSFU2R4XK/P7kNBrnL/FEQlDGN1/6WoxXEjSSXO0DV0= +github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= +github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= +github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/errcheck v1.6.3 h1:dEKh+GLHcWm2oN34nMvDzn1sqI0i0WxPvrgiJA5JuM8= +github.com/kisielk/errcheck v1.6.3/go.mod h1:nXw/i/MfnvRHqXa7XXmQMUB0oNFGuBrNI8d8NLy0LPw= +github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/kkHAIKE/contextcheck v1.1.4 h1:B6zAaLhOEEcjvUgIYEqystmnFk1Oemn8bvJhbt0GMb8= +github.com/kkHAIKE/contextcheck v1.1.4/go.mod h1:1+i/gWqokIa+dm31mqGLZhZJ7Uh44DJGZVmr6QRBNJg= +github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= +github.com/knadh/koanf v1.5.0 h1:q2TSd/3Pyc/5yP9ldIrSdIz26MCcyNQzW0pEAugLPNs= +github.com/knadh/koanf v1.5.0/go.mod h1:Hgyjp4y8v44hpZtPzs7JZfRAW5AhN7KfZcwv1RYggDs= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/kulti/thelper v0.6.3 h1:ElhKf+AlItIu+xGnI990no4cE2+XaSu1ULymV2Yulxs= +github.com/kulti/thelper v0.6.3/go.mod h1:DsqKShOvP40epevkFrvIwkCMNYxMeTNjdWL4dqWHZ6I= +github.com/kunwardeep/paralleltest v1.0.8 h1:Ul2KsqtzFxTlSU7IP0JusWlLiNqQaloB9vguyjbE558= +github.com/kunwardeep/paralleltest v1.0.8/go.mod h1:2C7s65hONVqY7Q5Efj5aLzRCNLjw2h4eMc9EcypGjcY= +github.com/kyoh86/exportloopref v0.1.11 h1:1Z0bcmTypkL3Q4k+IDHMWTcnCliEZcaPiIe0/ymEyhQ= +github.com/kyoh86/exportloopref v0.1.11/go.mod h1:qkV4UF1zGl6EkF1ox8L5t9SwyeBAZ3qLMd6up458uqA= +github.com/ldez/gomoddirectives v0.2.3 h1:y7MBaisZVDYmKvt9/l1mjNCiSA1BVn34U0ObUcJwlhA= +github.com/ldez/gomoddirectives v0.2.3/go.mod h1:cpgBogWITnCfRq2qGoDkKMEVSaarhdBr6g8G04uz6d0= +github.com/ldez/tagliatelle v0.5.0 h1:epgfuYt9v0CG3fms0pEgIMNPuFf/LpPIfjk4kyqSioo= +github.com/ldez/tagliatelle v0.5.0/go.mod h1:rj1HmWiL1MiKQuOONhd09iySTEkUuE/8+5jtPYz9xa4= +github.com/leonklingele/grouper v1.1.1 h1:suWXRU57D4/Enn6pXR0QVqqWWrnJ9Osrz+5rjt8ivzU= +github.com/leonklingele/grouper v1.1.1/go.mod h1:uk3I3uDfi9B6PeUjsCKi6ndcf63Uy7snXgR4yDYQVDY= +github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY= +github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= +github.com/lufeee/execinquery v1.2.1 h1:hf0Ems4SHcUGBxpGN7Jz78z1ppVkP/837ZlETPCEtOM= +github.com/lufeee/execinquery v1.2.1/go.mod h1:EC7DrEKView09ocscGHC+apXMIaorh4xqSxS/dy8SbM= +github.com/macabu/inamedparam v0.1.2 h1:RR5cnayM6Q7cDhQol32DE2BGAPGMnffJ31LFE+UklaU= +github.com/macabu/inamedparam v0.1.2/go.mod h1:Xg25QvY7IBRl1KLPV9Rbml8JOMZtF/iAkNkmV7eQgjw= +github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= +github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= +github.com/maratori/testableexamples v1.0.0 h1:dU5alXRrD8WKSjOUnmJZuzdxWOEQ57+7s93SLMxb2vI= +github.com/maratori/testableexamples v1.0.0/go.mod h1:4rhjL1n20TUTT4vdh3RDqSizKLyXp7K2u6HgraZCGzE= +github.com/maratori/testpackage v1.1.1 h1:S58XVV5AD7HADMmD0fNnziNHqKvSdDuEKdPD1rNTU04= +github.com/maratori/testpackage v1.1.1/go.mod h1:s4gRK/ym6AMrqpOa/kEbQTV4Q4jb7WeLZzVhVVVOQMc= +github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26 h1:gWg6ZQ4JhDfJPqlo2srm/LN17lpybq15AryXIRcWYLE= +github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26/go.mod h1:1BELzlh859Sh1c6+90blK8lbYy0kwQf1bYlBhBysy1s= +github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= +github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= +github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= +github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= +github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= +github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= +github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU= +github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= +github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/mbilski/exhaustivestruct v1.2.0 h1:wCBmUnSYufAHO6J4AVWY6ff+oxWxsVFrwgOdMUQePUo= +github.com/mbilski/exhaustivestruct v1.2.0/go.mod h1:OeTBVxQWoEmB2J2JCHmXWPJ0aksxSUOUy+nvtVEfzXc= +github.com/mergestat/timediff v0.0.3 h1:ucCNh4/ZrTPjFZ081PccNbhx9spymCJkFxSzgVuPU+Y= +github.com/mergestat/timediff v0.0.3/go.mod h1:yvMUaRu2oetc+9IbPLYBJviz6sA7xz8OXMDfhBl7YSI= +github.com/mgechev/revive v1.3.4 h1:k/tO3XTaWY4DEHal9tWBkkUMJYO/dLDVyMmAQxmIMDc= +github.com/mgechev/revive v1.3.4/go.mod h1:W+pZCMu9qj8Uhfs1iJMQsEFLRozUfvwFwqVvRbSNLVw= +github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= +github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI= +github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= +github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= +github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= +github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= +github.com/mitchellh/cli v1.1.5 h1:OxRIeJXpAMztws/XHlN2vu6imG5Dpq+j61AzAX5fLng= +github.com/mitchellh/cli v1.1.5/go.mod h1:v8+iFts2sPIKUV1ltktPXMCC8fumSKFItNcD2cLtRR4= +github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= +github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= +github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= +github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= +github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= +github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= +github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= +github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= +github.com/moricho/tparallel v0.3.1 h1:fQKD4U1wRMAYNngDonW5XupoB/ZGJHdpzrWqgyg9krA= +github.com/moricho/tparallel v0.3.1/go.mod h1:leENX2cUv7Sv2qDgdi0D0fCftN8fRC67Bcn8pqzeYNI= +github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s= +github.com/muesli/termenv v0.12.0 h1:KuQRUE3PgxRFWhq4gHvZtPSLCGDqM5q/cYr1pZ39ytc= +github.com/muesli/termenv v0.12.0/go.mod h1:WCCv32tusQ/EEZ5S8oUIIrC/nIuBcxCVqlN4Xfkv+7A= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/nakabonne/nestif v0.3.1 h1:wm28nZjhQY5HyYPx+weN3Q65k6ilSBxDb8v5S81B81U= +github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= +github.com/nishanths/exhaustive v0.11.0 h1:T3I8nUGhl/Cwu5Z2hfc92l0e04D2GEW6e0l8pzda2l0= +github.com/nishanths/exhaustive v0.11.0/go.mod h1:RqwDsZ1xY0dNdqHho2z6X+bgzizwbLYOWnZbbl2wLB4= +github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk= +github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c= +github.com/npillmayer/nestext v0.1.3/go.mod h1:h2lrijH8jpicr25dFY+oAJLyzlya6jhnuG+zWp9L0Uk= +github.com/nunnatsa/ginkgolinter v0.14.0 h1:XQPNmw+kZz5cC/HbFK3mQutpjzAQv1dHregRA+4CGGg= +github.com/nunnatsa/ginkgolinter v0.14.0/go.mod h1:cm2xaqCUCRd7qcP4DqbVvpcyEMkuLM9CF0wY6VASohk= +github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= +github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= +github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= +github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= +github.com/otiai10/copy v1.2.0/go.mod h1:rrF5dJ5F0t/EWSYODDu4j9/vEeYHMkc8jt0zJChqQWw= +github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= +github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs= +github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo= +github.com/otiai10/mint v1.3.1/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc= +github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAvS1LBMMhTE= +github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= +github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= +github.com/pelletier/go-toml/v2 v2.0.5 h1:ipoSadvV8oGUjnUbMub59IDPPwfxF694nG/jwbMiyQg= +github.com/pelletier/go-toml/v2 v2.0.5/go.mod h1:OMHamSCAODeSsVrwwvcJOaoN0LIUIaFVNZzmWyNfXas= +github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/profile v1.6.0/go.mod h1:qBsxPvzyUincmltOk6iyRVxHYg4adc0OFOv72ZdLa18= +github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/polyfloyd/go-errorlint v1.4.5 h1:70YWmMy4FgRHehGNOUask3HtSFSOLKgmDn7ryNe7LqI= +github.com/polyfloyd/go-errorlint v1.4.5/go.mod h1:sIZEbFoDOCnTYYZoVkjc4hTnM459tuWA9H/EkdXwsKk= +github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo= +github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= +github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +github.com/prometheus/client_golang v1.12.1 h1:ZiaPsmm9uiBeaSMRznKsCDNtPCS0T3JVDGF+06gjBzk= +github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= +github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= +github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= +github.com/prometheus/common v0.32.1 h1:hWIdL3N2HoUx3B8j3YN9mWor0qhY/NlEKZEaXxuIRh4= +github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= +github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/quasilyte/go-ruleguard v0.4.0 h1:DyM6r+TKL+xbKB4Nm7Afd1IQh9kEUKQs2pboWGKtvQo= +github.com/quasilyte/go-ruleguard v0.4.0/go.mod h1:Eu76Z/R8IXtViWUIHkE3p8gdH3/PKk1eh3YGfaEof10= +github.com/quasilyte/gogrep v0.5.0 h1:eTKODPXbI8ffJMN+W2aE0+oL0z/nh8/5eNdiO34SOAo= +github.com/quasilyte/gogrep v0.5.0/go.mod h1:Cm9lpz9NZjEoL1tgZ2OgeUKPIxL1meE7eo60Z6Sk+Ng= +github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 h1:TCg2WBOl980XxGFEZSS6KlBGIV0diGdySzxATTWoqaU= +github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= +github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 h1:M8mH9eK4OUR4lu7Gd+PU1fV2/qnDNfzT635KRSObncs= +github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= +github.com/rhnvrm/simples3 v0.6.1/go.mod h1:Y+3vYm2V7Y4VijFoJHHTrja6OgPrJ2cBti8dPGkC3sA= +github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= +github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= +github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= +github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= +github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww= +github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ryancurrah/gomodguard v1.3.0 h1:q15RT/pd6UggBXVBuLps8BXRvl5GPBcwVA7BJHMLuTw= +github.com/ryancurrah/gomodguard v1.3.0/go.mod h1:ggBxb3luypPEzqVtq33ee7YSN35V28XeGnid8dnni50= +github.com/ryanrolds/sqlclosecheck v0.5.1 h1:dibWW826u0P8jNLsLN+En7+RqWWTYrjCB9fJfSfdyCU= +github.com/ryanrolds/sqlclosecheck v0.5.1/go.mod h1:2g3dUjoS6AL4huFdv6wn55WpLIDjY7ZgUR4J8HOO/XQ= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= +github.com/samber/lo v1.37.0 h1:XjVcB8g6tgUp8rsPsJ2CvhClfImrpL04YpQHXeHPhRw= +github.com/samber/lo v1.37.0/go.mod h1:9vaz2O4o8oOnK23pd2TrXufcbdbJIa3b6cstBWKpopA= +github.com/sanposhiho/wastedassign/v2 v2.0.7 h1:J+6nrY4VW+gC9xFzUc+XjPD3g3wF3je/NsJFwFK7Uxc= +github.com/sanposhiho/wastedassign/v2 v2.0.7/go.mod h1:KyZ0MWTwxxBmfwn33zh3k1dmsbF2ud9pAAGfoLfjhtI= +github.com/sashamelentyev/interfacebloat v1.1.0 h1:xdRdJp0irL086OyW1H/RTZTr1h/tMEOsumirXcOJqAw= +github.com/sashamelentyev/interfacebloat v1.1.0/go.mod h1:+Y9yU5YdTkrNvoX0xHc84dxiN1iBi9+G8zZIhPVoNjQ= +github.com/sashamelentyev/usestdlibvars v1.24.0 h1:MKNzmXtGh5N0y74Z/CIaJh4GlB364l0K1RUT08WSWAc= +github.com/sashamelentyev/usestdlibvars v1.24.0/go.mod h1:9cYkq+gYJ+a5W2RPdhfaSCnTVUC1OQP/bSiiBhq3OZE= +github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sebdah/goldie v1.0.0/go.mod h1:jXP4hmWywNEwZzhMuv2ccnqTSFpuq8iyQhtQdkkZBH4= +github.com/securego/gosec/v2 v2.18.1 h1:xnnehWg7dIW8qrRPGm8ykY21zp2MueKyC99Vlcuj96I= +github.com/securego/gosec/v2 v2.18.1/go.mod h1:ZUTcKD9gAFip1lLGHWCjkoBQJyaEzePTNzjwlL2HHoE= +github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= +github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c h1:W65qqJCIOVP4jpqPQ0YvHYKwcMEMVWIzWC5iNQQfBTU= +github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c/go.mod h1:/PevMnwAxekIXwN8qQyfc5gl2NlkB3CQlkizAbOkeBs= +github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= +github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= +github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= +github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= +github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= +github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= +github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/sivchari/containedctx v1.0.3 h1:x+etemjbsh2fB5ewm5FeLNi5bUjK0V8n0RB+Wwfd0XE= +github.com/sivchari/containedctx v1.0.3/go.mod h1:c1RDvCbnJLtH4lLcYD/GqwiBSSf4F5Qk0xld2rBqzJ4= +github.com/sivchari/nosnakecase v1.7.0 h1:7QkpWIRMe8x25gckkFd2A5Pi6Ymo0qgr4JrhGt95do8= +github.com/sivchari/nosnakecase v1.7.0/go.mod h1:CwDzrzPea40/GB6uynrNLiorAlgFRvRbFSgJx2Gs+QY= +github.com/sivchari/tenv v1.7.1 h1:PSpuD4bu6fSmtWMxSGWcvqUUgIn7k3yOJhOIzVWn8Ak= +github.com/sivchari/tenv v1.7.1/go.mod h1:64yStXKSOxDfX47NlhVwND4dHwfZDdbp2Lyl018Icvg= +github.com/skeema/knownhosts v1.1.0 h1:Wvr9V0MxhjRbl3f9nMnKnFfiWTJmtECJ9Njkea3ysW0= +github.com/sonatard/noctx v0.0.2 h1:L7Dz4De2zDQhW8S0t+KUjY0MAQJd6SgVwhzNIc4ok00= +github.com/sonatard/noctx v0.0.2/go.mod h1:kzFz+CzWSjQ2OzIm46uJZoXuBpa2+0y3T36U18dWqIo= +github.com/sourcegraph/go-diff v0.7.0 h1:9uLlrd5T46OXs5qpp8L/MTltk0zikUGi0sNNyCpA8G0= +github.com/sourcegraph/go-diff v0.7.0/go.mod h1:iBszgVvyxdc8SFZ7gm69go2KDdt3ag071iBaWPF6cjs= +github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= +github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= +github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= +github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= +github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA= +github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= +github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= +github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= +github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/viper v1.12.0 h1:CZ7eSOd3kZoaYDLbXnmzgQI5RlciuXBMA+18HwHRfZQ= +github.com/spf13/viper v1.12.0/go.mod h1:b6COn30jlNxbm/V2IqWiNWkJ+vZNiMNksliPCiuKtSI= +github.com/ssgreg/nlreturn/v2 v2.2.1 h1:X4XDI7jstt3ySqGU86YGAURbxw3oTDPK9sPEi6YEwQ0= +github.com/ssgreg/nlreturn/v2 v2.2.1/go.mod h1:E/iiPB78hV7Szg2YfRgyIrk1AD6JVMTRkkxBiELzh2I= +github.com/stbenjam/no-sprintf-host-port v0.1.1 h1:tYugd/yrm1O0dV+ThCbaKZh195Dfm07ysF0U6JQXczc= +github.com/stbenjam/no-sprintf-host-port v0.1.1/go.mod h1:TLhvtIvONRzdmkFiio4O8LHsN9N74I+PhRquPsxpL0I= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= +github.com/stretchr/testify v1.7.4/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs= +github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= +github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c h1:+aPplBwWcHBo6q9xrfWdMrT9o4kltkmmvpemgIjep/8= +github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c/go.mod h1:SbErYREK7xXdsRiigaQiQkI9McGRzYMvlKYaP3Nimdk= +github.com/tdakkota/asciicheck v0.2.0 h1:o8jvnUANo0qXtnslk2d3nMKTFNlOnJjRrNcj0j9qkHM= +github.com/tdakkota/asciicheck v0.2.0/go.mod h1:Qb7Y9EgjCLJGup51gDHFzbI08/gbGhL/UVhYIPWG2rg= +github.com/tenntenn/modver v1.0.1/go.mod h1:bePIyQPb7UeioSRkw3Q0XeMhYZSMx9B8ePqg6SAMGH0= +github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3/go.mod h1:ON8b8w4BN/kE1EOhwT0o+d62W65a6aPw1nouo9LMgyY= +github.com/tetafro/godot v1.4.15 h1:QzdIs+XB8q+U1WmQEWKHQbKmCw06QuQM7gLx/dky2RM= +github.com/tetafro/godot v1.4.15/go.mod h1:2oVxTBSftRTh4+MVfUaUXR6bn2GDXCaMcOG4Dk3rfio= +github.com/thanhpk/randstr v1.0.4 h1:IN78qu/bR+My+gHCvMEXhR/i5oriVHcTB/BJJIRTsNo= +github.com/thanhpk/randstr v1.0.4/go.mod h1:M/H2P1eNLZzlDwAzpkkkUvoyNNMbzRGhESZuEQk3r0U= +github.com/thlib/go-timezone-local v0.0.0-20210907160436-ef149e42d28e h1:BuzhfgfWQbX0dWzYzT1zsORLnHRv3bcRcsaUk0VmXA8= +github.com/thlib/go-timezone-local v0.0.0-20210907160436-ef149e42d28e/go.mod h1:/Tnicc6m/lsJE0irFMA0LfIwTBo4QP7A8IfyIv4zZKI= +github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4= +github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= +github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966 h1:quvGphlmUVU+nhpFa4gg4yJyTRJ13reZMDHrKwYw53M= +github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966/go.mod h1:27bSVNWSBOHm+qRp1T9qzaIpsWEP6TbUnei/43HK+PQ= +github.com/timonwong/loggercheck v0.9.4 h1:HKKhqrjcVj8sxL7K77beXh0adEm6DLjV/QOGeMXEVi4= +github.com/timonwong/loggercheck v0.9.4/go.mod h1:caz4zlPcgvpEkXgVnAJGowHAMW2NwHaNlpS8xDbVhTg= +github.com/tomarrell/wrapcheck/v2 v2.8.1 h1:HxSqDSN0sAt0yJYsrcYVoEeyM4aI9yAm3KQpIXDJRhQ= +github.com/tomarrell/wrapcheck/v2 v2.8.1/go.mod h1:/n2Q3NZ4XFT50ho6Hbxg+RV1uyo2Uow/Vdm9NQcl5SE= +github.com/tommy-muehle/go-mnd/v2 v2.5.1 h1:NowYhSdyE/1zwK9QCLeRb6USWdoif80Ie+v+yU8u1Zw= +github.com/tommy-muehle/go-mnd/v2 v2.5.1/go.mod h1:WsUAkMJMYww6l/ufffCD3m+P7LEvr8TnZn9lwVDlgzw= +github.com/ultraware/funlen v0.1.0 h1:BuqclbkY6pO+cvxoq7OsktIXZpgBSkYTQtmwhAK81vI= +github.com/ultraware/funlen v0.1.0/go.mod h1:XJqmOQja6DpxarLj6Jj1U7JuoS8PvL4nEqDaQhy22p4= +github.com/ultraware/whitespace v0.0.5 h1:hh+/cpIcopyMYbZNVov9iSxvJU3OYQg78Sfaqzi/CzI= +github.com/ultraware/whitespace v0.0.5/go.mod h1:aVMh/gQve5Maj9hQ/hg+F75lr/X5A89uZnzAmWSineA= +github.com/uudashr/gocognit v1.1.2 h1:l6BAEKJqQH2UpKAPKdMfZf5kE4W/2xk8pfU1OVLvniI= +github.com/uudashr/gocognit v1.1.2/go.mod h1:aAVdLURqcanke8h3vg35BC++eseDm66Z7KmchI5et4k= +github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= +github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= +github.com/xdg-go/scram v1.1.1/go.mod h1:RaEWvsqvNKKvBPvcKeFjrG2cJqOkHTiyTpzz23ni57g= +github.com/xdg-go/stringprep v1.0.3/go.mod h1:W3f5j4i+9rC0kuIEJL0ky1VpHXQU3ocBgklLGvcBnW8= +github.com/xen0n/gosmopolitan v1.2.2 h1:/p2KTnMzwRexIW8GlKawsTWOxn7UHA+jCMF/V8HHtvU= +github.com/xen0n/gosmopolitan v1.2.2/go.mod h1:7XX7Mj61uLYrj0qmeN0zi7XDon9JRAEhYQqAPLVNTeg= +github.com/yagipy/maintidx v1.0.0 h1:h5NvIsCz+nRDapQ0exNv4aJ0yXSI0420omVANTv3GJM= +github.com/yagipy/maintidx v1.0.0/go.mod h1:0qNf/I/CCZXSMhsRsrEPDZ+DkekpKLXAJfsTACwgXLk= +github.com/yeya24/promlinter v0.2.0 h1:xFKDQ82orCU5jQujdaD8stOHiv8UN68BSdn2a8u8Y3o= +github.com/yeya24/promlinter v0.2.0/go.mod h1:u54lkmBOZrpEbQQ6gox2zWKKLKu2SGe+2KOiextY+IA= +github.com/ykadowak/zerologlint v0.1.3 h1:TLy1dTW3Nuc+YE3bYRPToG1Q9Ej78b5UUN6bjbGdxPE= +github.com/ykadowak/zerologlint v0.1.3/go.mod h1:KaUskqF3e/v59oPmdq1U1DnKcuHokl2/K1U4pmIELKg= +github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/zclconf/go-cty v1.13.2 h1:4GvrUxe/QUDYuJKAav4EYqdM47/kZa672LwmXFmEKT0= +github.com/zclconf/go-cty v1.13.2/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0= +github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= +gitlab.com/bosi/decorder v0.4.1 h1:VdsdfxhstabyhZovHafFw+9eJ6eU0d2CkFNJcZz/NU4= +gitlab.com/bosi/decorder v0.4.1/go.mod h1:jecSqWUew6Yle1pCr2eLWTensJMmsxHsBwt+PVbkAqA= +go-simpler.org/sloglint v0.1.2 h1:IjdhF8NPxyn0Ckn2+fuIof7ntSnVUAqBFcQRrnG9AiM= +go-simpler.org/sloglint v0.1.2/go.mod h1:2LL+QImPfTslD5muNPydAEYmpXIj6o/WYcqnJjLi4o4= +go.etcd.io/etcd/api/v3 v3.5.4/go.mod h1:5GB2vv4A4AOn3yk7MftYGHkUfGtDHnEraIjym4dYz5A= +go.etcd.io/etcd/client/pkg/v3 v3.5.4/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= +go.etcd.io/etcd/client/v3 v3.5.4/go.mod h1:ZaRkVgBZC+L+dLCjTcF1hRXpgZXQPOvnA/Ak/gq3kiY= +go.mongodb.org/mongo-driver v1.10.0 h1:UtV6N5k14upNp4LTduX0QCufG124fSu25Wz9tu94GLg= +go.mongodb.org/mongo-driver v1.10.0/go.mod h1:wsihk0Kdgv8Kqu1Anit4sfK+22vSFbUrAVEYRhCXrA8= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +go.tmz.dev/musttag v0.7.2 h1:1J6S9ipDbalBSODNT5jCep8dhZyMr4ttnjQagmGYR5s= +go.tmz.dev/musttag v0.7.2/go.mod h1:m6q5NiiSKMnQYokefa2xGoyoXnrswCbJ0AWYzf4Zs28= +go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= +go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4= +go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= +go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= +go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= +go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= +golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= +golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= +golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df h1:UA2aFVmmsIlefxMk29Dp2juaUSth8Pyn3Tq5Y5mJGME= +golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= +golang.org/x/exp/typeparams v0.0.0-20220428152302-39d4317da171/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= +golang.org/x/exp/typeparams v0.0.0-20230203172020-98cc5a0785f9/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= +golang.org/x/exp/typeparams v0.0.0-20230307190834-24139beb5833 h1:jWGQJV4niP+CCmFW9ekjA9Zx8vYORzOUH2/Nl5WPuLQ= +golang.org/x/exp/typeparams v0.0.0-20230307190834-24139beb5833/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= +golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= +golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.11.0 h1:bUO06HqtnRcc/7l71XBe4WcqTZ+3AH1J59zWDDwLKgU= +golang.org/x/mod v0.11.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= +golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= +golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220923203811-8be639271d50/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= +golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= +golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.8.0 h1:6dkIjl3j3LtZ/O3sTgZTMsLKSftL/B8Zgq4huOIIUu8= +golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/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.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.4.0 h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ= +golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190129075346-302c3dd5f1cc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210831042530-f4d43177bf5e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211105183446-c75c47738b0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220702020025-31831981b65f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210503060354-a79de5458b56/go.mod h1:tfny5GFUkzUvx4ps4ajbZsCe5lw1metzhBm9T3x7oIY= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= +golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= +golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek= +golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190321232350-e250d351ecad/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190910044552-dd2b5c81c578/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200324003944-a576cf524670/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200329025819-fd4102a86c65/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200724022722-7017fd6b1305/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200820010801-b793a1359eac/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201001104356-43ebab892c4c/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= +golang.org/x/tools v0.0.0-20201023174141-c8cfbd0f21e6/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/tools v0.1.1-0.20210205202024-ef80cdb6ec6d/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= +golang.org/x/tools v0.1.1-0.20210302220138-2ac05c832e1a/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= +golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= +golang.org/x/tools v0.1.11/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= +golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= +golang.org/x/tools v0.5.0/go.mod h1:N+Kgy78s5I24c24dU8OfWNEotWjutIs8SnJvn5IDq+k= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= +golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= +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= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.22.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= +google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= +gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/h2non/gock.v1 v1.1.2 h1:jBbHXgGBK/AoPVfJh5x4r/WxIrElvbLel8TCZkkZJoY= +gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= +gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.4.6 h1:oFEHCKeID7to/3autwsWfnuv69j3NsfcXbvJKuIcep8= +honnef.co/go/tools v0.4.6/go.mod h1:+rnGS1THNh8zMwnd2oVOTL9QF6vmfyG6ZXBULae2uc0= +mvdan.cc/gofumpt v0.5.0 h1:0EQ+Z56k8tXjj/6TQD25BFNKQXpCvT0rnansIc7Ug5E= +mvdan.cc/gofumpt v0.5.0/go.mod h1:HBeVDtMKRZpXyxFciAirzdKklDlGu8aAy1wEbH5Y9js= +mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed h1:WX1yoOaKQfddO/mLzdV4wptyWgoH/6hwLs7QHTixo0I= +mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc= +mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b h1:DxJ5nJdkhDlLok9K6qO+5290kphDJbHOQO1DFFFTeBo= +mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4= +mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d h1:3rvTIIM22r9pvXk+q3swxUQAQOxksVMGK7sml4nG57w= +mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d/go.mod h1:IeHQjmn6TOD+e4Z3RFiZMMsLVL+A96Nvptar8Fj71is= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= +sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= diff --git a/tools/tools.go b/tools/tools.go index 85365a02d8..7e54734546 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -1,9 +1,19 @@ -//go:build tools -// +build tools +//go:build generate package tools import ( + _ "github.com/golangci/golangci-lint/cmd/golangci-lint" + _ "github.com/hashicorp/copywrite" _ "github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs" - _ "golang.org/x/tools/cmd/goimports" + _ "mvdan.cc/gofumpt" ) + +// Generate copyright headers +//go:generate go run github.com/hashicorp/copywrite headers -d .. --config ../.copywrite.hcl +// Format Terraform code for use in documentation. +// If you do not have Terraform installed, you can remove the formatting command, but it is suggested +// to ensure the documentation is formatted properly. +//go:generate terraform fmt -recursive ../examples/ +// Generate documentation. +//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate --provider-dir .. From aa0170098da82415c3e9466ca7bda1e1d5a3a8ae Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 00:57:40 -0700 Subject: [PATCH 02/28] update makefile --- .github/workflows/test.yml | 2 +- GNUmakefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 10a60bbd6a..3ba1983c86 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,7 @@ on: paths-ignore: - 'README.md' - 'CHANGELOG.md' -name: Test +name: test jobs: test: diff --git a/GNUmakefile b/GNUmakefile index 587b24d20e..04c0143470 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -34,7 +34,7 @@ tools: cd tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint cd tools && go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs cd tools && go install github.com/hashicorp/copywrite - cd tools && go install go install mvdan.cc/gofumpt@latest + cd tools && go install go install mvdan.cc/gofumpt generate-all-dto: ## Generate all DTOs for SDK interfaces go generate ./internal/sdk/*_dto.go From 4b0df5efc964f885fa29a9e338f727238df16ce0 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 01:01:07 -0700 Subject: [PATCH 03/28] update makefile --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 04c0143470..4c92b6c19e 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -34,7 +34,7 @@ tools: cd tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint cd tools && go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs cd tools && go install github.com/hashicorp/copywrite - cd tools && go install go install mvdan.cc/gofumpt + cd tools && go install mvdan.cc/gofumpt generate-all-dto: ## Generate all DTOs for SDK interfaces go generate ./internal/sdk/*_dto.go From 1c71e9feb803157a581b4e69a93ee359b4cfb7e8 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 01:05:21 -0700 Subject: [PATCH 04/28] update makefile --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3ba1983c86..302272d388 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,6 +19,6 @@ jobs: - name: Install dependencies run: make tools - name: Create and populate .snowflake/config file - run: echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > $HOME/.snowflake/config + run: echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > /home/runner/.snowflake/config - run: make test - run: make testacc From f3f553bcc5e64993aa239341b1b99f7eaf881558 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 01:10:59 -0700 Subject: [PATCH 05/28] update makefile --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 302272d388..3e9c3d0ae2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,6 +19,6 @@ jobs: - name: Install dependencies run: make tools - name: Create and populate .snowflake/config file - run: echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > /home/runner/.snowflake/config + run: touch /home/runner/.snowflake/config && echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > /home/runner/.snowflake/config - run: make test - run: make testacc From b8b27b303c6ee3a813d5ea9e2915f619fa62f3ad Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 01:17:45 -0700 Subject: [PATCH 06/28] update makefile --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3e9c3d0ae2..a07c14ab4f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,6 +19,8 @@ jobs: - name: Install dependencies run: make tools - name: Create and populate .snowflake/config file - run: touch /home/runner/.snowflake/config && echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > /home/runner/.snowflake/config + env: + GITHUB_TOKEN: ${{ secrets.SNOWFLAKE_CONFIG_PATH }} + run: echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > .snowflake/config - run: make test - run: make testacc From ed0e002011084996bb1246d56567fb2e58ce6039 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 01:24:08 -0700 Subject: [PATCH 07/28] update makefile --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a07c14ab4f..830f38340e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: run: make tools - name: Create and populate .snowflake/config file env: - GITHUB_TOKEN: ${{ secrets.SNOWFLAKE_CONFIG_PATH }} - run: echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > .snowflake/config + SNOWFLAKE_CONFIG_PATH: ${{ secrets.SNOWFLAKE_CONFIG_PATH }} + run: mkdir .snowflake && echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > .snowflake/config - run: make test - run: make testacc From 0c01730b6b8b19d9dc209d1ae5dee0672bfa3e79 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 01:24:36 -0700 Subject: [PATCH 08/28] update makefile --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 830f38340e..56c82f9f99 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: run: make tools - name: Create and populate .snowflake/config file env: - SNOWFLAKE_CONFIG_PATH: ${{ secrets.SNOWFLAKE_CONFIG_PATH }} + SNOWFLAKE_CONFIG_PATH: .snowflake/config run: mkdir .snowflake && echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > .snowflake/config - run: make test - run: make testacc From 95eb2c7669ca7f3d9068de7dd42f27b46b1f8a5a Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 01:30:50 -0700 Subject: [PATCH 09/28] update makefile --- .github/workflows/test.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 56c82f9f99..fa9cf31b95 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,8 +19,6 @@ jobs: - name: Install dependencies run: make tools - name: Create and populate .snowflake/config file - env: - SNOWFLAKE_CONFIG_PATH: .snowflake/config - run: mkdir .snowflake && echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > .snowflake/config + run: mkdir $HOME/.snowflake && echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > $HOME/.snowflake/config - run: make test - run: make testacc From f2a95182c764110bb8d1a4d81f36543a33b1f019 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 02:26:11 -0700 Subject: [PATCH 10/28] update makefile --- .github/workflows/golanglint-ci.yml | 37 ---------------- .../{pull_request.yml => pull-request.yml} | 0 .github/workflows/reviewdog-golanglint-ci.yml | 24 +++++++++++ .github/workflows/reviewdog-staticcheck.yml | 18 ++++++++ .reviewdog.yml | 8 ++++ GNUmakefile | 43 ++++++++++++++++--- 6 files changed, 88 insertions(+), 42 deletions(-) delete mode 100644 .github/workflows/golanglint-ci.yml rename .github/workflows/{pull_request.yml => pull-request.yml} (100%) create mode 100644 .github/workflows/reviewdog-golanglint-ci.yml create mode 100644 .github/workflows/reviewdog-staticcheck.yml create mode 100644 .reviewdog.yml diff --git a/.github/workflows/golanglint-ci.yml b/.github/workflows/golanglint-ci.yml deleted file mode 100644 index 89fdec4dc9..0000000000 --- a/.github/workflows/golanglint-ci.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: golangci-lint -on: - push: - branches: - - main - pull_request: - -permissions: - contents: read - # Optional: allow read access to pull request. Use with `only-new-issues` option. - # pull-requests: read - -jobs: - golangci: - name: lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 - with: - go-version-file: ./go.mod - cache: false - - name: golangci-lint - uses: golangci/golangci-lint-action@v3 - with: - # Require: The version of golangci-lint to use. - # When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version. - # When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit. - version: latest - - - name: Generate - run: make generate - - - name: Confirm no diff - run: | - git diff --compact-summary --exit-code || \ - (echo "*** Unexpected differences after code generation. Run 'make generate' and commit."; exit 1) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull-request.yml similarity index 100% rename from .github/workflows/pull_request.yml rename to .github/workflows/pull-request.yml diff --git a/.github/workflows/reviewdog-golanglint-ci.yml b/.github/workflows/reviewdog-golanglint-ci.yml new file mode 100644 index 0000000000..954d161924 --- /dev/null +++ b/.github/workflows/reviewdog-golanglint-ci.yml @@ -0,0 +1,24 @@ +name: golangci-lint +on: + push: + branches: + - main + pull_request: + +permissions: + contents: read + # Optional: allow read access to pull request. Use with `only-new-issues` option. + # pull-requests: read + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version-file: ./go.mod + cache: false + - name: golangci-lint + uses: reviewdog/action-golangci-lint@v2 diff --git a/.github/workflows/reviewdog-staticcheck.yml b/.github/workflows/reviewdog-staticcheck.yml new file mode 100644 index 0000000000..6208b1e4c9 --- /dev/null +++ b/.github/workflows/reviewdog-staticcheck.yml @@ -0,0 +1,18 @@ +name: reviewdog +on: [pull_request] +jobs: + staticcheck: + name: runner / staticcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version-file: ./go.mod + cache: false + - uses: reviewdog/action-staticcheck@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + reporter: github-pr-review + filter_mode: nofilter + fail_on_error: true diff --git a/.reviewdog.yml b/.reviewdog.yml new file mode 100644 index 0000000000..cae280c47f --- /dev/null +++ b/.reviewdog.yml @@ -0,0 +1,8 @@ +runner: + golangci: + cmd: golangci-lint run --out-format=line-number --timeout 5m + errorformat: + - '%E%f:%l:%c: %m' + - '%E%f:%l: %m' + - '%C%.%#' + level: warning diff --git a/GNUmakefile b/GNUmakefile index 4c92b6c19e..089565e31f 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,5 +1,8 @@ -default: build +default: install + +help: + @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-23s\033[0m %s\n", $$1, $$2}' build: go build -v ./... @@ -7,9 +10,26 @@ build: install: build go install -v ./... +mod: ## add missing and remove unused modules + go mod tidy -compat=1.20 +.PHONY: mod + +mod-check: mod ## check if there are any missing/unused modules + git diff --exit-code -- go.mod go.sum +.PHONY: mod-check + # See https://golangci-lint.run/ lint: - golangci-lint run + golangci-lint run ./... -v + +lint-fix: ## Run static code analysis, check formatting and try to fix findings + golangci-lint run ./... -v --fix +.PHONY: lint-fix + +pre-push: fmt lint mod docs ## Run a few checks before pushing a change (docs, fmt, mod, etc.) + +pre-push-check: docs-check lint-check mod-check; ## Run a few checks before pushing a change (docs, fmt, mod, etc.) +.PHONY: pre-push fmt: ## Run gofumpt @echo "==> Fixing source code with gofumpt..." @@ -18,14 +38,18 @@ fmt: ## Run gofumpt fumpt: fmt test: - go test -v -cover -timeout=120s -parallel=4 ./... + go test -v -cover -timeout=30m -parallel=4 ./... testacc: - TF_ACC=1 go test -v -cover -timeout 120m ./... + TF_ACC=1 go test -v -cover -timeout 30m -parallel=4 ./... docs: go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate +docs-check: docs ## check that docs have been generated + git diff --exit-code -- docs +.PHONY: docs-check + # Generate docs, terraform fmt the examples folder, and create copywrite headers generate: cd tools && go generate ./... @@ -58,4 +82,13 @@ clean-generator-%: ## Clean generated files for specified resource rm -f ./internal/sdk/$**_gen.go rm -f ./internal/sdk/$**_gen_*test.go -.PHONY: build install lint generate fmt test testacc tools docs +sweep: ## destroy the whole architecture; USE ONLY FOR DEVELOPMENT ACCOUNTS + @echo "WARNING: This will destroy infrastructure. Use only in development accounts." + @echo "Are you sure? [y/n]" >&2 + @read -r REPLY; \ + if echo "$$REPLY" | grep -qG "^[yY]$$"; then \ + SNOWFLAKE_ENABLE_SWEEP=1 go test -timeout 300s -run ^TestSweepAll ./pkg/sdk -v; \ + else echo "Aborting..."; \ + fi; + +.PHONY: build install lint generate fmt test testacc tools docs sweep From 5167f02aa1df2c145b2d3a202ca9086f46b4d859 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 02:33:48 -0700 Subject: [PATCH 11/28] update makefile --- .github/workflows/generate.yml | 4 ++-- .github/workflows/reviewdog-golanglint-ci.yml | 4 ++-- .github/workflows/reviewdog-staticcheck.yml | 6 +++--- .reviewdog.yml | 3 +++ 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 16e3f84c19..842c03b413 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -11,8 +11,8 @@ permissions: # pull-requests: read jobs: - golangci: - name: lint + generate: + name: generate runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/reviewdog-golanglint-ci.yml b/.github/workflows/reviewdog-golanglint-ci.yml index 954d161924..dfe1e0e655 100644 --- a/.github/workflows/reviewdog-golanglint-ci.yml +++ b/.github/workflows/reviewdog-golanglint-ci.yml @@ -1,4 +1,4 @@ -name: golangci-lint +name: reviewdog-golangci-lint on: push: branches: @@ -11,7 +11,7 @@ permissions: # pull-requests: read jobs: - golangci: + lint: name: lint runs-on: ubuntu-latest steps: diff --git a/.github/workflows/reviewdog-staticcheck.yml b/.github/workflows/reviewdog-staticcheck.yml index 6208b1e4c9..f3319e3d79 100644 --- a/.github/workflows/reviewdog-staticcheck.yml +++ b/.github/workflows/reviewdog-staticcheck.yml @@ -1,8 +1,8 @@ -name: reviewdog +name: reviewdog-staticcheck on: [pull_request] jobs: staticcheck: - name: runner / staticcheck + name: staticcheck runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -15,4 +15,4 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review filter_mode: nofilter - fail_on_error: true + fail_on_error: false diff --git a/.reviewdog.yml b/.reviewdog.yml index cae280c47f..cecdb5668a 100644 --- a/.reviewdog.yml +++ b/.reviewdog.yml @@ -1,3 +1,6 @@ +# Copyright (c) Snowflake, Inc. +# SPDX-License-Identifier: MIT + runner: golangci: cmd: golangci-lint run --out-format=line-number --timeout 5m From 949af08811d49ca4b1f9e3c920f602c17852cca5 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 03:02:08 -0700 Subject: [PATCH 12/28] add skip tests --- .github/workflows/acc-test.yml | 30 ++++++ .github/workflows/generate.yml | 2 +- .github/workflows/reviewdog-golanglint-ci.yml | 6 +- .github/workflows/reviewdog-staticcheck.yml | 6 +- .github/workflows/{test.yml => unit-test.yml} | 6 +- GNUmakefile | 100 +++++++++--------- 6 files changed, 89 insertions(+), 61 deletions(-) create mode 100644 .github/workflows/acc-test.yml rename .github/workflows/{test.yml => unit-test.yml} (93%) diff --git a/.github/workflows/acc-test.yml b/.github/workflows/acc-test.yml new file mode 100644 index 0000000000..b90fc2a991 --- /dev/null +++ b/.github/workflows/acc-test.yml @@ -0,0 +1,30 @@ +# Run secret-dependent integration tests only after /ok-to-test approval +on: + pull_request: + branches: [ main ] + paths-ignore: + - 'README.md' + - 'CHANGELOG.md' +name: acceptance + +jobs: + test: + name: test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version-file: ./go.mod + cache: false + - name: Install dependencies + run: make tools + - name: Create and populate .snowflake/config file + run: mkdir $HOME/.snowflake && echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > $HOME/.snowflake/config + - run: make testacc + env: + SKIP_EMAIL_INTEGRATION_TESTS=true + SKIP_EXTERNAL_TABLE_TEST=true + SKIP_NOTIFICATION_INTEGRATION_TESTS=true + SKIP_SAML_INTEGRATION_TESTS=true + SKIP_STREAM_TEST=true diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 842c03b413..99686aabdc 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -12,7 +12,7 @@ permissions: jobs: generate: - name: generate + name: docs and copywrite check runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/reviewdog-golanglint-ci.yml b/.github/workflows/reviewdog-golanglint-ci.yml index dfe1e0e655..bd1961a893 100644 --- a/.github/workflows/reviewdog-golanglint-ci.yml +++ b/.github/workflows/reviewdog-golanglint-ci.yml @@ -1,4 +1,4 @@ -name: reviewdog-golangci-lint +name: golangci-lint on: push: branches: @@ -11,8 +11,8 @@ permissions: # pull-requests: read jobs: - lint: - name: lint + reviewdog: + name: reviewdog runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/reviewdog-staticcheck.yml b/.github/workflows/reviewdog-staticcheck.yml index f3319e3d79..d8878242d2 100644 --- a/.github/workflows/reviewdog-staticcheck.yml +++ b/.github/workflows/reviewdog-staticcheck.yml @@ -1,8 +1,8 @@ -name: reviewdog-staticcheck +name: staticcheck on: [pull_request] jobs: - staticcheck: - name: staticcheck + reviewdog: + name: reviewdog runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test.yml b/.github/workflows/unit-test.yml similarity index 93% rename from .github/workflows/test.yml rename to .github/workflows/unit-test.yml index fa9cf31b95..d4dbe14398 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/unit-test.yml @@ -5,10 +5,11 @@ on: paths-ignore: - 'README.md' - 'CHANGELOG.md' -name: test +name: unit jobs: - test: + unit: + name: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -21,4 +22,3 @@ jobs: - name: Create and populate .snowflake/config file run: mkdir $HOME/.snowflake && echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > $HOME/.snowflake/config - run: make test - - run: make testacc diff --git a/GNUmakefile b/GNUmakefile index 089565e31f..e054dab260 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,35 +1,23 @@ default: install -help: - @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-23s\033[0m %s\n", $$1, $$2}' - build: go build -v ./... -install: build - go install -v ./... - -mod: ## add missing and remove unused modules - go mod tidy -compat=1.20 -.PHONY: mod - -mod-check: mod ## check if there are any missing/unused modules - git diff --exit-code -- go.mod go.sum -.PHONY: mod-check - -# See https://golangci-lint.run/ -lint: - golangci-lint run ./... -v +clean-generator-poc: + rm -f ./internal/sdk/poc/example/*_gen.go + rm -f ./internal/sdk/poc/example/*_gen_test.go -lint-fix: ## Run static code analysis, check formatting and try to fix findings - golangci-lint run ./... -v --fix -.PHONY: lint-fix +clean-generator-%: ## Clean generated files for specified resource + rm -f ./internal/sdk/$**_gen.go + rm -f ./internal/sdk/$**_gen_*test.go -pre-push: fmt lint mod docs ## Run a few checks before pushing a change (docs, fmt, mod, etc.) +docs: + go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate -pre-push-check: docs-check lint-check mod-check; ## Run a few checks before pushing a change (docs, fmt, mod, etc.) -.PHONY: pre-push +docs-check: docs ## check that docs have been generated + git diff --exit-code -- docs +.PHONY: docs-check fmt: ## Run gofumpt @echo "==> Fixing source code with gofumpt..." @@ -37,51 +25,49 @@ fmt: ## Run gofumpt fumpt: fmt -test: - go test -v -cover -timeout=30m -parallel=4 ./... - -testacc: - TF_ACC=1 go test -v -cover -timeout 30m -parallel=4 ./... - -docs: - go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate - -docs-check: docs ## check that docs have been generated - git diff --exit-code -- docs -.PHONY: docs-check - # Generate docs, terraform fmt the examples folder, and create copywrite headers generate: cd tools && go generate ./... -tools: - cd tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint - cd tools && go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs - cd tools && go install github.com/hashicorp/copywrite - cd tools && go install mvdan.cc/gofumpt - generate-all-dto: ## Generate all DTOs for SDK interfaces go generate ./internal/sdk/*_dto.go generate-dto-%: ./internal/sdk/%_dto.go ## Generate DTO for given SDK interface go generate $< +help: + @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-23s\033[0m %s\n", $$1, $$2}' + +install: build + go install -v ./... + +# See https://golangci-lint.run/ +lint: + golangci-lint run ./... -v + +lint-fix: ## Run static code analysis, check formatting and try to fix findings + golangci-lint run ./... -v --fix + +mod: ## add missing and remove unused modules + go mod tidy -compat=1.20 + +mod-check: mod ## check if there are any missing/unused modules + git diff --exit-code -- go.mod go.sum + +pre-push: fmt lint mod docs ## Run a few checks before pushing a change (docs, fmt, mod, etc.) + +pre-push-check: docs-check lint-check mod-check; ## Run a few checks before pushing a change (docs, fmt, mod, etc.) +.PHONY: pre-push + + run-generator-poc: go generate ./internal/sdk/poc/example/*_def.go go generate ./internal/sdk/poc/example/*_dto_gen.go -clean-generator-poc: - rm -f ./internal/sdk/poc/example/*_gen.go - rm -f ./internal/sdk/poc/example/*_gen_test.go - run-generator-%: ./internal/sdk/%_def.go ## Run go generate on given object definition go generate $< go generate ./internal/sdk/$*_dto_gen.go -clean-generator-%: ## Clean generated files for specified resource - rm -f ./internal/sdk/$**_gen.go - rm -f ./internal/sdk/$**_gen_*test.go - sweep: ## destroy the whole architecture; USE ONLY FOR DEVELOPMENT ACCOUNTS @echo "WARNING: This will destroy infrastructure. Use only in development accounts." @echo "Are you sure? [y/n]" >&2 @@ -91,4 +77,16 @@ sweep: ## destroy the whole architecture; USE ONLY FOR DEVELOPMENT ACCOUNTS else echo "Aborting..."; \ fi; -.PHONY: build install lint generate fmt test testacc tools docs sweep +test: + go test -v -cover -timeout=30m -parallel=4 ./... + +testacc: + TF_ACC=1 go test -v -cover -timeout 30m -parallel=4 `go list ./... | grep -v internal/sdk` + +tools: + cd tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint + cd tools && go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs + cd tools && go install github.com/hashicorp/copywrite + cd tools && go install mvdan.cc/gofumpt + +.PHONY: build clean-generator-poc clean-generator-% docs docs-check fmt fumpt generate generate-all-dto generate-dto-% help install lint lint-fix mod mod-check pre-push pre-push-check run-generator-poc run-generator-% sweep test testacc tools From 1344d7dd6da65a94bdca2bba79945c527c239f44 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 03:24:00 -0700 Subject: [PATCH 13/28] rename files and remove copywrite --- .copywrite.hcl | 20 ------------------- CONTRIBUTING.md | 4 ++-- GNUmakefile => Makefile | 2 +- main.go | 5 +---- {internal => pkg}/acceptance/testing.go | 7 ++----- {internal => pkg}/datasources/accounts.go | 5 +---- .../datasources/accounts_acceptance_test.go | 3 --- {internal => pkg}/datasources/alerts.go | 5 +---- .../datasources/current_account.go | 5 +---- .../current_account_acceptance_test.go | 3 --- {internal => pkg}/datasources/current_role.go | 5 +---- .../current_role_acceptance_test.go | 3 --- {internal => pkg}/datasources/database.go | 5 +---- .../datasources/database_acceptance_test.go | 3 --- .../datasources/database_roles.go | 5 +---- .../database_roles_acceptance_test.go | 3 --- {internal => pkg}/datasources/databases.go | 5 +---- .../datasources/databases_acceptance_test.go | 3 --- .../datasources/dynamic_tables.go | 5 +---- .../dynamic_tables_acceptance_test.go | 7 ++----- .../datasources/external_functions.go | 5 +---- .../external_functions_acceptance_test.go | 3 --- .../datasources/external_tables.go | 5 +---- .../external_tables_acceptance_test.go | 3 --- .../datasources/failover_groups.go | 5 +---- .../failover_groups_acceptance_test.go | 3 --- {internal => pkg}/datasources/file_formats.go | 5 +---- .../file_formats_acceptance_test.go | 3 --- {internal => pkg}/datasources/functions.go | 5 +---- .../datasources/functions_acceptance_test.go | 3 --- {internal => pkg}/datasources/grants.go | 5 +---- .../datasources/grants_acceptance_test.go | 3 --- {internal => pkg}/datasources/helpers_test.go | 5 +---- .../datasources/masking_policies.go | 7 ++----- .../masking_policies_acceptance_test.go | 3 --- .../datasources/materialized_views.go | 5 +---- .../materialized_views_acceptance_test.go | 3 --- {internal => pkg}/datasources/parameters.go | 5 +---- .../datasources/parameters_acceptance_test.go | 3 --- {internal => pkg}/datasources/pipes.go | 5 +---- .../datasources/pipes_acceptance_test.go | 3 --- {internal => pkg}/datasources/procedures.go | 5 +---- .../datasources/procedures_acceptance_test.go | 3 --- .../datasources/resource_monitors.go | 5 +---- .../resource_monitors_acceptance_test.go | 3 --- {internal => pkg}/datasources/role.go | 5 +---- .../datasources/role_acceptance_test.go | 3 --- {internal => pkg}/datasources/roles.go | 5 +---- .../datasources/roles_acceptance_test.go | 3 --- .../datasources/row_access_policies.go | 5 +---- .../row_access_policies_acceptance_test.go | 3 --- {internal => pkg}/datasources/schemas.go | 5 +---- .../datasources/schemas_acceptance_test.go | 3 --- {internal => pkg}/datasources/sequences.go | 5 +---- .../datasources/sequences_acceptance_test.go | 3 --- {internal => pkg}/datasources/shares.go | 5 +---- .../datasources/shares_acceptance_test.go | 3 --- {internal => pkg}/datasources/stages.go | 5 +---- .../datasources/stages_acceptance_test.go | 3 --- .../datasources/storage_integrations.go | 5 +---- .../storage_integrations_acceptance_test.go | 3 --- {internal => pkg}/datasources/streams.go | 5 +---- .../datasources/streams_acceptance_test.go | 3 --- .../system_generate_scim_access_token.go | 5 +---- ...erate_scim_access_token_acceptance_test.go | 3 --- .../system_get_aws_sns_iam_policy.go | 5 +---- ..._get_aws_sns_iam_policy_acceptance_test.go | 3 --- .../system_get_privatelink_config.go | 5 +---- ..._get_privatelink_config_acceptance_test.go | 3 --- .../system_get_snowflake_platform_info.go | 5 +---- ...snowflake_platform_info_acceptance_test.go | 3 --- {internal => pkg}/datasources/tables.go | 5 +---- .../datasources/tables_acceptance_test.go | 3 --- {internal => pkg}/datasources/tasks.go | 5 +---- .../datasources/tasks_acceptance_test.go | 3 --- .../TestAcc_DynamicTables_complete/1/test.tf | 0 .../1/variables.tf | 0 {internal => pkg}/datasources/users.go | 7 ++----- .../datasources/users_acceptance_test.go | 3 --- {internal => pkg}/datasources/views.go | 5 +---- .../datasources/views_acceptance_test.go | 3 --- {internal => pkg}/datasources/warehouses.go | 7 ++----- .../datasources/warehouses_acceptance_test.go | 3 --- {internal => pkg}/helpers/helpers.go | 5 +---- {internal => pkg}/helpers/helpers_test.go | 3 --- {internal => pkg}/helpers/random.go | 3 --- {internal => pkg}/provider/provider.go | 9 +++------ .../provider/provider_helpers.go | 3 --- {internal => pkg}/provider/provider_test.go | 3 --- {internal => pkg}/resources/account.go | 9 +++------ .../resources/account_acceptance_test.go | 5 +---- {internal => pkg}/resources/account_grant.go | 7 ++----- .../account_grant_acceptance_test.go | 5 +---- .../resources/account_grant_test.go | 9 +++------ .../resources/account_parameter.go | 5 +---- .../account_parameter_acceptance_test.go | 5 +---- .../account_password_policy_attachment.go | 7 ++----- ...sword_policy_attachment_acceptance_test.go | 5 +---- {internal => pkg}/resources/alert.go | 7 ++----- .../resources/alert_acceptance_test.go | 5 +---- .../resources/api_integration.go | 5 +---- .../api_integration_acceptance_test.go | 5 +---- .../resources/api_integration_test.go | 9 +++------ {internal => pkg}/resources/database.go | 5 +---- .../resources/database_acceptance_test.go | 5 +---- {internal => pkg}/resources/database_grant.go | 9 +++------ .../database_grant_acceptance_test.go | 5 +---- .../resources/database_grant_test.go | 9 +++------ {internal => pkg}/resources/database_role.go | 7 ++----- .../database_role_acceptance_test.go | 5 +---- {internal => pkg}/resources/dynamic_table.go | 7 ++----- .../dynamic_table_acceptance_test.go | 7 ++----- .../resources/dynamic_table_test.go | 7 ++----- .../email_notification_integration.go | 5 +---- ...otification_integration_acceptance_test.go | 5 +---- .../resources/external_function.go | 5 +---- .../external_function_acceptance_test.go | 5 +---- .../resources/external_function_test.go | 9 +++------ .../resources/external_oauth_integration.go | 5 +---- ...ernal_oauth_integration_acceptance_test.go | 5 +---- .../external_stage_acceptance_test.go | 5 +---- {internal => pkg}/resources/external_table.go | 5 +---- .../external_table_acceptance_test.go | 5 +---- .../resources/external_table_grant.go | 9 +++------ .../external_table_grant_acceptance_test.go | 5 +---- .../resources/external_table_grant_test.go | 9 +++------ .../resources/external_table_test.go | 9 +++------ {internal => pkg}/resources/failover_group.go | 5 +---- .../failover_group_acceptance_test.go | 5 +---- .../resources/failover_group_grant.go | 9 +++------ .../failover_group_grant_acceptance_test.go | 5 +---- {internal => pkg}/resources/file_format.go | 5 +---- .../resources/file_format_acceptance_test.go | 5 +---- .../resources/file_format_grant.go | 9 +++------ .../file_format_grant_acceptance_test.go | 5 +---- .../resources/file_format_grant_test.go | 9 +++------ {internal => pkg}/resources/function.go | 5 +---- .../resources/function_acceptance_test.go | 5 +---- {internal => pkg}/resources/function_grant.go | 9 +++------ .../function_grant_acceptance_test.go | 5 +---- {internal => pkg}/resources/function_test.go | 9 +++------ {internal => pkg}/resources/grant_helpers.go | 5 +---- .../resources/grant_privileges_to_role.go | 7 ++----- ...rant_privileges_to_role_acceptance_test.go | 5 +---- .../resources/helper_expansion.go | 3 --- .../helper_expansion_internal_test.go | 3 --- {internal => pkg}/resources/helpers.go | 5 +---- {internal => pkg}/resources/helpers_test.go | 5 +---- .../resources/integration_grant.go | 9 +++------ .../resources/integration_grant_test.go | 9 +++------ .../internal_stage_acceptance_test.go | 5 +---- .../resources/managed_account.go | 7 ++----- .../managed_account_acceptance_test.go | 5 +---- .../resources/managed_account_test.go | 11 ++++------ {internal => pkg}/resources/masking_policy.go | 7 ++----- .../masking_policy_acceptance_test.go | 5 +---- .../resources/masking_policy_grant.go | 9 +++------ .../masking_policy_grant_acceptance_test.go | 5 +---- .../resources/masking_policy_grant_test.go | 9 +++------ .../resources/materialized_view.go | 5 +---- .../materialized_view_acceptance_test.go | 5 +---- .../resources/materialized_view_grant.go | 9 +++------ ...materialized_view_grant_acceptance_test.go | 5 +---- .../resources/materialized_view_grant_test.go | 9 +++------ .../resources/materialized_view_test.go | 11 ++++------ {internal => pkg}/resources/network_policy.go | 5 +---- .../network_policy_acceptance_test.go | 5 +---- .../resources/network_policy_attachment.go | 5 +---- ...twork_policy_attachment_acceptance_test.go | 5 +---- .../network_policy_attachment_test.go | 9 +++------ .../resources/notification_integration.go | 5 +---- ...otification_integration_acceptance_test.go | 5 +---- .../notification_integration_test.go | 9 +++------ .../resources/oauth_integration.go | 5 +---- .../oauth_integration_acceptance_test.go | 5 +---- .../resources/oauth_integration_test.go | 9 +++------ .../resources/object_parameter.go | 7 ++----- .../object_parameter_acceptance_test.go | 5 +---- .../resources/password_policy.go | 7 ++----- .../password_policy_acceptance_test.go | 5 +---- {internal => pkg}/resources/pipe.go | 7 ++----- .../resources/pipe_acceptance_test.go | 5 +---- {internal => pkg}/resources/pipe_grant.go | 9 +++------ .../resources/pipe_grant_acceptance_test.go | 5 +---- .../resources/pipe_grant_test.go | 9 +++------ .../resources/pipe_internal_test.go | 3 --- {internal => pkg}/resources/privileges.go | 3 --- {internal => pkg}/resources/procedure.go | 5 +---- .../resources/procedure_acceptance_test.go | 5 +---- .../resources/procedure_grant.go | 9 +++------ .../procedure_grant_acceptance_test.go | 5 +---- {internal => pkg}/resources/procedure_test.go | 9 +++------ {internal => pkg}/resources/resource.go | 5 +---- .../resources/resource_monitor.go | 7 ++----- .../resource_monitor_acceptance_test.go | 5 +---- .../resources/resource_monitor_grant.go | 7 ++----- .../resource_monitor_grant_acceptance_test.go | 5 +---- .../resources/resource_monitor_grant_test.go | 9 +++------ {internal => pkg}/resources/role.go | 7 ++----- .../resources/role_acceptance_test.go | 5 +---- {internal => pkg}/resources/role_grants.go | 9 +++------ .../resources/role_grants_acceptance_test.go | 5 +---- .../resources/role_grants_internal_test.go | 5 +---- .../resources/role_grants_test.go | 9 +++------ .../resources/role_ownership_grant.go | 7 ++----- .../role_ownership_grant_acceptance_test.go | 5 +---- .../resources/role_ownership_grant_test.go | 9 +++------ .../resources/row_access_policy.go | 5 +---- .../row_access_policy_acceptance_test.go | 5 +---- .../resources/row_access_policy_grant.go | 9 +++------ ...row_access_policy_grant_acceptance_test.go | 5 +---- .../resources/row_access_policy_grant_test.go | 9 +++------ .../resources/row_access_policy_test.go | 9 +++------ .../resources/saml_integration.go | 5 +---- .../saml_integration_acceptance_test.go | 5 +---- .../resources/saml_integration_test.go | 9 +++------ {internal => pkg}/resources/schema.go | 7 ++----- .../resources/schema_acceptance_test.go | 5 +---- {internal => pkg}/resources/schema_grant.go | 9 +++------ .../resources/schema_grant_acceptance_test.go | 5 +---- .../resources/schema_grant_test.go | 9 +++------ .../resources/scim_integration.go | 5 +---- .../scim_integration_acceptance_test.go | 5 +---- .../resources/scim_integration_test.go | 9 +++------ {internal => pkg}/resources/sequence.go | 5 +---- .../resources/sequence_acceptance_test.go | 5 +---- {internal => pkg}/resources/sequence_grant.go | 9 +++------ .../sequence_grant_acceptance_test.go | 5 +---- .../resources/sequence_grant_test.go | 9 +++------ {internal => pkg}/resources/sequence_test.go | 9 +++------ .../resources/session_parameter.go | 5 +---- .../session_parameter_acceptance_test.go | 5 +---- {internal => pkg}/resources/share.go | 7 ++----- .../resources/share_acceptance_test.go | 5 +---- {internal => pkg}/resources/stage.go | 5 +---- .../resources/stage_acceptance_test.go | 5 +---- {internal => pkg}/resources/stage_grant.go | 9 +++------ .../resources/stage_grant_acceptance_test.go | 5 +---- .../resources/stage_grant_test.go | 9 +++------ {internal => pkg}/resources/stage_test.go | 11 ++++------ .../resources/storage_integration.go | 5 +---- .../storage_integration_acceptance_test.go | 5 +---- .../resources/storage_integration_test.go | 9 +++------ {internal => pkg}/resources/stream.go | 9 +++------ .../resources/stream_acceptance_test.go | 5 +---- {internal => pkg}/resources/stream_grant.go | 9 +++------ .../resources/stream_grant_acceptance_test.go | 5 +---- .../resources/stream_grant_test.go | 9 +++------ {internal => pkg}/resources/table.go | 5 +---- .../resources/table_acceptance_test.go | 5 +---- ...table_column_masking_policy_application.go | 5 +---- ...king_policy_application_acceptance_test.go | 5 +---- .../resources/table_constraint.go | 7 ++----- .../table_constraint_acceptance_test.go | 5 +---- {internal => pkg}/resources/table_grant.go | 9 +++------ .../resources/table_grant_acceptance_test.go | 5 +---- .../resources/table_grant_test.go | 9 +++------ .../resources/table_internal_test.go | 3 --- {internal => pkg}/resources/tag.go | 7 ++----- .../resources/tag_acceptance_test.go | 5 +---- .../resources/tag_association.go | 7 ++----- .../tag_association_acceptance_test.go | 5 +---- {internal => pkg}/resources/tag_grant.go | 9 +++------ .../resources/tag_grant_acceptance_test.go | 5 +---- {internal => pkg}/resources/tag_grant_test.go | 9 +++------ .../tag_masking_policy_association.go | 11 ++++------ ...king_policy_association_acceptance_test.go | 5 +---- {internal => pkg}/resources/tag_test.go | 11 ++++------ {internal => pkg}/resources/task.go | 7 ++----- .../resources/task_acceptance_test.go | 5 +---- {internal => pkg}/resources/task_grant.go | 9 +++------ .../resources/task_grant_acceptance_test.go | 5 +---- .../resources/task_grant_test.go | 9 +++------ .../TestAcc_DynamicTable_basic/1/test.tf | 0 .../TestAcc_DynamicTable_basic/1/variables.tf | 0 .../TestAcc_DynamicTable_basic/2/test.tf | 0 .../TestAcc_DynamicTable_basic/2/variables.tf | 0 .../TestAcc_DynamicTable_basic/3/test.tf | 0 .../TestAcc_DynamicTable_basic/3/variables.tf | 0 {internal => pkg}/resources/testdata/userkey1 | 0 {internal => pkg}/resources/testdata/userkey2 | 0 .../resources/testdata/view_1a.sql | 0 .../resources/testdata/view_1b.sql | 0 .../resources/testdata/view_2a.sql | 0 .../resources/testdata/view_2b.sql | 0 {internal => pkg}/resources/user.go | 7 ++----- .../resources/user_acceptance_test.go | 7 ++----- {internal => pkg}/resources/user_grant.go | 7 ++----- .../resources/user_grant_acceptance_test.go | 5 +---- .../resources/user_grant_test.go | 9 +++------ .../resources/user_ownership_grant.go | 7 ++----- .../user_ownership_grant_acceptance_test.go | 5 +---- .../resources/user_ownership_grant_test.go | 9 +++------ .../resources/user_public_keys.go | 5 +---- .../user_public_keys_acceptance_test.go | 7 ++----- {internal => pkg}/resources/view.go | 5 +---- .../resources/view_acceptance_test.go | 5 +---- {internal => pkg}/resources/view_grant.go | 9 +++------ .../resources/view_grant_acceptance_test.go | 5 +---- .../resources/view_grant_test.go | 9 +++------ {internal => pkg}/resources/view_test.go | 11 ++++------ {internal => pkg}/resources/warehouse.go | 9 +++------ .../resources/warehouse_acceptance_test.go | 5 +---- .../resources/warehouse_grant.go | 9 +++------ .../warehouse_grant_acceptance_test.go | 5 +---- .../resources/warehouse_grant_test.go | 9 +++------ {internal => pkg}/sdk/README.md | 0 {internal => pkg}/sdk/accounts.go | 3 --- {internal => pkg}/sdk/accounts_test.go | 3 --- {internal => pkg}/sdk/alerts.go | 3 --- {internal => pkg}/sdk/alerts_test.go | 5 +---- {internal => pkg}/sdk/assertions_test.go | 3 --- {internal => pkg}/sdk/client.go | 3 --- .../sdk/client_integration_test.go | 3 --- {internal => pkg}/sdk/comments.go | 3 --- {internal => pkg}/sdk/comments_test.go | 3 --- {internal => pkg}/sdk/common_types.go | 3 --- {internal => pkg}/sdk/common_types_test.go | 3 --- {internal => pkg}/sdk/config.go | 3 --- {internal => pkg}/sdk/config_test.go | 3 --- {internal => pkg}/sdk/context_functions.go | 3 --- {internal => pkg}/sdk/conversion_functions.go | 3 --- {internal => pkg}/sdk/data_types.go | 3 --- {internal => pkg}/sdk/data_types_test.go | 3 --- {internal => pkg}/sdk/database_role.go | 3 --- {internal => pkg}/sdk/database_role_dto.go | 3 --- .../sdk/database_role_dto_builders.go | 3 --- {internal => pkg}/sdk/database_role_impl.go | 5 +---- {internal => pkg}/sdk/database_role_test.go | 5 +---- .../sdk/database_role_validations.go | 3 --- {internal => pkg}/sdk/databases.go | 3 --- {internal => pkg}/sdk/databases_test.go | 3 --- .../sdk/dto-builder-generator/README.md | 0 .../example/pipes_dto.go | 5 +---- .../example/pipes_dto_generated.go | 2 +- .../sdk/dto-builder-generator/main.go | 3 --- {internal => pkg}/sdk/dynamic_table.go | 3 --- {internal => pkg}/sdk/dynamic_table_dto.go | 3 --- .../sdk/dynamic_table_dto_builders.go | 3 --- {internal => pkg}/sdk/dynamic_table_impl.go | 5 +---- {internal => pkg}/sdk/dynamic_table_test.go | 3 --- .../sdk/dynamic_table_validations.go | 3 --- {internal => pkg}/sdk/errors.go | 3 --- {internal => pkg}/sdk/external_tables.go | 3 --- {internal => pkg}/sdk/external_tables_dto.go | 3 --- .../sdk/external_tables_dto_builders_gen.go | 0 {internal => pkg}/sdk/external_tables_impl.go | 5 +---- {internal => pkg}/sdk/external_tables_test.go | 3 --- .../sdk/external_tables_validations.go | 3 --- {internal => pkg}/sdk/failover_groups.go | 3 --- {internal => pkg}/sdk/failover_groups_test.go | 3 --- {internal => pkg}/sdk/file_format.go | 3 --- {internal => pkg}/sdk/file_format_test.go | 3 --- {internal => pkg}/sdk/grants.go | 3 --- {internal => pkg}/sdk/grants_impl.go | 3 --- {internal => pkg}/sdk/grants_test.go | 3 --- {internal => pkg}/sdk/grants_validations.go | 3 --- {internal => pkg}/sdk/helper_test.go | 3 --- {internal => pkg}/sdk/helpers_proposal.go | 3 --- {internal => pkg}/sdk/identifier_helpers.go | 3 --- .../sdk/identifier_helpers_test.go | 3 --- .../sdk/integration_test_imports.go | 3 --- .../collections/collection_helpers.go | 3 --- .../sdk/internal/random/random_helpers.go | 3 --- {internal => pkg}/sdk/masking_policy.go | 3 --- {internal => pkg}/sdk/masking_policy_test.go | 5 +---- {internal => pkg}/sdk/network_policies_def.go | 5 +---- .../sdk/network_policies_dto_builders_gen.go | 0 .../sdk/network_policies_dto_gen.go | 3 --- {internal => pkg}/sdk/network_policies_gen.go | 3 --- .../sdk/network_policies_gen_test.go | 3 --- .../sdk/network_policies_impl_gen.go | 5 +---- .../sdk/network_policies_validations_gen.go | 3 --- {internal => pkg}/sdk/object_types.go | 3 --- {internal => pkg}/sdk/parameters.go | 3 --- {internal => pkg}/sdk/parameters_impl.go | 3 --- {internal => pkg}/sdk/parameters_test.go | 3 --- {internal => pkg}/sdk/password_policy.go | 3 --- {internal => pkg}/sdk/password_policy_test.go | 5 +---- {internal => pkg}/sdk/pipes.go | 3 --- {internal => pkg}/sdk/pipes_impl.go | 5 +---- {internal => pkg}/sdk/pipes_test.go | 3 --- {internal => pkg}/sdk/pipes_validations.go | 3 --- {internal => pkg}/sdk/poc/README.md | 0 .../sdk/poc/example/database_role_def.go | 5 +---- .../example/database_role_dto_builders_gen.go | 0 .../sdk/poc/example/database_role_dto_gen.go | 3 --- .../sdk/poc/example/database_role_gen.go | 3 --- .../database_role_gen_integration_test.go | 3 --- .../sdk/poc/example/database_role_gen_test.go | 3 --- .../sdk/poc/example/database_role_impl_gen.go | 3 --- .../example/database_role_validations_gen.go | 3 --- .../sdk/poc/example/sdk_definitions.go | 3 --- .../sdk/poc/generator/db_struct.go | 3 --- {internal => pkg}/sdk/poc/generator/field.go | 3 --- .../sdk/poc/generator/field_transformers.go | 3 --- .../sdk/poc/generator/file_util.go | 3 --- .../sdk/poc/generator/identifier_builders.go | 3 --- .../sdk/poc/generator/interface.go | 3 --- .../sdk/poc/generator/keyword_builders.go | 3 --- {internal => pkg}/sdk/poc/generator/kind.go | 3 --- .../sdk/poc/generator/operation.go | 3 --- .../sdk/poc/generator/parameter_builders.go | 3 --- .../sdk/poc/generator/plain_struct.go | 3 --- .../sdk/poc/generator/query_struct.go | 3 --- .../sdk/poc/generator/static_builders.go | 3 --- .../sdk/poc/generator/tag_builder.go | 3 --- .../sdk/poc/generator/template_executors.go | 3 --- .../sdk/poc/generator/templates.go | 5 +---- {internal => pkg}/sdk/poc/generator/util.go | 3 --- .../sdk/poc/generator/validation.go | 3 --- {internal => pkg}/sdk/poc/main.go | 9 +++------ {internal => pkg}/sdk/privileges.go | 3 --- {internal => pkg}/sdk/random.go | 5 +---- .../sdk/replication_functions.go | 3 --- {internal => pkg}/sdk/replication_groups.go | 3 --- .../sdk/resource_monitor_internal_test.go | 3 --- {internal => pkg}/sdk/resource_monitors.go | 3 --- .../sdk/resource_monitors_test.go | 3 --- {internal => pkg}/sdk/roles.go | 3 --- {internal => pkg}/sdk/roles_dto.go | 3 --- {internal => pkg}/sdk/roles_impl.go | 5 +---- {internal => pkg}/sdk/roles_test.go | 3 --- {internal => pkg}/sdk/roles_validations.go | 3 --- {internal => pkg}/sdk/schemas.go | 3 --- {internal => pkg}/sdk/schemas_test.go | 3 --- {internal => pkg}/sdk/session_policies_def.go | 5 +---- .../sdk/session_policies_dto_builders_gen.go | 0 .../sdk/session_policies_dto_gen.go | 3 --- {internal => pkg}/sdk/session_policies_gen.go | 3 --- .../sdk/session_policies_gen_test.go | 3 --- .../sdk/session_policies_impl_gen.go | 5 +---- .../sdk/session_policies_validations_gen.go | 3 --- {internal => pkg}/sdk/sessions.go | 3 --- {internal => pkg}/sdk/shares.go | 3 --- {internal => pkg}/sdk/shares_test.go | 5 +---- {internal => pkg}/sdk/sql_builder.go | 3 --- {internal => pkg}/sdk/sql_builder_test.go | 3 --- {internal => pkg}/sdk/stages.go | 3 --- {internal => pkg}/sdk/streams_def.go | 5 +---- .../sdk/streams_dto_builders_gen.go | 0 {internal => pkg}/sdk/streams_dto_gen.go | 3 --- {internal => pkg}/sdk/streams_gen.go | 3 --- {internal => pkg}/sdk/streams_gen_test.go | 3 --- {internal => pkg}/sdk/streams_impl_gen.go | 5 +---- .../sdk/streams_validations_gen.go | 3 --- {internal => pkg}/sdk/sweepers.go | 3 --- {internal => pkg}/sdk/sweepers_test.go | 3 --- {internal => pkg}/sdk/system_functions.go | 3 --- {internal => pkg}/sdk/tables.go | 3 --- {internal => pkg}/sdk/tags.go | 3 --- {internal => pkg}/sdk/tags_dto.go | 3 --- {internal => pkg}/sdk/tags_dto_builders.go | 3 --- {internal => pkg}/sdk/tags_impl.go | 5 +---- {internal => pkg}/sdk/tags_test.go | 5 +---- {internal => pkg}/sdk/tags_validations.go | 3 --- {internal => pkg}/sdk/tasks_def.go | 5 +---- .../sdk/tasks_dto_builders_gen.go | 0 {internal => pkg}/sdk/tasks_dto_gen.go | 3 --- {internal => pkg}/sdk/tasks_gen.go | 3 --- {internal => pkg}/sdk/tasks_gen_test.go | 3 --- {internal => pkg}/sdk/tasks_impl_gen.go | 3 --- {internal => pkg}/sdk/tasks_test.go | 3 --- .../sdk/tasks_validations_gen.go | 3 --- .../sdk/testint/accounts_integration_test.go | 7 ++----- .../sdk/testint/alerts_integration_test.go | 7 ++----- .../sdk/testint/comments_integration_test.go | 7 ++----- .../context_functions_integration_test.go | 5 +---- .../conversion_functions_integration_test.go | 5 +---- .../testint/database_role_integration_test.go | 9 +++------ .../sdk/testint/databases_integration_test.go | 7 ++----- .../testint/dynamic_table_integration_test.go | 7 ++----- .../external_tables_integration_test.go | 9 +++------ .../failover_groups_integration_test.go | 5 +---- .../testint/file_format_integration_test.go | 7 ++----- .../sdk/testint/grants_integration_test.go | 7 ++----- {internal => pkg}/sdk/testint/helpers_test.go | 7 ++----- .../masking_policy_integration_test.go | 7 ++----- .../network_policies_gen_integration_test.go | 7 ++----- {internal => pkg}/sdk/testint/parsers.go | 3 --- .../password_policy_integration_test.go | 7 ++----- .../sdk/testint/pipes_integration_test.go | 7 ++----- .../replication_functions_integration_test.go | 5 +---- .../resource_monitors_integration_test.go | 7 ++----- .../sdk/testint/roles_integration_test.go | 7 ++----- .../sdk/testint/schemas_integration_test.go | 7 ++----- .../session_policies_gen_integration_test.go | 9 +++------ .../sdk/testint/sessions_integration_test.go | 5 +---- .../sdk/testint/setup_integration_test.go | 7 ++----- .../sdk/testint/shares_integration_test.go | 7 ++----- .../testint/streams_gen_integration_test.go | 9 +++------ .../system_functions_integration_test.go | 7 ++----- .../sdk/testint/tags_integration_test.go | 9 +++------ .../sdk/testint/tasks_gen_integration_test.go | 7 ++----- .../sdk/testint/users_integration_test.go | 7 ++----- .../testint/warehouses_integration_test.go | 5 +---- {internal => pkg}/sdk/type_helpers.go | 3 --- {internal => pkg}/sdk/users.go | 3 --- {internal => pkg}/sdk/users_test.go | 5 +---- {internal => pkg}/sdk/validation.go | 3 --- {internal => pkg}/sdk/validation_test.go | 5 +---- {internal => pkg}/sdk/validations.go | 3 --- {internal => pkg}/sdk/validations_test.go | 5 +---- {internal => pkg}/sdk/warehouses.go | 3 --- {internal => pkg}/sdk/warehouses_test.go | 3 --- {internal => pkg}/snowflake/all_grant.go | 3 --- {internal => pkg}/snowflake/all_grant_test.go | 5 +---- .../snowflake/api_integration.go | 3 --- .../snowflake/api_integration_test.go | 5 +---- {internal => pkg}/snowflake/builder.go | 3 --- .../snowflake/current_account.go | 3 --- .../snowflake/current_account_test.go | 5 +---- {internal => pkg}/snowflake/current_role.go | 3 --- .../snowflake/current_role_test.go | 5 +---- .../email_notification_integration.go | 3 --- {internal => pkg}/snowflake/errors.go | 3 --- {internal => pkg}/snowflake/escaping.go | 3 --- {internal => pkg}/snowflake/escaping_test.go | 5 +---- {internal => pkg}/snowflake/exec.go | 3 --- .../snowflake/external_function.go | 3 --- .../snowflake/external_function_test.go | 3 --- .../snowflake/external_oauth_integration.go | 3 --- .../external_oauth_integration_test.go | 5 +---- {internal => pkg}/snowflake/external_table.go | 3 --- .../snowflake/external_table_test.go | 3 --- {internal => pkg}/snowflake/function.go | 3 --- {internal => pkg}/snowflake/function_test.go | 3 --- {internal => pkg}/snowflake/future_grant.go | 3 --- .../snowflake/future_grant_test.go | 5 +---- {internal => pkg}/snowflake/generic.go | 3 --- {internal => pkg}/snowflake/generic_test.go | 3 --- {internal => pkg}/snowflake/grant.go | 3 --- {internal => pkg}/snowflake/grant_test.go | 5 +---- {internal => pkg}/snowflake/identifier.go | 3 --- .../snowflake/managed_account.go | 3 --- .../snowflake/managed_account_test.go | 5 +---- {internal => pkg}/snowflake/manager.go | 3 --- {internal => pkg}/snowflake/masking_policy.go | 3 --- .../snowflake/masking_policy_application.go | 3 --- .../masking_policy_application_test.go | 5 +---- .../snowflake/materialized_view.go | 3 --- {internal => pkg}/snowflake/network_policy.go | 3 --- .../snowflake/network_policy_test.go | 5 +---- .../snowflake/notification_integration.go | 3 --- .../notification_integration_test.go | 5 +---- .../snowflake/oauth_integration.go | 3 --- .../snowflake/oauth_integration_test.go | 5 +---- {internal => pkg}/snowflake/parser.go | 3 --- .../snowflake/parser_internal_test.go | 3 --- {internal => pkg}/snowflake/parser_test.go | 3 --- {internal => pkg}/snowflake/procedure.go | 3 --- {internal => pkg}/snowflake/procedure_test.go | 3 --- {internal => pkg}/snowflake/replication.go | 3 --- .../snowflake/resource_monitor.go | 3 --- .../snowflake/resource_monitor_test.go | 5 +---- {internal => pkg}/snowflake/role.go | 3 --- {internal => pkg}/snowflake/role_grant.go | 3 --- .../snowflake/role_grant_test.go | 5 +---- .../snowflake/role_ownership_grant.go | 3 --- .../snowflake/role_ownership_grant_test.go | 5 +---- .../snowflake/row_access_policy.go | 3 --- .../snowflake/row_access_policy_test.go | 5 +---- .../snowflake/saml_integration.go | 3 --- .../snowflake/saml_integration_test.go | 5 +---- .../snowflake/scim_integration.go | 3 --- .../snowflake/scim_integration_test.go | 5 +---- {internal => pkg}/snowflake/sequence.go | 3 --- {internal => pkg}/snowflake/sequence_test.go | 3 --- {internal => pkg}/snowflake/sorting.go | 3 --- {internal => pkg}/snowflake/sorting_test.go | 3 --- {internal => pkg}/snowflake/stage.go | 3 --- {internal => pkg}/snowflake/stage_test.go | 3 --- .../snowflake/storage_integration.go | 3 --- .../snowflake/storage_integration_test.go | 5 +---- .../system_generate_scim_access_token.go | 3 --- .../system_generate_scim_access_token_test.go | 3 --- .../system_get_aws_sns_iam_policy.go | 3 --- .../system_get_aws_sns_iam_policy_test.go | 3 --- .../system_get_privatelink_config.go | 3 --- .../system_get_privatelink_config_test.go | 3 --- .../system_get_snowflake_platform_info.go | 3 --- ...system_get_snowflake_platform_info_test.go | 3 --- {internal => pkg}/snowflake/table.go | 5 +---- .../snowflake/table_constraint.go | 3 --- {internal => pkg}/snowflake/tag.go | 5 +---- .../snowflake/tag_association.go | 5 +---- .../snowflake/tag_association_test.go | 3 --- {internal => pkg}/snowflake/tag_test.go | 3 --- {internal => pkg}/snowflake/user.go | 5 +---- .../snowflake/user_ownership_grant.go | 3 --- .../snowflake/user_ownership_grant_test.go | 5 +---- {internal => pkg}/snowflake/user_test.go | 5 +---- {internal => pkg}/snowflake/view.go | 3 --- {internal => pkg}/snowflake/view_test.go | 3 --- {internal => pkg}/testhelpers/fixtures.go | 3 --- {internal => pkg}/testhelpers/helpers.go | 3 --- {internal => pkg}/validation/validation.go | 5 +---- .../validation/validation_test.go | 3 --- tools/tools.go | 3 --- 599 files changed, 538 insertions(+), 2274 deletions(-) delete mode 100644 .copywrite.hcl rename GNUmakefile => Makefile (97%) rename {internal => pkg}/acceptance/testing.go (89%) rename {internal => pkg}/datasources/accounts.go (97%) rename {internal => pkg}/datasources/accounts_acceptance_test.go (90%) rename {internal => pkg}/datasources/alerts.go (95%) rename {internal => pkg}/datasources/current_account.go (91%) rename {internal => pkg}/datasources/current_account_acceptance_test.go (91%) rename {internal => pkg}/datasources/current_role.go (86%) rename {internal => pkg}/datasources/current_role_acceptance_test.go (88%) rename {internal => pkg}/datasources/database.go (93%) rename {internal => pkg}/datasources/database_acceptance_test.go (95%) rename {internal => pkg}/datasources/database_roles.go (94%) rename {internal => pkg}/datasources/database_roles_acceptance_test.go (97%) rename {internal => pkg}/datasources/databases.go (96%) rename {internal => pkg}/datasources/databases_acceptance_test.go (98%) rename {internal => pkg}/datasources/dynamic_tables.go (98%) rename {internal => pkg}/datasources/dynamic_tables_acceptance_test.go (95%) rename {internal => pkg}/datasources/external_functions.go (94%) rename {internal => pkg}/datasources/external_functions_acceptance_test.go (97%) rename {internal => pkg}/datasources/external_tables.go (94%) rename {internal => pkg}/datasources/external_tables_acceptance_test.go (97%) rename {internal => pkg}/datasources/failover_groups.go (97%) rename {internal => pkg}/datasources/failover_groups_acceptance_test.go (96%) rename {internal => pkg}/datasources/file_formats.go (94%) rename {internal => pkg}/datasources/file_formats_acceptance_test.go (98%) rename {internal => pkg}/datasources/functions.go (94%) rename {internal => pkg}/datasources/functions_acceptance_test.go (96%) rename {internal => pkg}/datasources/grants.go (98%) rename {internal => pkg}/datasources/grants_acceptance_test.go (89%) rename {internal => pkg}/datasources/helpers_test.go (62%) rename {internal => pkg}/datasources/masking_policies.go (91%) rename {internal => pkg}/datasources/masking_policies_acceptance_test.go (97%) rename {internal => pkg}/datasources/materialized_views.go (93%) rename {internal => pkg}/datasources/materialized_views_acceptance_test.go (97%) rename {internal => pkg}/datasources/parameters.go (97%) rename {internal => pkg}/datasources/parameters_acceptance_test.go (97%) rename {internal => pkg}/datasources/pipes.go (94%) rename {internal => pkg}/datasources/pipes_acceptance_test.go (97%) rename {internal => pkg}/datasources/procedures.go (95%) rename {internal => pkg}/datasources/procedures_acceptance_test.go (97%) rename {internal => pkg}/datasources/resource_monitors.go (93%) rename {internal => pkg}/datasources/resource_monitors_acceptance_test.go (94%) rename {internal => pkg}/datasources/role.go (89%) rename {internal => pkg}/datasources/role_acceptance_test.go (94%) rename {internal => pkg}/datasources/roles.go (93%) rename {internal => pkg}/datasources/roles_acceptance_test.go (96%) rename {internal => pkg}/datasources/row_access_policies.go (94%) rename {internal => pkg}/datasources/row_access_policies_acceptance_test.go (97%) rename {internal => pkg}/datasources/schemas.go (92%) rename {internal => pkg}/datasources/schemas_acceptance_test.go (95%) rename {internal => pkg}/datasources/sequences.go (93%) rename {internal => pkg}/datasources/sequences_acceptance_test.go (96%) rename {internal => pkg}/datasources/shares.go (94%) rename {internal => pkg}/datasources/shares_acceptance_test.go (96%) rename {internal => pkg}/datasources/stages.go (94%) rename {internal => pkg}/datasources/stages_acceptance_test.go (96%) rename {internal => pkg}/datasources/storage_integrations.go (94%) rename {internal => pkg}/datasources/storage_integrations_acceptance_test.go (94%) rename {internal => pkg}/datasources/streams.go (93%) rename {internal => pkg}/datasources/streams_acceptance_test.go (97%) rename {internal => pkg}/datasources/system_generate_scim_access_token.go (91%) rename {internal => pkg}/datasources/system_generate_scim_access_token_acceptance_test.go (96%) rename {internal => pkg}/datasources/system_get_aws_sns_iam_policy.go (90%) rename {internal => pkg}/datasources/system_get_aws_sns_iam_policy_acceptance_test.go (92%) rename {internal => pkg}/datasources/system_get_privatelink_config.go (96%) rename {internal => pkg}/datasources/system_get_privatelink_config_acceptance_test.go (95%) rename {internal => pkg}/datasources/system_get_snowflake_platform_info.go (94%) rename {internal => pkg}/datasources/system_get_snowflake_platform_info_acceptance_test.go (92%) rename {internal => pkg}/datasources/tables.go (93%) rename {internal => pkg}/datasources/tables_acceptance_test.go (97%) rename {internal => pkg}/datasources/tasks.go (94%) rename {internal => pkg}/datasources/tasks_acceptance_test.go (97%) rename {internal => pkg}/datasources/testdata/TestAcc_DynamicTables_complete/1/test.tf (100%) rename {internal => pkg}/datasources/testdata/TestAcc_DynamicTables_complete/1/variables.tf (100%) rename {internal => pkg}/datasources/users.go (94%) rename {internal => pkg}/datasources/users_acceptance_test.go (95%) rename {internal => pkg}/datasources/views.go (93%) rename {internal => pkg}/datasources/views_acceptance_test.go (96%) rename {internal => pkg}/datasources/warehouses.go (90%) rename {internal => pkg}/datasources/warehouses_acceptance_test.go (94%) rename {internal => pkg}/helpers/helpers.go (97%) rename {internal => pkg}/helpers/helpers_test.go (97%) rename {internal => pkg}/helpers/random.go (87%) rename {internal => pkg}/provider/provider.go (99%) rename {internal => pkg}/provider/provider_helpers.go (98%) rename {internal => pkg}/provider/provider_test.go (82%) rename {internal => pkg}/resources/account.go (98%) rename {internal => pkg}/resources/account_acceptance_test.go (95%) rename {internal => pkg}/resources/account_grant.go (96%) rename {internal => pkg}/resources/account_grant_acceptance_test.go (95%) rename {internal => pkg}/resources/account_grant_test.go (92%) rename {internal => pkg}/resources/account_parameter.go (95%) rename {internal => pkg}/resources/account_parameter_acceptance_test.go (93%) rename {internal => pkg}/resources/account_password_policy_attachment.go (92%) rename {internal => pkg}/resources/account_password_policy_attachment_acceptance_test.go (91%) rename {internal => pkg}/resources/alert.go (98%) rename {internal => pkg}/resources/alert_acceptance_test.go (98%) rename {internal => pkg}/resources/api_integration.go (98%) rename {internal => pkg}/resources/api_integration_acceptance_test.go (96%) rename {internal => pkg}/resources/api_integration_test.go (94%) rename {internal => pkg}/resources/database.go (98%) rename {internal => pkg}/resources/database_acceptance_test.go (95%) rename {internal => pkg}/resources/database_grant.go (96%) rename {internal => pkg}/resources/database_grant_acceptance_test.go (96%) rename {internal => pkg}/resources/database_grant_test.go (91%) rename {internal => pkg}/resources/database_role.go (94%) rename {internal => pkg}/resources/database_role_acceptance_test.go (91%) rename {internal => pkg}/resources/dynamic_table.go (97%) rename {internal => pkg}/resources/dynamic_table_acceptance_test.go (95%) rename {internal => pkg}/resources/dynamic_table_test.go (82%) rename {internal => pkg}/resources/email_notification_integration.go (96%) rename {internal => pkg}/resources/email_notification_integration_acceptance_test.go (91%) rename {internal => pkg}/resources/external_function.go (99%) rename {internal => pkg}/resources/external_function_acceptance_test.go (96%) rename {internal => pkg}/resources/external_function_test.go (96%) rename {internal => pkg}/resources/external_oauth_integration.go (99%) rename {internal => pkg}/resources/external_oauth_integration_acceptance_test.go (98%) rename {internal => pkg}/resources/external_stage_acceptance_test.go (89%) rename {internal => pkg}/resources/external_table.go (98%) rename {internal => pkg}/resources/external_table_acceptance_test.go (94%) rename {internal => pkg}/resources/external_table_grant.go (97%) rename {internal => pkg}/resources/external_table_grant_acceptance_test.go (96%) rename {internal => pkg}/resources/external_table_grant_test.go (95%) rename {internal => pkg}/resources/external_table_test.go (90%) rename {internal => pkg}/resources/failover_group.go (99%) rename {internal => pkg}/resources/failover_group_acceptance_test.go (98%) rename {internal => pkg}/resources/failover_group_grant.go (95%) rename {internal => pkg}/resources/failover_group_grant_acceptance_test.go (93%) rename {internal => pkg}/resources/file_format.go (99%) rename {internal => pkg}/resources/file_format_acceptance_test.go (99%) rename {internal => pkg}/resources/file_format_grant.go (97%) rename {internal => pkg}/resources/file_format_grant_acceptance_test.go (97%) rename {internal => pkg}/resources/file_format_grant_test.go (94%) rename {internal => pkg}/resources/function.go (99%) rename {internal => pkg}/resources/function_acceptance_test.go (97%) rename {internal => pkg}/resources/function_grant.go (97%) rename {internal => pkg}/resources/function_grant_acceptance_test.go (96%) rename {internal => pkg}/resources/function_test.go (94%) rename {internal => pkg}/resources/grant_helpers.go (98%) rename {internal => pkg}/resources/grant_privileges_to_role.go (99%) rename {internal => pkg}/resources/grant_privileges_to_role_acceptance_test.go (99%) rename {internal => pkg}/resources/helper_expansion.go (97%) rename {internal => pkg}/resources/helper_expansion_internal_test.go (88%) rename {internal => pkg}/resources/helpers.go (94%) rename {internal => pkg}/resources/helpers_test.go (98%) rename {internal => pkg}/resources/integration_grant.go (95%) rename {internal => pkg}/resources/integration_grant_test.go (88%) rename {internal => pkg}/resources/internal_stage_acceptance_test.go (89%) rename {internal => pkg}/resources/managed_account.go (96%) rename {internal => pkg}/resources/managed_account_acceptance_test.go (93%) rename {internal => pkg}/resources/managed_account_test.go (83%) rename {internal => pkg}/resources/masking_policy.go (97%) rename {internal => pkg}/resources/masking_policy_acceptance_test.go (96%) rename {internal => pkg}/resources/masking_policy_grant.go (96%) rename {internal => pkg}/resources/masking_policy_grant_acceptance_test.go (95%) rename {internal => pkg}/resources/masking_policy_grant_test.go (89%) rename {internal => pkg}/resources/materialized_view.go (98%) rename {internal => pkg}/resources/materialized_view_acceptance_test.go (96%) rename {internal => pkg}/resources/materialized_view_grant.go (97%) rename {internal => pkg}/resources/materialized_view_grant_acceptance_test.go (96%) rename {internal => pkg}/resources/materialized_view_grant_test.go (96%) rename {internal => pkg}/resources/materialized_view_test.go (92%) rename {internal => pkg}/resources/network_policy.go (98%) rename {internal => pkg}/resources/network_policy_acceptance_test.go (94%) rename {internal => pkg}/resources/network_policy_attachment.go (98%) rename {internal => pkg}/resources/network_policy_attachment_acceptance_test.go (95%) rename {internal => pkg}/resources/network_policy_attachment_test.go (89%) rename {internal => pkg}/resources/notification_integration.go (98%) rename {internal => pkg}/resources/notification_integration_acceptance_test.go (97%) rename {internal => pkg}/resources/notification_integration_test.go (96%) rename {internal => pkg}/resources/oauth_integration.go (98%) rename {internal => pkg}/resources/oauth_integration_acceptance_test.go (96%) rename {internal => pkg}/resources/oauth_integration_test.go (89%) rename {internal => pkg}/resources/object_parameter.go (97%) rename {internal => pkg}/resources/object_parameter_acceptance_test.go (92%) rename {internal => pkg}/resources/password_policy.go (98%) rename {internal => pkg}/resources/password_policy_acceptance_test.go (96%) rename {internal => pkg}/resources/pipe.go (97%) rename {internal => pkg}/resources/pipe_acceptance_test.go (93%) rename {internal => pkg}/resources/pipe_grant.go (96%) rename {internal => pkg}/resources/pipe_grant_acceptance_test.go (97%) rename {internal => pkg}/resources/pipe_grant_test.go (94%) rename {internal => pkg}/resources/pipe_internal_test.go (98%) rename {internal => pkg}/resources/privileges.go (98%) rename {internal => pkg}/resources/procedure.go (99%) rename {internal => pkg}/resources/procedure_acceptance_test.go (96%) rename {internal => pkg}/resources/procedure_grant.go (97%) rename {internal => pkg}/resources/procedure_grant_acceptance_test.go (95%) rename {internal => pkg}/resources/procedure_test.go (93%) rename {internal => pkg}/resources/resource.go (96%) rename {internal => pkg}/resources/resource_monitor.go (98%) rename {internal => pkg}/resources/resource_monitor_acceptance_test.go (96%) rename {internal => pkg}/resources/resource_monitor_grant.go (96%) rename {internal => pkg}/resources/resource_monitor_grant_acceptance_test.go (91%) rename {internal => pkg}/resources/resource_monitor_grant_test.go (88%) rename {internal => pkg}/resources/role.go (93%) rename {internal => pkg}/resources/role_acceptance_test.go (92%) rename {internal => pkg}/resources/role_grants.go (96%) rename {internal => pkg}/resources/role_grants_acceptance_test.go (97%) rename {internal => pkg}/resources/role_grants_internal_test.go (92%) rename {internal => pkg}/resources/role_grants_test.go (93%) rename {internal => pkg}/resources/role_ownership_grant.go (95%) rename {internal => pkg}/resources/role_ownership_grant_acceptance_test.go (91%) rename {internal => pkg}/resources/role_ownership_grant_test.go (88%) rename {internal => pkg}/resources/row_access_policy.go (98%) rename {internal => pkg}/resources/row_access_policy_acceptance_test.go (93%) rename {internal => pkg}/resources/row_access_policy_grant.go (96%) rename {internal => pkg}/resources/row_access_policy_grant_acceptance_test.go (95%) rename {internal => pkg}/resources/row_access_policy_grant_test.go (90%) rename {internal => pkg}/resources/row_access_policy_test.go (90%) rename {internal => pkg}/resources/saml_integration.go (99%) rename {internal => pkg}/resources/saml_integration_acceptance_test.go (97%) rename {internal => pkg}/resources/saml_integration_test.go (92%) rename {internal => pkg}/resources/schema.go (97%) rename {internal => pkg}/resources/schema_acceptance_test.go (95%) rename {internal => pkg}/resources/schema_grant.go (97%) rename {internal => pkg}/resources/schema_grant_acceptance_test.go (95%) rename {internal => pkg}/resources/schema_grant_test.go (94%) rename {internal => pkg}/resources/scim_integration.go (97%) rename {internal => pkg}/resources/scim_integration_acceptance_test.go (94%) rename {internal => pkg}/resources/scim_integration_test.go (89%) rename {internal => pkg}/resources/sequence.go (97%) rename {internal => pkg}/resources/sequence_acceptance_test.go (96%) rename {internal => pkg}/resources/sequence_grant.go (97%) rename {internal => pkg}/resources/sequence_grant_acceptance_test.go (95%) rename {internal => pkg}/resources/sequence_grant_test.go (94%) rename {internal => pkg}/resources/sequence_test.go (90%) rename {internal => pkg}/resources/session_parameter.go (97%) rename {internal => pkg}/resources/session_parameter_acceptance_test.go (93%) rename {internal => pkg}/resources/share.go (97%) rename {internal => pkg}/resources/share_acceptance_test.go (95%) rename {internal => pkg}/resources/stage.go (98%) rename {internal => pkg}/resources/stage_acceptance_test.go (92%) rename {internal => pkg}/resources/stage_grant.go (97%) rename {internal => pkg}/resources/stage_grant_acceptance_test.go (97%) rename {internal => pkg}/resources/stage_grant_test.go (94%) rename {internal => pkg}/resources/stage_test.go (93%) rename {internal => pkg}/resources/storage_integration.go (98%) rename {internal => pkg}/resources/storage_integration_acceptance_test.go (93%) rename {internal => pkg}/resources/storage_integration_test.go (96%) rename {internal => pkg}/resources/stream.go (97%) rename {internal => pkg}/resources/stream_acceptance_test.go (98%) rename {internal => pkg}/resources/stream_grant.go (97%) rename {internal => pkg}/resources/stream_grant_acceptance_test.go (97%) rename {internal => pkg}/resources/stream_grant_test.go (94%) rename {internal => pkg}/resources/table.go (99%) rename {internal => pkg}/resources/table_acceptance_test.go (99%) rename {internal => pkg}/resources/table_column_masking_policy_application.go (96%) rename {internal => pkg}/resources/table_column_masking_policy_application_acceptance_test.go (92%) rename {internal => pkg}/resources/table_constraint.go (98%) rename {internal => pkg}/resources/table_constraint_acceptance_test.go (95%) rename {internal => pkg}/resources/table_grant.go (97%) rename {internal => pkg}/resources/table_grant_acceptance_test.go (97%) rename {internal => pkg}/resources/table_grant_test.go (96%) rename {internal => pkg}/resources/table_internal_test.go (95%) rename {internal => pkg}/resources/tag.go (97%) rename {internal => pkg}/resources/tag_acceptance_test.go (90%) rename {internal => pkg}/resources/tag_association.go (97%) rename {internal => pkg}/resources/tag_association_acceptance_test.go (97%) rename {internal => pkg}/resources/tag_grant.go (95%) rename {internal => pkg}/resources/tag_grant_acceptance_test.go (94%) rename {internal => pkg}/resources/tag_grant_test.go (88%) rename {internal => pkg}/resources/tag_masking_policy_association.go (96%) rename {internal => pkg}/resources/tag_masking_policy_association_acceptance_test.go (92%) rename {internal => pkg}/resources/tag_test.go (90%) rename {internal => pkg}/resources/task.go (99%) rename {internal => pkg}/resources/task_acceptance_test.go (99%) rename {internal => pkg}/resources/task_grant.go (97%) rename {internal => pkg}/resources/task_grant_acceptance_test.go (98%) rename {internal => pkg}/resources/task_grant_test.go (94%) rename {internal => pkg}/resources/testdata/TestAcc_DynamicTable_basic/1/test.tf (100%) rename {internal => pkg}/resources/testdata/TestAcc_DynamicTable_basic/1/variables.tf (100%) rename {internal => pkg}/resources/testdata/TestAcc_DynamicTable_basic/2/test.tf (100%) rename {internal => pkg}/resources/testdata/TestAcc_DynamicTable_basic/2/variables.tf (100%) rename {internal => pkg}/resources/testdata/TestAcc_DynamicTable_basic/3/test.tf (100%) rename {internal => pkg}/resources/testdata/TestAcc_DynamicTable_basic/3/variables.tf (100%) rename {internal => pkg}/resources/testdata/userkey1 (100%) rename {internal => pkg}/resources/testdata/userkey2 (100%) rename {internal => pkg}/resources/testdata/view_1a.sql (100%) rename {internal => pkg}/resources/testdata/view_1b.sql (100%) rename {internal => pkg}/resources/testdata/view_2a.sql (100%) rename {internal => pkg}/resources/testdata/view_2b.sql (100%) rename {internal => pkg}/resources/user.go (98%) rename {internal => pkg}/resources/user_acceptance_test.go (96%) rename {internal => pkg}/resources/user_grant.go (96%) rename {internal => pkg}/resources/user_grant_acceptance_test.go (92%) rename {internal => pkg}/resources/user_grant_test.go (84%) rename {internal => pkg}/resources/user_ownership_grant.go (95%) rename {internal => pkg}/resources/user_ownership_grant_acceptance_test.go (91%) rename {internal => pkg}/resources/user_ownership_grant_test.go (89%) rename {internal => pkg}/resources/user_public_keys.go (96%) rename {internal => pkg}/resources/user_public_keys_acceptance_test.go (90%) rename {internal => pkg}/resources/view.go (98%) rename {internal => pkg}/resources/view_acceptance_test.go (97%) rename {internal => pkg}/resources/view_grant.go (97%) rename {internal => pkg}/resources/view_grant_acceptance_test.go (98%) rename {internal => pkg}/resources/view_grant_test.go (95%) rename {internal => pkg}/resources/view_test.go (92%) rename {internal => pkg}/resources/warehouse.go (98%) rename {internal => pkg}/resources/warehouse_acceptance_test.go (96%) rename {internal => pkg}/resources/warehouse_grant.go (95%) rename {internal => pkg}/resources/warehouse_grant_acceptance_test.go (93%) rename {internal => pkg}/resources/warehouse_grant_test.go (85%) rename {internal => pkg}/sdk/README.md (100%) rename {internal => pkg}/sdk/accounts.go (99%) rename {internal => pkg}/sdk/accounts_test.go (99%) rename {internal => pkg}/sdk/alerts.go (99%) rename {internal => pkg}/sdk/alerts_test.go (97%) rename {internal => pkg}/sdk/assertions_test.go (95%) rename {internal => pkg}/sdk/client.go (98%) rename {internal => pkg}/sdk/client_integration_test.go (95%) rename {internal => pkg}/sdk/comments.go (97%) rename {internal => pkg}/sdk/comments_test.go (93%) rename {internal => pkg}/sdk/common_types.go (98%) rename {internal => pkg}/sdk/common_types_test.go (97%) rename {internal => pkg}/sdk/config.go (97%) rename {internal => pkg}/sdk/config_test.go (98%) rename {internal => pkg}/sdk/context_functions.go (98%) rename {internal => pkg}/sdk/conversion_functions.go (94%) rename {internal => pkg}/sdk/data_types.go (97%) rename {internal => pkg}/sdk/data_types_test.go (97%) rename {internal => pkg}/sdk/database_role.go (99%) rename {internal => pkg}/sdk/database_role_dto.go (96%) rename {internal => pkg}/sdk/database_role_dto_builders.go (98%) rename {internal => pkg}/sdk/database_role_impl.go (96%) rename {internal => pkg}/sdk/database_role_test.go (98%) rename {internal => pkg}/sdk/database_role_validations.go (98%) rename {internal => pkg}/sdk/databases.go (99%) rename {internal => pkg}/sdk/databases_test.go (99%) rename {internal => pkg}/sdk/dto-builder-generator/README.md (100%) rename {internal => pkg}/sdk/dto-builder-generator/example/pipes_dto.go (88%) rename {internal => pkg}/sdk/dto-builder-generator/example/pipes_dto_generated.go (98%) rename {internal => pkg}/sdk/dto-builder-generator/main.go (98%) rename {internal => pkg}/sdk/dynamic_table.go (99%) rename {internal => pkg}/sdk/dynamic_table_dto.go (94%) rename {internal => pkg}/sdk/dynamic_table_dto_builders.go (97%) rename {internal => pkg}/sdk/dynamic_table_impl.go (94%) rename {internal => pkg}/sdk/dynamic_table_test.go (98%) rename {internal => pkg}/sdk/dynamic_table_validations.go (97%) rename {internal => pkg}/sdk/errors.go (95%) rename {internal => pkg}/sdk/external_tables.go (99%) rename {internal => pkg}/sdk/external_tables_dto.go (99%) rename {internal => pkg}/sdk/external_tables_dto_builders_gen.go (100%) rename {internal => pkg}/sdk/external_tables_impl.go (94%) rename {internal => pkg}/sdk/external_tables_test.go (99%) rename {internal => pkg}/sdk/external_tables_validations.go (99%) rename {internal => pkg}/sdk/failover_groups.go (99%) rename {internal => pkg}/sdk/failover_groups_test.go (98%) rename {internal => pkg}/sdk/file_format.go (99%) rename {internal => pkg}/sdk/file_format_test.go (99%) rename {internal => pkg}/sdk/grants.go (99%) rename {internal => pkg}/sdk/grants_impl.go (97%) rename {internal => pkg}/sdk/grants_test.go (99%) rename {internal => pkg}/sdk/grants_validations.go (99%) rename {internal => pkg}/sdk/helper_test.go (91%) rename {internal => pkg}/sdk/helpers_proposal.go (96%) rename {internal => pkg}/sdk/identifier_helpers.go (99%) rename {internal => pkg}/sdk/identifier_helpers_test.go (97%) rename {internal => pkg}/sdk/integration_test_imports.go (91%) rename {internal => pkg}/sdk/internal/collections/collection_helpers.go (81%) rename {internal => pkg}/sdk/internal/random/random_helpers.go (91%) rename {internal => pkg}/sdk/masking_policy.go (99%) rename {internal => pkg}/sdk/masking_policy_test.go (97%) rename {internal => pkg}/sdk/network_policies_def.go (97%) rename {internal => pkg}/sdk/network_policies_dto_builders_gen.go (100%) rename {internal => pkg}/sdk/network_policies_dto_gen.go (95%) rename {internal => pkg}/sdk/network_policies_gen.go (98%) rename {internal => pkg}/sdk/network_policies_gen_test.go (98%) rename {internal => pkg}/sdk/network_policies_impl_gen.go (96%) rename {internal => pkg}/sdk/network_policies_validations_gen.go (96%) rename {internal => pkg}/sdk/object_types.go (99%) rename {internal => pkg}/sdk/parameters.go (99%) rename {internal => pkg}/sdk/parameters_impl.go (99%) rename {internal => pkg}/sdk/parameters_test.go (89%) rename {internal => pkg}/sdk/password_policy.go (99%) rename {internal => pkg}/sdk/password_policy_test.go (97%) rename {internal => pkg}/sdk/pipes.go (98%) rename {internal => pkg}/sdk/pipes_impl.go (91%) rename {internal => pkg}/sdk/pipes_test.go (99%) rename {internal => pkg}/sdk/pipes_validations.go (97%) rename {internal => pkg}/sdk/poc/README.md (100%) rename {internal => pkg}/sdk/poc/example/database_role_def.go (93%) rename {internal => pkg}/sdk/poc/example/database_role_dto_builders_gen.go (100%) rename {internal => pkg}/sdk/poc/example/database_role_dto_gen.go (93%) rename {internal => pkg}/sdk/poc/example/database_role_gen.go (96%) rename {internal => pkg}/sdk/poc/example/database_role_gen_integration_test.go (78%) rename {internal => pkg}/sdk/poc/example/database_role_gen_test.go (97%) rename {internal => pkg}/sdk/poc/example/database_role_impl_gen.go (95%) rename {internal => pkg}/sdk/poc/example/database_role_validations_gen.go (95%) rename {internal => pkg}/sdk/poc/example/sdk_definitions.go (97%) rename {internal => pkg}/sdk/poc/generator/db_struct.go (90%) rename {internal => pkg}/sdk/poc/generator/field.go (98%) rename {internal => pkg}/sdk/poc/generator/field_transformers.go (98%) rename {internal => pkg}/sdk/poc/generator/file_util.go (87%) rename {internal => pkg}/sdk/poc/generator/identifier_builders.go (92%) rename {internal => pkg}/sdk/poc/generator/interface.go (93%) rename {internal => pkg}/sdk/poc/generator/keyword_builders.go (97%) rename {internal => pkg}/sdk/poc/generator/kind.go (85%) rename {internal => pkg}/sdk/poc/generator/operation.go (98%) rename {internal => pkg}/sdk/poc/generator/parameter_builders.go (97%) rename {internal => pkg}/sdk/poc/generator/plain_struct.go (90%) rename {internal => pkg}/sdk/poc/generator/query_struct.go (96%) rename {internal => pkg}/sdk/poc/generator/static_builders.go (89%) rename {internal => pkg}/sdk/poc/generator/tag_builder.go (96%) rename {internal => pkg}/sdk/poc/generator/template_executors.go (97%) rename {internal => pkg}/sdk/poc/generator/templates.go (98%) rename {internal => pkg}/sdk/poc/generator/util.go (95%) rename {internal => pkg}/sdk/poc/generator/validation.go (98%) rename {internal => pkg}/sdk/poc/main.go (90%) rename {internal => pkg}/sdk/privileges.go (99%) rename {internal => pkg}/sdk/random.go (93%) rename {internal => pkg}/sdk/replication_functions.go (98%) rename {internal => pkg}/sdk/replication_groups.go (71%) rename {internal => pkg}/sdk/resource_monitor_internal_test.go (89%) rename {internal => pkg}/sdk/resource_monitors.go (99%) rename {internal => pkg}/sdk/resource_monitors_test.go (98%) rename {internal => pkg}/sdk/roles.go (98%) rename {internal => pkg}/sdk/roles_dto.go (98%) rename {internal => pkg}/sdk/roles_impl.go (91%) rename {internal => pkg}/sdk/roles_test.go (99%) rename {internal => pkg}/sdk/roles_validations.go (97%) rename {internal => pkg}/sdk/schemas.go (99%) rename {internal => pkg}/sdk/schemas_test.go (99%) rename {internal => pkg}/sdk/session_policies_def.go (97%) rename {internal => pkg}/sdk/session_policies_dto_builders_gen.go (100%) rename {internal => pkg}/sdk/session_policies_dto_gen.go (95%) rename {internal => pkg}/sdk/session_policies_gen.go (98%) rename {internal => pkg}/sdk/session_policies_gen_test.go (99%) rename {internal => pkg}/sdk/session_policies_impl_gen.go (96%) rename {internal => pkg}/sdk/session_policies_validations_gen.go (97%) rename {internal => pkg}/sdk/sessions.go (98%) rename {internal => pkg}/sdk/shares.go (99%) rename {internal => pkg}/sdk/shares_test.go (96%) rename {internal => pkg}/sdk/sql_builder.go (99%) rename {internal => pkg}/sdk/sql_builder_test.go (99%) rename {internal => pkg}/sdk/stages.go (84%) rename {internal => pkg}/sdk/streams_def.go (98%) rename {internal => pkg}/sdk/streams_dto_builders_gen.go (100%) rename {internal => pkg}/sdk/streams_dto_gen.go (97%) rename {internal => pkg}/sdk/streams_gen.go (99%) rename {internal => pkg}/sdk/streams_gen_test.go (99%) rename {internal => pkg}/sdk/streams_impl_gen.go (97%) rename {internal => pkg}/sdk/streams_validations_gen.go (98%) rename {internal => pkg}/sdk/sweepers.go (98%) rename {internal => pkg}/sdk/sweepers_test.go (93%) rename {internal => pkg}/sdk/system_functions.go (91%) rename {internal => pkg}/sdk/tables.go (84%) rename {internal => pkg}/sdk/tags.go (98%) rename {internal => pkg}/sdk/tags_dto.go (94%) rename {internal => pkg}/sdk/tags_dto_builders.go (98%) rename {internal => pkg}/sdk/tags_impl.go (92%) rename {internal => pkg}/sdk/tags_test.go (98%) rename {internal => pkg}/sdk/tags_validations.go (98%) rename {internal => pkg}/sdk/tasks_def.go (98%) rename {internal => pkg}/sdk/tasks_dto_builders_gen.go (100%) rename {internal => pkg}/sdk/tasks_dto_gen.go (98%) rename {internal => pkg}/sdk/tasks_gen.go (99%) rename {internal => pkg}/sdk/tasks_gen_test.go (99%) rename {internal => pkg}/sdk/tasks_impl_gen.go (99%) rename {internal => pkg}/sdk/tasks_test.go (98%) rename {internal => pkg}/sdk/tasks_validations_gen.go (98%) rename {internal => pkg}/sdk/testint/accounts_integration_test.go (97%) rename {internal => pkg}/sdk/testint/alerts_integration_test.go (98%) rename {internal => pkg}/sdk/testint/comments_integration_test.go (82%) rename {internal => pkg}/sdk/testint/context_functions_integration_test.go (97%) rename {internal => pkg}/sdk/testint/conversion_functions_integration_test.go (94%) rename {internal => pkg}/sdk/testint/database_role_integration_test.go (96%) rename {internal => pkg}/sdk/testint/databases_integration_test.go (98%) rename {internal => pkg}/sdk/testint/dynamic_table_integration_test.go (96%) rename {internal => pkg}/sdk/testint/external_tables_integration_test.go (97%) rename {internal => pkg}/sdk/testint/failover_groups_integration_test.go (99%) rename {internal => pkg}/sdk/testint/file_format_integration_test.go (98%) rename {internal => pkg}/sdk/testint/grants_integration_test.go (98%) rename {internal => pkg}/sdk/testint/helpers_test.go (99%) rename {internal => pkg}/sdk/testint/masking_policy_integration_test.go (98%) rename {internal => pkg}/sdk/testint/network_policies_gen_integration_test.go (96%) rename {internal => pkg}/sdk/testint/parsers.go (81%) rename {internal => pkg}/sdk/testint/password_policy_integration_test.go (98%) rename {internal => pkg}/sdk/testint/pipes_integration_test.go (98%) rename {internal => pkg}/sdk/testint/replication_functions_integration_test.go (89%) rename {internal => pkg}/sdk/testint/resource_monitors_integration_test.go (97%) rename {internal => pkg}/sdk/testint/roles_integration_test.go (97%) rename {internal => pkg}/sdk/testint/schemas_integration_test.go (98%) rename {internal => pkg}/sdk/testint/session_policies_gen_integration_test.go (96%) rename {internal => pkg}/sdk/testint/sessions_integration_test.go (97%) rename {internal => pkg}/sdk/testint/setup_integration_test.go (94%) rename {internal => pkg}/sdk/testint/shares_integration_test.go (98%) rename {internal => pkg}/sdk/testint/streams_gen_integration_test.go (97%) rename {internal => pkg}/sdk/testint/system_functions_integration_test.go (85%) rename {internal => pkg}/sdk/testint/tags_integration_test.go (96%) rename {internal => pkg}/sdk/testint/tasks_gen_integration_test.go (98%) rename {internal => pkg}/sdk/testint/users_integration_test.go (96%) rename {internal => pkg}/sdk/testint/warehouses_integration_test.go (99%) rename {internal => pkg}/sdk/type_helpers.go (93%) rename {internal => pkg}/sdk/users.go (99%) rename {internal => pkg}/sdk/users_test.go (98%) rename {internal => pkg}/sdk/validation.go (98%) rename {internal => pkg}/sdk/validation_test.go (85%) rename {internal => pkg}/sdk/validations.go (96%) rename {internal => pkg}/sdk/validations_test.go (97%) rename {internal => pkg}/sdk/warehouses.go (99%) rename {internal => pkg}/sdk/warehouses_test.go (99%) rename {internal => pkg}/snowflake/all_grant.go (99%) rename {internal => pkg}/snowflake/all_grant_test.go (80%) rename {internal => pkg}/snowflake/api_integration.go (94%) rename {internal => pkg}/snowflake/api_integration_test.go (87%) rename {internal => pkg}/snowflake/builder.go (99%) rename {internal => pkg}/snowflake/current_account.go (97%) rename {internal => pkg}/snowflake/current_account_test.go (92%) rename {internal => pkg}/snowflake/current_role.go (88%) rename {internal => pkg}/snowflake/current_role_test.go (87%) rename {internal => pkg}/snowflake/email_notification_integration.go (94%) rename {internal => pkg}/snowflake/errors.go (88%) rename {internal => pkg}/snowflake/escaping.go (95%) rename {internal => pkg}/snowflake/escaping_test.go (90%) rename {internal => pkg}/snowflake/exec.go (95%) rename {internal => pkg}/snowflake/external_function.go (99%) rename {internal => pkg}/snowflake/external_function_test.go (96%) rename {internal => pkg}/snowflake/external_oauth_integration.go (98%) rename {internal => pkg}/snowflake/external_oauth_integration_test.go (95%) rename {internal => pkg}/snowflake/external_table.go (99%) rename {internal => pkg}/snowflake/external_table_test.go (96%) rename {internal => pkg}/snowflake/function.go (99%) rename {internal => pkg}/snowflake/function_test.go (99%) rename {internal => pkg}/snowflake/future_grant.go (99%) rename {internal => pkg}/snowflake/future_grant_test.go (98%) rename {internal => pkg}/snowflake/generic.go (99%) rename {internal => pkg}/snowflake/generic_test.go (88%) rename {internal => pkg}/snowflake/grant.go (99%) rename {internal => pkg}/snowflake/grant_test.go (99%) rename {internal => pkg}/snowflake/identifier.go (96%) rename {internal => pkg}/snowflake/managed_account.go (94%) rename {internal => pkg}/snowflake/managed_account_test.go (78%) rename {internal => pkg}/snowflake/manager.go (67%) rename {internal => pkg}/snowflake/masking_policy.go (95%) rename {internal => pkg}/snowflake/masking_policy_application.go (96%) rename {internal => pkg}/snowflake/masking_policy_application_test.go (92%) rename {internal => pkg}/snowflake/materialized_view.go (99%) rename {internal => pkg}/snowflake/network_policy.go (97%) rename {internal => pkg}/snowflake/network_policy_test.go (91%) rename {internal => pkg}/snowflake/notification_integration.go (94%) rename {internal => pkg}/snowflake/notification_integration_test.go (93%) rename {internal => pkg}/snowflake/oauth_integration.go (96%) rename {internal => pkg}/snowflake/oauth_integration_test.go (83%) rename {internal => pkg}/snowflake/parser.go (98%) rename {internal => pkg}/snowflake/parser_internal_test.go (51%) rename {internal => pkg}/snowflake/parser_test.go (99%) rename {internal => pkg}/snowflake/procedure.go (99%) rename {internal => pkg}/snowflake/procedure_test.go (98%) rename {internal => pkg}/snowflake/replication.go (96%) rename {internal => pkg}/snowflake/resource_monitor.go (99%) rename {internal => pkg}/snowflake/resource_monitor_test.go (93%) rename {internal => pkg}/snowflake/role.go (98%) rename {internal => pkg}/snowflake/role_grant.go (93%) rename {internal => pkg}/snowflake/role_grant_test.go (78%) rename {internal => pkg}/snowflake/role_ownership_grant.go (96%) rename {internal => pkg}/snowflake/role_ownership_grant_test.go (85%) rename {internal => pkg}/snowflake/row_access_policy.go (98%) rename {internal => pkg}/snowflake/row_access_policy_test.go (94%) rename {internal => pkg}/snowflake/saml_integration.go (94%) rename {internal => pkg}/snowflake/saml_integration_test.go (97%) rename {internal => pkg}/snowflake/scim_integration.go (94%) rename {internal => pkg}/snowflake/scim_integration_test.go (88%) rename {internal => pkg}/snowflake/sequence.go (97%) rename {internal => pkg}/snowflake/sequence_test.go (94%) rename {internal => pkg}/snowflake/sorting.go (95%) rename {internal => pkg}/snowflake/sorting_test.go (90%) rename {internal => pkg}/snowflake/stage.go (99%) rename {internal => pkg}/snowflake/stage_test.go (99%) rename {internal => pkg}/snowflake/storage_integration.go (96%) rename {internal => pkg}/snowflake/storage_integration_test.go (84%) rename {internal => pkg}/snowflake/system_generate_scim_access_token.go (94%) rename {internal => pkg}/snowflake/system_generate_scim_access_token_test.go (83%) rename {internal => pkg}/snowflake/system_get_aws_sns_iam_policy.go (94%) rename {internal => pkg}/snowflake/system_get_aws_sns_iam_policy_test.go (84%) rename {internal => pkg}/snowflake/system_get_privatelink_config.go (97%) rename {internal => pkg}/snowflake/system_get_privatelink_config_test.go (98%) rename {internal => pkg}/snowflake/system_get_snowflake_platform_info.go (94%) rename {internal => pkg}/snowflake/system_get_snowflake_platform_info_test.go (93%) rename {internal => pkg}/snowflake/table.go (99%) rename {internal => pkg}/snowflake/table_constraint.go (99%) rename {internal => pkg}/snowflake/tag.go (98%) rename {internal => pkg}/snowflake/tag_association.go (97%) rename {internal => pkg}/snowflake/tag_association_test.go (98%) rename {internal => pkg}/snowflake/tag_test.go (97%) rename {internal => pkg}/snowflake/user.go (95%) rename {internal => pkg}/snowflake/user_ownership_grant.go (97%) rename {internal => pkg}/snowflake/user_ownership_grant_test.go (85%) rename {internal => pkg}/snowflake/user_test.go (84%) rename {internal => pkg}/snowflake/view.go (99%) rename {internal => pkg}/snowflake/view_test.go (97%) rename {internal => pkg}/testhelpers/fixtures.go (83%) rename {internal => pkg}/testhelpers/helpers.go (89%) rename {internal => pkg}/validation/validation.go (97%) rename {internal => pkg}/validation/validation_test.go (95%) diff --git a/.copywrite.hcl b/.copywrite.hcl deleted file mode 100644 index 5fa4ba9274..0000000000 --- a/.copywrite.hcl +++ /dev/null @@ -1,20 +0,0 @@ -schema_version = 1 - -project { - license = "MIT" - copyright_holder = "Snowflake, Inc." - copyright_year = 2022 - header_ignore = [ - # examples used within documentation (prose) - "examples/**", - - # GitHub issue template configuration - ".github/ISSUE_TEMPLATE/*.yml", - - # golangci-lint tooling configuration - ".golangci.yml", - - # GoReleaser tooling configuration - ".goreleaser.yml", - ] -} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3e22bf5b63..e810e3b6f8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -46,9 +46,9 @@ role='ACCOUNTADMIN' For the Terraform resources, there are 3 levels of testing - internal, unit and acceptance tests. -The 'internal' tests are run in the `github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources` package so that they can test functions that are not exported. These tests are intended to be limited to unit tests for simple functions. +The 'internal' tests are run in the `github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources` package so that they can test functions that are not exported. These tests are intended to be limited to unit tests for simple functions. -The 'unit' tests are run in `github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources_test`, so they only have access to the exported methods of `resources`. These tests exercise the CRUD methods that on the terraform resources. Note that all tests here make use of database mocking and are run locally. This means the tests are fast, but are liable to be wrong in subtle ways (since the mocks are unlikely to be perfect). +The 'unit' tests are run in `github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources_test`, so they only have access to the exported methods of `resources`. These tests exercise the CRUD methods that on the terraform resources. Note that all tests here make use of database mocking and are run locally. This means the tests are fast, but are liable to be wrong in subtle ways (since the mocks are unlikely to be perfect). You can run these first two sets of tests with `make test`. diff --git a/GNUmakefile b/Makefile similarity index 97% rename from GNUmakefile rename to Makefile index e054dab260..ecec58e7fa 100644 --- a/GNUmakefile +++ b/Makefile @@ -25,7 +25,7 @@ fmt: ## Run gofumpt fumpt: fmt -# Generate docs, terraform fmt the examples folder, and create copywrite headers +# Generate docs, terraform fmt the examples folder generate: cd tools && go generate ./... diff --git a/main.go b/main.go index 18023fd6d8..18cc74af8c 100644 --- a/main.go +++ b/main.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package main import ( "flag" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" "github.com/hashicorp/terraform-plugin-sdk/v2/plugin" ) diff --git a/internal/acceptance/testing.go b/pkg/acceptance/testing.go similarity index 89% rename from internal/acceptance/testing.go rename to pkg/acceptance/testing.go index 70d33890d0..ed526c3937 100644 --- a/internal/acceptance/testing.go +++ b/pkg/acceptance/testing.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package acceptance import ( @@ -8,8 +5,8 @@ import ( "sync" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-go/tfprotov6" "github.com/hashicorp/terraform-plugin-mux/tf5to6server" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/datasources/accounts.go b/pkg/datasources/accounts.go similarity index 97% rename from internal/datasources/accounts.go rename to pkg/datasources/accounts.go index 4419fab473..b293a7661a 100644 --- a/internal/datasources/accounts.go +++ b/pkg/datasources/accounts.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -8,7 +5,7 @@ import ( "database/sql" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/accounts_acceptance_test.go b/pkg/datasources/accounts_acceptance_test.go similarity index 90% rename from internal/datasources/accounts_acceptance_test.go rename to pkg/datasources/accounts_acceptance_test.go index d0f96ede5d..1eeed980b5 100644 --- a/internal/datasources/accounts_acceptance_test.go +++ b/pkg/datasources/accounts_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/alerts.go b/pkg/datasources/alerts.go similarity index 95% rename from internal/datasources/alerts.go rename to pkg/datasources/alerts.go index 17392e1f97..19e695c277 100644 --- a/internal/datasources/alerts.go +++ b/pkg/datasources/alerts.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -8,7 +5,7 @@ import ( "database/sql" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/current_account.go b/pkg/datasources/current_account.go similarity index 91% rename from internal/datasources/current_account.go rename to pkg/datasources/current_account.go index e782ed0f1c..f375b793c5 100644 --- a/internal/datasources/current_account.go +++ b/pkg/datasources/current_account.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -8,7 +5,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/current_account_acceptance_test.go b/pkg/datasources/current_account_acceptance_test.go similarity index 91% rename from internal/datasources/current_account_acceptance_test.go rename to pkg/datasources/current_account_acceptance_test.go index 8ac564cdc1..e6cd2337f7 100644 --- a/internal/datasources/current_account_acceptance_test.go +++ b/pkg/datasources/current_account_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/current_role.go b/pkg/datasources/current_role.go similarity index 86% rename from internal/datasources/current_role.go rename to pkg/datasources/current_role.go index 4995159457..8104a48f12 100644 --- a/internal/datasources/current_role.go +++ b/pkg/datasources/current_role.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -8,7 +5,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/current_role_acceptance_test.go b/pkg/datasources/current_role_acceptance_test.go similarity index 88% rename from internal/datasources/current_role_acceptance_test.go rename to pkg/datasources/current_role_acceptance_test.go index ada46e5e97..8f62bba7c6 100644 --- a/internal/datasources/current_role_acceptance_test.go +++ b/pkg/datasources/current_role_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/database.go b/pkg/datasources/database.go similarity index 93% rename from internal/datasources/database.go rename to pkg/datasources/database.go index 1f2f6dc055..1dc0005716 100644 --- a/internal/datasources/database.go +++ b/pkg/datasources/database.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( "context" "database/sql" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/database_acceptance_test.go b/pkg/datasources/database_acceptance_test.go similarity index 95% rename from internal/datasources/database_acceptance_test.go rename to pkg/datasources/database_acceptance_test.go index c50a387eb1..b04e7f1557 100644 --- a/internal/datasources/database_acceptance_test.go +++ b/pkg/datasources/database_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/database_roles.go b/pkg/datasources/database_roles.go similarity index 94% rename from internal/datasources/database_roles.go rename to pkg/datasources/database_roles.go index 5f632c2d2d..5acbc17cd6 100644 --- a/internal/datasources/database_roles.go +++ b/pkg/datasources/database_roles.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -8,7 +5,7 @@ import ( "database/sql" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/database_roles_acceptance_test.go b/pkg/datasources/database_roles_acceptance_test.go similarity index 97% rename from internal/datasources/database_roles_acceptance_test.go rename to pkg/datasources/database_roles_acceptance_test.go index 9cf41268d8..f1a98e83df 100644 --- a/internal/datasources/database_roles_acceptance_test.go +++ b/pkg/datasources/database_roles_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/databases.go b/pkg/datasources/databases.go similarity index 96% rename from internal/datasources/databases.go rename to pkg/datasources/databases.go index 761c31e83d..c096ffad18 100644 --- a/internal/datasources/databases.go +++ b/pkg/datasources/databases.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( "context" "database/sql" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/databases_acceptance_test.go b/pkg/datasources/databases_acceptance_test.go similarity index 98% rename from internal/datasources/databases_acceptance_test.go rename to pkg/datasources/databases_acceptance_test.go index 17052e7772..a430e0c56d 100644 --- a/internal/datasources/databases_acceptance_test.go +++ b/pkg/datasources/databases_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/dynamic_tables.go b/pkg/datasources/dynamic_tables.go similarity index 98% rename from internal/datasources/dynamic_tables.go rename to pkg/datasources/dynamic_tables.go index 70283d8428..e620204027 100644 --- a/internal/datasources/dynamic_tables.go +++ b/pkg/datasources/dynamic_tables.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -8,7 +5,7 @@ import ( "database/sql" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/dynamic_tables_acceptance_test.go b/pkg/datasources/dynamic_tables_acceptance_test.go similarity index 95% rename from internal/datasources/dynamic_tables_acceptance_test.go rename to pkg/datasources/dynamic_tables_acceptance_test.go index 8a71cd5e17..830eb6a1b7 100644 --- a/internal/datasources/dynamic_tables_acceptance_test.go +++ b/pkg/datasources/dynamic_tables_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( @@ -10,9 +7,9 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-testing/config" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" diff --git a/internal/datasources/external_functions.go b/pkg/datasources/external_functions.go similarity index 94% rename from internal/datasources/external_functions.go rename to pkg/datasources/external_functions.go index 5e4fa19bd0..759349f758 100644 --- a/internal/datasources/external_functions.go +++ b/pkg/datasources/external_functions.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -9,7 +6,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/external_functions_acceptance_test.go b/pkg/datasources/external_functions_acceptance_test.go similarity index 97% rename from internal/datasources/external_functions_acceptance_test.go rename to pkg/datasources/external_functions_acceptance_test.go index fe03628e34..3bc929c6ee 100644 --- a/internal/datasources/external_functions_acceptance_test.go +++ b/pkg/datasources/external_functions_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/external_tables.go b/pkg/datasources/external_tables.go similarity index 94% rename from internal/datasources/external_tables.go rename to pkg/datasources/external_tables.go index 72aeaae7de..47dac65a27 100644 --- a/internal/datasources/external_tables.go +++ b/pkg/datasources/external_tables.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -9,7 +6,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/external_tables_acceptance_test.go b/pkg/datasources/external_tables_acceptance_test.go similarity index 97% rename from internal/datasources/external_tables_acceptance_test.go rename to pkg/datasources/external_tables_acceptance_test.go index 7b1a0eec84..86c81cfb43 100644 --- a/internal/datasources/external_tables_acceptance_test.go +++ b/pkg/datasources/external_tables_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/failover_groups.go b/pkg/datasources/failover_groups.go similarity index 97% rename from internal/datasources/failover_groups.go rename to pkg/datasources/failover_groups.go index 7030388339..d2223088f9 100644 --- a/internal/datasources/failover_groups.go +++ b/pkg/datasources/failover_groups.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( "context" "database/sql" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/failover_groups_acceptance_test.go b/pkg/datasources/failover_groups_acceptance_test.go similarity index 96% rename from internal/datasources/failover_groups_acceptance_test.go rename to pkg/datasources/failover_groups_acceptance_test.go index d52faee32b..5cae6d843f 100644 --- a/internal/datasources/failover_groups_acceptance_test.go +++ b/pkg/datasources/failover_groups_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/file_formats.go b/pkg/datasources/file_formats.go similarity index 94% rename from internal/datasources/file_formats.go rename to pkg/datasources/file_formats.go index aa5fc1dffa..bb08d3d395 100644 --- a/internal/datasources/file_formats.go +++ b/pkg/datasources/file_formats.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -8,7 +5,7 @@ import ( "database/sql" "fmt" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/file_formats_acceptance_test.go b/pkg/datasources/file_formats_acceptance_test.go similarity index 98% rename from internal/datasources/file_formats_acceptance_test.go rename to pkg/datasources/file_formats_acceptance_test.go index 837391791c..57135af9e0 100644 --- a/internal/datasources/file_formats_acceptance_test.go +++ b/pkg/datasources/file_formats_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/functions.go b/pkg/datasources/functions.go similarity index 94% rename from internal/datasources/functions.go rename to pkg/datasources/functions.go index 49255c9ef0..1aac5bb682 100644 --- a/internal/datasources/functions.go +++ b/pkg/datasources/functions.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( "database/sql" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/functions_acceptance_test.go b/pkg/datasources/functions_acceptance_test.go similarity index 96% rename from internal/datasources/functions_acceptance_test.go rename to pkg/datasources/functions_acceptance_test.go index 1c3438d614..23a6b698e5 100644 --- a/internal/datasources/functions_acceptance_test.go +++ b/pkg/datasources/functions_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/grants.go b/pkg/datasources/grants.go similarity index 98% rename from internal/datasources/grants.go rename to pkg/datasources/grants.go index 0e4e9447df..b673c4e392 100644 --- a/internal/datasources/grants.go +++ b/pkg/datasources/grants.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( "database/sql" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/grants_acceptance_test.go b/pkg/datasources/grants_acceptance_test.go similarity index 89% rename from internal/datasources/grants_acceptance_test.go rename to pkg/datasources/grants_acceptance_test.go index becda44638..8cdf0b1308 100644 --- a/internal/datasources/grants_acceptance_test.go +++ b/pkg/datasources/grants_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/helpers_test.go b/pkg/datasources/helpers_test.go similarity index 62% rename from internal/datasources/helpers_test.go rename to pkg/datasources/helpers_test.go index a4db77577a..476c98002a 100644 --- a/internal/datasources/helpers_test.go +++ b/pkg/datasources/helpers_test.go @@ -1,10 +1,7 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/masking_policies.go b/pkg/datasources/masking_policies.go similarity index 91% rename from internal/datasources/masking_policies.go rename to pkg/datasources/masking_policies.go index 65a05667a9..d561915e61 100644 --- a/internal/datasources/masking_policies.go +++ b/pkg/datasources/masking_policies.go @@ -1,14 +1,11 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( "context" "database/sql" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/masking_policies_acceptance_test.go b/pkg/datasources/masking_policies_acceptance_test.go similarity index 97% rename from internal/datasources/masking_policies_acceptance_test.go rename to pkg/datasources/masking_policies_acceptance_test.go index 4ed0d96cac..109c1cab2d 100644 --- a/internal/datasources/masking_policies_acceptance_test.go +++ b/pkg/datasources/masking_policies_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/materialized_views.go b/pkg/datasources/materialized_views.go similarity index 93% rename from internal/datasources/materialized_views.go rename to pkg/datasources/materialized_views.go index cc566c1d8f..9aa44f322a 100644 --- a/internal/datasources/materialized_views.go +++ b/pkg/datasources/materialized_views.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -9,7 +6,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/materialized_views_acceptance_test.go b/pkg/datasources/materialized_views_acceptance_test.go similarity index 97% rename from internal/datasources/materialized_views_acceptance_test.go rename to pkg/datasources/materialized_views_acceptance_test.go index e3aa55617a..7f3ebeb5f6 100644 --- a/internal/datasources/materialized_views_acceptance_test.go +++ b/pkg/datasources/materialized_views_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/parameters.go b/pkg/datasources/parameters.go similarity index 97% rename from internal/datasources/parameters.go rename to pkg/datasources/parameters.go index 0991ed04bf..56d13980dd 100644 --- a/internal/datasources/parameters.go +++ b/pkg/datasources/parameters.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -9,7 +6,7 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" diff --git a/internal/datasources/parameters_acceptance_test.go b/pkg/datasources/parameters_acceptance_test.go similarity index 97% rename from internal/datasources/parameters_acceptance_test.go rename to pkg/datasources/parameters_acceptance_test.go index 4f412f43b6..180e7b858f 100644 --- a/internal/datasources/parameters_acceptance_test.go +++ b/pkg/datasources/parameters_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/pipes.go b/pkg/datasources/pipes.go similarity index 94% rename from internal/datasources/pipes.go rename to pkg/datasources/pipes.go index 3d7fce23c3..6449916053 100644 --- a/internal/datasources/pipes.go +++ b/pkg/datasources/pipes.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -9,7 +6,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/pipes_acceptance_test.go b/pkg/datasources/pipes_acceptance_test.go similarity index 97% rename from internal/datasources/pipes_acceptance_test.go rename to pkg/datasources/pipes_acceptance_test.go index c524609a1b..763a26b492 100644 --- a/internal/datasources/pipes_acceptance_test.go +++ b/pkg/datasources/pipes_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/procedures.go b/pkg/datasources/procedures.go similarity index 95% rename from internal/datasources/procedures.go rename to pkg/datasources/procedures.go index 4f15c9315e..18939f725d 100644 --- a/internal/datasources/procedures.go +++ b/pkg/datasources/procedures.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -11,7 +8,7 @@ import ( "regexp" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/procedures_acceptance_test.go b/pkg/datasources/procedures_acceptance_test.go similarity index 97% rename from internal/datasources/procedures_acceptance_test.go rename to pkg/datasources/procedures_acceptance_test.go index d30f21d133..48d407f2d7 100644 --- a/internal/datasources/procedures_acceptance_test.go +++ b/pkg/datasources/procedures_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/resource_monitors.go b/pkg/datasources/resource_monitors.go similarity index 93% rename from internal/datasources/resource_monitors.go rename to pkg/datasources/resource_monitors.go index 935ea2297d..502a96cc1e 100644 --- a/internal/datasources/resource_monitors.go +++ b/pkg/datasources/resource_monitors.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -9,7 +6,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/resource_monitors_acceptance_test.go b/pkg/datasources/resource_monitors_acceptance_test.go similarity index 94% rename from internal/datasources/resource_monitors_acceptance_test.go rename to pkg/datasources/resource_monitors_acceptance_test.go index c7fb25a014..7788e6c41c 100644 --- a/internal/datasources/resource_monitors_acceptance_test.go +++ b/pkg/datasources/resource_monitors_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/role.go b/pkg/datasources/role.go similarity index 89% rename from internal/datasources/role.go rename to pkg/datasources/role.go index a091f6b067..6cf81c4271 100644 --- a/internal/datasources/role.go +++ b/pkg/datasources/role.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -8,7 +5,7 @@ import ( "errors" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/role_acceptance_test.go b/pkg/datasources/role_acceptance_test.go similarity index 94% rename from internal/datasources/role_acceptance_test.go rename to pkg/datasources/role_acceptance_test.go index a13d322e59..8c16c3537c 100644 --- a/internal/datasources/role_acceptance_test.go +++ b/pkg/datasources/role_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/roles.go b/pkg/datasources/roles.go similarity index 93% rename from internal/datasources/roles.go rename to pkg/datasources/roles.go index 888475e464..781bed6e73 100644 --- a/internal/datasources/roles.go +++ b/pkg/datasources/roles.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -8,7 +5,7 @@ import ( "errors" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/roles_acceptance_test.go b/pkg/datasources/roles_acceptance_test.go similarity index 96% rename from internal/datasources/roles_acceptance_test.go rename to pkg/datasources/roles_acceptance_test.go index 64408e95d7..9224ecd35c 100644 --- a/internal/datasources/roles_acceptance_test.go +++ b/pkg/datasources/roles_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/row_access_policies.go b/pkg/datasources/row_access_policies.go similarity index 94% rename from internal/datasources/row_access_policies.go rename to pkg/datasources/row_access_policies.go index a2703b6879..56d2b50f76 100644 --- a/internal/datasources/row_access_policies.go +++ b/pkg/datasources/row_access_policies.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -9,7 +6,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/row_access_policies_acceptance_test.go b/pkg/datasources/row_access_policies_acceptance_test.go similarity index 97% rename from internal/datasources/row_access_policies_acceptance_test.go rename to pkg/datasources/row_access_policies_acceptance_test.go index a7278611d7..fe1528bea8 100644 --- a/internal/datasources/row_access_policies_acceptance_test.go +++ b/pkg/datasources/row_access_policies_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/schemas.go b/pkg/datasources/schemas.go similarity index 92% rename from internal/datasources/schemas.go rename to pkg/datasources/schemas.go index 47a8333cfc..e67df2800e 100644 --- a/internal/datasources/schemas.go +++ b/pkg/datasources/schemas.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -8,7 +5,7 @@ import ( "database/sql" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/schemas_acceptance_test.go b/pkg/datasources/schemas_acceptance_test.go similarity index 95% rename from internal/datasources/schemas_acceptance_test.go rename to pkg/datasources/schemas_acceptance_test.go index dc658e2908..b7ec235907 100644 --- a/internal/datasources/schemas_acceptance_test.go +++ b/pkg/datasources/schemas_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/sequences.go b/pkg/datasources/sequences.go similarity index 93% rename from internal/datasources/sequences.go rename to pkg/datasources/sequences.go index df1ce9e716..9541fe7833 100644 --- a/internal/datasources/sequences.go +++ b/pkg/datasources/sequences.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -9,7 +6,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/sequences_acceptance_test.go b/pkg/datasources/sequences_acceptance_test.go similarity index 96% rename from internal/datasources/sequences_acceptance_test.go rename to pkg/datasources/sequences_acceptance_test.go index c9dd22eb57..9cf8414bfd 100644 --- a/internal/datasources/sequences_acceptance_test.go +++ b/pkg/datasources/sequences_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/shares.go b/pkg/datasources/shares.go similarity index 94% rename from internal/datasources/shares.go rename to pkg/datasources/shares.go index 129c325627..9227728ef7 100644 --- a/internal/datasources/shares.go +++ b/pkg/datasources/shares.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( "context" "database/sql" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/shares_acceptance_test.go b/pkg/datasources/shares_acceptance_test.go similarity index 96% rename from internal/datasources/shares_acceptance_test.go rename to pkg/datasources/shares_acceptance_test.go index 5c64ef8983..ce22541721 100644 --- a/internal/datasources/shares_acceptance_test.go +++ b/pkg/datasources/shares_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/stages.go b/pkg/datasources/stages.go similarity index 94% rename from internal/datasources/stages.go rename to pkg/datasources/stages.go index 14dc65bed3..249149e64d 100644 --- a/internal/datasources/stages.go +++ b/pkg/datasources/stages.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -9,7 +6,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/stages_acceptance_test.go b/pkg/datasources/stages_acceptance_test.go similarity index 96% rename from internal/datasources/stages_acceptance_test.go rename to pkg/datasources/stages_acceptance_test.go index a42650d3e8..0c5da94136 100644 --- a/internal/datasources/stages_acceptance_test.go +++ b/pkg/datasources/stages_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/storage_integrations.go b/pkg/datasources/storage_integrations.go similarity index 94% rename from internal/datasources/storage_integrations.go rename to pkg/datasources/storage_integrations.go index 7bb8eb4cbe..6b0e216554 100644 --- a/internal/datasources/storage_integrations.go +++ b/pkg/datasources/storage_integrations.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -9,7 +6,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/storage_integrations_acceptance_test.go b/pkg/datasources/storage_integrations_acceptance_test.go similarity index 94% rename from internal/datasources/storage_integrations_acceptance_test.go rename to pkg/datasources/storage_integrations_acceptance_test.go index f475b9dfd0..16dbe6b699 100644 --- a/internal/datasources/storage_integrations_acceptance_test.go +++ b/pkg/datasources/storage_integrations_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/streams.go b/pkg/datasources/streams.go similarity index 93% rename from internal/datasources/streams.go rename to pkg/datasources/streams.go index e2293f8bb4..cd355f8b72 100644 --- a/internal/datasources/streams.go +++ b/pkg/datasources/streams.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -9,7 +6,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/streams_acceptance_test.go b/pkg/datasources/streams_acceptance_test.go similarity index 97% rename from internal/datasources/streams_acceptance_test.go rename to pkg/datasources/streams_acceptance_test.go index eec9be77ae..c65f9ded28 100644 --- a/internal/datasources/streams_acceptance_test.go +++ b/pkg/datasources/streams_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/system_generate_scim_access_token.go b/pkg/datasources/system_generate_scim_access_token.go similarity index 91% rename from internal/datasources/system_generate_scim_access_token.go rename to pkg/datasources/system_generate_scim_access_token.go index d497feb676..391656d518 100644 --- a/internal/datasources/system_generate_scim_access_token.go +++ b/pkg/datasources/system_generate_scim_access_token.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -8,7 +5,7 @@ import ( "errors" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/system_generate_scim_access_token_acceptance_test.go b/pkg/datasources/system_generate_scim_access_token_acceptance_test.go similarity index 96% rename from internal/datasources/system_generate_scim_access_token_acceptance_test.go rename to pkg/datasources/system_generate_scim_access_token_acceptance_test.go index 143629f4c3..66ed30f9a0 100644 --- a/internal/datasources/system_generate_scim_access_token_acceptance_test.go +++ b/pkg/datasources/system_generate_scim_access_token_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/system_get_aws_sns_iam_policy.go b/pkg/datasources/system_get_aws_sns_iam_policy.go similarity index 90% rename from internal/datasources/system_get_aws_sns_iam_policy.go rename to pkg/datasources/system_get_aws_sns_iam_policy.go index 6415af2f95..ad3169a1b3 100644 --- a/internal/datasources/system_get_aws_sns_iam_policy.go +++ b/pkg/datasources/system_get_aws_sns_iam_policy.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -8,7 +5,7 @@ import ( "errors" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/system_get_aws_sns_iam_policy_acceptance_test.go b/pkg/datasources/system_get_aws_sns_iam_policy_acceptance_test.go similarity index 92% rename from internal/datasources/system_get_aws_sns_iam_policy_acceptance_test.go rename to pkg/datasources/system_get_aws_sns_iam_policy_acceptance_test.go index 18796f5db9..da0d774be9 100644 --- a/internal/datasources/system_get_aws_sns_iam_policy_acceptance_test.go +++ b/pkg/datasources/system_get_aws_sns_iam_policy_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/system_get_privatelink_config.go b/pkg/datasources/system_get_privatelink_config.go similarity index 96% rename from internal/datasources/system_get_privatelink_config.go rename to pkg/datasources/system_get_privatelink_config.go index f0e1b57040..e1afa99104 100644 --- a/internal/datasources/system_get_privatelink_config.go +++ b/pkg/datasources/system_get_privatelink_config.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -8,7 +5,7 @@ import ( "errors" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/system_get_privatelink_config_acceptance_test.go b/pkg/datasources/system_get_privatelink_config_acceptance_test.go similarity index 95% rename from internal/datasources/system_get_privatelink_config_acceptance_test.go rename to pkg/datasources/system_get_privatelink_config_acceptance_test.go index 3e46d15199..2193ab0bfd 100644 --- a/internal/datasources/system_get_privatelink_config_acceptance_test.go +++ b/pkg/datasources/system_get_privatelink_config_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/system_get_snowflake_platform_info.go b/pkg/datasources/system_get_snowflake_platform_info.go similarity index 94% rename from internal/datasources/system_get_snowflake_platform_info.go rename to pkg/datasources/system_get_snowflake_platform_info.go index 7db53a7363..e2185f4acc 100644 --- a/internal/datasources/system_get_snowflake_platform_info.go +++ b/pkg/datasources/system_get_snowflake_platform_info.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -9,7 +6,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/system_get_snowflake_platform_info_acceptance_test.go b/pkg/datasources/system_get_snowflake_platform_info_acceptance_test.go similarity index 92% rename from internal/datasources/system_get_snowflake_platform_info_acceptance_test.go rename to pkg/datasources/system_get_snowflake_platform_info_acceptance_test.go index c57a9bec9f..e15ae5d021 100644 --- a/internal/datasources/system_get_snowflake_platform_info_acceptance_test.go +++ b/pkg/datasources/system_get_snowflake_platform_info_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/tables.go b/pkg/datasources/tables.go similarity index 93% rename from internal/datasources/tables.go rename to pkg/datasources/tables.go index 15a544737f..44b9992dc4 100644 --- a/internal/datasources/tables.go +++ b/pkg/datasources/tables.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -9,7 +6,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/tables_acceptance_test.go b/pkg/datasources/tables_acceptance_test.go similarity index 97% rename from internal/datasources/tables_acceptance_test.go rename to pkg/datasources/tables_acceptance_test.go index 85b8cc3c57..62aa32daae 100644 --- a/internal/datasources/tables_acceptance_test.go +++ b/pkg/datasources/tables_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/tasks.go b/pkg/datasources/tasks.go similarity index 94% rename from internal/datasources/tasks.go rename to pkg/datasources/tasks.go index 7ec73812eb..1dc0f8d1c6 100644 --- a/internal/datasources/tasks.go +++ b/pkg/datasources/tasks.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -9,7 +6,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/tasks_acceptance_test.go b/pkg/datasources/tasks_acceptance_test.go similarity index 97% rename from internal/datasources/tasks_acceptance_test.go rename to pkg/datasources/tasks_acceptance_test.go index cc86896172..d4ada2ec70 100644 --- a/internal/datasources/tasks_acceptance_test.go +++ b/pkg/datasources/tasks_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/testdata/TestAcc_DynamicTables_complete/1/test.tf b/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/test.tf similarity index 100% rename from internal/datasources/testdata/TestAcc_DynamicTables_complete/1/test.tf rename to pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/test.tf diff --git a/internal/datasources/testdata/TestAcc_DynamicTables_complete/1/variables.tf b/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/variables.tf similarity index 100% rename from internal/datasources/testdata/TestAcc_DynamicTables_complete/1/variables.tf rename to pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/variables.tf diff --git a/internal/datasources/users.go b/pkg/datasources/users.go similarity index 94% rename from internal/datasources/users.go rename to pkg/datasources/users.go index 42953ac206..5dce0d2d37 100644 --- a/internal/datasources/users.go +++ b/pkg/datasources/users.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -10,9 +7,9 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/users_acceptance_test.go b/pkg/datasources/users_acceptance_test.go similarity index 95% rename from internal/datasources/users_acceptance_test.go rename to pkg/datasources/users_acceptance_test.go index a88d0c938c..53dc9c95c4 100644 --- a/internal/datasources/users_acceptance_test.go +++ b/pkg/datasources/users_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/views.go b/pkg/datasources/views.go similarity index 93% rename from internal/datasources/views.go rename to pkg/datasources/views.go index 58709e9d0a..035b67f0a2 100644 --- a/internal/datasources/views.go +++ b/pkg/datasources/views.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -9,7 +6,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/views_acceptance_test.go b/pkg/datasources/views_acceptance_test.go similarity index 96% rename from internal/datasources/views_acceptance_test.go rename to pkg/datasources/views_acceptance_test.go index 5270f90b2a..aa48e365a5 100644 --- a/internal/datasources/views_acceptance_test.go +++ b/pkg/datasources/views_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/datasources/warehouses.go b/pkg/datasources/warehouses.go similarity index 90% rename from internal/datasources/warehouses.go rename to pkg/datasources/warehouses.go index 17f4c5016d..96cb136106 100644 --- a/internal/datasources/warehouses.go +++ b/pkg/datasources/warehouses.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources import ( @@ -8,8 +5,8 @@ import ( "database/sql" "fmt" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/datasources/warehouses_acceptance_test.go b/pkg/datasources/warehouses_acceptance_test.go similarity index 94% rename from internal/datasources/warehouses_acceptance_test.go rename to pkg/datasources/warehouses_acceptance_test.go index d8f679aea7..c90c848a63 100644 --- a/internal/datasources/warehouses_acceptance_test.go +++ b/pkg/datasources/warehouses_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package datasources_test import ( diff --git a/internal/helpers/helpers.go b/pkg/helpers/helpers.go similarity index 97% rename from internal/helpers/helpers.go rename to pkg/helpers/helpers.go index 7c5764bab5..3ad4342fd1 100644 --- a/internal/helpers/helpers.go +++ b/pkg/helpers/helpers.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package helpers import ( @@ -13,7 +10,7 @@ import ( "strings" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" ) const ( diff --git a/internal/helpers/helpers_test.go b/pkg/helpers/helpers_test.go similarity index 97% rename from internal/helpers/helpers_test.go rename to pkg/helpers/helpers_test.go index 38c6e3264f..1eb536525b 100644 --- a/internal/helpers/helpers_test.go +++ b/pkg/helpers/helpers_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package helpers import ( diff --git a/internal/helpers/random.go b/pkg/helpers/random.go similarity index 87% rename from internal/helpers/random.go rename to pkg/helpers/random.go index 8abd2028c5..9a3dfde964 100644 --- a/internal/helpers/random.go +++ b/pkg/helpers/random.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package helpers import ( diff --git a/internal/provider/provider.go b/pkg/provider/provider.go similarity index 99% rename from internal/provider/provider.go rename to pkg/provider/provider.go index fe347fbdb5..226ff9c5d2 100644 --- a/internal/provider/provider.go +++ b/pkg/provider/provider.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package provider import ( @@ -13,9 +10,9 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/snowflakedb/gosnowflake" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/datasources" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/datasources" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" ) // Provider returns a Terraform Provider using configuration from https://pkg.go.dev/github.com/snowflakedb/gosnowflake#Config diff --git a/internal/provider/provider_helpers.go b/pkg/provider/provider_helpers.go similarity index 98% rename from internal/provider/provider_helpers.go rename to pkg/provider/provider_helpers.go index 6c21a3f7b1..480aa4c786 100644 --- a/internal/provider/provider_helpers.go +++ b/pkg/provider/provider_helpers.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package provider import ( diff --git a/internal/provider/provider_test.go b/pkg/provider/provider_test.go similarity index 82% rename from internal/provider/provider_test.go rename to pkg/provider/provider_test.go index 07ef53d5d3..b26db6fe85 100644 --- a/internal/provider/provider_test.go +++ b/pkg/provider/provider_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package provider import ( diff --git a/internal/resources/account.go b/pkg/resources/account.go similarity index 98% rename from internal/resources/account.go rename to pkg/resources/account.go index a8e7bfda1a..0a8401c3e9 100644 --- a/internal/resources/account.go +++ b/pkg/resources/account.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -10,9 +7,9 @@ import ( "strings" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - snowflakeValidation "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/validation" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + snowflakeValidation "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/validation" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/account_acceptance_test.go b/pkg/resources/account_acceptance_test.go similarity index 95% rename from internal/resources/account_acceptance_test.go rename to pkg/resources/account_acceptance_test.go index 8b3cae132f..78226248c2 100644 --- a/internal/resources/account_acceptance_test.go +++ b/pkg/resources/account_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/account_grant.go b/pkg/resources/account_grant.go similarity index 96% rename from internal/resources/account_grant.go rename to pkg/resources/account_grant.go index 4edbf350df..00cb2b6594 100644 --- a/internal/resources/account_grant.go +++ b/pkg/resources/account_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,8 +5,8 @@ import ( "errors" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/account_grant_acceptance_test.go b/pkg/resources/account_grant_acceptance_test.go similarity index 95% rename from internal/resources/account_grant_acceptance_test.go rename to pkg/resources/account_grant_acceptance_test.go index 129a09cb64..fe96044127 100644 --- a/internal/resources/account_grant_acceptance_test.go +++ b/pkg/resources/account_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/account_grant_test.go b/pkg/resources/account_grant_test.go similarity index 92% rename from internal/resources/account_grant_test.go rename to pkg/resources/account_grant_test.go index dd51cffbf5..097f48acfa 100644 --- a/internal/resources/account_grant_test.go +++ b/pkg/resources/account_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,9 +6,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/account_parameter.go b/pkg/resources/account_parameter.go similarity index 95% rename from internal/resources/account_parameter.go rename to pkg/resources/account_parameter.go index 24cf72825d..926aede8c9 100644 --- a/internal/resources/account_parameter.go +++ b/pkg/resources/account_parameter.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,7 +5,7 @@ import ( "database/sql" "fmt" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/account_parameter_acceptance_test.go b/pkg/resources/account_parameter_acceptance_test.go similarity index 93% rename from internal/resources/account_parameter_acceptance_test.go rename to pkg/resources/account_parameter_acceptance_test.go index 5437a8a059..61ef793c13 100644 --- a/internal/resources/account_parameter_acceptance_test.go +++ b/pkg/resources/account_parameter_acceptance_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( "fmt" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/account_password_policy_attachment.go b/pkg/resources/account_password_policy_attachment.go similarity index 92% rename from internal/resources/account_password_policy_attachment.go rename to pkg/resources/account_password_policy_attachment.go index e723d42de6..594790a59e 100644 --- a/internal/resources/account_password_policy_attachment.go +++ b/pkg/resources/account_password_policy_attachment.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,8 +5,8 @@ import ( "database/sql" "fmt" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/account_password_policy_attachment_acceptance_test.go b/pkg/resources/account_password_policy_attachment_acceptance_test.go similarity index 91% rename from internal/resources/account_password_policy_attachment_acceptance_test.go rename to pkg/resources/account_password_policy_attachment_acceptance_test.go index 07fb21dfce..6cc88eb0a9 100644 --- a/internal/resources/account_password_policy_attachment_acceptance_test.go +++ b/pkg/resources/account_password_policy_attachment_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/alert.go b/pkg/resources/alert.go similarity index 98% rename from internal/resources/alert.go rename to pkg/resources/alert.go index 7fab155a8d..bfc35ec317 100644 --- a/internal/resources/alert.go +++ b/pkg/resources/alert.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -12,8 +9,8 @@ import ( "strings" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/alert_acceptance_test.go b/pkg/resources/alert_acceptance_test.go similarity index 98% rename from internal/resources/alert_acceptance_test.go rename to pkg/resources/alert_acceptance_test.go index 8688de0a7f..f4e78eb593 100644 --- a/internal/resources/alert_acceptance_test.go +++ b/pkg/resources/alert_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -11,7 +8,7 @@ import ( "testing" "text/template" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/api_integration.go b/pkg/resources/api_integration.go similarity index 98% rename from internal/resources/api_integration.go rename to pkg/resources/api_integration.go index e12ecbdfdf..d582782268 100644 --- a/internal/resources/api_integration.go +++ b/pkg/resources/api_integration.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -9,7 +6,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/api_integration_acceptance_test.go b/pkg/resources/api_integration_acceptance_test.go similarity index 96% rename from internal/resources/api_integration_acceptance_test.go rename to pkg/resources/api_integration_acceptance_test.go index f2c91241d1..98d22c3820 100644 --- a/internal/resources/api_integration_acceptance_test.go +++ b/pkg/resources/api_integration_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/api_integration_test.go b/pkg/resources/api_integration_test.go similarity index 94% rename from internal/resources/api_integration_test.go rename to pkg/resources/api_integration_test.go index 94499fa6cb..b22c15c032 100644 --- a/internal/resources/api_integration_test.go +++ b/pkg/resources/api_integration_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,9 +5,9 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/database.go b/pkg/resources/database.go similarity index 98% rename from internal/resources/database.go rename to pkg/resources/database.go index df8f1e8a6b..2bc34856a8 100644 --- a/internal/resources/database.go +++ b/pkg/resources/database.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -11,7 +8,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "golang.org/x/exp/slices" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" ) var databaseSchema = map[string]*schema.Schema{ diff --git a/internal/resources/database_acceptance_test.go b/pkg/resources/database_acceptance_test.go similarity index 95% rename from internal/resources/database_acceptance_test.go rename to pkg/resources/database_acceptance_test.go index 7d6c0c798f..dd02e9f301 100644 --- a/internal/resources/database_acceptance_test.go +++ b/pkg/resources/database_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/database_grant.go b/pkg/resources/database_grant.go similarity index 96% rename from internal/resources/database_grant.go rename to pkg/resources/database_grant.go index 4160a439a8..06efe42b7f 100644 --- a/internal/resources/database_grant.go +++ b/pkg/resources/database_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,10 +5,10 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/database_grant_acceptance_test.go b/pkg/resources/database_grant_acceptance_test.go similarity index 96% rename from internal/resources/database_grant_acceptance_test.go rename to pkg/resources/database_grant_acceptance_test.go index e965cc9424..1bb7e9e040 100644 --- a/internal/resources/database_grant_acceptance_test.go +++ b/pkg/resources/database_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" diff --git a/internal/resources/database_grant_test.go b/pkg/resources/database_grant_test.go similarity index 91% rename from internal/resources/database_grant_test.go rename to pkg/resources/database_grant_test.go index e1dd441da6..4c46aeff9c 100644 --- a/internal/resources/database_grant_test.go +++ b/pkg/resources/database_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -13,9 +10,9 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" ) func TestDatabaseGrant(t *testing.T) { diff --git a/internal/resources/database_role.go b/pkg/resources/database_role.go similarity index 94% rename from internal/resources/database_role.go rename to pkg/resources/database_role.go index 2f24cf9dea..9867d98ef9 100644 --- a/internal/resources/database_role.go +++ b/pkg/resources/database_role.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -9,8 +6,8 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/database_role_acceptance_test.go b/pkg/resources/database_role_acceptance_test.go similarity index 91% rename from internal/resources/database_role_acceptance_test.go rename to pkg/resources/database_role_acceptance_test.go index ec2d144c25..071ef0f9b1 100644 --- a/internal/resources/database_role_acceptance_test.go +++ b/pkg/resources/database_role_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/dynamic_table.go b/pkg/resources/dynamic_table.go similarity index 97% rename from internal/resources/dynamic_table.go rename to pkg/resources/dynamic_table.go index 1fba1d277c..a52852102a 100644 --- a/internal/resources/dynamic_table.go +++ b/pkg/resources/dynamic_table.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -9,8 +6,8 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/dynamic_table_acceptance_test.go b/pkg/resources/dynamic_table_acceptance_test.go similarity index 95% rename from internal/resources/dynamic_table_acceptance_test.go rename to pkg/resources/dynamic_table_acceptance_test.go index badffda736..1e661c304e 100644 --- a/internal/resources/dynamic_table_acceptance_test.go +++ b/pkg/resources/dynamic_table_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -10,9 +7,9 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-testing/config" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" diff --git a/internal/resources/dynamic_table_test.go b/pkg/resources/dynamic_table_test.go similarity index 82% rename from internal/resources/dynamic_table_test.go rename to pkg/resources/dynamic_table_test.go index 7f82930872..f52bd8d3a3 100644 --- a/internal/resources/dynamic_table_test.go +++ b/pkg/resources/dynamic_table_test.go @@ -1,14 +1,11 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( "context" "fmt" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/email_notification_integration.go b/pkg/resources/email_notification_integration.go similarity index 96% rename from internal/resources/email_notification_integration.go rename to pkg/resources/email_notification_integration.go index 64134204d3..01dfc9ba5a 100644 --- a/internal/resources/email_notification_integration.go +++ b/pkg/resources/email_notification_integration.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -9,7 +6,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/email_notification_integration_acceptance_test.go b/pkg/resources/email_notification_integration_acceptance_test.go similarity index 91% rename from internal/resources/email_notification_integration_acceptance_test.go rename to pkg/resources/email_notification_integration_acceptance_test.go index 9470b791f1..45086b5b75 100644 --- a/internal/resources/email_notification_integration_acceptance_test.go +++ b/pkg/resources/email_notification_integration_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/external_function.go b/pkg/resources/external_function.go similarity index 99% rename from internal/resources/external_function.go rename to pkg/resources/external_function.go index 5071e1a0af..25fc3f4368 100644 --- a/internal/resources/external_function.go +++ b/pkg/resources/external_function.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -13,7 +10,7 @@ import ( "strconv" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/external_function_acceptance_test.go b/pkg/resources/external_function_acceptance_test.go similarity index 96% rename from internal/resources/external_function_acceptance_test.go rename to pkg/resources/external_function_acceptance_test.go index 923d0b2a43..d0c329d43f 100644 --- a/internal/resources/external_function_acceptance_test.go +++ b/pkg/resources/external_function_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/external_function_test.go b/pkg/resources/external_function_test.go similarity index 96% rename from internal/resources/external_function_test.go rename to pkg/resources/external_function_test.go index 1ffff1ab8f..c4971704d2 100644 --- a/internal/resources/external_function_test.go +++ b/pkg/resources/external_function_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,9 +5,9 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/external_oauth_integration.go b/pkg/resources/external_oauth_integration.go similarity index 99% rename from internal/resources/external_oauth_integration.go rename to pkg/resources/external_oauth_integration.go index 2af2bc25cc..8df3c5c993 100644 --- a/internal/resources/external_oauth_integration.go +++ b/pkg/resources/external_oauth_integration.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,7 +5,7 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/external_oauth_integration_acceptance_test.go b/pkg/resources/external_oauth_integration_acceptance_test.go similarity index 98% rename from internal/resources/external_oauth_integration_acceptance_test.go rename to pkg/resources/external_oauth_integration_acceptance_test.go index fa74a0efd4..836962ab86 100644 --- a/internal/resources/external_oauth_integration_acceptance_test.go +++ b/pkg/resources/external_oauth_integration_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/google/uuid" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" diff --git a/internal/resources/external_stage_acceptance_test.go b/pkg/resources/external_stage_acceptance_test.go similarity index 89% rename from internal/resources/external_stage_acceptance_test.go rename to pkg/resources/external_stage_acceptance_test.go index db900349b0..64f8fbb0c8 100644 --- a/internal/resources/external_stage_acceptance_test.go +++ b/pkg/resources/external_stage_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/external_table.go b/pkg/resources/external_table.go similarity index 98% rename from internal/resources/external_table.go rename to pkg/resources/external_table.go index 3e87ade49f..b236a0c4cf 100644 --- a/internal/resources/external_table.go +++ b/pkg/resources/external_table.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -11,7 +8,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/external_table_acceptance_test.go b/pkg/resources/external_table_acceptance_test.go similarity index 94% rename from internal/resources/external_table_acceptance_test.go rename to pkg/resources/external_table_acceptance_test.go index dc2a4a9167..d6ea4367db 100644 --- a/internal/resources/external_table_acceptance_test.go +++ b/pkg/resources/external_table_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/external_table_grant.go b/pkg/resources/external_table_grant.go similarity index 97% rename from internal/resources/external_table_grant.go rename to pkg/resources/external_table_grant.go index b97926f51f..6179b2e0a7 100644 --- a/internal/resources/external_table_grant.go +++ b/pkg/resources/external_table_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,10 +5,10 @@ import ( "errors" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/external_table_grant_acceptance_test.go b/pkg/resources/external_table_grant_acceptance_test.go similarity index 96% rename from internal/resources/external_table_grant_acceptance_test.go rename to pkg/resources/external_table_grant_acceptance_test.go index 835fa133b2..58a7db59a9 100644 --- a/internal/resources/external_table_grant_acceptance_test.go +++ b/pkg/resources/external_table_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/external_table_grant_test.go b/pkg/resources/external_table_grant_test.go similarity index 95% rename from internal/resources/external_table_grant_test.go rename to pkg/resources/external_table_grant_test.go index f91f6a2ae7..b88687212f 100644 --- a/internal/resources/external_table_grant_test.go +++ b/pkg/resources/external_table_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,9 +6,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/external_table_test.go b/pkg/resources/external_table_test.go similarity index 90% rename from internal/resources/external_table_test.go rename to pkg/resources/external_table_test.go index f2179bbfd8..0cad818fc6 100644 --- a/internal/resources/external_table_test.go +++ b/pkg/resources/external_table_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,9 +5,9 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/failover_group.go b/pkg/resources/failover_group.go similarity index 99% rename from internal/resources/failover_group.go rename to pkg/resources/failover_group.go index bac9da939b..9eff4f25eb 100644 --- a/internal/resources/failover_group.go +++ b/pkg/resources/failover_group.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -15,7 +12,7 @@ import ( "golang.org/x/exp/slices" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" ) var failoverGroupSchema = map[string]*schema.Schema{ diff --git a/internal/resources/failover_group_acceptance_test.go b/pkg/resources/failover_group_acceptance_test.go similarity index 98% rename from internal/resources/failover_group_acceptance_test.go rename to pkg/resources/failover_group_acceptance_test.go index 16a62ce42e..ee77f72b90 100644 --- a/internal/resources/failover_group_acceptance_test.go +++ b/pkg/resources/failover_group_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/failover_group_grant.go b/pkg/resources/failover_group_grant.go similarity index 95% rename from internal/resources/failover_group_grant.go rename to pkg/resources/failover_group_grant.go index 405df23daf..3bc267a700 100644 --- a/internal/resources/failover_group_grant.go +++ b/pkg/resources/failover_group_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,10 +5,10 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/failover_group_grant_acceptance_test.go b/pkg/resources/failover_group_grant_acceptance_test.go similarity index 93% rename from internal/resources/failover_group_grant_acceptance_test.go rename to pkg/resources/failover_group_grant_acceptance_test.go index a17f8864b2..07049a88e8 100644 --- a/internal/resources/failover_group_grant_acceptance_test.go +++ b/pkg/resources/failover_group_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/file_format.go b/pkg/resources/file_format.go similarity index 99% rename from internal/resources/file_format.go rename to pkg/resources/file_format.go index 7c67b24889..9caab6e0d1 100644 --- a/internal/resources/file_format.go +++ b/pkg/resources/file_format.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -14,7 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" ) const ( diff --git a/internal/resources/file_format_acceptance_test.go b/pkg/resources/file_format_acceptance_test.go similarity index 99% rename from internal/resources/file_format_acceptance_test.go rename to pkg/resources/file_format_acceptance_test.go index 84a02cb491..0df26e29d2 100644 --- a/internal/resources/file_format_acceptance_test.go +++ b/pkg/resources/file_format_acceptance_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( "fmt" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/file_format_grant.go b/pkg/resources/file_format_grant.go similarity index 97% rename from internal/resources/file_format_grant.go rename to pkg/resources/file_format_grant.go index 6f93c973ee..46564f878f 100644 --- a/internal/resources/file_format_grant.go +++ b/pkg/resources/file_format_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -9,10 +6,10 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/file_format_grant_acceptance_test.go b/pkg/resources/file_format_grant_acceptance_test.go similarity index 97% rename from internal/resources/file_format_grant_acceptance_test.go rename to pkg/resources/file_format_grant_acceptance_test.go index 979d3a82e5..ff5c37c287 100644 --- a/internal/resources/file_format_grant_acceptance_test.go +++ b/pkg/resources/file_format_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/file_format_grant_test.go b/pkg/resources/file_format_grant_test.go similarity index 94% rename from internal/resources/file_format_grant_test.go rename to pkg/resources/file_format_grant_test.go index 6341d2d73a..adaada00c5 100644 --- a/internal/resources/file_format_grant_test.go +++ b/pkg/resources/file_format_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,9 +6,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/function.go b/pkg/resources/function.go similarity index 99% rename from internal/resources/function.go rename to pkg/resources/function.go index b4f328e197..fd8367cd13 100644 --- a/internal/resources/function.go +++ b/pkg/resources/function.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -11,7 +8,7 @@ import ( "regexp" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/function_acceptance_test.go b/pkg/resources/function_acceptance_test.go similarity index 97% rename from internal/resources/function_acceptance_test.go rename to pkg/resources/function_acceptance_test.go index 7bf2dc2430..cb09a086c1 100644 --- a/internal/resources/function_acceptance_test.go +++ b/pkg/resources/function_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/function_grant.go b/pkg/resources/function_grant.go similarity index 97% rename from internal/resources/function_grant.go rename to pkg/resources/function_grant.go index 87e390dfe6..ee661e486a 100644 --- a/internal/resources/function_grant.go +++ b/pkg/resources/function_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,10 +5,10 @@ import ( "errors" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/function_grant_acceptance_test.go b/pkg/resources/function_grant_acceptance_test.go similarity index 96% rename from internal/resources/function_grant_acceptance_test.go rename to pkg/resources/function_grant_acceptance_test.go index 508b9e52a7..0102b99cca 100644 --- a/internal/resources/function_grant_acceptance_test.go +++ b/pkg/resources/function_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/function_test.go b/pkg/resources/function_test.go similarity index 94% rename from internal/resources/function_test.go rename to pkg/resources/function_test.go index f16473428f..9779c0a603 100644 --- a/internal/resources/function_test.go +++ b/pkg/resources/function_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,11 +5,11 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/grant_helpers.go b/pkg/resources/grant_helpers.go similarity index 98% rename from internal/resources/grant_helpers.go rename to pkg/resources/grant_helpers.go index 94c65fcd4d..dcaa284cb5 100644 --- a/internal/resources/grant_helpers.go +++ b/pkg/resources/grant_helpers.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -9,7 +6,7 @@ import ( "strings" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/jmoiron/sqlx" "github.com/snowflakedb/gosnowflake" diff --git a/internal/resources/grant_privileges_to_role.go b/pkg/resources/grant_privileges_to_role.go similarity index 99% rename from internal/resources/grant_privileges_to_role.go rename to pkg/resources/grant_privileges_to_role.go index 913790d971..c185219dea 100644 --- a/internal/resources/grant_privileges_to_role.go +++ b/pkg/resources/grant_privileges_to_role.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -10,8 +7,8 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" "golang.org/x/exp/slices" diff --git a/internal/resources/grant_privileges_to_role_acceptance_test.go b/pkg/resources/grant_privileges_to_role_acceptance_test.go similarity index 99% rename from internal/resources/grant_privileges_to_role_acceptance_test.go rename to pkg/resources/grant_privileges_to_role_acceptance_test.go index 039a39c6fd..52e5cd0512 100644 --- a/internal/resources/grant_privileges_to_role_acceptance_test.go +++ b/pkg/resources/grant_privileges_to_role_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/helper_expansion.go b/pkg/resources/helper_expansion.go similarity index 97% rename from internal/resources/helper_expansion.go rename to pkg/resources/helper_expansion.go index bdabefde39..578b81a8c9 100644 --- a/internal/resources/helper_expansion.go +++ b/pkg/resources/helper_expansion.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import "golang.org/x/exp/slices" diff --git a/internal/resources/helper_expansion_internal_test.go b/pkg/resources/helper_expansion_internal_test.go similarity index 88% rename from internal/resources/helper_expansion_internal_test.go rename to pkg/resources/helper_expansion_internal_test.go index eb5941c123..d67c04abb7 100644 --- a/internal/resources/helper_expansion_internal_test.go +++ b/pkg/resources/helper_expansion_internal_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( diff --git a/internal/resources/helpers.go b/pkg/resources/helpers.go similarity index 94% rename from internal/resources/helpers.go rename to pkg/resources/helpers.go index 9aeb45e033..9691ae7106 100644 --- a/internal/resources/helpers.go +++ b/pkg/resources/helpers.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/helpers_test.go b/pkg/resources/helpers_test.go similarity index 98% rename from internal/resources/helpers_test.go rename to pkg/resources/helpers_test.go index 2b4472f42f..78c07827b6 100644 --- a/internal/resources/helpers_test.go +++ b/pkg/resources/helpers_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -11,7 +8,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" ) // todo: remove the rest of these which are not used. also this file should be renamed for clarity to make it clear it is for testing only diff --git a/internal/resources/integration_grant.go b/pkg/resources/integration_grant.go similarity index 95% rename from internal/resources/integration_grant.go rename to pkg/resources/integration_grant.go index 5c143fb543..1daac92b0f 100644 --- a/internal/resources/integration_grant.go +++ b/pkg/resources/integration_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,10 +5,10 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/integration_grant_test.go b/pkg/resources/integration_grant_test.go similarity index 88% rename from internal/resources/integration_grant_test.go rename to pkg/resources/integration_grant_test.go index 0dbd8b189d..d09b96d716 100644 --- a/internal/resources/integration_grant_test.go +++ b/pkg/resources/integration_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -13,9 +10,9 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" ) func TestIntegrationGrant(t *testing.T) { diff --git a/internal/resources/internal_stage_acceptance_test.go b/pkg/resources/internal_stage_acceptance_test.go similarity index 89% rename from internal/resources/internal_stage_acceptance_test.go rename to pkg/resources/internal_stage_acceptance_test.go index a1570a2563..fccea3832a 100644 --- a/internal/resources/internal_stage_acceptance_test.go +++ b/pkg/resources/internal_stage_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/managed_account.go b/pkg/resources/managed_account.go similarity index 96% rename from internal/resources/managed_account.go rename to pkg/resources/managed_account.go index ddd4ce84ab..294bbdf547 100644 --- a/internal/resources/managed_account.go +++ b/pkg/resources/managed_account.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -10,8 +7,8 @@ import ( "log" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" - snowflakeValidation "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/validation" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + snowflakeValidation "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/validation" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/managed_account_acceptance_test.go b/pkg/resources/managed_account_acceptance_test.go similarity index 93% rename from internal/resources/managed_account_acceptance_test.go rename to pkg/resources/managed_account_acceptance_test.go index 7d9655c16c..4dcb193a8c 100644 --- a/internal/resources/managed_account_acceptance_test.go +++ b/pkg/resources/managed_account_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/managed_account_test.go b/pkg/resources/managed_account_test.go similarity index 83% rename from internal/resources/managed_account_test.go rename to pkg/resources/managed_account_test.go index 12f81b22b3..b888c964cb 100644 --- a/internal/resources/managed_account_test.go +++ b/pkg/resources/managed_account_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -11,10 +8,10 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" ) func TestManagedAccount(t *testing.T) { diff --git a/internal/resources/masking_policy.go b/pkg/resources/masking_policy.go similarity index 97% rename from internal/resources/masking_policy.go rename to pkg/resources/masking_policy.go index 6f4d2a866c..b55d230d7e 100644 --- a/internal/resources/masking_policy.go +++ b/pkg/resources/masking_policy.go @@ -1,14 +1,11 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( "context" "database/sql" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/masking_policy_acceptance_test.go b/pkg/resources/masking_policy_acceptance_test.go similarity index 96% rename from internal/resources/masking_policy_acceptance_test.go rename to pkg/resources/masking_policy_acceptance_test.go index 8d9cc31557..dab09f717d 100644 --- a/internal/resources/masking_policy_acceptance_test.go +++ b/pkg/resources/masking_policy_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/masking_policy_grant.go b/pkg/resources/masking_policy_grant.go similarity index 96% rename from internal/resources/masking_policy_grant.go rename to pkg/resources/masking_policy_grant.go index c25539f4da..0cf4a99817 100644 --- a/internal/resources/masking_policy_grant.go +++ b/pkg/resources/masking_policy_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,10 +5,10 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/masking_policy_grant_acceptance_test.go b/pkg/resources/masking_policy_grant_acceptance_test.go similarity index 95% rename from internal/resources/masking_policy_grant_acceptance_test.go rename to pkg/resources/masking_policy_grant_acceptance_test.go index 845a286e44..fc435e2555 100644 --- a/internal/resources/masking_policy_grant_acceptance_test.go +++ b/pkg/resources/masking_policy_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/masking_policy_grant_test.go b/pkg/resources/masking_policy_grant_test.go similarity index 89% rename from internal/resources/masking_policy_grant_test.go rename to pkg/resources/masking_policy_grant_test.go index 6432c0a095..2b912380a9 100644 --- a/internal/resources/masking_policy_grant_test.go +++ b/pkg/resources/masking_policy_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,9 +6,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/materialized_view.go b/pkg/resources/materialized_view.go similarity index 98% rename from internal/resources/materialized_view.go rename to pkg/resources/materialized_view.go index f80f6e6159..4710693e3c 100644 --- a/internal/resources/materialized_view.go +++ b/pkg/resources/materialized_view.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -12,7 +9,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/materialized_view_acceptance_test.go b/pkg/resources/materialized_view_acceptance_test.go similarity index 96% rename from internal/resources/materialized_view_acceptance_test.go rename to pkg/resources/materialized_view_acceptance_test.go index c5902de1e6..e6a0176075 100644 --- a/internal/resources/materialized_view_acceptance_test.go +++ b/pkg/resources/materialized_view_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/materialized_view_grant.go b/pkg/resources/materialized_view_grant.go similarity index 97% rename from internal/resources/materialized_view_grant.go rename to pkg/resources/materialized_view_grant.go index bd0ab04cef..09860819fa 100644 --- a/internal/resources/materialized_view_grant.go +++ b/pkg/resources/materialized_view_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,10 +5,10 @@ import ( "errors" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/materialized_view_grant_acceptance_test.go b/pkg/resources/materialized_view_grant_acceptance_test.go similarity index 96% rename from internal/resources/materialized_view_grant_acceptance_test.go rename to pkg/resources/materialized_view_grant_acceptance_test.go index cda761fbad..f3047710a5 100644 --- a/internal/resources/materialized_view_grant_acceptance_test.go +++ b/pkg/resources/materialized_view_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/materialized_view_grant_test.go b/pkg/resources/materialized_view_grant_test.go similarity index 96% rename from internal/resources/materialized_view_grant_test.go rename to pkg/resources/materialized_view_grant_test.go index 441abbe3b8..b49e7d10b2 100644 --- a/internal/resources/materialized_view_grant_test.go +++ b/pkg/resources/materialized_view_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,9 +6,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/materialized_view_test.go b/pkg/resources/materialized_view_test.go similarity index 92% rename from internal/resources/materialized_view_test.go rename to pkg/resources/materialized_view_test.go index 4c292d44a5..99b261ecfe 100644 --- a/internal/resources/materialized_view_test.go +++ b/pkg/resources/materialized_view_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,10 +5,10 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/network_policy.go b/pkg/resources/network_policy.go similarity index 98% rename from internal/resources/network_policy.go rename to pkg/resources/network_policy.go index 4766f4420c..5179c32df5 100644 --- a/internal/resources/network_policy.go +++ b/pkg/resources/network_policy.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -10,7 +7,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/network_policy_acceptance_test.go b/pkg/resources/network_policy_acceptance_test.go similarity index 94% rename from internal/resources/network_policy_acceptance_test.go rename to pkg/resources/network_policy_acceptance_test.go index 4258a9d1b5..90bb69723e 100644 --- a/internal/resources/network_policy_acceptance_test.go +++ b/pkg/resources/network_policy_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/network_policy_attachment.go b/pkg/resources/network_policy_attachment.go similarity index 98% rename from internal/resources/network_policy_attachment.go rename to pkg/resources/network_policy_attachment.go index 037703fa80..ecce6eaf06 100644 --- a/internal/resources/network_policy_attachment.go +++ b/pkg/resources/network_policy_attachment.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -10,7 +7,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/network_policy_attachment_acceptance_test.go b/pkg/resources/network_policy_attachment_acceptance_test.go similarity index 95% rename from internal/resources/network_policy_attachment_acceptance_test.go rename to pkg/resources/network_policy_attachment_acceptance_test.go index 782b93771d..995981864f 100644 --- a/internal/resources/network_policy_attachment_acceptance_test.go +++ b/pkg/resources/network_policy_attachment_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/network_policy_attachment_test.go b/pkg/resources/network_policy_attachment_test.go similarity index 89% rename from internal/resources/network_policy_attachment_test.go rename to pkg/resources/network_policy_attachment_test.go index 99e5bffc13..ff9af671ff 100644 --- a/internal/resources/network_policy_attachment_test.go +++ b/pkg/resources/network_policy_attachment_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,9 +5,9 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/notification_integration.go b/pkg/resources/notification_integration.go similarity index 98% rename from internal/resources/notification_integration.go rename to pkg/resources/notification_integration.go index 0b1ea984fe..ee3e007020 100644 --- a/internal/resources/notification_integration.go +++ b/pkg/resources/notification_integration.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -9,7 +6,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/notification_integration_acceptance_test.go b/pkg/resources/notification_integration_acceptance_test.go similarity index 97% rename from internal/resources/notification_integration_acceptance_test.go rename to pkg/resources/notification_integration_acceptance_test.go index db6b174c56..c9b0d38fce 100644 --- a/internal/resources/notification_integration_acceptance_test.go +++ b/pkg/resources/notification_integration_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/notification_integration_test.go b/pkg/resources/notification_integration_test.go similarity index 96% rename from internal/resources/notification_integration_test.go rename to pkg/resources/notification_integration_test.go index 54f390e288..846a86cbbe 100644 --- a/internal/resources/notification_integration_test.go +++ b/pkg/resources/notification_integration_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,9 +5,9 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/oauth_integration.go b/pkg/resources/oauth_integration.go similarity index 98% rename from internal/resources/oauth_integration.go rename to pkg/resources/oauth_integration.go index f3e33e2b46..0202d63a16 100644 --- a/internal/resources/oauth_integration.go +++ b/pkg/resources/oauth_integration.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -10,7 +7,7 @@ import ( "strconv" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/oauth_integration_acceptance_test.go b/pkg/resources/oauth_integration_acceptance_test.go similarity index 96% rename from internal/resources/oauth_integration_acceptance_test.go rename to pkg/resources/oauth_integration_acceptance_test.go index 89b1594289..9b8bbbc5dd 100644 --- a/internal/resources/oauth_integration_acceptance_test.go +++ b/pkg/resources/oauth_integration_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/oauth_integration_test.go b/pkg/resources/oauth_integration_test.go similarity index 89% rename from internal/resources/oauth_integration_test.go rename to pkg/resources/oauth_integration_test.go index 85c2d248e7..474d950182 100644 --- a/internal/resources/oauth_integration_test.go +++ b/pkg/resources/oauth_integration_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,9 +5,9 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/object_parameter.go b/pkg/resources/object_parameter.go similarity index 97% rename from internal/resources/object_parameter.go rename to pkg/resources/object_parameter.go index 3bc8c5c590..d231dfaec4 100644 --- a/internal/resources/object_parameter.go +++ b/pkg/resources/object_parameter.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -9,8 +6,8 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - snowflakeValidation "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/validation" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + snowflakeValidation "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/validation" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/object_parameter_acceptance_test.go b/pkg/resources/object_parameter_acceptance_test.go similarity index 92% rename from internal/resources/object_parameter_acceptance_test.go rename to pkg/resources/object_parameter_acceptance_test.go index b65423b1cd..75060270d4 100644 --- a/internal/resources/object_parameter_acceptance_test.go +++ b/pkg/resources/object_parameter_acceptance_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( "fmt" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/password_policy.go b/pkg/resources/password_policy.go similarity index 98% rename from internal/resources/password_policy.go rename to pkg/resources/password_policy.go index 00a9fd48c4..465d681de2 100644 --- a/internal/resources/password_policy.go +++ b/pkg/resources/password_policy.go @@ -1,14 +1,11 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( "context" "database/sql" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/password_policy_acceptance_test.go b/pkg/resources/password_policy_acceptance_test.go similarity index 96% rename from internal/resources/password_policy_acceptance_test.go rename to pkg/resources/password_policy_acceptance_test.go index d38610ec5a..4b98264c9a 100644 --- a/internal/resources/password_policy_acceptance_test.go +++ b/pkg/resources/password_policy_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/pipe.go b/pkg/resources/pipe.go similarity index 97% rename from internal/resources/pipe.go rename to pkg/resources/pipe.go index 28e83838d4..d47ea05736 100644 --- a/internal/resources/pipe.go +++ b/pkg/resources/pipe.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -10,8 +7,8 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/pipe_acceptance_test.go b/pkg/resources/pipe_acceptance_test.go similarity index 93% rename from internal/resources/pipe_acceptance_test.go rename to pkg/resources/pipe_acceptance_test.go index d135739027..2de7527fc6 100644 --- a/internal/resources/pipe_acceptance_test.go +++ b/pkg/resources/pipe_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/pipe_grant.go b/pkg/resources/pipe_grant.go similarity index 96% rename from internal/resources/pipe_grant.go rename to pkg/resources/pipe_grant.go index 8e93e7c1fb..21c864f2ce 100644 --- a/internal/resources/pipe_grant.go +++ b/pkg/resources/pipe_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -9,10 +6,10 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/pipe_grant_acceptance_test.go b/pkg/resources/pipe_grant_acceptance_test.go similarity index 97% rename from internal/resources/pipe_grant_acceptance_test.go rename to pkg/resources/pipe_grant_acceptance_test.go index 8c53d3d93f..374751147a 100644 --- a/internal/resources/pipe_grant_acceptance_test.go +++ b/pkg/resources/pipe_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/pipe_grant_test.go b/pkg/resources/pipe_grant_test.go similarity index 94% rename from internal/resources/pipe_grant_test.go rename to pkg/resources/pipe_grant_test.go index e23d8c9ac8..b58a07e831 100644 --- a/internal/resources/pipe_grant_test.go +++ b/pkg/resources/pipe_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,9 +6,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/pipe_internal_test.go b/pkg/resources/pipe_internal_test.go similarity index 98% rename from internal/resources/pipe_internal_test.go rename to pkg/resources/pipe_internal_test.go index d33d818cab..246181496f 100644 --- a/internal/resources/pipe_internal_test.go +++ b/pkg/resources/pipe_internal_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( diff --git a/internal/resources/privileges.go b/pkg/resources/privileges.go similarity index 98% rename from internal/resources/privileges.go rename to pkg/resources/privileges.go index 82f49e4103..8a989b0a77 100644 --- a/internal/resources/privileges.go +++ b/pkg/resources/privileges.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources type Privilege string diff --git a/internal/resources/procedure.go b/pkg/resources/procedure.go similarity index 99% rename from internal/resources/procedure.go rename to pkg/resources/procedure.go index c9ed155dd9..d709b73bd3 100644 --- a/internal/resources/procedure.go +++ b/pkg/resources/procedure.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -10,7 +7,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" diff --git a/internal/resources/procedure_acceptance_test.go b/pkg/resources/procedure_acceptance_test.go similarity index 96% rename from internal/resources/procedure_acceptance_test.go rename to pkg/resources/procedure_acceptance_test.go index 797dc40a99..1ccddc0dd5 100644 --- a/internal/resources/procedure_acceptance_test.go +++ b/pkg/resources/procedure_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/procedure_grant.go b/pkg/resources/procedure_grant.go similarity index 97% rename from internal/resources/procedure_grant.go rename to pkg/resources/procedure_grant.go index e52ff6e837..1e4a9e7b85 100644 --- a/internal/resources/procedure_grant.go +++ b/pkg/resources/procedure_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,10 +5,10 @@ import ( "errors" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/procedure_grant_acceptance_test.go b/pkg/resources/procedure_grant_acceptance_test.go similarity index 95% rename from internal/resources/procedure_grant_acceptance_test.go rename to pkg/resources/procedure_grant_acceptance_test.go index d25ff6ffe5..7e40364718 100644 --- a/internal/resources/procedure_grant_acceptance_test.go +++ b/pkg/resources/procedure_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/procedure_test.go b/pkg/resources/procedure_test.go similarity index 93% rename from internal/resources/procedure_test.go rename to pkg/resources/procedure_test.go index 748ed1c9e0..99aa681ca7 100644 --- a/internal/resources/procedure_test.go +++ b/pkg/resources/procedure_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,11 +5,11 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/resource.go b/pkg/resources/resource.go similarity index 96% rename from internal/resources/resource.go rename to pkg/resources/resource.go index ae4861365e..187baf0890 100644 --- a/internal/resources/resource.go +++ b/pkg/resources/resource.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,7 +5,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/resource_monitor.go b/pkg/resources/resource_monitor.go similarity index 98% rename from internal/resources/resource_monitor.go rename to pkg/resources/resource_monitor.go index a9c4eaab63..4d778e2c6a 100644 --- a/internal/resources/resource_monitor.go +++ b/pkg/resources/resource_monitor.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,8 +5,8 @@ import ( "database/sql" "fmt" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/resource_monitor_acceptance_test.go b/pkg/resources/resource_monitor_acceptance_test.go similarity index 96% rename from internal/resources/resource_monitor_acceptance_test.go rename to pkg/resources/resource_monitor_acceptance_test.go index c781453897..17a5f7b052 100644 --- a/internal/resources/resource_monitor_acceptance_test.go +++ b/pkg/resources/resource_monitor_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -10,7 +7,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/resource_monitor_grant.go b/pkg/resources/resource_monitor_grant.go similarity index 96% rename from internal/resources/resource_monitor_grant.go rename to pkg/resources/resource_monitor_grant.go index cdbc26627b..93c6b176d8 100644 --- a/internal/resources/resource_monitor_grant.go +++ b/pkg/resources/resource_monitor_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,8 +5,8 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/resource_monitor_grant_acceptance_test.go b/pkg/resources/resource_monitor_grant_acceptance_test.go similarity index 91% rename from internal/resources/resource_monitor_grant_acceptance_test.go rename to pkg/resources/resource_monitor_grant_acceptance_test.go index c443840766..f084f95f65 100644 --- a/internal/resources/resource_monitor_grant_acceptance_test.go +++ b/pkg/resources/resource_monitor_grant_acceptance_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( "fmt" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/resource_monitor_grant_test.go b/pkg/resources/resource_monitor_grant_test.go similarity index 88% rename from internal/resources/resource_monitor_grant_test.go rename to pkg/resources/resource_monitor_grant_test.go index ff9c5476e2..58dbe29acd 100644 --- a/internal/resources/resource_monitor_grant_test.go +++ b/pkg/resources/resource_monitor_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -13,9 +10,9 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" ) func TestResourceMonitorGrant(t *testing.T) { diff --git a/internal/resources/role.go b/pkg/resources/role.go similarity index 93% rename from internal/resources/role.go rename to pkg/resources/role.go index 9b8aabde41..60268121d2 100644 --- a/internal/resources/role.go +++ b/pkg/resources/role.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,9 +5,9 @@ import ( "errors" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/role_acceptance_test.go b/pkg/resources/role_acceptance_test.go similarity index 92% rename from internal/resources/role_acceptance_test.go rename to pkg/resources/role_acceptance_test.go index cb1164a8fc..093e984198 100644 --- a/internal/resources/role_acceptance_test.go +++ b/pkg/resources/role_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/role_grants.go b/pkg/resources/role_grants.go similarity index 96% rename from internal/resources/role_grants.go rename to pkg/resources/role_grants.go index 13111b9825..c626e62bcc 100644 --- a/internal/resources/role_grants.go +++ b/pkg/resources/role_grants.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -11,10 +8,10 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/jmoiron/sqlx" "github.com/snowflakedb/gosnowflake" diff --git a/internal/resources/role_grants_acceptance_test.go b/pkg/resources/role_grants_acceptance_test.go similarity index 97% rename from internal/resources/role_grants_acceptance_test.go rename to pkg/resources/role_grants_acceptance_test.go index 970afee52f..8bb7f0f403 100644 --- a/internal/resources/role_grants_acceptance_test.go +++ b/pkg/resources/role_grants_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -12,7 +9,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" diff --git a/internal/resources/role_grants_internal_test.go b/pkg/resources/role_grants_internal_test.go similarity index 92% rename from internal/resources/role_grants_internal_test.go rename to pkg/resources/role_grants_internal_test.go index 168ebab573..9aa3d2ab7c 100644 --- a/internal/resources/role_grants_internal_test.go +++ b/pkg/resources/role_grants_internal_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,7 +5,7 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/role_grants_test.go b/pkg/resources/role_grants_test.go similarity index 93% rename from internal/resources/role_grants_test.go rename to pkg/resources/role_grants_test.go index 4e72ba23f0..36859b04d2 100644 --- a/internal/resources/role_grants_test.go +++ b/pkg/resources/role_grants_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,9 +5,9 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/role_ownership_grant.go b/pkg/resources/role_ownership_grant.go similarity index 95% rename from internal/resources/role_ownership_grant.go rename to pkg/resources/role_ownership_grant.go index 66a8fa401f..a6930df20d 100644 --- a/internal/resources/role_ownership_grant.go +++ b/pkg/resources/role_ownership_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -10,9 +7,9 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/role_ownership_grant_acceptance_test.go b/pkg/resources/role_ownership_grant_acceptance_test.go similarity index 91% rename from internal/resources/role_ownership_grant_acceptance_test.go rename to pkg/resources/role_ownership_grant_acceptance_test.go index 150a71de30..50cb346c9f 100644 --- a/internal/resources/role_ownership_grant_acceptance_test.go +++ b/pkg/resources/role_ownership_grant_acceptance_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( "fmt" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/role_ownership_grant_test.go b/pkg/resources/role_ownership_grant_test.go similarity index 88% rename from internal/resources/role_ownership_grant_test.go rename to pkg/resources/role_ownership_grant_test.go index 934a8d9d1f..e413fdcf90 100644 --- a/internal/resources/role_ownership_grant_test.go +++ b/pkg/resources/role_ownership_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,9 +5,9 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/row_access_policy.go b/pkg/resources/row_access_policy.go similarity index 98% rename from internal/resources/row_access_policy.go rename to pkg/resources/row_access_policy.go index 6ab36cd650..66a765af21 100644 --- a/internal/resources/row_access_policy.go +++ b/pkg/resources/row_access_policy.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -10,7 +7,7 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/row_access_policy_acceptance_test.go b/pkg/resources/row_access_policy_acceptance_test.go similarity index 93% rename from internal/resources/row_access_policy_acceptance_test.go rename to pkg/resources/row_access_policy_acceptance_test.go index 462242c385..a9e7b0065d 100644 --- a/internal/resources/row_access_policy_acceptance_test.go +++ b/pkg/resources/row_access_policy_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/row_access_policy_grant.go b/pkg/resources/row_access_policy_grant.go similarity index 96% rename from internal/resources/row_access_policy_grant.go rename to pkg/resources/row_access_policy_grant.go index f9cdafd70f..ebb2a1b25b 100644 --- a/internal/resources/row_access_policy_grant.go +++ b/pkg/resources/row_access_policy_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,10 +5,10 @@ import ( "errors" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/row_access_policy_grant_acceptance_test.go b/pkg/resources/row_access_policy_grant_acceptance_test.go similarity index 95% rename from internal/resources/row_access_policy_grant_acceptance_test.go rename to pkg/resources/row_access_policy_grant_acceptance_test.go index 8df453d303..520d8613be 100644 --- a/internal/resources/row_access_policy_grant_acceptance_test.go +++ b/pkg/resources/row_access_policy_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/row_access_policy_grant_test.go b/pkg/resources/row_access_policy_grant_test.go similarity index 90% rename from internal/resources/row_access_policy_grant_test.go rename to pkg/resources/row_access_policy_grant_test.go index 924921cdda..3ee6d340d1 100644 --- a/internal/resources/row_access_policy_grant_test.go +++ b/pkg/resources/row_access_policy_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,9 +6,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/row_access_policy_test.go b/pkg/resources/row_access_policy_test.go similarity index 90% rename from internal/resources/row_access_policy_test.go rename to pkg/resources/row_access_policy_test.go index baeb951d07..08b71bfb9d 100644 --- a/internal/resources/row_access_policy_test.go +++ b/pkg/resources/row_access_policy_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,9 +6,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/saml_integration.go b/pkg/resources/saml_integration.go similarity index 99% rename from internal/resources/saml_integration.go rename to pkg/resources/saml_integration.go index d429c2371d..b6bb0697e2 100644 --- a/internal/resources/saml_integration.go +++ b/pkg/resources/saml_integration.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -10,7 +7,7 @@ import ( "strconv" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/saml_integration_acceptance_test.go b/pkg/resources/saml_integration_acceptance_test.go similarity index 97% rename from internal/resources/saml_integration_acceptance_test.go rename to pkg/resources/saml_integration_acceptance_test.go index 406eb19811..6bf9e06847 100644 --- a/internal/resources/saml_integration_acceptance_test.go +++ b/pkg/resources/saml_integration_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/saml_integration_test.go b/pkg/resources/saml_integration_test.go similarity index 92% rename from internal/resources/saml_integration_test.go rename to pkg/resources/saml_integration_test.go index 1ff422c51f..f9d8b38ef6 100644 --- a/internal/resources/saml_integration_test.go +++ b/pkg/resources/saml_integration_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,9 +5,9 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/schema.go b/pkg/resources/schema.go similarity index 97% rename from internal/resources/schema.go rename to pkg/resources/schema.go index 23e57489ff..ed8ea70be9 100644 --- a/internal/resources/schema.go +++ b/pkg/resources/schema.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -11,12 +8,12 @@ import ( "strconv" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" ) const ( diff --git a/internal/resources/schema_acceptance_test.go b/pkg/resources/schema_acceptance_test.go similarity index 95% rename from internal/resources/schema_acceptance_test.go rename to pkg/resources/schema_acceptance_test.go index 805e6f3a7d..8ae36610bb 100644 --- a/internal/resources/schema_acceptance_test.go +++ b/pkg/resources/schema_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/schema_grant.go b/pkg/resources/schema_grant.go similarity index 97% rename from internal/resources/schema_grant.go rename to pkg/resources/schema_grant.go index ce2e61bae4..f12960b352 100644 --- a/internal/resources/schema_grant.go +++ b/pkg/resources/schema_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -9,10 +6,10 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/schema_grant_acceptance_test.go b/pkg/resources/schema_grant_acceptance_test.go similarity index 95% rename from internal/resources/schema_grant_acceptance_test.go rename to pkg/resources/schema_grant_acceptance_test.go index 5046d715e9..70ee06e0a5 100644 --- a/internal/resources/schema_grant_acceptance_test.go +++ b/pkg/resources/schema_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/schema_grant_test.go b/pkg/resources/schema_grant_test.go similarity index 94% rename from internal/resources/schema_grant_test.go rename to pkg/resources/schema_grant_test.go index 1dc72153a4..0c39562fe9 100644 --- a/internal/resources/schema_grant_test.go +++ b/pkg/resources/schema_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -10,9 +7,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/scim_integration.go b/pkg/resources/scim_integration.go similarity index 97% rename from internal/resources/scim_integration.go rename to pkg/resources/scim_integration.go index f886f281d1..79577e78d0 100644 --- a/internal/resources/scim_integration.go +++ b/pkg/resources/scim_integration.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -9,7 +6,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/scim_integration_acceptance_test.go b/pkg/resources/scim_integration_acceptance_test.go similarity index 94% rename from internal/resources/scim_integration_acceptance_test.go rename to pkg/resources/scim_integration_acceptance_test.go index 7809f5a321..4eeeda494f 100644 --- a/internal/resources/scim_integration_acceptance_test.go +++ b/pkg/resources/scim_integration_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/scim_integration_test.go b/pkg/resources/scim_integration_test.go similarity index 89% rename from internal/resources/scim_integration_test.go rename to pkg/resources/scim_integration_test.go index 1ae4969ed2..5c8329d8a5 100644 --- a/internal/resources/scim_integration_test.go +++ b/pkg/resources/scim_integration_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,9 +5,9 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/sequence.go b/pkg/resources/sequence.go similarity index 97% rename from internal/resources/sequence.go rename to pkg/resources/sequence.go index 73a85d7eeb..5735996218 100644 --- a/internal/resources/sequence.go +++ b/pkg/resources/sequence.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -13,7 +10,7 @@ import ( "strconv" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/sequence_acceptance_test.go b/pkg/resources/sequence_acceptance_test.go similarity index 96% rename from internal/resources/sequence_acceptance_test.go rename to pkg/resources/sequence_acceptance_test.go index 4dd77245bc..eb87cfa9d9 100644 --- a/internal/resources/sequence_acceptance_test.go +++ b/pkg/resources/sequence_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/sequence_grant.go b/pkg/resources/sequence_grant.go similarity index 97% rename from internal/resources/sequence_grant.go rename to pkg/resources/sequence_grant.go index a8eecbef94..4854ab764d 100644 --- a/internal/resources/sequence_grant.go +++ b/pkg/resources/sequence_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -9,10 +6,10 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/sequence_grant_acceptance_test.go b/pkg/resources/sequence_grant_acceptance_test.go similarity index 95% rename from internal/resources/sequence_grant_acceptance_test.go rename to pkg/resources/sequence_grant_acceptance_test.go index 41435464ab..d94e2a4dda 100644 --- a/internal/resources/sequence_grant_acceptance_test.go +++ b/pkg/resources/sequence_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/sequence_grant_test.go b/pkg/resources/sequence_grant_test.go similarity index 94% rename from internal/resources/sequence_grant_test.go rename to pkg/resources/sequence_grant_test.go index 1053f423f0..7708af9f00 100644 --- a/internal/resources/sequence_grant_test.go +++ b/pkg/resources/sequence_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,9 +6,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/sequence_test.go b/pkg/resources/sequence_test.go similarity index 90% rename from internal/resources/sequence_test.go rename to pkg/resources/sequence_test.go index 7000652b7c..2b46542866 100644 --- a/internal/resources/sequence_test.go +++ b/pkg/resources/sequence_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,9 +5,9 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/session_parameter.go b/pkg/resources/session_parameter.go similarity index 97% rename from internal/resources/session_parameter.go rename to pkg/resources/session_parameter.go index 6df5a09089..47275a842e 100644 --- a/internal/resources/session_parameter.go +++ b/pkg/resources/session_parameter.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,7 +5,7 @@ import ( "database/sql" "fmt" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/session_parameter_acceptance_test.go b/pkg/resources/session_parameter_acceptance_test.go similarity index 93% rename from internal/resources/session_parameter_acceptance_test.go rename to pkg/resources/session_parameter_acceptance_test.go index 9ed2a90b15..54adf81bed 100644 --- a/internal/resources/session_parameter_acceptance_test.go +++ b/pkg/resources/session_parameter_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/share.go b/pkg/resources/share.go similarity index 97% rename from internal/resources/share.go rename to pkg/resources/share.go index dab8e8a62f..2f50b5b285 100644 --- a/internal/resources/share.go +++ b/pkg/resources/share.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -13,8 +10,8 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/validation" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/validation" ) var shareSchema = map[string]*schema.Schema{ diff --git a/internal/resources/share_acceptance_test.go b/pkg/resources/share_acceptance_test.go similarity index 95% rename from internal/resources/share_acceptance_test.go rename to pkg/resources/share_acceptance_test.go index 797d57387f..f48e711d9e 100644 --- a/internal/resources/share_acceptance_test.go +++ b/pkg/resources/share_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/stage.go b/pkg/resources/stage.go similarity index 98% rename from internal/resources/stage.go rename to pkg/resources/stage.go index eb80a064ce..752c3de862 100644 --- a/internal/resources/stage.go +++ b/pkg/resources/stage.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -12,7 +9,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/snowflakedb/gosnowflake" ) diff --git a/internal/resources/stage_acceptance_test.go b/pkg/resources/stage_acceptance_test.go similarity index 92% rename from internal/resources/stage_acceptance_test.go rename to pkg/resources/stage_acceptance_test.go index a49d981b9e..6e4dce0cd6 100644 --- a/internal/resources/stage_acceptance_test.go +++ b/pkg/resources/stage_acceptance_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( "fmt" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/stage_grant.go b/pkg/resources/stage_grant.go similarity index 97% rename from internal/resources/stage_grant.go rename to pkg/resources/stage_grant.go index 136c3e4b7b..df6d01f4e0 100644 --- a/internal/resources/stage_grant.go +++ b/pkg/resources/stage_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,10 +5,10 @@ import ( "errors" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/stage_grant_acceptance_test.go b/pkg/resources/stage_grant_acceptance_test.go similarity index 97% rename from internal/resources/stage_grant_acceptance_test.go rename to pkg/resources/stage_grant_acceptance_test.go index 730a21a69d..606c850286 100644 --- a/internal/resources/stage_grant_acceptance_test.go +++ b/pkg/resources/stage_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/stage_grant_test.go b/pkg/resources/stage_grant_test.go similarity index 94% rename from internal/resources/stage_grant_test.go rename to pkg/resources/stage_grant_test.go index 674ed9a931..f356dfb476 100644 --- a/internal/resources/stage_grant_test.go +++ b/pkg/resources/stage_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -10,9 +7,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/stage_test.go b/pkg/resources/stage_test.go similarity index 93% rename from internal/resources/stage_test.go rename to pkg/resources/stage_test.go index e74574de4a..449300ad98 100644 --- a/internal/resources/stage_test.go +++ b/pkg/resources/stage_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,10 +5,10 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/storage_integration.go b/pkg/resources/storage_integration.go similarity index 98% rename from internal/resources/storage_integration.go rename to pkg/resources/storage_integration.go index e5acbf7d0d..64486bb463 100644 --- a/internal/resources/storage_integration.go +++ b/pkg/resources/storage_integration.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -10,7 +7,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/storage_integration_acceptance_test.go b/pkg/resources/storage_integration_acceptance_test.go similarity index 93% rename from internal/resources/storage_integration_acceptance_test.go rename to pkg/resources/storage_integration_acceptance_test.go index 7579452504..7b9d18bda5 100644 --- a/internal/resources/storage_integration_acceptance_test.go +++ b/pkg/resources/storage_integration_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "regexp" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/storage_integration_test.go b/pkg/resources/storage_integration_test.go similarity index 96% rename from internal/resources/storage_integration_test.go rename to pkg/resources/storage_integration_test.go index b469a85fa5..e7a0ee1428 100644 --- a/internal/resources/storage_integration_test.go +++ b/pkg/resources/storage_integration_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,9 +5,9 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/stream.go b/pkg/resources/stream.go similarity index 97% rename from internal/resources/stream.go rename to pkg/resources/stream.go index c7628012f0..2633d96fd9 100644 --- a/internal/resources/stream.go +++ b/pkg/resources/stream.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -10,10 +7,10 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/stream_acceptance_test.go b/pkg/resources/stream_acceptance_test.go similarity index 98% rename from internal/resources/stream_acceptance_test.go rename to pkg/resources/stream_acceptance_test.go index 035adc6a7a..a389e922f1 100644 --- a/internal/resources/stream_acceptance_test.go +++ b/pkg/resources/stream_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -10,7 +7,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/stream_grant.go b/pkg/resources/stream_grant.go similarity index 97% rename from internal/resources/stream_grant.go rename to pkg/resources/stream_grant.go index 1e72b69092..1100356ba2 100644 --- a/internal/resources/stream_grant.go +++ b/pkg/resources/stream_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -9,10 +6,10 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/stream_grant_acceptance_test.go b/pkg/resources/stream_grant_acceptance_test.go similarity index 97% rename from internal/resources/stream_grant_acceptance_test.go rename to pkg/resources/stream_grant_acceptance_test.go index 50955cc1dc..c6af4f57ab 100644 --- a/internal/resources/stream_grant_acceptance_test.go +++ b/pkg/resources/stream_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/stream_grant_test.go b/pkg/resources/stream_grant_test.go similarity index 94% rename from internal/resources/stream_grant_test.go rename to pkg/resources/stream_grant_test.go index da90ae119f..dcb9e6b2e0 100644 --- a/internal/resources/stream_grant_test.go +++ b/pkg/resources/stream_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,9 +6,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/table.go b/pkg/resources/table.go similarity index 99% rename from internal/resources/table.go rename to pkg/resources/table.go index a58e3f7904..2d5a4cea25 100644 --- a/internal/resources/table.go +++ b/pkg/resources/table.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -12,7 +9,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" diff --git a/internal/resources/table_acceptance_test.go b/pkg/resources/table_acceptance_test.go similarity index 99% rename from internal/resources/table_acceptance_test.go rename to pkg/resources/table_acceptance_test.go index 4b2b77179e..c0c5d72c96 100644 --- a/internal/resources/table_acceptance_test.go +++ b/pkg/resources/table_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/table_column_masking_policy_application.go b/pkg/resources/table_column_masking_policy_application.go similarity index 96% rename from internal/resources/table_column_masking_policy_application.go rename to pkg/resources/table_column_masking_policy_application.go index f425470853..4d7f32766c 100644 --- a/internal/resources/table_column_masking_policy_application.go +++ b/pkg/resources/table_column_masking_policy_application.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( "database/sql" "fmt" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/table_column_masking_policy_application_acceptance_test.go b/pkg/resources/table_column_masking_policy_application_acceptance_test.go similarity index 92% rename from internal/resources/table_column_masking_policy_application_acceptance_test.go rename to pkg/resources/table_column_masking_policy_application_acceptance_test.go index 41c74bc658..806d53504c 100644 --- a/internal/resources/table_column_masking_policy_application_acceptance_test.go +++ b/pkg/resources/table_column_masking_policy_application_acceptance_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( "fmt" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/table_constraint.go b/pkg/resources/table_constraint.go similarity index 98% rename from internal/resources/table_constraint.go rename to pkg/resources/table_constraint.go index 8f246f5d13..0876c8ea63 100644 --- a/internal/resources/table_constraint.go +++ b/pkg/resources/table_constraint.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -9,8 +6,8 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" - snowflakeValidation "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/validation" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + snowflakeValidation "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/validation" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/table_constraint_acceptance_test.go b/pkg/resources/table_constraint_acceptance_test.go similarity index 95% rename from internal/resources/table_constraint_acceptance_test.go rename to pkg/resources/table_constraint_acceptance_test.go index b7ae11548b..2c75531474 100644 --- a/internal/resources/table_constraint_acceptance_test.go +++ b/pkg/resources/table_constraint_acceptance_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( "fmt" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/table_grant.go b/pkg/resources/table_grant.go similarity index 97% rename from internal/resources/table_grant.go rename to pkg/resources/table_grant.go index edf472a198..378c1bff4b 100644 --- a/internal/resources/table_grant.go +++ b/pkg/resources/table_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,10 +5,10 @@ import ( "errors" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/table_grant_acceptance_test.go b/pkg/resources/table_grant_acceptance_test.go similarity index 97% rename from internal/resources/table_grant_acceptance_test.go rename to pkg/resources/table_grant_acceptance_test.go index f5789d7fb7..0f4569b4de 100644 --- a/internal/resources/table_grant_acceptance_test.go +++ b/pkg/resources/table_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/table_grant_test.go b/pkg/resources/table_grant_test.go similarity index 96% rename from internal/resources/table_grant_test.go rename to pkg/resources/table_grant_test.go index 2cc40ee739..48974726ed 100644 --- a/internal/resources/table_grant_test.go +++ b/pkg/resources/table_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -13,9 +10,9 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" ) func TestTableGrant(t *testing.T) { diff --git a/internal/resources/table_internal_test.go b/pkg/resources/table_internal_test.go similarity index 95% rename from internal/resources/table_internal_test.go rename to pkg/resources/table_internal_test.go index 2279094a38..f35c953025 100644 --- a/internal/resources/table_internal_test.go +++ b/pkg/resources/table_internal_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( diff --git a/internal/resources/tag.go b/pkg/resources/tag.go similarity index 97% rename from internal/resources/tag.go rename to pkg/resources/tag.go index b0b2d4f030..01359edf34 100644 --- a/internal/resources/tag.go +++ b/pkg/resources/tag.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -14,8 +11,8 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" ) const ( diff --git a/internal/resources/tag_acceptance_test.go b/pkg/resources/tag_acceptance_test.go similarity index 90% rename from internal/resources/tag_acceptance_test.go rename to pkg/resources/tag_acceptance_test.go index feeeceec09..cc69c18060 100644 --- a/internal/resources/tag_acceptance_test.go +++ b/pkg/resources/tag_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/tag_association.go b/pkg/resources/tag_association.go similarity index 97% rename from internal/resources/tag_association.go rename to pkg/resources/tag_association.go index e5fea53ace..a71ae67b2e 100644 --- a/internal/resources/tag_association.go +++ b/pkg/resources/tag_association.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -15,8 +12,8 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" - snowflakeValidation "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/validation" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + snowflakeValidation "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/validation" ) var tagAssociationSchema = map[string]*schema.Schema{ diff --git a/internal/resources/tag_association_acceptance_test.go b/pkg/resources/tag_association_acceptance_test.go similarity index 97% rename from internal/resources/tag_association_acceptance_test.go rename to pkg/resources/tag_association_acceptance_test.go index 7c5cb9fcd6..4b44df3673 100644 --- a/internal/resources/tag_association_acceptance_test.go +++ b/pkg/resources/tag_association_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/tag_grant.go b/pkg/resources/tag_grant.go similarity index 95% rename from internal/resources/tag_grant.go rename to pkg/resources/tag_grant.go index c518d94f79..8a2d98f5e0 100644 --- a/internal/resources/tag_grant.go +++ b/pkg/resources/tag_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,10 +5,10 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/tag_grant_acceptance_test.go b/pkg/resources/tag_grant_acceptance_test.go similarity index 94% rename from internal/resources/tag_grant_acceptance_test.go rename to pkg/resources/tag_grant_acceptance_test.go index 01d2bce210..81f69b789c 100644 --- a/internal/resources/tag_grant_acceptance_test.go +++ b/pkg/resources/tag_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/tag_grant_test.go b/pkg/resources/tag_grant_test.go similarity index 88% rename from internal/resources/tag_grant_test.go rename to pkg/resources/tag_grant_test.go index 1e75e00d8b..7644696156 100644 --- a/internal/resources/tag_grant_test.go +++ b/pkg/resources/tag_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,9 +6,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/tag_masking_policy_association.go b/pkg/resources/tag_masking_policy_association.go similarity index 96% rename from internal/resources/tag_masking_policy_association.go rename to pkg/resources/tag_masking_policy_association.go index d17b2d6c56..62b49c64bc 100644 --- a/internal/resources/tag_masking_policy_association.go +++ b/pkg/resources/tag_masking_policy_association.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -15,10 +12,10 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" - snowflakeValidation "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/validation" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + snowflakeValidation "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/validation" ) const ( diff --git a/internal/resources/tag_masking_policy_association_acceptance_test.go b/pkg/resources/tag_masking_policy_association_acceptance_test.go similarity index 92% rename from internal/resources/tag_masking_policy_association_acceptance_test.go rename to pkg/resources/tag_masking_policy_association_acceptance_test.go index 15b09885bf..96fcaa9897 100644 --- a/internal/resources/tag_masking_policy_association_acceptance_test.go +++ b/pkg/resources/tag_masking_policy_association_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/tag_test.go b/pkg/resources/tag_test.go similarity index 90% rename from internal/resources/tag_test.go rename to pkg/resources/tag_test.go index 1b553cafca..a0cfdf99a4 100644 --- a/internal/resources/tag_test.go +++ b/pkg/resources/tag_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,10 +5,10 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/task.go b/pkg/resources/task.go similarity index 99% rename from internal/resources/task.go rename to pkg/resources/task.go index 5453134447..72e42fec09 100644 --- a/internal/resources/task.go +++ b/pkg/resources/task.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -11,8 +8,8 @@ import ( "strconv" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" diff --git a/internal/resources/task_acceptance_test.go b/pkg/resources/task_acceptance_test.go similarity index 99% rename from internal/resources/task_acceptance_test.go rename to pkg/resources/task_acceptance_test.go index 353b752745..fa7af5e679 100644 --- a/internal/resources/task_acceptance_test.go +++ b/pkg/resources/task_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -10,7 +7,7 @@ import ( "testing" "text/template" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" diff --git a/internal/resources/task_grant.go b/pkg/resources/task_grant.go similarity index 97% rename from internal/resources/task_grant.go rename to pkg/resources/task_grant.go index cb33ec9019..cc26b32c39 100644 --- a/internal/resources/task_grant.go +++ b/pkg/resources/task_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -9,10 +6,10 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/task_grant_acceptance_test.go b/pkg/resources/task_grant_acceptance_test.go similarity index 98% rename from internal/resources/task_grant_acceptance_test.go rename to pkg/resources/task_grant_acceptance_test.go index 628fe65ef3..1e27577294 100644 --- a/internal/resources/task_grant_acceptance_test.go +++ b/pkg/resources/task_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/task_grant_test.go b/pkg/resources/task_grant_test.go similarity index 94% rename from internal/resources/task_grant_test.go rename to pkg/resources/task_grant_test.go index 0e31a50b29..3bc0ea5881 100644 --- a/internal/resources/task_grant_test.go +++ b/pkg/resources/task_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,9 +6,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/testdata/TestAcc_DynamicTable_basic/1/test.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/test.tf similarity index 100% rename from internal/resources/testdata/TestAcc_DynamicTable_basic/1/test.tf rename to pkg/resources/testdata/TestAcc_DynamicTable_basic/1/test.tf diff --git a/internal/resources/testdata/TestAcc_DynamicTable_basic/1/variables.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/variables.tf similarity index 100% rename from internal/resources/testdata/TestAcc_DynamicTable_basic/1/variables.tf rename to pkg/resources/testdata/TestAcc_DynamicTable_basic/1/variables.tf diff --git a/internal/resources/testdata/TestAcc_DynamicTable_basic/2/test.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/test.tf similarity index 100% rename from internal/resources/testdata/TestAcc_DynamicTable_basic/2/test.tf rename to pkg/resources/testdata/TestAcc_DynamicTable_basic/2/test.tf diff --git a/internal/resources/testdata/TestAcc_DynamicTable_basic/2/variables.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/variables.tf similarity index 100% rename from internal/resources/testdata/TestAcc_DynamicTable_basic/2/variables.tf rename to pkg/resources/testdata/TestAcc_DynamicTable_basic/2/variables.tf diff --git a/internal/resources/testdata/TestAcc_DynamicTable_basic/3/test.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/test.tf similarity index 100% rename from internal/resources/testdata/TestAcc_DynamicTable_basic/3/test.tf rename to pkg/resources/testdata/TestAcc_DynamicTable_basic/3/test.tf diff --git a/internal/resources/testdata/TestAcc_DynamicTable_basic/3/variables.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/variables.tf similarity index 100% rename from internal/resources/testdata/TestAcc_DynamicTable_basic/3/variables.tf rename to pkg/resources/testdata/TestAcc_DynamicTable_basic/3/variables.tf diff --git a/internal/resources/testdata/userkey1 b/pkg/resources/testdata/userkey1 similarity index 100% rename from internal/resources/testdata/userkey1 rename to pkg/resources/testdata/userkey1 diff --git a/internal/resources/testdata/userkey2 b/pkg/resources/testdata/userkey2 similarity index 100% rename from internal/resources/testdata/userkey2 rename to pkg/resources/testdata/userkey2 diff --git a/internal/resources/testdata/view_1a.sql b/pkg/resources/testdata/view_1a.sql similarity index 100% rename from internal/resources/testdata/view_1a.sql rename to pkg/resources/testdata/view_1a.sql diff --git a/internal/resources/testdata/view_1b.sql b/pkg/resources/testdata/view_1b.sql similarity index 100% rename from internal/resources/testdata/view_1b.sql rename to pkg/resources/testdata/view_1b.sql diff --git a/internal/resources/testdata/view_2a.sql b/pkg/resources/testdata/view_2a.sql similarity index 100% rename from internal/resources/testdata/view_2a.sql rename to pkg/resources/testdata/view_2a.sql diff --git a/internal/resources/testdata/view_2b.sql b/pkg/resources/testdata/view_2b.sql similarity index 100% rename from internal/resources/testdata/view_2b.sql rename to pkg/resources/testdata/view_2b.sql diff --git a/internal/resources/user.go b/pkg/resources/user.go similarity index 98% rename from internal/resources/user.go rename to pkg/resources/user.go index 2bd1d38160..450a6bd263 100644 --- a/internal/resources/user.go +++ b/pkg/resources/user.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -12,8 +9,8 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" ) var userProperties = []string{ diff --git a/internal/resources/user_acceptance_test.go b/pkg/resources/user_acceptance_test.go similarity index 96% rename from internal/resources/user_acceptance_test.go rename to pkg/resources/user_acceptance_test.go index 577ad48cb4..f88a943ebd 100644 --- a/internal/resources/user_acceptance_test.go +++ b/pkg/resources/user_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -10,8 +7,8 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" diff --git a/internal/resources/user_grant.go b/pkg/resources/user_grant.go similarity index 96% rename from internal/resources/user_grant.go rename to pkg/resources/user_grant.go index e39a7cf874..e944c4e38d 100644 --- a/internal/resources/user_grant.go +++ b/pkg/resources/user_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,8 +5,8 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/user_grant_acceptance_test.go b/pkg/resources/user_grant_acceptance_test.go similarity index 92% rename from internal/resources/user_grant_acceptance_test.go rename to pkg/resources/user_grant_acceptance_test.go index 973297de2c..94b4027fa0 100644 --- a/internal/resources/user_grant_acceptance_test.go +++ b/pkg/resources/user_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/user_grant_test.go b/pkg/resources/user_grant_test.go similarity index 84% rename from internal/resources/user_grant_test.go rename to pkg/resources/user_grant_test.go index a7fdd2cc1d..0f2d6e78f7 100644 --- a/internal/resources/user_grant_test.go +++ b/pkg/resources/user_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,9 +6,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/user_ownership_grant.go b/pkg/resources/user_ownership_grant.go similarity index 95% rename from internal/resources/user_ownership_grant.go rename to pkg/resources/user_ownership_grant.go index 2f95e5fb40..09584976ce 100644 --- a/internal/resources/user_ownership_grant.go +++ b/pkg/resources/user_ownership_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -10,9 +7,9 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/user_ownership_grant_acceptance_test.go b/pkg/resources/user_ownership_grant_acceptance_test.go similarity index 91% rename from internal/resources/user_ownership_grant_acceptance_test.go rename to pkg/resources/user_ownership_grant_acceptance_test.go index 76376ca078..0c525a39c4 100644 --- a/internal/resources/user_ownership_grant_acceptance_test.go +++ b/pkg/resources/user_ownership_grant_acceptance_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( "fmt" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/user_ownership_grant_test.go b/pkg/resources/user_ownership_grant_test.go similarity index 89% rename from internal/resources/user_ownership_grant_test.go rename to pkg/resources/user_ownership_grant_test.go index d58794264b..19782a0a04 100644 --- a/internal/resources/user_ownership_grant_test.go +++ b/pkg/resources/user_ownership_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,9 +5,9 @@ import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/user_public_keys.go b/pkg/resources/user_public_keys.go similarity index 96% rename from internal/resources/user_public_keys.go rename to pkg/resources/user_public_keys.go index 2aa1ace129..e7c92ae3e7 100644 --- a/internal/resources/user_public_keys.go +++ b/pkg/resources/user_public_keys.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -10,7 +7,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/user_public_keys_acceptance_test.go b/pkg/resources/user_public_keys_acceptance_test.go similarity index 90% rename from internal/resources/user_public_keys_acceptance_test.go rename to pkg/resources/user_public_keys_acceptance_test.go index bc0ab478b8..f9eb0eb93b 100644 --- a/internal/resources/user_public_keys_acceptance_test.go +++ b/pkg/resources/user_public_keys_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,8 +6,8 @@ import ( "testing" "text/template" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/stretchr/testify/require" diff --git a/internal/resources/view.go b/pkg/resources/view.go similarity index 98% rename from internal/resources/view.go rename to pkg/resources/view.go index ab90873da6..672e87a3be 100644 --- a/internal/resources/view.go +++ b/pkg/resources/view.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -13,7 +10,7 @@ import ( "regexp" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/resources/view_acceptance_test.go b/pkg/resources/view_acceptance_test.go similarity index 97% rename from internal/resources/view_acceptance_test.go rename to pkg/resources/view_acceptance_test.go index 2666dcd1ae..4383d3bade 100644 --- a/internal/resources/view_acceptance_test.go +++ b/pkg/resources/view_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -8,7 +5,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/view_grant.go b/pkg/resources/view_grant.go similarity index 97% rename from internal/resources/view_grant.go rename to pkg/resources/view_grant.go index 3a5c6a5f17..eb11f333af 100644 --- a/internal/resources/view_grant.go +++ b/pkg/resources/view_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,10 +5,10 @@ import ( "errors" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/view_grant_acceptance_test.go b/pkg/resources/view_grant_acceptance_test.go similarity index 98% rename from internal/resources/view_grant_acceptance_test.go rename to pkg/resources/view_grant_acceptance_test.go index a145ad19ac..8c27671bbe 100644 --- a/internal/resources/view_grant_acceptance_test.go +++ b/pkg/resources/view_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -10,7 +7,7 @@ import ( "testing" "text/template" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/stretchr/testify/require" diff --git a/internal/resources/view_grant_test.go b/pkg/resources/view_grant_test.go similarity index 95% rename from internal/resources/view_grant_test.go rename to pkg/resources/view_grant_test.go index f22eb51158..19db8f7b61 100644 --- a/internal/resources/view_grant_test.go +++ b/pkg/resources/view_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,9 +6,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/view_test.go b/pkg/resources/view_test.go similarity index 92% rename from internal/resources/view_test.go rename to pkg/resources/view_test.go index 45146410c3..558e5dc8ea 100644 --- a/internal/resources/view_test.go +++ b/pkg/resources/view_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -10,10 +7,10 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/resources/warehouse.go b/pkg/resources/warehouse.go similarity index 98% rename from internal/resources/warehouse.go rename to pkg/resources/warehouse.go index 6cd46c4dd3..f27fb75c05 100644 --- a/internal/resources/warehouse.go +++ b/pkg/resources/warehouse.go @@ -1,15 +1,12 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( "context" "database/sql" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - snowflakevalidation "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/validation" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + snowflakevalidation "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/validation" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/warehouse_acceptance_test.go b/pkg/resources/warehouse_acceptance_test.go similarity index 96% rename from internal/resources/warehouse_acceptance_test.go rename to pkg/resources/warehouse_acceptance_test.go index ef411fb06c..ea4012c529 100644 --- a/internal/resources/warehouse_acceptance_test.go +++ b/pkg/resources/warehouse_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/warehouse_grant.go b/pkg/resources/warehouse_grant.go similarity index 95% rename from internal/resources/warehouse_grant.go rename to pkg/resources/warehouse_grant.go index f49178b42d..5351eb579a 100644 --- a/internal/resources/warehouse_grant.go +++ b/pkg/resources/warehouse_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources import ( @@ -8,10 +5,10 @@ import ( "fmt" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/internal/resources/warehouse_grant_acceptance_test.go b/pkg/resources/warehouse_grant_acceptance_test.go similarity index 93% rename from internal/resources/warehouse_grant_acceptance_test.go rename to pkg/resources/warehouse_grant_acceptance_test.go index b8f07d5114..70c3f0ea09 100644 --- a/internal/resources/warehouse_grant_acceptance_test.go +++ b/pkg/resources/warehouse_grant_acceptance_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,7 +6,7 @@ import ( "strings" "testing" - acc "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/acceptance" + acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/internal/resources/warehouse_grant_test.go b/pkg/resources/warehouse_grant_test.go similarity index 85% rename from internal/resources/warehouse_grant_test.go rename to pkg/resources/warehouse_grant_test.go index 3665c528e5..2f7531781d 100644 --- a/internal/resources/warehouse_grant_test.go +++ b/pkg/resources/warehouse_grant_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package resources_test import ( @@ -9,9 +6,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/provider" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/resources" - . "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/testhelpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources" + . "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/testhelpers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/README.md b/pkg/sdk/README.md similarity index 100% rename from internal/sdk/README.md rename to pkg/sdk/README.md diff --git a/internal/sdk/accounts.go b/pkg/sdk/accounts.go similarity index 99% rename from internal/sdk/accounts.go rename to pkg/sdk/accounts.go index 00d058a017..08facba0ac 100644 --- a/internal/sdk/accounts.go +++ b/pkg/sdk/accounts.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/accounts_test.go b/pkg/sdk/accounts_test.go similarity index 99% rename from internal/sdk/accounts_test.go rename to pkg/sdk/accounts_test.go index b11a8565c3..f3e0b16a21 100644 --- a/internal/sdk/accounts_test.go +++ b/pkg/sdk/accounts_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/alerts.go b/pkg/sdk/alerts.go similarity index 99% rename from internal/sdk/alerts.go rename to pkg/sdk/alerts.go index c0d1a90265..31cc85d42d 100644 --- a/internal/sdk/alerts.go +++ b/pkg/sdk/alerts.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/alerts_test.go b/pkg/sdk/alerts_test.go similarity index 97% rename from internal/sdk/alerts_test.go rename to pkg/sdk/alerts_test.go index 6332afb8ef..b1305bc100 100644 --- a/internal/sdk/alerts_test.go +++ b/pkg/sdk/alerts_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" ) func TestAlertCreate(t *testing.T) { diff --git a/internal/sdk/assertions_test.go b/pkg/sdk/assertions_test.go similarity index 95% rename from internal/sdk/assertions_test.go rename to pkg/sdk/assertions_test.go index 97ef9dc36a..e67f67963a 100644 --- a/internal/sdk/assertions_test.go +++ b/pkg/sdk/assertions_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/client.go b/pkg/sdk/client.go similarity index 98% rename from internal/sdk/client.go rename to pkg/sdk/client.go index ad4c841e6c..1dc78da8cf 100644 --- a/internal/sdk/client.go +++ b/pkg/sdk/client.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/client_integration_test.go b/pkg/sdk/client_integration_test.go similarity index 95% rename from internal/sdk/client_integration_test.go rename to pkg/sdk/client_integration_test.go index 2e3dd3ac0d..71f5b42365 100644 --- a/internal/sdk/client_integration_test.go +++ b/pkg/sdk/client_integration_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/comments.go b/pkg/sdk/comments.go similarity index 97% rename from internal/sdk/comments.go rename to pkg/sdk/comments.go index 1d1fcf2e2a..df0bfcf06b 100644 --- a/internal/sdk/comments.go +++ b/pkg/sdk/comments.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/comments_test.go b/pkg/sdk/comments_test.go similarity index 93% rename from internal/sdk/comments_test.go rename to pkg/sdk/comments_test.go index 1bf4743343..fbcb7864b5 100644 --- a/internal/sdk/comments_test.go +++ b/pkg/sdk/comments_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/common_types.go b/pkg/sdk/common_types.go similarity index 98% rename from internal/sdk/common_types.go rename to pkg/sdk/common_types.go index f680eec643..57a4f862e0 100644 --- a/internal/sdk/common_types.go +++ b/pkg/sdk/common_types.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/common_types_test.go b/pkg/sdk/common_types_test.go similarity index 97% rename from internal/sdk/common_types_test.go rename to pkg/sdk/common_types_test.go index c3e0e7277c..71bdfea4c1 100644 --- a/internal/sdk/common_types_test.go +++ b/pkg/sdk/common_types_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/config.go b/pkg/sdk/config.go similarity index 97% rename from internal/sdk/config.go rename to pkg/sdk/config.go index b48e6f4a58..b30cb85acb 100644 --- a/internal/sdk/config.go +++ b/pkg/sdk/config.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/config_test.go b/pkg/sdk/config_test.go similarity index 98% rename from internal/sdk/config_test.go rename to pkg/sdk/config_test.go index 447dece8d7..71a33f5533 100644 --- a/internal/sdk/config_test.go +++ b/pkg/sdk/config_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/context_functions.go b/pkg/sdk/context_functions.go similarity index 98% rename from internal/sdk/context_functions.go rename to pkg/sdk/context_functions.go index 97adeb8ad0..c8ee69ef4c 100644 --- a/internal/sdk/context_functions.go +++ b/pkg/sdk/context_functions.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/conversion_functions.go b/pkg/sdk/conversion_functions.go similarity index 94% rename from internal/sdk/conversion_functions.go rename to pkg/sdk/conversion_functions.go index 4154d31aa7..9c6676a8ed 100644 --- a/internal/sdk/conversion_functions.go +++ b/pkg/sdk/conversion_functions.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/data_types.go b/pkg/sdk/data_types.go similarity index 97% rename from internal/sdk/data_types.go rename to pkg/sdk/data_types.go index dcad2caf4f..132f2a94d5 100644 --- a/internal/sdk/data_types.go +++ b/pkg/sdk/data_types.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/data_types_test.go b/pkg/sdk/data_types_test.go similarity index 97% rename from internal/sdk/data_types_test.go rename to pkg/sdk/data_types_test.go index 66d483b18c..21de63b921 100644 --- a/internal/sdk/data_types_test.go +++ b/pkg/sdk/data_types_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/database_role.go b/pkg/sdk/database_role.go similarity index 99% rename from internal/sdk/database_role.go rename to pkg/sdk/database_role.go index cfc3f4f98d..dbe2378cce 100644 --- a/internal/sdk/database_role.go +++ b/pkg/sdk/database_role.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/database_role_dto.go b/pkg/sdk/database_role_dto.go similarity index 96% rename from internal/sdk/database_role_dto.go rename to pkg/sdk/database_role_dto.go index 7e7547c081..8be5f38a5f 100644 --- a/internal/sdk/database_role_dto.go +++ b/pkg/sdk/database_role_dto.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk //go:generate go run ./dto-builder-generator/main.go diff --git a/internal/sdk/database_role_dto_builders.go b/pkg/sdk/database_role_dto_builders.go similarity index 98% rename from internal/sdk/database_role_dto_builders.go rename to pkg/sdk/database_role_dto_builders.go index d94d311573..3d215a8d42 100644 --- a/internal/sdk/database_role_dto_builders.go +++ b/pkg/sdk/database_role_dto_builders.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk func NewCreateDatabaseRoleRequest( diff --git a/internal/sdk/database_role_impl.go b/pkg/sdk/database_role_impl.go similarity index 96% rename from internal/sdk/database_role_impl.go rename to pkg/sdk/database_role_impl.go index 8d97f8984d..7876bc63bf 100644 --- a/internal/sdk/database_role_impl.go +++ b/pkg/sdk/database_role_impl.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" ) var _ DatabaseRoles = (*databaseRoles)(nil) diff --git a/internal/sdk/database_role_test.go b/pkg/sdk/database_role_test.go similarity index 98% rename from internal/sdk/database_role_test.go rename to pkg/sdk/database_role_test.go index 6684ee34df..f40c2514be 100644 --- a/internal/sdk/database_role_test.go +++ b/pkg/sdk/database_role_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" ) func TestDatabaseRoleCreate(t *testing.T) { diff --git a/internal/sdk/database_role_validations.go b/pkg/sdk/database_role_validations.go similarity index 98% rename from internal/sdk/database_role_validations.go rename to pkg/sdk/database_role_validations.go index 3754a0053e..c62162e130 100644 --- a/internal/sdk/database_role_validations.go +++ b/pkg/sdk/database_role_validations.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import "errors" diff --git a/internal/sdk/databases.go b/pkg/sdk/databases.go similarity index 99% rename from internal/sdk/databases.go rename to pkg/sdk/databases.go index 455406ac27..ee27b23cb8 100644 --- a/internal/sdk/databases.go +++ b/pkg/sdk/databases.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/databases_test.go b/pkg/sdk/databases_test.go similarity index 99% rename from internal/sdk/databases_test.go rename to pkg/sdk/databases_test.go index ba92e4455b..873530efb9 100644 --- a/internal/sdk/databases_test.go +++ b/pkg/sdk/databases_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/dto-builder-generator/README.md b/pkg/sdk/dto-builder-generator/README.md similarity index 100% rename from internal/sdk/dto-builder-generator/README.md rename to pkg/sdk/dto-builder-generator/README.md diff --git a/internal/sdk/dto-builder-generator/example/pipes_dto.go b/pkg/sdk/dto-builder-generator/example/pipes_dto.go similarity index 88% rename from internal/sdk/dto-builder-generator/example/pipes_dto.go rename to pkg/sdk/dto-builder-generator/example/pipes_dto.go index 4d9790e522..7f011854c0 100644 --- a/internal/sdk/dto-builder-generator/example/pipes_dto.go +++ b/pkg/sdk/dto-builder-generator/example/pipes_dto.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package example import ( "bytes" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" ) //go:generate go run ../main.go diff --git a/internal/sdk/dto-builder-generator/example/pipes_dto_generated.go b/pkg/sdk/dto-builder-generator/example/pipes_dto_generated.go similarity index 98% rename from internal/sdk/dto-builder-generator/example/pipes_dto_generated.go rename to pkg/sdk/dto-builder-generator/example/pipes_dto_generated.go index 933be8af59..d0fe8fb7ad 100644 --- a/internal/sdk/dto-builder-generator/example/pipes_dto_generated.go +++ b/pkg/sdk/dto-builder-generator/example/pipes_dto_generated.go @@ -4,7 +4,7 @@ package example import ( "bytes" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" ) func NewCreatePipeRequest( diff --git a/internal/sdk/dto-builder-generator/main.go b/pkg/sdk/dto-builder-generator/main.go similarity index 98% rename from internal/sdk/dto-builder-generator/main.go rename to pkg/sdk/dto-builder-generator/main.go index d590179643..e751bd88cb 100644 --- a/internal/sdk/dto-builder-generator/main.go +++ b/pkg/sdk/dto-builder-generator/main.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - //go:build exclude package main diff --git a/internal/sdk/dynamic_table.go b/pkg/sdk/dynamic_table.go similarity index 99% rename from internal/sdk/dynamic_table.go rename to pkg/sdk/dynamic_table.go index 4a7116874f..89040a487e 100644 --- a/internal/sdk/dynamic_table.go +++ b/pkg/sdk/dynamic_table.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/dynamic_table_dto.go b/pkg/sdk/dynamic_table_dto.go similarity index 94% rename from internal/sdk/dynamic_table_dto.go rename to pkg/sdk/dynamic_table_dto.go index b9e4626b3b..f629a9c46f 100644 --- a/internal/sdk/dynamic_table_dto.go +++ b/pkg/sdk/dynamic_table_dto.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk //go:generate go run ./dto-builder-generator/main.go diff --git a/internal/sdk/dynamic_table_dto_builders.go b/pkg/sdk/dynamic_table_dto_builders.go similarity index 97% rename from internal/sdk/dynamic_table_dto_builders.go rename to pkg/sdk/dynamic_table_dto_builders.go index 3124be03be..dee9d715ea 100644 --- a/internal/sdk/dynamic_table_dto_builders.go +++ b/pkg/sdk/dynamic_table_dto_builders.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk func NewCreateDynamicTableRequest( diff --git a/internal/sdk/dynamic_table_impl.go b/pkg/sdk/dynamic_table_impl.go similarity index 94% rename from internal/sdk/dynamic_table_impl.go rename to pkg/sdk/dynamic_table_impl.go index d50a236f6f..86d41c957b 100644 --- a/internal/sdk/dynamic_table_impl.go +++ b/pkg/sdk/dynamic_table_impl.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" ) var _ DynamicTables = (*dynamicTables)(nil) diff --git a/internal/sdk/dynamic_table_test.go b/pkg/sdk/dynamic_table_test.go similarity index 98% rename from internal/sdk/dynamic_table_test.go rename to pkg/sdk/dynamic_table_test.go index 00193ea4ae..f5c9c637eb 100644 --- a/internal/sdk/dynamic_table_test.go +++ b/pkg/sdk/dynamic_table_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/dynamic_table_validations.go b/pkg/sdk/dynamic_table_validations.go similarity index 97% rename from internal/sdk/dynamic_table_validations.go rename to pkg/sdk/dynamic_table_validations.go index c58914857b..4448223985 100644 --- a/internal/sdk/dynamic_table_validations.go +++ b/pkg/sdk/dynamic_table_validations.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/errors.go b/pkg/sdk/errors.go similarity index 95% rename from internal/sdk/errors.go rename to pkg/sdk/errors.go index 88f65e4cc8..e90d643889 100644 --- a/internal/sdk/errors.go +++ b/pkg/sdk/errors.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/external_tables.go b/pkg/sdk/external_tables.go similarity index 99% rename from internal/sdk/external_tables.go rename to pkg/sdk/external_tables.go index 8f7d2da4b8..eea89fc9bd 100644 --- a/internal/sdk/external_tables.go +++ b/pkg/sdk/external_tables.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/external_tables_dto.go b/pkg/sdk/external_tables_dto.go similarity index 99% rename from internal/sdk/external_tables_dto.go rename to pkg/sdk/external_tables_dto.go index ac026591f9..3bcc01103f 100644 --- a/internal/sdk/external_tables_dto.go +++ b/pkg/sdk/external_tables_dto.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk //go:generate go run ./dto-builder-generator/main.go diff --git a/internal/sdk/external_tables_dto_builders_gen.go b/pkg/sdk/external_tables_dto_builders_gen.go similarity index 100% rename from internal/sdk/external_tables_dto_builders_gen.go rename to pkg/sdk/external_tables_dto_builders_gen.go diff --git a/internal/sdk/external_tables_impl.go b/pkg/sdk/external_tables_impl.go similarity index 94% rename from internal/sdk/external_tables_impl.go rename to pkg/sdk/external_tables_impl.go index 4e62f8fca8..b799040bf0 100644 --- a/internal/sdk/external_tables_impl.go +++ b/pkg/sdk/external_tables_impl.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" ) var _ ExternalTables = (*externalTables)(nil) diff --git a/internal/sdk/external_tables_test.go b/pkg/sdk/external_tables_test.go similarity index 99% rename from internal/sdk/external_tables_test.go rename to pkg/sdk/external_tables_test.go index d65c143e82..71ea7b83e7 100644 --- a/internal/sdk/external_tables_test.go +++ b/pkg/sdk/external_tables_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/external_tables_validations.go b/pkg/sdk/external_tables_validations.go similarity index 99% rename from internal/sdk/external_tables_validations.go rename to pkg/sdk/external_tables_validations.go index c90b5f0061..7d56812a59 100644 --- a/internal/sdk/external_tables_validations.go +++ b/pkg/sdk/external_tables_validations.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/failover_groups.go b/pkg/sdk/failover_groups.go similarity index 99% rename from internal/sdk/failover_groups.go rename to pkg/sdk/failover_groups.go index 91d9555108..f97163693a 100644 --- a/internal/sdk/failover_groups.go +++ b/pkg/sdk/failover_groups.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/failover_groups_test.go b/pkg/sdk/failover_groups_test.go similarity index 98% rename from internal/sdk/failover_groups_test.go rename to pkg/sdk/failover_groups_test.go index 7137ade2c4..5ed41e9582 100644 --- a/internal/sdk/failover_groups_test.go +++ b/pkg/sdk/failover_groups_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/file_format.go b/pkg/sdk/file_format.go similarity index 99% rename from internal/sdk/file_format.go rename to pkg/sdk/file_format.go index 770edf373c..c3faf62920 100644 --- a/internal/sdk/file_format.go +++ b/pkg/sdk/file_format.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/file_format_test.go b/pkg/sdk/file_format_test.go similarity index 99% rename from internal/sdk/file_format_test.go rename to pkg/sdk/file_format_test.go index 6bedb95ea5..158051ec85 100644 --- a/internal/sdk/file_format_test.go +++ b/pkg/sdk/file_format_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/grants.go b/pkg/sdk/grants.go similarity index 99% rename from internal/sdk/grants.go rename to pkg/sdk/grants.go index 1f90baf984..b9af33ecfa 100644 --- a/internal/sdk/grants.go +++ b/pkg/sdk/grants.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/grants_impl.go b/pkg/sdk/grants_impl.go similarity index 97% rename from internal/sdk/grants_impl.go rename to pkg/sdk/grants_impl.go index 879dd498c4..e2a078556e 100644 --- a/internal/sdk/grants_impl.go +++ b/pkg/sdk/grants_impl.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import "context" diff --git a/internal/sdk/grants_test.go b/pkg/sdk/grants_test.go similarity index 99% rename from internal/sdk/grants_test.go rename to pkg/sdk/grants_test.go index 6dfafc523b..f478978562 100644 --- a/internal/sdk/grants_test.go +++ b/pkg/sdk/grants_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/grants_validations.go b/pkg/sdk/grants_validations.go similarity index 99% rename from internal/sdk/grants_validations.go rename to pkg/sdk/grants_validations.go index 52a2448642..05f6a598bb 100644 --- a/internal/sdk/grants_validations.go +++ b/pkg/sdk/grants_validations.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/helper_test.go b/pkg/sdk/helper_test.go similarity index 91% rename from internal/sdk/helper_test.go rename to pkg/sdk/helper_test.go index a19536299b..c6b7c68f32 100644 --- a/internal/sdk/helper_test.go +++ b/pkg/sdk/helper_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/helpers_proposal.go b/pkg/sdk/helpers_proposal.go similarity index 96% rename from internal/sdk/helpers_proposal.go rename to pkg/sdk/helpers_proposal.go index aa66c70715..5787684345 100644 --- a/internal/sdk/helpers_proposal.go +++ b/pkg/sdk/helpers_proposal.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/identifier_helpers.go b/pkg/sdk/identifier_helpers.go similarity index 99% rename from internal/sdk/identifier_helpers.go rename to pkg/sdk/identifier_helpers.go index 6b0db99760..99bc086092 100644 --- a/internal/sdk/identifier_helpers.go +++ b/pkg/sdk/identifier_helpers.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/identifier_helpers_test.go b/pkg/sdk/identifier_helpers_test.go similarity index 97% rename from internal/sdk/identifier_helpers_test.go rename to pkg/sdk/identifier_helpers_test.go index 03cc181500..d3b0a98bd3 100644 --- a/internal/sdk/identifier_helpers_test.go +++ b/pkg/sdk/identifier_helpers_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/integration_test_imports.go b/pkg/sdk/integration_test_imports.go similarity index 91% rename from internal/sdk/integration_test_imports.go rename to pkg/sdk/integration_test_imports.go index e0c19d3f70..ea3398351c 100644 --- a/internal/sdk/integration_test_imports.go +++ b/pkg/sdk/integration_test_imports.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/internal/collections/collection_helpers.go b/pkg/sdk/internal/collections/collection_helpers.go similarity index 81% rename from internal/sdk/internal/collections/collection_helpers.go rename to pkg/sdk/internal/collections/collection_helpers.go index 199b401519..79cd729aad 100644 --- a/internal/sdk/internal/collections/collection_helpers.go +++ b/pkg/sdk/internal/collections/collection_helpers.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package collections import ( diff --git a/internal/sdk/internal/random/random_helpers.go b/pkg/sdk/internal/random/random_helpers.go similarity index 91% rename from internal/sdk/internal/random/random_helpers.go rename to pkg/sdk/internal/random/random_helpers.go index 7fb47cfef5..d9ddac43c0 100644 --- a/internal/sdk/internal/random/random_helpers.go +++ b/pkg/sdk/internal/random/random_helpers.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package random import ( diff --git a/internal/sdk/masking_policy.go b/pkg/sdk/masking_policy.go similarity index 99% rename from internal/sdk/masking_policy.go rename to pkg/sdk/masking_policy.go index b2cb1994e2..26120d6b57 100644 --- a/internal/sdk/masking_policy.go +++ b/pkg/sdk/masking_policy.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/masking_policy_test.go b/pkg/sdk/masking_policy_test.go similarity index 97% rename from internal/sdk/masking_policy_test.go rename to pkg/sdk/masking_policy_test.go index 69c1f9d7b3..6bd8129d05 100644 --- a/internal/sdk/masking_policy_test.go +++ b/pkg/sdk/masking_policy_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" ) func TestMaskingPolicyCreate(t *testing.T) { diff --git a/internal/sdk/network_policies_def.go b/pkg/sdk/network_policies_def.go similarity index 97% rename from internal/sdk/network_policies_def.go rename to pkg/sdk/network_policies_def.go index b18167942f..b2beaf222d 100644 --- a/internal/sdk/network_policies_def.go +++ b/pkg/sdk/network_policies_def.go @@ -1,9 +1,6 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk -import g "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/poc/generator" +import g "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/poc/generator" //go:generate go run ./poc/main.go diff --git a/internal/sdk/network_policies_dto_builders_gen.go b/pkg/sdk/network_policies_dto_builders_gen.go similarity index 100% rename from internal/sdk/network_policies_dto_builders_gen.go rename to pkg/sdk/network_policies_dto_builders_gen.go diff --git a/internal/sdk/network_policies_dto_gen.go b/pkg/sdk/network_policies_dto_gen.go similarity index 95% rename from internal/sdk/network_policies_dto_gen.go rename to pkg/sdk/network_policies_dto_gen.go index 99cd9df91c..8902f05440 100644 --- a/internal/sdk/network_policies_dto_gen.go +++ b/pkg/sdk/network_policies_dto_gen.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk //go:generate go run ./dto-builder-generator/main.go diff --git a/internal/sdk/network_policies_gen.go b/pkg/sdk/network_policies_gen.go similarity index 98% rename from internal/sdk/network_policies_gen.go rename to pkg/sdk/network_policies_gen.go index 3aa0496ca4..d1aba59894 100644 --- a/internal/sdk/network_policies_gen.go +++ b/pkg/sdk/network_policies_gen.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import "context" diff --git a/internal/sdk/network_policies_gen_test.go b/pkg/sdk/network_policies_gen_test.go similarity index 98% rename from internal/sdk/network_policies_gen_test.go rename to pkg/sdk/network_policies_gen_test.go index 740dc2f099..f03fd49bb3 100644 --- a/internal/sdk/network_policies_gen_test.go +++ b/pkg/sdk/network_policies_gen_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/network_policies_impl_gen.go b/pkg/sdk/network_policies_impl_gen.go similarity index 96% rename from internal/sdk/network_policies_impl_gen.go rename to pkg/sdk/network_policies_impl_gen.go index 4207da0364..b8b787c225 100644 --- a/internal/sdk/network_policies_impl_gen.go +++ b/pkg/sdk/network_policies_impl_gen.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" ) var _ NetworkPolicies = (*networkPolicies)(nil) diff --git a/internal/sdk/network_policies_validations_gen.go b/pkg/sdk/network_policies_validations_gen.go similarity index 96% rename from internal/sdk/network_policies_validations_gen.go rename to pkg/sdk/network_policies_validations_gen.go index 8318949ad6..6a7e5aff61 100644 --- a/internal/sdk/network_policies_validations_gen.go +++ b/pkg/sdk/network_policies_validations_gen.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import "errors" diff --git a/internal/sdk/object_types.go b/pkg/sdk/object_types.go similarity index 99% rename from internal/sdk/object_types.go rename to pkg/sdk/object_types.go index f7ea920f91..3f866bccbe 100644 --- a/internal/sdk/object_types.go +++ b/pkg/sdk/object_types.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/parameters.go b/pkg/sdk/parameters.go similarity index 99% rename from internal/sdk/parameters.go rename to pkg/sdk/parameters.go index d2d8f59228..7cff37644a 100644 --- a/internal/sdk/parameters.go +++ b/pkg/sdk/parameters.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/parameters_impl.go b/pkg/sdk/parameters_impl.go similarity index 99% rename from internal/sdk/parameters_impl.go rename to pkg/sdk/parameters_impl.go index ca984818c8..110efbeff3 100644 --- a/internal/sdk/parameters_impl.go +++ b/pkg/sdk/parameters_impl.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/parameters_test.go b/pkg/sdk/parameters_test.go similarity index 89% rename from internal/sdk/parameters_test.go rename to pkg/sdk/parameters_test.go index 37c88319f0..876290a4bd 100644 --- a/internal/sdk/parameters_test.go +++ b/pkg/sdk/parameters_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/password_policy.go b/pkg/sdk/password_policy.go similarity index 99% rename from internal/sdk/password_policy.go rename to pkg/sdk/password_policy.go index a8ec8da6fe..578e8b264e 100644 --- a/internal/sdk/password_policy.go +++ b/pkg/sdk/password_policy.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/password_policy_test.go b/pkg/sdk/password_policy_test.go similarity index 97% rename from internal/sdk/password_policy_test.go rename to pkg/sdk/password_policy_test.go index 7b77012731..a3b62c2fd5 100644 --- a/internal/sdk/password_policy_test.go +++ b/pkg/sdk/password_policy_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" ) func TestPasswordPolicyCreate(t *testing.T) { diff --git a/internal/sdk/pipes.go b/pkg/sdk/pipes.go similarity index 98% rename from internal/sdk/pipes.go rename to pkg/sdk/pipes.go index e70a1f33e9..a0cdee18cb 100644 --- a/internal/sdk/pipes.go +++ b/pkg/sdk/pipes.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/pipes_impl.go b/pkg/sdk/pipes_impl.go similarity index 91% rename from internal/sdk/pipes_impl.go rename to pkg/sdk/pipes_impl.go index 607ff5dfb9..86bc728d7a 100644 --- a/internal/sdk/pipes_impl.go +++ b/pkg/sdk/pipes_impl.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" ) var _ Pipes = (*pipes)(nil) diff --git a/internal/sdk/pipes_test.go b/pkg/sdk/pipes_test.go similarity index 99% rename from internal/sdk/pipes_test.go rename to pkg/sdk/pipes_test.go index e1ffd190a3..9c2047f1ff 100644 --- a/internal/sdk/pipes_test.go +++ b/pkg/sdk/pipes_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/pipes_validations.go b/pkg/sdk/pipes_validations.go similarity index 97% rename from internal/sdk/pipes_validations.go rename to pkg/sdk/pipes_validations.go index 8d3c8c4a40..593dd5f5e7 100644 --- a/internal/sdk/pipes_validations.go +++ b/pkg/sdk/pipes_validations.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/poc/README.md b/pkg/sdk/poc/README.md similarity index 100% rename from internal/sdk/poc/README.md rename to pkg/sdk/poc/README.md diff --git a/internal/sdk/poc/example/database_role_def.go b/pkg/sdk/poc/example/database_role_def.go similarity index 93% rename from internal/sdk/poc/example/database_role_def.go rename to pkg/sdk/poc/example/database_role_def.go index b06d6bc588..af670efb71 100644 --- a/internal/sdk/poc/example/database_role_def.go +++ b/pkg/sdk/poc/example/database_role_def.go @@ -1,10 +1,7 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package example import ( - g "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/poc/generator" + g "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/poc/generator" ) //go:generate go run ../main.go diff --git a/internal/sdk/poc/example/database_role_dto_builders_gen.go b/pkg/sdk/poc/example/database_role_dto_builders_gen.go similarity index 100% rename from internal/sdk/poc/example/database_role_dto_builders_gen.go rename to pkg/sdk/poc/example/database_role_dto_builders_gen.go diff --git a/internal/sdk/poc/example/database_role_dto_gen.go b/pkg/sdk/poc/example/database_role_dto_gen.go similarity index 93% rename from internal/sdk/poc/example/database_role_dto_gen.go rename to pkg/sdk/poc/example/database_role_dto_gen.go index b0ed1ebfa6..837b6e80be 100644 --- a/internal/sdk/poc/example/database_role_dto_gen.go +++ b/pkg/sdk/poc/example/database_role_dto_gen.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package example //go:generate go run ./../../dto-builder-generator/main.go diff --git a/internal/sdk/poc/example/database_role_gen.go b/pkg/sdk/poc/example/database_role_gen.go similarity index 96% rename from internal/sdk/poc/example/database_role_gen.go rename to pkg/sdk/poc/example/database_role_gen.go index f762c98dc4..0a1afd2b7d 100644 --- a/internal/sdk/poc/example/database_role_gen.go +++ b/pkg/sdk/poc/example/database_role_gen.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package example import "context" diff --git a/internal/sdk/poc/example/database_role_gen_integration_test.go b/pkg/sdk/poc/example/database_role_gen_integration_test.go similarity index 78% rename from internal/sdk/poc/example/database_role_gen_integration_test.go rename to pkg/sdk/poc/example/database_role_gen_integration_test.go index e438f65421..4805c1fda2 100644 --- a/internal/sdk/poc/example/database_role_gen_integration_test.go +++ b/pkg/sdk/poc/example/database_role_gen_integration_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package example import "testing" diff --git a/internal/sdk/poc/example/database_role_gen_test.go b/pkg/sdk/poc/example/database_role_gen_test.go similarity index 97% rename from internal/sdk/poc/example/database_role_gen_test.go rename to pkg/sdk/poc/example/database_role_gen_test.go index 787b7cc923..989e22d57c 100644 --- a/internal/sdk/poc/example/database_role_gen_test.go +++ b/pkg/sdk/poc/example/database_role_gen_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package example import "testing" diff --git a/internal/sdk/poc/example/database_role_impl_gen.go b/pkg/sdk/poc/example/database_role_impl_gen.go similarity index 95% rename from internal/sdk/poc/example/database_role_impl_gen.go rename to pkg/sdk/poc/example/database_role_impl_gen.go index 4cb6502a17..15aec1074d 100644 --- a/internal/sdk/poc/example/database_role_impl_gen.go +++ b/pkg/sdk/poc/example/database_role_impl_gen.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package example import "context" diff --git a/internal/sdk/poc/example/database_role_validations_gen.go b/pkg/sdk/poc/example/database_role_validations_gen.go similarity index 95% rename from internal/sdk/poc/example/database_role_validations_gen.go rename to pkg/sdk/poc/example/database_role_validations_gen.go index 30d1d45a42..23da9af2c9 100644 --- a/internal/sdk/poc/example/database_role_validations_gen.go +++ b/pkg/sdk/poc/example/database_role_validations_gen.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package example import "errors" diff --git a/internal/sdk/poc/example/sdk_definitions.go b/pkg/sdk/poc/example/sdk_definitions.go similarity index 97% rename from internal/sdk/poc/example/sdk_definitions.go rename to pkg/sdk/poc/example/sdk_definitions.go index 25f78838f2..7ba8672e28 100644 --- a/internal/sdk/poc/example/sdk_definitions.go +++ b/pkg/sdk/poc/example/sdk_definitions.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package example import ( diff --git a/internal/sdk/poc/generator/db_struct.go b/pkg/sdk/poc/generator/db_struct.go similarity index 90% rename from internal/sdk/poc/generator/db_struct.go rename to pkg/sdk/poc/generator/db_struct.go index ecf8fbacd8..d42cf83d47 100644 --- a/internal/sdk/poc/generator/db_struct.go +++ b/pkg/sdk/poc/generator/db_struct.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator type dbStruct struct { diff --git a/internal/sdk/poc/generator/field.go b/pkg/sdk/poc/generator/field.go similarity index 98% rename from internal/sdk/poc/generator/field.go rename to pkg/sdk/poc/generator/field.go index 8d632d35d5..edfc2b7106 100644 --- a/internal/sdk/poc/generator/field.go +++ b/pkg/sdk/poc/generator/field.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator import ( diff --git a/internal/sdk/poc/generator/field_transformers.go b/pkg/sdk/poc/generator/field_transformers.go similarity index 98% rename from internal/sdk/poc/generator/field_transformers.go rename to pkg/sdk/poc/generator/field_transformers.go index d5a549038e..9e404814c2 100644 --- a/internal/sdk/poc/generator/field_transformers.go +++ b/pkg/sdk/poc/generator/field_transformers.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator import "golang.org/x/exp/slices" diff --git a/internal/sdk/poc/generator/file_util.go b/pkg/sdk/poc/generator/file_util.go similarity index 87% rename from internal/sdk/poc/generator/file_util.go rename to pkg/sdk/poc/generator/file_util.go index a8943eb7cf..1924265ef2 100644 --- a/internal/sdk/poc/generator/file_util.go +++ b/pkg/sdk/poc/generator/file_util.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator import ( diff --git a/internal/sdk/poc/generator/identifier_builders.go b/pkg/sdk/poc/generator/identifier_builders.go similarity index 92% rename from internal/sdk/poc/generator/identifier_builders.go rename to pkg/sdk/poc/generator/identifier_builders.go index 596db8f1a5..1d697c6087 100644 --- a/internal/sdk/poc/generator/identifier_builders.go +++ b/pkg/sdk/poc/generator/identifier_builders.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator // Name adds identifier with field name "name" and type will be inferred from interface definition diff --git a/internal/sdk/poc/generator/interface.go b/pkg/sdk/poc/generator/interface.go similarity index 93% rename from internal/sdk/poc/generator/interface.go rename to pkg/sdk/poc/generator/interface.go index 9004d81e29..e5674b1e00 100644 --- a/internal/sdk/poc/generator/interface.go +++ b/pkg/sdk/poc/generator/interface.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator // Interface groups operations for particular object or objects family (e.g. DATABASE ROLE) diff --git a/internal/sdk/poc/generator/keyword_builders.go b/pkg/sdk/poc/generator/keyword_builders.go similarity index 97% rename from internal/sdk/poc/generator/keyword_builders.go rename to pkg/sdk/poc/generator/keyword_builders.go index 008b5382af..73c5717232 100644 --- a/internal/sdk/poc/generator/keyword_builders.go +++ b/pkg/sdk/poc/generator/keyword_builders.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator func (v *queryStruct) OptionalSQL(sql string) *queryStruct { diff --git a/internal/sdk/poc/generator/kind.go b/pkg/sdk/poc/generator/kind.go similarity index 85% rename from internal/sdk/poc/generator/kind.go rename to pkg/sdk/poc/generator/kind.go index e32c94ef3b..68b962b76c 100644 --- a/internal/sdk/poc/generator/kind.go +++ b/pkg/sdk/poc/generator/kind.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator import "reflect" diff --git a/internal/sdk/poc/generator/operation.go b/pkg/sdk/poc/generator/operation.go similarity index 98% rename from internal/sdk/poc/generator/operation.go rename to pkg/sdk/poc/generator/operation.go index 5d456f0c9d..6dddf5d8d0 100644 --- a/internal/sdk/poc/generator/operation.go +++ b/pkg/sdk/poc/generator/operation.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator type OperationKind string diff --git a/internal/sdk/poc/generator/parameter_builders.go b/pkg/sdk/poc/generator/parameter_builders.go similarity index 97% rename from internal/sdk/poc/generator/parameter_builders.go rename to pkg/sdk/poc/generator/parameter_builders.go index 3c31548804..8c5cf6d924 100644 --- a/internal/sdk/poc/generator/parameter_builders.go +++ b/pkg/sdk/poc/generator/parameter_builders.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator func (v *queryStruct) assignment(name string, kind string, transformer *ParameterTransformer) *queryStruct { diff --git a/internal/sdk/poc/generator/plain_struct.go b/pkg/sdk/poc/generator/plain_struct.go similarity index 90% rename from internal/sdk/poc/generator/plain_struct.go rename to pkg/sdk/poc/generator/plain_struct.go index c6633b250a..c011326bbd 100644 --- a/internal/sdk/poc/generator/plain_struct.go +++ b/pkg/sdk/poc/generator/plain_struct.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator type plainStruct struct { diff --git a/internal/sdk/poc/generator/query_struct.go b/pkg/sdk/poc/generator/query_struct.go similarity index 96% rename from internal/sdk/poc/generator/query_struct.go rename to pkg/sdk/poc/generator/query_struct.go index 7430e037f6..68278308bb 100644 --- a/internal/sdk/poc/generator/query_struct.go +++ b/pkg/sdk/poc/generator/query_struct.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator // TODO For Field abstractions use internal Field representation instead of copying only needed fields, e.g. diff --git a/internal/sdk/poc/generator/static_builders.go b/pkg/sdk/poc/generator/static_builders.go similarity index 89% rename from internal/sdk/poc/generator/static_builders.go rename to pkg/sdk/poc/generator/static_builders.go index ad45dc026d..b47a7d89dc 100644 --- a/internal/sdk/poc/generator/static_builders.go +++ b/pkg/sdk/poc/generator/static_builders.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator func (v *queryStruct) SQL(sql string) *queryStruct { diff --git a/internal/sdk/poc/generator/tag_builder.go b/pkg/sdk/poc/generator/tag_builder.go similarity index 96% rename from internal/sdk/poc/generator/tag_builder.go rename to pkg/sdk/poc/generator/tag_builder.go index 4e9c42499f..cc9ac85303 100644 --- a/internal/sdk/poc/generator/tag_builder.go +++ b/pkg/sdk/poc/generator/tag_builder.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator type TagBuilder struct { diff --git a/internal/sdk/poc/generator/template_executors.go b/pkg/sdk/poc/generator/template_executors.go similarity index 97% rename from internal/sdk/poc/generator/template_executors.go rename to pkg/sdk/poc/generator/template_executors.go index b5d9e036a2..19537fc09c 100644 --- a/internal/sdk/poc/generator/template_executors.go +++ b/pkg/sdk/poc/generator/template_executors.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator import ( diff --git a/internal/sdk/poc/generator/templates.go b/pkg/sdk/poc/generator/templates.go similarity index 98% rename from internal/sdk/poc/generator/templates.go rename to pkg/sdk/poc/generator/templates.go index 5eae438c20..a8d97401da 100644 --- a/internal/sdk/poc/generator/templates.go +++ b/pkg/sdk/poc/generator/templates.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator import "text/template" @@ -121,7 +118,7 @@ var ImplementationTemplate, _ = template.New("implementationTemplate"). import ( "context" -"github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" +"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" ) {{ $impl := .NameLowerCased }} diff --git a/internal/sdk/poc/generator/util.go b/pkg/sdk/poc/generator/util.go similarity index 95% rename from internal/sdk/poc/generator/util.go rename to pkg/sdk/poc/generator/util.go index ca05a7bfc2..9619c2e540 100644 --- a/internal/sdk/poc/generator/util.go +++ b/pkg/sdk/poc/generator/util.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator import ( diff --git a/internal/sdk/poc/generator/validation.go b/pkg/sdk/poc/generator/validation.go similarity index 98% rename from internal/sdk/poc/generator/validation.go rename to pkg/sdk/poc/generator/validation.go index a8c0e23ffb..39729f3a47 100644 --- a/internal/sdk/poc/generator/validation.go +++ b/pkg/sdk/poc/generator/validation.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package generator import ( diff --git a/internal/sdk/poc/main.go b/pkg/sdk/poc/main.go similarity index 90% rename from internal/sdk/poc/main.go rename to pkg/sdk/poc/main.go index ae958c0691..a403ae1107 100644 --- a/internal/sdk/poc/main.go +++ b/pkg/sdk/poc/main.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - //go:build exclude package main @@ -13,9 +10,9 @@ import ( "os" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/poc/example" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/poc/generator" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/poc/example" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/poc/generator" ) var definitionMapping = map[string]*generator.Interface{ diff --git a/internal/sdk/privileges.go b/pkg/sdk/privileges.go similarity index 99% rename from internal/sdk/privileges.go rename to pkg/sdk/privileges.go index 280a058edc..0d7a13d876 100644 --- a/internal/sdk/privileges.go +++ b/pkg/sdk/privileges.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk type GlobalPrivilege string diff --git a/internal/sdk/random.go b/pkg/sdk/random.go similarity index 93% rename from internal/sdk/random.go rename to pkg/sdk/random.go index c0dc0a852c..a28b474858 100644 --- a/internal/sdk/random.go +++ b/pkg/sdk/random.go @@ -1,10 +1,7 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" ) // Helper methods in this file are used both in SDK tests and also in integration tests. diff --git a/internal/sdk/replication_functions.go b/pkg/sdk/replication_functions.go similarity index 98% rename from internal/sdk/replication_functions.go rename to pkg/sdk/replication_functions.go index 52d83cdb5a..2b42c42dbb 100644 --- a/internal/sdk/replication_functions.go +++ b/pkg/sdk/replication_functions.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/replication_groups.go b/pkg/sdk/replication_groups.go similarity index 71% rename from internal/sdk/replication_groups.go rename to pkg/sdk/replication_groups.go index 58a07b8af3..f38687f4f5 100644 --- a/internal/sdk/replication_groups.go +++ b/pkg/sdk/replication_groups.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk // note: once Replication Groups is implemented, Databases Integration test for CreateSecondary needs to be implemented diff --git a/internal/sdk/resource_monitor_internal_test.go b/pkg/sdk/resource_monitor_internal_test.go similarity index 89% rename from internal/sdk/resource_monitor_internal_test.go rename to pkg/sdk/resource_monitor_internal_test.go index af4a2966eb..4bc45e8184 100644 --- a/internal/sdk/resource_monitor_internal_test.go +++ b/pkg/sdk/resource_monitor_internal_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/resource_monitors.go b/pkg/sdk/resource_monitors.go similarity index 99% rename from internal/sdk/resource_monitors.go rename to pkg/sdk/resource_monitors.go index b4bca58f76..ce9cea34ca 100644 --- a/internal/sdk/resource_monitors.go +++ b/pkg/sdk/resource_monitors.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/resource_monitors_test.go b/pkg/sdk/resource_monitors_test.go similarity index 98% rename from internal/sdk/resource_monitors_test.go rename to pkg/sdk/resource_monitors_test.go index 786a8a6d02..b42dbf8795 100644 --- a/internal/sdk/resource_monitors_test.go +++ b/pkg/sdk/resource_monitors_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/roles.go b/pkg/sdk/roles.go similarity index 98% rename from internal/sdk/roles.go rename to pkg/sdk/roles.go index b931be4218..d0c32d2acc 100644 --- a/internal/sdk/roles.go +++ b/pkg/sdk/roles.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/roles_dto.go b/pkg/sdk/roles_dto.go similarity index 98% rename from internal/sdk/roles_dto.go rename to pkg/sdk/roles_dto.go index ed114b139b..0300d36d6c 100644 --- a/internal/sdk/roles_dto.go +++ b/pkg/sdk/roles_dto.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk var ( diff --git a/internal/sdk/roles_impl.go b/pkg/sdk/roles_impl.go similarity index 91% rename from internal/sdk/roles_impl.go rename to pkg/sdk/roles_impl.go index ef9094ffb7..c6ce1dbabb 100644 --- a/internal/sdk/roles_impl.go +++ b/pkg/sdk/roles_impl.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" ) var ( diff --git a/internal/sdk/roles_test.go b/pkg/sdk/roles_test.go similarity index 99% rename from internal/sdk/roles_test.go rename to pkg/sdk/roles_test.go index a45a653013..96b219092d 100644 --- a/internal/sdk/roles_test.go +++ b/pkg/sdk/roles_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/roles_validations.go b/pkg/sdk/roles_validations.go similarity index 97% rename from internal/sdk/roles_validations.go rename to pkg/sdk/roles_validations.go index 356394279f..a231928b59 100644 --- a/internal/sdk/roles_validations.go +++ b/pkg/sdk/roles_validations.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import "errors" diff --git a/internal/sdk/schemas.go b/pkg/sdk/schemas.go similarity index 99% rename from internal/sdk/schemas.go rename to pkg/sdk/schemas.go index c2f85fde17..90b0e32d7f 100644 --- a/internal/sdk/schemas.go +++ b/pkg/sdk/schemas.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/schemas_test.go b/pkg/sdk/schemas_test.go similarity index 99% rename from internal/sdk/schemas_test.go rename to pkg/sdk/schemas_test.go index 65c818b2ff..26fecbbdbe 100644 --- a/internal/sdk/schemas_test.go +++ b/pkg/sdk/schemas_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/session_policies_def.go b/pkg/sdk/session_policies_def.go similarity index 97% rename from internal/sdk/session_policies_def.go rename to pkg/sdk/session_policies_def.go index f6bb92313a..86b86ae823 100644 --- a/internal/sdk/session_policies_def.go +++ b/pkg/sdk/session_policies_def.go @@ -1,9 +1,6 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk -import g "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/poc/generator" +import g "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/poc/generator" //go:generate go run ./poc/main.go diff --git a/internal/sdk/session_policies_dto_builders_gen.go b/pkg/sdk/session_policies_dto_builders_gen.go similarity index 100% rename from internal/sdk/session_policies_dto_builders_gen.go rename to pkg/sdk/session_policies_dto_builders_gen.go diff --git a/internal/sdk/session_policies_dto_gen.go b/pkg/sdk/session_policies_dto_gen.go similarity index 95% rename from internal/sdk/session_policies_dto_gen.go rename to pkg/sdk/session_policies_dto_gen.go index 3c33d94533..e041323701 100644 --- a/internal/sdk/session_policies_dto_gen.go +++ b/pkg/sdk/session_policies_dto_gen.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk //go:generate go run ./dto-builder-generator/main.go diff --git a/internal/sdk/session_policies_gen.go b/pkg/sdk/session_policies_gen.go similarity index 98% rename from internal/sdk/session_policies_gen.go rename to pkg/sdk/session_policies_gen.go index c5cd86fd72..00c0480541 100644 --- a/internal/sdk/session_policies_gen.go +++ b/pkg/sdk/session_policies_gen.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/session_policies_gen_test.go b/pkg/sdk/session_policies_gen_test.go similarity index 99% rename from internal/sdk/session_policies_gen_test.go rename to pkg/sdk/session_policies_gen_test.go index 69a3c0f232..0c68390c53 100644 --- a/internal/sdk/session_policies_gen_test.go +++ b/pkg/sdk/session_policies_gen_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import "testing" diff --git a/internal/sdk/session_policies_impl_gen.go b/pkg/sdk/session_policies_impl_gen.go similarity index 96% rename from internal/sdk/session_policies_impl_gen.go rename to pkg/sdk/session_policies_impl_gen.go index 3cd0d43a75..1d48dadff7 100644 --- a/internal/sdk/session_policies_impl_gen.go +++ b/pkg/sdk/session_policies_impl_gen.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" ) var _ SessionPolicies = (*sessionPolicies)(nil) diff --git a/internal/sdk/session_policies_validations_gen.go b/pkg/sdk/session_policies_validations_gen.go similarity index 97% rename from internal/sdk/session_policies_validations_gen.go rename to pkg/sdk/session_policies_validations_gen.go index 48eb411eab..f14894942c 100644 --- a/internal/sdk/session_policies_validations_gen.go +++ b/pkg/sdk/session_policies_validations_gen.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import "errors" diff --git a/internal/sdk/sessions.go b/pkg/sdk/sessions.go similarity index 98% rename from internal/sdk/sessions.go rename to pkg/sdk/sessions.go index 59c8626600..74e95439ad 100644 --- a/internal/sdk/sessions.go +++ b/pkg/sdk/sessions.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/shares.go b/pkg/sdk/shares.go similarity index 99% rename from internal/sdk/shares.go rename to pkg/sdk/shares.go index 87915314c8..7a55136e9e 100644 --- a/internal/sdk/shares.go +++ b/pkg/sdk/shares.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/shares_test.go b/pkg/sdk/shares_test.go similarity index 96% rename from internal/sdk/shares_test.go rename to pkg/sdk/shares_test.go index c95cad7231..3f6e038442 100644 --- a/internal/sdk/shares_test.go +++ b/pkg/sdk/shares_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" ) func TestSharesCreate(t *testing.T) { diff --git a/internal/sdk/sql_builder.go b/pkg/sdk/sql_builder.go similarity index 99% rename from internal/sdk/sql_builder.go rename to pkg/sdk/sql_builder.go index 9a826bbbf7..dd71e51b8f 100644 --- a/internal/sdk/sql_builder.go +++ b/pkg/sdk/sql_builder.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/sql_builder_test.go b/pkg/sdk/sql_builder_test.go similarity index 99% rename from internal/sdk/sql_builder_test.go rename to pkg/sdk/sql_builder_test.go index f0dd6f26f0..f6c0a895de 100644 --- a/internal/sdk/sql_builder_test.go +++ b/pkg/sdk/sql_builder_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/stages.go b/pkg/sdk/stages.go similarity index 84% rename from internal/sdk/stages.go rename to pkg/sdk/stages.go index 7587c437dd..aecd5695a5 100644 --- a/internal/sdk/stages.go +++ b/pkg/sdk/stages.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk // Stage is a placeholder for now, will be implemented later. diff --git a/internal/sdk/streams_def.go b/pkg/sdk/streams_def.go similarity index 98% rename from internal/sdk/streams_def.go rename to pkg/sdk/streams_def.go index cd2398af91..68bb7913cc 100644 --- a/internal/sdk/streams_def.go +++ b/pkg/sdk/streams_def.go @@ -1,9 +1,6 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk -import g "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/poc/generator" +import g "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/poc/generator" //go:generate go run ./poc/main.go diff --git a/internal/sdk/streams_dto_builders_gen.go b/pkg/sdk/streams_dto_builders_gen.go similarity index 100% rename from internal/sdk/streams_dto_builders_gen.go rename to pkg/sdk/streams_dto_builders_gen.go diff --git a/internal/sdk/streams_dto_gen.go b/pkg/sdk/streams_dto_gen.go similarity index 97% rename from internal/sdk/streams_dto_gen.go rename to pkg/sdk/streams_dto_gen.go index ee5f72af3c..ad0a868b05 100644 --- a/internal/sdk/streams_dto_gen.go +++ b/pkg/sdk/streams_dto_gen.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk //go:generate go run ./dto-builder-generator/main.go diff --git a/internal/sdk/streams_gen.go b/pkg/sdk/streams_gen.go similarity index 99% rename from internal/sdk/streams_gen.go rename to pkg/sdk/streams_gen.go index 2df9b3ab3a..4980381263 100644 --- a/internal/sdk/streams_gen.go +++ b/pkg/sdk/streams_gen.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/streams_gen_test.go b/pkg/sdk/streams_gen_test.go similarity index 99% rename from internal/sdk/streams_gen_test.go rename to pkg/sdk/streams_gen_test.go index 9a9d555254..9ddf6362c3 100644 --- a/internal/sdk/streams_gen_test.go +++ b/pkg/sdk/streams_gen_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import "testing" diff --git a/internal/sdk/streams_impl_gen.go b/pkg/sdk/streams_impl_gen.go similarity index 97% rename from internal/sdk/streams_impl_gen.go rename to pkg/sdk/streams_impl_gen.go index 1fa641c77c..fcbbf46f15 100644 --- a/internal/sdk/streams_impl_gen.go +++ b/pkg/sdk/streams_impl_gen.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" ) var _ Streams = (*streams)(nil) diff --git a/internal/sdk/streams_validations_gen.go b/pkg/sdk/streams_validations_gen.go similarity index 98% rename from internal/sdk/streams_validations_gen.go rename to pkg/sdk/streams_validations_gen.go index 4c6cc68e87..b350ec10bb 100644 --- a/internal/sdk/streams_validations_gen.go +++ b/pkg/sdk/streams_validations_gen.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import "errors" diff --git a/internal/sdk/sweepers.go b/pkg/sdk/sweepers.go similarity index 98% rename from internal/sdk/sweepers.go rename to pkg/sdk/sweepers.go index 2a3eb0516b..659d763e30 100644 --- a/internal/sdk/sweepers.go +++ b/pkg/sdk/sweepers.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/sweepers_test.go b/pkg/sdk/sweepers_test.go similarity index 93% rename from internal/sdk/sweepers_test.go rename to pkg/sdk/sweepers_test.go index 9ffbaa996e..2268a9e088 100644 --- a/internal/sdk/sweepers_test.go +++ b/pkg/sdk/sweepers_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/system_functions.go b/pkg/sdk/system_functions.go similarity index 91% rename from internal/sdk/system_functions.go rename to pkg/sdk/system_functions.go index 2a63ebddd7..d948fff328 100644 --- a/internal/sdk/system_functions.go +++ b/pkg/sdk/system_functions.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/tables.go b/pkg/sdk/tables.go similarity index 84% rename from internal/sdk/tables.go rename to pkg/sdk/tables.go index b15e724ea6..29c881939e 100644 --- a/internal/sdk/tables.go +++ b/pkg/sdk/tables.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk // placeholder for the real implementation. diff --git a/internal/sdk/tags.go b/pkg/sdk/tags.go similarity index 98% rename from internal/sdk/tags.go rename to pkg/sdk/tags.go index 3ef7188ac0..63497f1fa1 100644 --- a/internal/sdk/tags.go +++ b/pkg/sdk/tags.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - //lint:file-ignore U1000 Ignore all unused code, it's generated package sdk diff --git a/internal/sdk/tags_dto.go b/pkg/sdk/tags_dto.go similarity index 94% rename from internal/sdk/tags_dto.go rename to pkg/sdk/tags_dto.go index 359a0ebd2d..6e6169558f 100644 --- a/internal/sdk/tags_dto.go +++ b/pkg/sdk/tags_dto.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk var ( diff --git a/internal/sdk/tags_dto_builders.go b/pkg/sdk/tags_dto_builders.go similarity index 98% rename from internal/sdk/tags_dto_builders.go rename to pkg/sdk/tags_dto_builders.go index 529427ab31..c63cbd691c 100644 --- a/internal/sdk/tags_dto_builders.go +++ b/pkg/sdk/tags_dto_builders.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk func NewCreateTagRequest(name SchemaObjectIdentifier) *CreateTagRequest { diff --git a/internal/sdk/tags_impl.go b/pkg/sdk/tags_impl.go similarity index 92% rename from internal/sdk/tags_impl.go rename to pkg/sdk/tags_impl.go index ac6ba7f140..1fba0d1537 100644 --- a/internal/sdk/tags_impl.go +++ b/pkg/sdk/tags_impl.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( "context" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" ) var _ Tags = (*tags)(nil) diff --git a/internal/sdk/tags_test.go b/pkg/sdk/tags_test.go similarity index 98% rename from internal/sdk/tags_test.go rename to pkg/sdk/tags_test.go index 5333c730fa..a630b66b28 100644 --- a/internal/sdk/tags_test.go +++ b/pkg/sdk/tags_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" ) func TestTagCreate(t *testing.T) { diff --git a/internal/sdk/tags_validations.go b/pkg/sdk/tags_validations.go similarity index 98% rename from internal/sdk/tags_validations.go rename to pkg/sdk/tags_validations.go index 2ebbe41ced..dc3d19c0d3 100644 --- a/internal/sdk/tags_validations.go +++ b/pkg/sdk/tags_validations.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/tasks_def.go b/pkg/sdk/tasks_def.go similarity index 98% rename from internal/sdk/tasks_def.go rename to pkg/sdk/tasks_def.go index afd9017c8a..11e6840967 100644 --- a/internal/sdk/tasks_def.go +++ b/pkg/sdk/tasks_def.go @@ -1,9 +1,6 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk -import g "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/poc/generator" +import g "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/poc/generator" //go:generate go run ./poc/main.go diff --git a/internal/sdk/tasks_dto_builders_gen.go b/pkg/sdk/tasks_dto_builders_gen.go similarity index 100% rename from internal/sdk/tasks_dto_builders_gen.go rename to pkg/sdk/tasks_dto_builders_gen.go diff --git a/internal/sdk/tasks_dto_gen.go b/pkg/sdk/tasks_dto_gen.go similarity index 98% rename from internal/sdk/tasks_dto_gen.go rename to pkg/sdk/tasks_dto_gen.go index 21d5c3b54f..aa58a0c7aa 100644 --- a/internal/sdk/tasks_dto_gen.go +++ b/pkg/sdk/tasks_dto_gen.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk //go:generate go run ./dto-builder-generator/main.go diff --git a/internal/sdk/tasks_gen.go b/pkg/sdk/tasks_gen.go similarity index 99% rename from internal/sdk/tasks_gen.go rename to pkg/sdk/tasks_gen.go index 2c035ba2b4..c7e31aeb11 100644 --- a/internal/sdk/tasks_gen.go +++ b/pkg/sdk/tasks_gen.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/tasks_gen_test.go b/pkg/sdk/tasks_gen_test.go similarity index 99% rename from internal/sdk/tasks_gen_test.go rename to pkg/sdk/tasks_gen_test.go index 4ced4cb772..c167a0998d 100644 --- a/internal/sdk/tasks_gen_test.go +++ b/pkg/sdk/tasks_gen_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/tasks_impl_gen.go b/pkg/sdk/tasks_impl_gen.go similarity index 99% rename from internal/sdk/tasks_impl_gen.go rename to pkg/sdk/tasks_impl_gen.go index 0b00fe0622..dd6f3070aa 100644 --- a/internal/sdk/tasks_impl_gen.go +++ b/pkg/sdk/tasks_impl_gen.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/tasks_test.go b/pkg/sdk/tasks_test.go similarity index 98% rename from internal/sdk/tasks_test.go rename to pkg/sdk/tasks_test.go index 5b1eb84955..9d9f27d7d5 100644 --- a/internal/sdk/tasks_test.go +++ b/pkg/sdk/tasks_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/tasks_validations_gen.go b/pkg/sdk/tasks_validations_gen.go similarity index 98% rename from internal/sdk/tasks_validations_gen.go rename to pkg/sdk/tasks_validations_gen.go index 85b8b9c040..b3b5317b53 100644 --- a/internal/sdk/tasks_validations_gen.go +++ b/pkg/sdk/tasks_validations_gen.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import "errors" diff --git a/internal/sdk/testint/accounts_integration_test.go b/pkg/sdk/testint/accounts_integration_test.go similarity index 97% rename from internal/sdk/testint/accounts_integration_test.go rename to pkg/sdk/testint/accounts_integration_test.go index 4090dddba3..2bd7cb035f 100644 --- a/internal/sdk/testint/accounts_integration_test.go +++ b/pkg/sdk/testint/accounts_integration_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( @@ -10,8 +7,8 @@ import ( "testing" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/avast/retry-go" "github.com/brianvoe/gofakeit/v6" "github.com/stretchr/testify/assert" diff --git a/internal/sdk/testint/alerts_integration_test.go b/pkg/sdk/testint/alerts_integration_test.go similarity index 98% rename from internal/sdk/testint/alerts_integration_test.go rename to pkg/sdk/testint/alerts_integration_test.go index 8635b62632..3d7c8ad6ce 100644 --- a/internal/sdk/testint/alerts_integration_test.go +++ b/pkg/sdk/testint/alerts_integration_test.go @@ -1,14 +1,11 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "strings" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/comments_integration_test.go b/pkg/sdk/testint/comments_integration_test.go similarity index 82% rename from internal/sdk/testint/comments_integration_test.go rename to pkg/sdk/testint/comments_integration_test.go index 232f34da0a..18afc97d52 100644 --- a/internal/sdk/testint/comments_integration_test.go +++ b/pkg/sdk/testint/comments_integration_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/context_functions_integration_test.go b/pkg/sdk/testint/context_functions_integration_test.go similarity index 97% rename from internal/sdk/testint/context_functions_integration_test.go rename to pkg/sdk/testint/context_functions_integration_test.go index 4c857d649a..12906bae8c 100644 --- a/internal/sdk/testint/context_functions_integration_test.go +++ b/pkg/sdk/testint/context_functions_integration_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/conversion_functions_integration_test.go b/pkg/sdk/testint/conversion_functions_integration_test.go similarity index 94% rename from internal/sdk/testint/conversion_functions_integration_test.go rename to pkg/sdk/testint/conversion_functions_integration_test.go index ba7b73f36d..303e25e4bb 100644 --- a/internal/sdk/testint/conversion_functions_integration_test.go +++ b/pkg/sdk/testint/conversion_functions_integration_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "testing" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/database_role_integration_test.go b/pkg/sdk/testint/database_role_integration_test.go similarity index 96% rename from internal/sdk/testint/database_role_integration_test.go rename to pkg/sdk/testint/database_role_integration_test.go index 29b4a584c8..c4c9a76e42 100644 --- a/internal/sdk/testint/database_role_integration_test.go +++ b/pkg/sdk/testint/database_role_integration_test.go @@ -1,14 +1,11 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/databases_integration_test.go b/pkg/sdk/testint/databases_integration_test.go similarity index 98% rename from internal/sdk/testint/databases_integration_test.go rename to pkg/sdk/testint/databases_integration_test.go index ecc84a3b2f..07ac07f5ed 100644 --- a/internal/sdk/testint/databases_integration_test.go +++ b/pkg/sdk/testint/databases_integration_test.go @@ -1,14 +1,11 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "strings" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/dynamic_table_integration_test.go b/pkg/sdk/testint/dynamic_table_integration_test.go similarity index 96% rename from internal/sdk/testint/dynamic_table_integration_test.go rename to pkg/sdk/testint/dynamic_table_integration_test.go index 55014e6dd4..0c6edea858 100644 --- a/internal/sdk/testint/dynamic_table_integration_test.go +++ b/pkg/sdk/testint/dynamic_table_integration_test.go @@ -1,14 +1,11 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "context" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/external_tables_integration_test.go b/pkg/sdk/testint/external_tables_integration_test.go similarity index 97% rename from internal/sdk/testint/external_tables_integration_test.go rename to pkg/sdk/testint/external_tables_integration_test.go index 0e263f599a..a3eb9e639b 100644 --- a/internal/sdk/testint/external_tables_integration_test.go +++ b/pkg/sdk/testint/external_tables_integration_test.go @@ -1,15 +1,12 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "fmt" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/failover_groups_integration_test.go b/pkg/sdk/testint/failover_groups_integration_test.go similarity index 99% rename from internal/sdk/testint/failover_groups_integration_test.go rename to pkg/sdk/testint/failover_groups_integration_test.go index 8406c7f04b..7974e5c633 100644 --- a/internal/sdk/testint/failover_groups_integration_test.go +++ b/pkg/sdk/testint/failover_groups_integration_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( @@ -9,7 +6,7 @@ import ( "testing" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/avast/retry-go" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/sdk/testint/file_format_integration_test.go b/pkg/sdk/testint/file_format_integration_test.go similarity index 98% rename from internal/sdk/testint/file_format_integration_test.go rename to pkg/sdk/testint/file_format_integration_test.go index 45c1a0a22c..7803d2cd37 100644 --- a/internal/sdk/testint/file_format_integration_test.go +++ b/pkg/sdk/testint/file_format_integration_test.go @@ -1,14 +1,11 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "testing" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/grants_integration_test.go b/pkg/sdk/testint/grants_integration_test.go similarity index 98% rename from internal/sdk/testint/grants_integration_test.go rename to pkg/sdk/testint/grants_integration_test.go index 19393b40e7..a4c6cb7063 100644 --- a/internal/sdk/testint/grants_integration_test.go +++ b/pkg/sdk/testint/grants_integration_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/helpers_test.go b/pkg/sdk/testint/helpers_test.go similarity index 99% rename from internal/sdk/testint/helpers_test.go rename to pkg/sdk/testint/helpers_test.go index 3a116636d2..97bd3fbb44 100644 --- a/internal/sdk/testint/helpers_test.go +++ b/pkg/sdk/testint/helpers_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( @@ -9,8 +6,8 @@ import ( "fmt" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/masking_policy_integration_test.go b/pkg/sdk/testint/masking_policy_integration_test.go similarity index 98% rename from internal/sdk/testint/masking_policy_integration_test.go rename to pkg/sdk/testint/masking_policy_integration_test.go index 27cbdd9359..16d487d27f 100644 --- a/internal/sdk/testint/masking_policy_integration_test.go +++ b/pkg/sdk/testint/masking_policy_integration_test.go @@ -1,14 +1,11 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "strings" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/network_policies_gen_integration_test.go b/pkg/sdk/testint/network_policies_gen_integration_test.go similarity index 96% rename from internal/sdk/testint/network_policies_gen_integration_test.go rename to pkg/sdk/testint/network_policies_gen_integration_test.go index 699d0f6c0a..a0d8d219fa 100644 --- a/internal/sdk/testint/network_policies_gen_integration_test.go +++ b/pkg/sdk/testint/network_policies_gen_integration_test.go @@ -1,14 +1,11 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "fmt" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/parsers.go b/pkg/sdk/testint/parsers.go similarity index 81% rename from internal/sdk/testint/parsers.go rename to pkg/sdk/testint/parsers.go index eaff4c072b..86d8a90fef 100644 --- a/internal/sdk/testint/parsers.go +++ b/pkg/sdk/testint/parsers.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import "time" diff --git a/internal/sdk/testint/password_policy_integration_test.go b/pkg/sdk/testint/password_policy_integration_test.go similarity index 98% rename from internal/sdk/testint/password_policy_integration_test.go rename to pkg/sdk/testint/password_policy_integration_test.go index f0dc59c935..de98ec4530 100644 --- a/internal/sdk/testint/password_policy_integration_test.go +++ b/pkg/sdk/testint/password_policy_integration_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/pipes_integration_test.go b/pkg/sdk/testint/pipes_integration_test.go similarity index 98% rename from internal/sdk/testint/pipes_integration_test.go rename to pkg/sdk/testint/pipes_integration_test.go index 0b93792adb..59b13f5080 100644 --- a/internal/sdk/testint/pipes_integration_test.go +++ b/pkg/sdk/testint/pipes_integration_test.go @@ -1,14 +1,11 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "fmt" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/replication_functions_integration_test.go b/pkg/sdk/testint/replication_functions_integration_test.go similarity index 89% rename from internal/sdk/testint/replication_functions_integration_test.go rename to pkg/sdk/testint/replication_functions_integration_test.go index 274deb5e3e..1bc7b8bfc3 100644 --- a/internal/sdk/testint/replication_functions_integration_test.go +++ b/pkg/sdk/testint/replication_functions_integration_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/resource_monitors_integration_test.go b/pkg/sdk/testint/resource_monitors_integration_test.go similarity index 97% rename from internal/sdk/testint/resource_monitors_integration_test.go rename to pkg/sdk/testint/resource_monitors_integration_test.go index b82fe80efb..86e19aa5fc 100644 --- a/internal/sdk/testint/resource_monitors_integration_test.go +++ b/pkg/sdk/testint/resource_monitors_integration_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/roles_integration_test.go b/pkg/sdk/testint/roles_integration_test.go similarity index 97% rename from internal/sdk/testint/roles_integration_test.go rename to pkg/sdk/testint/roles_integration_test.go index 14f7048e5d..5e41541e95 100644 --- a/internal/sdk/testint/roles_integration_test.go +++ b/pkg/sdk/testint/roles_integration_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/schemas_integration_test.go b/pkg/sdk/testint/schemas_integration_test.go similarity index 98% rename from internal/sdk/testint/schemas_integration_test.go rename to pkg/sdk/testint/schemas_integration_test.go index bd465146e3..a4a8cf351c 100644 --- a/internal/sdk/testint/schemas_integration_test.go +++ b/pkg/sdk/testint/schemas_integration_test.go @@ -1,14 +1,11 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "fmt" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/session_policies_gen_integration_test.go b/pkg/sdk/testint/session_policies_gen_integration_test.go similarity index 96% rename from internal/sdk/testint/session_policies_gen_integration_test.go rename to pkg/sdk/testint/session_policies_gen_integration_test.go index 881728b595..1f70f2cf15 100644 --- a/internal/sdk/testint/session_policies_gen_integration_test.go +++ b/pkg/sdk/testint/session_policies_gen_integration_test.go @@ -1,14 +1,11 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/sessions_integration_test.go b/pkg/sdk/testint/sessions_integration_test.go similarity index 97% rename from internal/sdk/testint/sessions_integration_test.go rename to pkg/sdk/testint/sessions_integration_test.go index ae827393ce..f14211fac4 100644 --- a/internal/sdk/testint/sessions_integration_test.go +++ b/pkg/sdk/testint/sessions_integration_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/setup_integration_test.go b/pkg/sdk/testint/setup_integration_test.go similarity index 94% rename from internal/sdk/testint/setup_integration_test.go rename to pkg/sdk/testint/setup_integration_test.go index 41808f1728..4508bfdbc9 100644 --- a/internal/sdk/testint/setup_integration_test.go +++ b/pkg/sdk/testint/setup_integration_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( @@ -10,8 +7,8 @@ import ( "testing" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" ) var itc integrationTestContext diff --git a/internal/sdk/testint/shares_integration_test.go b/pkg/sdk/testint/shares_integration_test.go similarity index 98% rename from internal/sdk/testint/shares_integration_test.go rename to pkg/sdk/testint/shares_integration_test.go index f999879264..1a9724511a 100644 --- a/internal/sdk/testint/shares_integration_test.go +++ b/pkg/sdk/testint/shares_integration_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/streams_gen_integration_test.go b/pkg/sdk/testint/streams_gen_integration_test.go similarity index 97% rename from internal/sdk/testint/streams_gen_integration_test.go rename to pkg/sdk/testint/streams_gen_integration_test.go index de89428748..a6d1aba37f 100644 --- a/internal/sdk/testint/streams_gen_integration_test.go +++ b/pkg/sdk/testint/streams_gen_integration_test.go @@ -1,16 +1,13 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "fmt" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/sdk/testint/system_functions_integration_test.go b/pkg/sdk/testint/system_functions_integration_test.go similarity index 85% rename from internal/sdk/testint/system_functions_integration_test.go rename to pkg/sdk/testint/system_functions_integration_test.go index d660ddd80d..305a47ae42 100644 --- a/internal/sdk/testint/system_functions_integration_test.go +++ b/pkg/sdk/testint/system_functions_integration_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/tags_integration_test.go b/pkg/sdk/testint/tags_integration_test.go similarity index 96% rename from internal/sdk/testint/tags_integration_test.go rename to pkg/sdk/testint/tags_integration_test.go index 51cd2e8326..b473932c5f 100644 --- a/internal/sdk/testint/tags_integration_test.go +++ b/pkg/sdk/testint/tags_integration_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( @@ -8,9 +5,9 @@ import ( "errors" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/collections" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/collections" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/tasks_gen_integration_test.go b/pkg/sdk/testint/tasks_gen_integration_test.go similarity index 98% rename from internal/sdk/testint/tasks_gen_integration_test.go rename to pkg/sdk/testint/tasks_gen_integration_test.go index aaf66304eb..f6dd6d9e5e 100644 --- a/internal/sdk/testint/tasks_gen_integration_test.go +++ b/pkg/sdk/testint/tasks_gen_integration_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/users_integration_test.go b/pkg/sdk/testint/users_integration_test.go similarity index 96% rename from internal/sdk/testint/users_integration_test.go rename to pkg/sdk/testint/users_integration_test.go index 9117223154..444b9a7b55 100644 --- a/internal/sdk/testint/users_integration_test.go +++ b/pkg/sdk/testint/users_integration_test.go @@ -1,14 +1,11 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "strings" "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/testint/warehouses_integration_test.go b/pkg/sdk/testint/warehouses_integration_test.go similarity index 99% rename from internal/sdk/testint/warehouses_integration_test.go rename to pkg/sdk/testint/warehouses_integration_test.go index 6b2a742363..4b96d45283 100644 --- a/internal/sdk/testint/warehouses_integration_test.go +++ b/pkg/sdk/testint/warehouses_integration_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testint import ( "testing" "time" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/sdk/type_helpers.go b/pkg/sdk/type_helpers.go similarity index 93% rename from internal/sdk/type_helpers.go rename to pkg/sdk/type_helpers.go index 0d3bf5b816..e1c7034b9c 100644 --- a/internal/sdk/type_helpers.go +++ b/pkg/sdk/type_helpers.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/users.go b/pkg/sdk/users.go similarity index 99% rename from internal/sdk/users.go rename to pkg/sdk/users.go index 095e975584..8d45365db6 100644 --- a/internal/sdk/users.go +++ b/pkg/sdk/users.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/users_test.go b/pkg/sdk/users_test.go similarity index 98% rename from internal/sdk/users_test.go rename to pkg/sdk/users_test.go index 79de76669c..f7952d913b 100644 --- a/internal/sdk/users_test.go +++ b/pkg/sdk/users_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" ) func TestUserCreate(t *testing.T) { diff --git a/internal/sdk/validation.go b/pkg/sdk/validation.go similarity index 98% rename from internal/sdk/validation.go rename to pkg/sdk/validation.go index bc245e50bb..c5654f19fa 100644 --- a/internal/sdk/validation.go +++ b/pkg/sdk/validation.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import "fmt" diff --git a/internal/sdk/validation_test.go b/pkg/sdk/validation_test.go similarity index 85% rename from internal/sdk/validation_test.go rename to pkg/sdk/validation_test.go index 4b3870bfd1..63a2b82eec 100644 --- a/internal/sdk/validation_test.go +++ b/pkg/sdk/validation_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" ) // TODO write a test for a candidate that's not castable to a string. diff --git a/internal/sdk/validations.go b/pkg/sdk/validations.go similarity index 96% rename from internal/sdk/validations.go rename to pkg/sdk/validations.go index 1834c5f3b2..546f7ac15f 100644 --- a/internal/sdk/validations.go +++ b/pkg/sdk/validations.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/validations_test.go b/pkg/sdk/validations_test.go similarity index 97% rename from internal/sdk/validations_test.go rename to pkg/sdk/validations_test.go index 0e4b423ab2..3725c52661 100644 --- a/internal/sdk/validations_test.go +++ b/pkg/sdk/validations_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk/internal/random" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random" "github.com/stretchr/testify/assert" ) diff --git a/internal/sdk/warehouses.go b/pkg/sdk/warehouses.go similarity index 99% rename from internal/sdk/warehouses.go rename to pkg/sdk/warehouses.go index 225fbc0725..a5f98fb63b 100644 --- a/internal/sdk/warehouses.go +++ b/pkg/sdk/warehouses.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/sdk/warehouses_test.go b/pkg/sdk/warehouses_test.go similarity index 99% rename from internal/sdk/warehouses_test.go rename to pkg/sdk/warehouses_test.go index 2ba90277f6..403644eac5 100644 --- a/internal/sdk/warehouses_test.go +++ b/pkg/sdk/warehouses_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package sdk import ( diff --git a/internal/snowflake/all_grant.go b/pkg/snowflake/all_grant.go similarity index 99% rename from internal/snowflake/all_grant.go rename to pkg/snowflake/all_grant.go index 7b0420b31c..7ad100fde9 100644 --- a/internal/snowflake/all_grant.go +++ b/pkg/snowflake/all_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/all_grant_test.go b/pkg/snowflake/all_grant_test.go similarity index 80% rename from internal/snowflake/all_grant_test.go rename to pkg/snowflake/all_grant_test.go index f6e3c87352..84fd341b4d 100644 --- a/internal/snowflake/all_grant_test.go +++ b/pkg/snowflake/all_grant_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/api_integration.go b/pkg/snowflake/api_integration.go similarity index 94% rename from internal/snowflake/api_integration.go rename to pkg/snowflake/api_integration.go index 1d70e4c450..11ff2d6c71 100644 --- a/internal/snowflake/api_integration.go +++ b/pkg/snowflake/api_integration.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/api_integration_test.go b/pkg/snowflake/api_integration_test.go similarity index 87% rename from internal/snowflake/api_integration_test.go rename to pkg/snowflake/api_integration_test.go index 8ad6d4b638..e6b726f695 100644 --- a/internal/snowflake/api_integration_test.go +++ b/pkg/snowflake/api_integration_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/builder.go b/pkg/snowflake/builder.go similarity index 99% rename from internal/snowflake/builder.go rename to pkg/snowflake/builder.go index 0b71573032..f451a457ff 100644 --- a/internal/snowflake/builder.go +++ b/pkg/snowflake/builder.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/current_account.go b/pkg/snowflake/current_account.go similarity index 97% rename from internal/snowflake/current_account.go rename to pkg/snowflake/current_account.go index 70a965a2ec..c3540b5a71 100644 --- a/internal/snowflake/current_account.go +++ b/pkg/snowflake/current_account.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/current_account_test.go b/pkg/snowflake/current_account_test.go similarity index 92% rename from internal/snowflake/current_account_test.go rename to pkg/snowflake/current_account_test.go index 81da743935..0273157f21 100644 --- a/internal/snowflake/current_account_test.go +++ b/pkg/snowflake/current_account_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/jmoiron/sqlx" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/current_role.go b/pkg/snowflake/current_role.go similarity index 88% rename from internal/snowflake/current_role.go rename to pkg/snowflake/current_role.go index 2277e7ebb3..93ca4f2e94 100644 --- a/internal/snowflake/current_role.go +++ b/pkg/snowflake/current_role.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/current_role_test.go b/pkg/snowflake/current_role_test.go similarity index 87% rename from internal/snowflake/current_role_test.go rename to pkg/snowflake/current_role_test.go index e0b5edfbc0..a5cf615ee7 100644 --- a/internal/snowflake/current_role_test.go +++ b/pkg/snowflake/current_role_test.go @@ -1,13 +1,10 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/jmoiron/sqlx" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/email_notification_integration.go b/pkg/snowflake/email_notification_integration.go similarity index 94% rename from internal/snowflake/email_notification_integration.go rename to pkg/snowflake/email_notification_integration.go index 4f4d1c71de..7f93c59dfc 100644 --- a/internal/snowflake/email_notification_integration.go +++ b/pkg/snowflake/email_notification_integration.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/errors.go b/pkg/snowflake/errors.go similarity index 88% rename from internal/snowflake/errors.go rename to pkg/snowflake/errors.go index a0ec529302..2da2aa3c5e 100644 --- a/internal/snowflake/errors.go +++ b/pkg/snowflake/errors.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/escaping.go b/pkg/snowflake/escaping.go similarity index 95% rename from internal/snowflake/escaping.go rename to pkg/snowflake/escaping.go index 4eab02926b..42e1883832 100644 --- a/internal/snowflake/escaping.go +++ b/pkg/snowflake/escaping.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/escaping_test.go b/pkg/snowflake/escaping_test.go similarity index 90% rename from internal/snowflake/escaping_test.go rename to pkg/snowflake/escaping_test.go index 6df75af9b7..93ad9d31e2 100644 --- a/internal/snowflake/escaping_test.go +++ b/pkg/snowflake/escaping_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/exec.go b/pkg/snowflake/exec.go similarity index 95% rename from internal/snowflake/exec.go rename to pkg/snowflake/exec.go index f0c524c71b..5bfef0c55a 100644 --- a/internal/snowflake/exec.go +++ b/pkg/snowflake/exec.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/external_function.go b/pkg/snowflake/external_function.go similarity index 99% rename from internal/snowflake/external_function.go rename to pkg/snowflake/external_function.go index 6efa97ac5c..9463802857 100644 --- a/internal/snowflake/external_function.go +++ b/pkg/snowflake/external_function.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/external_function_test.go b/pkg/snowflake/external_function_test.go similarity index 96% rename from internal/snowflake/external_function_test.go rename to pkg/snowflake/external_function_test.go index 9451787bf3..ef3ce489ba 100644 --- a/internal/snowflake/external_function_test.go +++ b/pkg/snowflake/external_function_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/external_oauth_integration.go b/pkg/snowflake/external_oauth_integration.go similarity index 98% rename from internal/snowflake/external_oauth_integration.go rename to pkg/snowflake/external_oauth_integration.go index 6b7f24a4ce..80a7c45786 100644 --- a/internal/snowflake/external_oauth_integration.go +++ b/pkg/snowflake/external_oauth_integration.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/external_oauth_integration_test.go b/pkg/snowflake/external_oauth_integration_test.go similarity index 95% rename from internal/snowflake/external_oauth_integration_test.go rename to pkg/snowflake/external_oauth_integration_test.go index 8ebc70b155..c14d28e907 100644 --- a/internal/snowflake/external_oauth_integration_test.go +++ b/pkg/snowflake/external_oauth_integration_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/external_table.go b/pkg/snowflake/external_table.go similarity index 99% rename from internal/snowflake/external_table.go rename to pkg/snowflake/external_table.go index a2394294dd..9eceebf25b 100644 --- a/internal/snowflake/external_table.go +++ b/pkg/snowflake/external_table.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/external_table_test.go b/pkg/snowflake/external_table_test.go similarity index 96% rename from internal/snowflake/external_table_test.go rename to pkg/snowflake/external_table_test.go index 0053d86189..f55ef97e30 100644 --- a/internal/snowflake/external_table_test.go +++ b/pkg/snowflake/external_table_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/function.go b/pkg/snowflake/function.go similarity index 99% rename from internal/snowflake/function.go rename to pkg/snowflake/function.go index 442a83cef6..add3d143f0 100644 --- a/internal/snowflake/function.go +++ b/pkg/snowflake/function.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/function_test.go b/pkg/snowflake/function_test.go similarity index 99% rename from internal/snowflake/function_test.go rename to pkg/snowflake/function_test.go index b5df7a817c..b1c24e246b 100644 --- a/internal/snowflake/function_test.go +++ b/pkg/snowflake/function_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/future_grant.go b/pkg/snowflake/future_grant.go similarity index 99% rename from internal/snowflake/future_grant.go rename to pkg/snowflake/future_grant.go index 145bfab7b7..eb121de143 100644 --- a/internal/snowflake/future_grant.go +++ b/pkg/snowflake/future_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/future_grant_test.go b/pkg/snowflake/future_grant_test.go similarity index 98% rename from internal/snowflake/future_grant_test.go rename to pkg/snowflake/future_grant_test.go index 66c82b41be..135c3e3710 100644 --- a/internal/snowflake/future_grant_test.go +++ b/pkg/snowflake/future_grant_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/generic.go b/pkg/snowflake/generic.go similarity index 99% rename from internal/snowflake/generic.go rename to pkg/snowflake/generic.go index 89bc01262d..5ccd7ddc2b 100644 --- a/internal/snowflake/generic.go +++ b/pkg/snowflake/generic.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/generic_test.go b/pkg/snowflake/generic_test.go similarity index 88% rename from internal/snowflake/generic_test.go rename to pkg/snowflake/generic_test.go index 610f71a912..7ccbb55a14 100644 --- a/internal/snowflake/generic_test.go +++ b/pkg/snowflake/generic_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/grant.go b/pkg/snowflake/grant.go similarity index 99% rename from internal/snowflake/grant.go rename to pkg/snowflake/grant.go index 0a25dfbfbf..2ee39bc330 100644 --- a/internal/snowflake/grant.go +++ b/pkg/snowflake/grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/grant_test.go b/pkg/snowflake/grant_test.go similarity index 99% rename from internal/snowflake/grant_test.go rename to pkg/snowflake/grant_test.go index a10e891b8b..e92ffe3e40 100644 --- a/internal/snowflake/grant_test.go +++ b/pkg/snowflake/grant_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/identifier.go b/pkg/snowflake/identifier.go similarity index 96% rename from internal/snowflake/identifier.go rename to pkg/snowflake/identifier.go index 5eb5dda8d8..534a977079 100644 --- a/internal/snowflake/identifier.go +++ b/pkg/snowflake/identifier.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/managed_account.go b/pkg/snowflake/managed_account.go similarity index 94% rename from internal/snowflake/managed_account.go rename to pkg/snowflake/managed_account.go index b2c1065fcc..017f2685f5 100644 --- a/internal/snowflake/managed_account.go +++ b/pkg/snowflake/managed_account.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/managed_account_test.go b/pkg/snowflake/managed_account_test.go similarity index 78% rename from internal/snowflake/managed_account_test.go rename to pkg/snowflake/managed_account_test.go index ff210d6fc7..4213633c36 100644 --- a/internal/snowflake/managed_account_test.go +++ b/pkg/snowflake/managed_account_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/manager.go b/pkg/snowflake/manager.go similarity index 67% rename from internal/snowflake/manager.go rename to pkg/snowflake/manager.go index fb4414682f..f8b4a90881 100644 --- a/internal/snowflake/manager.go +++ b/pkg/snowflake/manager.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake type BaseManager struct { diff --git a/internal/snowflake/masking_policy.go b/pkg/snowflake/masking_policy.go similarity index 95% rename from internal/snowflake/masking_policy.go rename to pkg/snowflake/masking_policy.go index 910aac7967..0037a6ac7a 100644 --- a/internal/snowflake/masking_policy.go +++ b/pkg/snowflake/masking_policy.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/masking_policy_application.go b/pkg/snowflake/masking_policy_application.go similarity index 96% rename from internal/snowflake/masking_policy_application.go rename to pkg/snowflake/masking_policy_application.go index 533e0111c4..8e3c486d4b 100644 --- a/internal/snowflake/masking_policy_application.go +++ b/pkg/snowflake/masking_policy_application.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/masking_policy_application_test.go b/pkg/snowflake/masking_policy_application_test.go similarity index 92% rename from internal/snowflake/masking_policy_application_test.go rename to pkg/snowflake/masking_policy_application_test.go index 80cc22e3d6..5d607173fd 100644 --- a/internal/snowflake/masking_policy_application_test.go +++ b/pkg/snowflake/masking_policy_application_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/materialized_view.go b/pkg/snowflake/materialized_view.go similarity index 99% rename from internal/snowflake/materialized_view.go rename to pkg/snowflake/materialized_view.go index d790048a72..b343a8fb4f 100644 --- a/internal/snowflake/materialized_view.go +++ b/pkg/snowflake/materialized_view.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/network_policy.go b/pkg/snowflake/network_policy.go similarity index 97% rename from internal/snowflake/network_policy.go rename to pkg/snowflake/network_policy.go index bf1b41f5b5..d7d75dd5a5 100644 --- a/internal/snowflake/network_policy.go +++ b/pkg/snowflake/network_policy.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/network_policy_test.go b/pkg/snowflake/network_policy_test.go similarity index 91% rename from internal/snowflake/network_policy_test.go rename to pkg/snowflake/network_policy_test.go index 7d67cd0274..e85505dd64 100644 --- a/internal/snowflake/network_policy_test.go +++ b/pkg/snowflake/network_policy_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/notification_integration.go b/pkg/snowflake/notification_integration.go similarity index 94% rename from internal/snowflake/notification_integration.go rename to pkg/snowflake/notification_integration.go index 8445ab1dcd..f27ed6d971 100644 --- a/internal/snowflake/notification_integration.go +++ b/pkg/snowflake/notification_integration.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/notification_integration_test.go b/pkg/snowflake/notification_integration_test.go similarity index 93% rename from internal/snowflake/notification_integration_test.go rename to pkg/snowflake/notification_integration_test.go index 9b3084df60..d14174d903 100644 --- a/internal/snowflake/notification_integration_test.go +++ b/pkg/snowflake/notification_integration_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/oauth_integration.go b/pkg/snowflake/oauth_integration.go similarity index 96% rename from internal/snowflake/oauth_integration.go rename to pkg/snowflake/oauth_integration.go index 2c30178cfe..503500732b 100644 --- a/internal/snowflake/oauth_integration.go +++ b/pkg/snowflake/oauth_integration.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/oauth_integration_test.go b/pkg/snowflake/oauth_integration_test.go similarity index 83% rename from internal/snowflake/oauth_integration_test.go rename to pkg/snowflake/oauth_integration_test.go index 286781debd..144c8a6740 100644 --- a/internal/snowflake/oauth_integration_test.go +++ b/pkg/snowflake/oauth_integration_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/parser.go b/pkg/snowflake/parser.go similarity index 98% rename from internal/snowflake/parser.go rename to pkg/snowflake/parser.go index cf413fc0d2..bdd429886e 100644 --- a/internal/snowflake/parser.go +++ b/pkg/snowflake/parser.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/parser_internal_test.go b/pkg/snowflake/parser_internal_test.go similarity index 51% rename from internal/snowflake/parser_internal_test.go rename to pkg/snowflake/parser_internal_test.go index b3513ff646..c2a7a09d9b 100644 --- a/internal/snowflake/parser_internal_test.go +++ b/pkg/snowflake/parser_internal_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake // Internal tests for ViewSelectStatementExtractor diff --git a/internal/snowflake/parser_test.go b/pkg/snowflake/parser_test.go similarity index 99% rename from internal/snowflake/parser_test.go rename to pkg/snowflake/parser_test.go index 637b9e81e5..7eff62c371 100644 --- a/internal/snowflake/parser_test.go +++ b/pkg/snowflake/parser_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/procedure.go b/pkg/snowflake/procedure.go similarity index 99% rename from internal/snowflake/procedure.go rename to pkg/snowflake/procedure.go index 6ef3327cff..81c1c32f3a 100644 --- a/internal/snowflake/procedure.go +++ b/pkg/snowflake/procedure.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/procedure_test.go b/pkg/snowflake/procedure_test.go similarity index 98% rename from internal/snowflake/procedure_test.go rename to pkg/snowflake/procedure_test.go index 109c5ac11f..b22e9db98b 100644 --- a/internal/snowflake/procedure_test.go +++ b/pkg/snowflake/procedure_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/replication.go b/pkg/snowflake/replication.go similarity index 96% rename from internal/snowflake/replication.go rename to pkg/snowflake/replication.go index e2650f71e3..28ba6615d8 100644 --- a/internal/snowflake/replication.go +++ b/pkg/snowflake/replication.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/resource_monitor.go b/pkg/snowflake/resource_monitor.go similarity index 99% rename from internal/snowflake/resource_monitor.go rename to pkg/snowflake/resource_monitor.go index 736a4e2717..1fa079a777 100644 --- a/internal/snowflake/resource_monitor.go +++ b/pkg/snowflake/resource_monitor.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/resource_monitor_test.go b/pkg/snowflake/resource_monitor_test.go similarity index 93% rename from internal/snowflake/resource_monitor_test.go rename to pkg/snowflake/resource_monitor_test.go index 4096b1d562..1d2530ce25 100644 --- a/internal/snowflake/resource_monitor_test.go +++ b/pkg/snowflake/resource_monitor_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/role.go b/pkg/snowflake/role.go similarity index 98% rename from internal/snowflake/role.go rename to pkg/snowflake/role.go index 3472e7441c..f3c56b4bdf 100644 --- a/internal/snowflake/role.go +++ b/pkg/snowflake/role.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/role_grant.go b/pkg/snowflake/role_grant.go similarity index 93% rename from internal/snowflake/role_grant.go rename to pkg/snowflake/role_grant.go index bd2b68e891..375443f6d3 100644 --- a/internal/snowflake/role_grant.go +++ b/pkg/snowflake/role_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import "fmt" diff --git a/internal/snowflake/role_grant_test.go b/pkg/snowflake/role_grant_test.go similarity index 78% rename from internal/snowflake/role_grant_test.go rename to pkg/snowflake/role_grant_test.go index d52870aa65..4488ff1c9c 100644 --- a/internal/snowflake/role_grant_test.go +++ b/pkg/snowflake/role_grant_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/role_ownership_grant.go b/pkg/snowflake/role_ownership_grant.go similarity index 96% rename from internal/snowflake/role_ownership_grant.go rename to pkg/snowflake/role_ownership_grant.go index cc3047507f..7679501b09 100644 --- a/internal/snowflake/role_ownership_grant.go +++ b/pkg/snowflake/role_ownership_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/role_ownership_grant_test.go b/pkg/snowflake/role_ownership_grant_test.go similarity index 85% rename from internal/snowflake/role_ownership_grant_test.go rename to pkg/snowflake/role_ownership_grant_test.go index 16d5dab2f8..f932bfd4bd 100644 --- a/internal/snowflake/role_ownership_grant_test.go +++ b/pkg/snowflake/role_ownership_grant_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/row_access_policy.go b/pkg/snowflake/row_access_policy.go similarity index 98% rename from internal/snowflake/row_access_policy.go rename to pkg/snowflake/row_access_policy.go index d11612876e..1c8c3f6249 100644 --- a/internal/snowflake/row_access_policy.go +++ b/pkg/snowflake/row_access_policy.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/row_access_policy_test.go b/pkg/snowflake/row_access_policy_test.go similarity index 94% rename from internal/snowflake/row_access_policy_test.go rename to pkg/snowflake/row_access_policy_test.go index bcd916b487..f6dd72f2a5 100644 --- a/internal/snowflake/row_access_policy_test.go +++ b/pkg/snowflake/row_access_policy_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/saml_integration.go b/pkg/snowflake/saml_integration.go similarity index 94% rename from internal/snowflake/saml_integration.go rename to pkg/snowflake/saml_integration.go index 4b7710e46e..a88d09ae74 100644 --- a/internal/snowflake/saml_integration.go +++ b/pkg/snowflake/saml_integration.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/saml_integration_test.go b/pkg/snowflake/saml_integration_test.go similarity index 97% rename from internal/snowflake/saml_integration_test.go rename to pkg/snowflake/saml_integration_test.go index 131f77eb63..27f064fb22 100644 --- a/internal/snowflake/saml_integration_test.go +++ b/pkg/snowflake/saml_integration_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/scim_integration.go b/pkg/snowflake/scim_integration.go similarity index 94% rename from internal/snowflake/scim_integration.go rename to pkg/snowflake/scim_integration.go index e612fcbdd0..2b91705363 100644 --- a/internal/snowflake/scim_integration.go +++ b/pkg/snowflake/scim_integration.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/scim_integration_test.go b/pkg/snowflake/scim_integration_test.go similarity index 88% rename from internal/snowflake/scim_integration_test.go rename to pkg/snowflake/scim_integration_test.go index c351312239..b9ee16d504 100644 --- a/internal/snowflake/scim_integration_test.go +++ b/pkg/snowflake/scim_integration_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/sequence.go b/pkg/snowflake/sequence.go similarity index 97% rename from internal/snowflake/sequence.go rename to pkg/snowflake/sequence.go index 7465144db1..e91f44b5cc 100644 --- a/internal/snowflake/sequence.go +++ b/pkg/snowflake/sequence.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/sequence_test.go b/pkg/snowflake/sequence_test.go similarity index 94% rename from internal/snowflake/sequence_test.go rename to pkg/snowflake/sequence_test.go index 2d837a1b7e..98d05f3a3a 100644 --- a/internal/snowflake/sequence_test.go +++ b/pkg/snowflake/sequence_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/sorting.go b/pkg/snowflake/sorting.go similarity index 95% rename from internal/snowflake/sorting.go rename to pkg/snowflake/sorting.go index ae260566c7..b49f62231a 100644 --- a/internal/snowflake/sorting.go +++ b/pkg/snowflake/sorting.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/sorting_test.go b/pkg/snowflake/sorting_test.go similarity index 90% rename from internal/snowflake/sorting_test.go rename to pkg/snowflake/sorting_test.go index 0505def694..4f464167ce 100644 --- a/internal/snowflake/sorting_test.go +++ b/pkg/snowflake/sorting_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/stage.go b/pkg/snowflake/stage.go similarity index 99% rename from internal/snowflake/stage.go rename to pkg/snowflake/stage.go index bf23650f25..b96c1df016 100644 --- a/internal/snowflake/stage.go +++ b/pkg/snowflake/stage.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/stage_test.go b/pkg/snowflake/stage_test.go similarity index 99% rename from internal/snowflake/stage_test.go rename to pkg/snowflake/stage_test.go index 0c7a863d7d..33074b2846 100644 --- a/internal/snowflake/stage_test.go +++ b/pkg/snowflake/stage_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/storage_integration.go b/pkg/snowflake/storage_integration.go similarity index 96% rename from internal/snowflake/storage_integration.go rename to pkg/snowflake/storage_integration.go index 5e6a376af4..7481be8e6a 100644 --- a/internal/snowflake/storage_integration.go +++ b/pkg/snowflake/storage_integration.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/storage_integration_test.go b/pkg/snowflake/storage_integration_test.go similarity index 84% rename from internal/snowflake/storage_integration_test.go rename to pkg/snowflake/storage_integration_test.go index 55d9661ca6..12d4424d0a 100644 --- a/internal/snowflake/storage_integration_test.go +++ b/pkg/snowflake/storage_integration_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/system_generate_scim_access_token.go b/pkg/snowflake/system_generate_scim_access_token.go similarity index 94% rename from internal/snowflake/system_generate_scim_access_token.go rename to pkg/snowflake/system_generate_scim_access_token.go index 3c55c32e88..70503c115a 100644 --- a/internal/snowflake/system_generate_scim_access_token.go +++ b/pkg/snowflake/system_generate_scim_access_token.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/system_generate_scim_access_token_test.go b/pkg/snowflake/system_generate_scim_access_token_test.go similarity index 83% rename from internal/snowflake/system_generate_scim_access_token_test.go rename to pkg/snowflake/system_generate_scim_access_token_test.go index 89235e622e..bea7591a40 100644 --- a/internal/snowflake/system_generate_scim_access_token_test.go +++ b/pkg/snowflake/system_generate_scim_access_token_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/system_get_aws_sns_iam_policy.go b/pkg/snowflake/system_get_aws_sns_iam_policy.go similarity index 94% rename from internal/snowflake/system_get_aws_sns_iam_policy.go rename to pkg/snowflake/system_get_aws_sns_iam_policy.go index 52e0a60a3f..d5b0ee9c3b 100644 --- a/internal/snowflake/system_get_aws_sns_iam_policy.go +++ b/pkg/snowflake/system_get_aws_sns_iam_policy.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/system_get_aws_sns_iam_policy_test.go b/pkg/snowflake/system_get_aws_sns_iam_policy_test.go similarity index 84% rename from internal/snowflake/system_get_aws_sns_iam_policy_test.go rename to pkg/snowflake/system_get_aws_sns_iam_policy_test.go index 8555e061e3..797fb4e37c 100644 --- a/internal/snowflake/system_get_aws_sns_iam_policy_test.go +++ b/pkg/snowflake/system_get_aws_sns_iam_policy_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/system_get_privatelink_config.go b/pkg/snowflake/system_get_privatelink_config.go similarity index 97% rename from internal/snowflake/system_get_privatelink_config.go rename to pkg/snowflake/system_get_privatelink_config.go index 74f8a83941..89b2406ce2 100644 --- a/internal/snowflake/system_get_privatelink_config.go +++ b/pkg/snowflake/system_get_privatelink_config.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/system_get_privatelink_config_test.go b/pkg/snowflake/system_get_privatelink_config_test.go similarity index 98% rename from internal/snowflake/system_get_privatelink_config_test.go rename to pkg/snowflake/system_get_privatelink_config_test.go index 7b249f52ea..dce8de351b 100644 --- a/internal/snowflake/system_get_privatelink_config_test.go +++ b/pkg/snowflake/system_get_privatelink_config_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/system_get_snowflake_platform_info.go b/pkg/snowflake/system_get_snowflake_platform_info.go similarity index 94% rename from internal/snowflake/system_get_snowflake_platform_info.go rename to pkg/snowflake/system_get_snowflake_platform_info.go index 15dd3b2682..63403c1ffc 100644 --- a/internal/snowflake/system_get_snowflake_platform_info.go +++ b/pkg/snowflake/system_get_snowflake_platform_info.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/system_get_snowflake_platform_info_test.go b/pkg/snowflake/system_get_snowflake_platform_info_test.go similarity index 93% rename from internal/snowflake/system_get_snowflake_platform_info_test.go rename to pkg/snowflake/system_get_snowflake_platform_info_test.go index 80784a63d9..6ac5ad6531 100644 --- a/internal/snowflake/system_get_snowflake_platform_info_test.go +++ b/pkg/snowflake/system_get_snowflake_platform_info_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/table.go b/pkg/snowflake/table.go similarity index 99% rename from internal/snowflake/table.go rename to pkg/snowflake/table.go index 8733b36978..7aa6f4c855 100644 --- a/internal/snowflake/table.go +++ b/pkg/snowflake/table.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( @@ -12,7 +9,7 @@ import ( "strconv" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" "github.com/jmoiron/sqlx" ) diff --git a/internal/snowflake/table_constraint.go b/pkg/snowflake/table_constraint.go similarity index 99% rename from internal/snowflake/table_constraint.go rename to pkg/snowflake/table_constraint.go index f6fca6acf1..3827859f5d 100644 --- a/internal/snowflake/table_constraint.go +++ b/pkg/snowflake/table_constraint.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/tag.go b/pkg/snowflake/tag.go similarity index 98% rename from internal/snowflake/tag.go rename to pkg/snowflake/tag.go index ee3d73f2e0..80a513727a 100644 --- a/internal/snowflake/tag.go +++ b/pkg/snowflake/tag.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( @@ -10,7 +7,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" "github.com/jmoiron/sqlx" ) diff --git a/internal/snowflake/tag_association.go b/pkg/snowflake/tag_association.go similarity index 97% rename from internal/snowflake/tag_association.go rename to pkg/snowflake/tag_association.go index 4ceb32e18f..9b2a0d753c 100644 --- a/internal/snowflake/tag_association.go +++ b/pkg/snowflake/tag_association.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( @@ -10,7 +7,7 @@ import ( "log" "strings" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/validation" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/validation" "github.com/jmoiron/sqlx" ) diff --git a/internal/snowflake/tag_association_test.go b/pkg/snowflake/tag_association_test.go similarity index 98% rename from internal/snowflake/tag_association_test.go rename to pkg/snowflake/tag_association_test.go index 45bf0e7cf0..736e7becee 100644 --- a/internal/snowflake/tag_association_test.go +++ b/pkg/snowflake/tag_association_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/tag_test.go b/pkg/snowflake/tag_test.go similarity index 97% rename from internal/snowflake/tag_test.go rename to pkg/snowflake/tag_test.go index 7bd2eb4060..3769ff4c2f 100644 --- a/internal/snowflake/tag_test.go +++ b/pkg/snowflake/tag_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/user.go b/pkg/snowflake/user.go similarity index 95% rename from internal/snowflake/user.go rename to pkg/snowflake/user.go index 2382c4ec92..a3d8c60e37 100644 --- a/internal/snowflake/user.go +++ b/pkg/snowflake/user.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( @@ -9,7 +6,7 @@ import ( "fmt" "log" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/helpers" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers" "github.com/jmoiron/sqlx" ) diff --git a/internal/snowflake/user_ownership_grant.go b/pkg/snowflake/user_ownership_grant.go similarity index 97% rename from internal/snowflake/user_ownership_grant.go rename to pkg/snowflake/user_ownership_grant.go index 4435c0386b..4e54a86562 100644 --- a/internal/snowflake/user_ownership_grant.go +++ b/pkg/snowflake/user_ownership_grant.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/user_ownership_grant_test.go b/pkg/snowflake/user_ownership_grant_test.go similarity index 85% rename from internal/snowflake/user_ownership_grant_test.go rename to pkg/snowflake/user_ownership_grant_test.go index 3455957ed5..3750d45c6d 100644 --- a/internal/snowflake/user_ownership_grant_test.go +++ b/pkg/snowflake/user_ownership_grant_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/user_test.go b/pkg/snowflake/user_test.go similarity index 84% rename from internal/snowflake/user_test.go rename to pkg/snowflake/user_test.go index 58ebc872e5..55b843d633 100644 --- a/internal/snowflake/user_test.go +++ b/pkg/snowflake/user_test.go @@ -1,12 +1,9 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake_test import ( "testing" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/snowflake" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake" "github.com/stretchr/testify/require" ) diff --git a/internal/snowflake/view.go b/pkg/snowflake/view.go similarity index 99% rename from internal/snowflake/view.go rename to pkg/snowflake/view.go index 1b33f9b30d..c491b4161d 100644 --- a/internal/snowflake/view.go +++ b/pkg/snowflake/view.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/snowflake/view_test.go b/pkg/snowflake/view_test.go similarity index 97% rename from internal/snowflake/view_test.go rename to pkg/snowflake/view_test.go index 9a2d0fadf3..b9ea6262d5 100644 --- a/internal/snowflake/view_test.go +++ b/pkg/snowflake/view_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package snowflake import ( diff --git a/internal/testhelpers/fixtures.go b/pkg/testhelpers/fixtures.go similarity index 83% rename from internal/testhelpers/fixtures.go rename to pkg/testhelpers/fixtures.go index 1e620549b8..6e6946cf51 100644 --- a/internal/testhelpers/fixtures.go +++ b/pkg/testhelpers/fixtures.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testhelpers import ( diff --git a/internal/testhelpers/helpers.go b/pkg/testhelpers/helpers.go similarity index 89% rename from internal/testhelpers/helpers.go rename to pkg/testhelpers/helpers.go index 09e663c893..298658a63c 100644 --- a/internal/testhelpers/helpers.go +++ b/pkg/testhelpers/helpers.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package testhelpers import ( diff --git a/internal/validation/validation.go b/pkg/validation/validation.go similarity index 97% rename from internal/validation/validation.go rename to pkg/validation/validation.go index 0bf6dab62f..1ea65cb8d6 100644 --- a/internal/validation/validation.go +++ b/pkg/validation/validation.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package validation import ( @@ -9,7 +6,7 @@ import ( "strings" "unicode" - "github.com/Snowflake-Labs/terraform-provider-snowflake/internal/sdk" + "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" ) const ( diff --git a/internal/validation/validation_test.go b/pkg/validation/validation_test.go similarity index 95% rename from internal/validation/validation_test.go rename to pkg/validation/validation_test.go index 40005f7397..16f434046b 100644 --- a/internal/validation/validation_test.go +++ b/pkg/validation/validation_test.go @@ -1,6 +1,3 @@ -// Copyright (c) Snowflake, Inc. -// SPDX-License-Identifier: MIT - package validation import ( diff --git a/tools/tools.go b/tools/tools.go index 7e54734546..bf27d58a01 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -4,13 +4,10 @@ package tools import ( _ "github.com/golangci/golangci-lint/cmd/golangci-lint" - _ "github.com/hashicorp/copywrite" _ "github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs" _ "mvdan.cc/gofumpt" ) -// Generate copyright headers -//go:generate go run github.com/hashicorp/copywrite headers -d .. --config ../.copywrite.hcl // Format Terraform code for use in documentation. // If you do not have Terraform installed, you can remove the formatting command, but it is suggested // to ensure the documentation is formatted properly. From e1a8296a8288b9fc95e87cc6e8b8b195c1188606 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 03:25:36 -0700 Subject: [PATCH 14/28] remove license --- .../testdata/TestAcc_DynamicTables_complete/1/test.tf | 3 +-- .../testdata/TestAcc_DynamicTables_complete/1/variables.tf | 3 +-- pkg/resources/testdata/TestAcc_DynamicTable_basic/1/test.tf | 3 +-- .../testdata/TestAcc_DynamicTable_basic/1/variables.tf | 3 +-- pkg/resources/testdata/TestAcc_DynamicTable_basic/2/test.tf | 3 +-- .../testdata/TestAcc_DynamicTable_basic/2/variables.tf | 3 +-- pkg/resources/testdata/TestAcc_DynamicTable_basic/3/test.tf | 3 +-- .../testdata/TestAcc_DynamicTable_basic/3/variables.tf | 3 +-- 8 files changed, 8 insertions(+), 16 deletions(-) diff --git a/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/test.tf b/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/test.tf index 8da2e48209..171cbef7f6 100644 --- a/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/test.tf +++ b/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/test.tf @@ -1,5 +1,4 @@ -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: MIT + resource "snowflake_table" "t" { database = var.database diff --git a/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/variables.tf b/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/variables.tf index b3725f6957..52500bb56a 100644 --- a/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/variables.tf +++ b/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/variables.tf @@ -1,5 +1,4 @@ -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: MIT + variable "name" { type = string diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/test.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/test.tf index 3209f6819a..494101f87d 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/test.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/test.tf @@ -1,5 +1,4 @@ -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: MIT + resource "snowflake_table" "t" { database = var.database diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/variables.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/variables.tf index b3725f6957..52500bb56a 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/variables.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/variables.tf @@ -1,5 +1,4 @@ -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: MIT + variable "name" { type = string diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/test.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/test.tf index 851ae985f1..e3a2ae7230 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/test.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/test.tf @@ -1,5 +1,4 @@ -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: MIT + resource "snowflake_table" "t" { database = var.database diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/variables.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/variables.tf index b3725f6957..52500bb56a 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/variables.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/variables.tf @@ -1,5 +1,4 @@ -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: MIT + variable "name" { type = string diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/test.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/test.tf index 851ae985f1..e3a2ae7230 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/test.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/test.tf @@ -1,5 +1,4 @@ -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: MIT + resource "snowflake_table" "t" { database = var.database diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/variables.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/variables.tf index b3725f6957..52500bb56a 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/variables.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/variables.tf @@ -1,5 +1,4 @@ -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: MIT + variable "name" { type = string From f6626d0c6b30bc12971c85242c187dd10e9b68d2 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 03:30:57 -0700 Subject: [PATCH 15/28] remove license --- pkg/resources/testdata/view_1a.sql | 5 +---- pkg/resources/testdata/view_1b.sql | 5 +---- pkg/resources/testdata/view_2a.sql | 5 +---- pkg/resources/testdata/view_2b.sql | 6 ++---- 4 files changed, 5 insertions(+), 16 deletions(-) diff --git a/pkg/resources/testdata/view_1a.sql b/pkg/resources/testdata/view_1a.sql index e4e2e9db39..8b47ddf2f2 100644 --- a/pkg/resources/testdata/view_1a.sql +++ b/pkg/resources/testdata/view_1a.sql @@ -1,4 +1 @@ --- Copyright (c) HashiCorp, Inc. --- SPDX-License-Identifier: MIT - -SELECT RAW:"Asset_Panda_Number"::NUMBER as ASSET_PANDA_NUMBER, RAW:"is_locked"::BOOLEAN as IS_LOCKED, RAW:"id"::VARCHAR as ID, RAW:"Date_Added"::TIMESTAMP_TZ as DATE_ADDED, RAW:"Storage_Capacity"::VARCHAR as STORAGE_CAPACITY, RAW:"Asset_Tag_Number"::VARCHAR as ASSET_TAG_NUMBER, RAW:"is_deletable"::BOOLEAN as IS_DELETABLE, RAW:"has_audit_history"::BOOLEAN as HAS_AUDIT_HISTORY, RAW:"Purchase_From"::VARCHAR as PURCHASE_FROM, RAW:"Department"::VARIANT as DEPARTMENT, RAW:"display_with_secondary"::VARCHAR as DISPLAY_WITH_SECONDARY, RAW:"object_appreciation"::BOOLEAN as OBJECT_APPRECIATION, RAW:"Status"::VARIANT as STATUS, RAW:"Purchase_date"::DATE as PURCHASE_DATE, RAW:"Yubikey_Identifier"::VARCHAR as YUBIKEY_IDENTIFIER, RAW:"display_name"::VARCHAR as DISPLAY_NAME, RAW:"Brand"::VARCHAR as BRAND, RAW:"Assigned_To"::VARIANT as ASSIGNED_TO, RAW:"share_url"::VARCHAR as SHARE_URL, RAW:"object_version_ids"::VARIANT as OBJECT_VERSION_IDS, RAW:"Creation_Date"::DATE as CREATION_DATE, RAW:"Created_By"::VARCHAR as CREATED_BY, RAW:"purchase_price"::FLOAT as PURCHASE_PRICE, RAW:"next_service"::DATE as NEXT_SERVICE, RAW:"building"::VARIANT as BUILDING, RAW:"category"::VARIANT as CATEGORY, RAW:"description"::VARCHAR as DESCRIPTION, RAW:"changed_by"::VARCHAR as CHANGED_BY, RAW:"wireless_status"::VARCHAR as WIRELESS_STATUS, RAW:"created_at"::TIMESTAMP_TZ as CREATED_AT, RAW:"gps_coordinates"::VARIANT as GPS_COORDINATES, RAW:"updated_at"::TIMESTAMP_TZ as UPDATED_AT, RAW:"loaner_pool"::BOOLEAN as LOANER_POOL, RAW:"default_attachment"::VARIANT as DEFAULT_ATTACHMENT, RAW:"room"::VARIANT as ROOM, RAW:"notes"::VARCHAR as NOTES, RAW:"object_depreciation"::BOOLEAN as OBJECT_DEPRECIATION, RAW:"is_editable"::BOOLEAN as IS_EDITABLE, RAW:"wifi_mac_address"::VARCHAR as WIFI_MAC_ADDRESS, RAW:"change_date"::DATE as CHANGE_DATE, RAW:"display_size"::VARCHAR as DISPLAY_SIZE, RAW:"operating_system"::VARCHAR as OPERATING_SYSTEM, RAW:"serial"::VARCHAR as SERIAL, RAW:"end_of_life_date"::DATE as END_OF_LIFE_DATE, RAW:"imei_meid"::VARCHAR as IMEI_MEID, RAW:"model"::VARCHAR as MODEL, RAW:"mac_address"::VARCHAR as MAC_ADDRESS, RAW:"entity"::VARIANT as ENTITY, RAW:"PO"::VARCHAR as PO FROM "SNOWALERT"."DATA"."ASSETPANDA_DEFAULT_CONNECTION"; \ No newline at end of file +SELECT RAW:"Asset_Panda_Number"::NUMBER as ASSET_PANDA_NUMBER, RAW:"is_locked"::BOOLEAN as IS_LOCKED, RAW:"id"::VARCHAR as ID, RAW:"Date_Added"::TIMESTAMP_TZ as DATE_ADDED, RAW:"Storage_Capacity"::VARCHAR as STORAGE_CAPACITY, RAW:"Asset_Tag_Number"::VARCHAR as ASSET_TAG_NUMBER, RAW:"is_deletable"::BOOLEAN as IS_DELETABLE, RAW:"has_audit_history"::BOOLEAN as HAS_AUDIT_HISTORY, RAW:"Purchase_From"::VARCHAR as PURCHASE_FROM, RAW:"Department"::VARIANT as DEPARTMENT, RAW:"display_with_secondary"::VARCHAR as DISPLAY_WITH_SECONDARY, RAW:"object_appreciation"::BOOLEAN as OBJECT_APPRECIATION, RAW:"Status"::VARIANT as STATUS, RAW:"Purchase_date"::DATE as PURCHASE_DATE, RAW:"Yubikey_Identifier"::VARCHAR as YUBIKEY_IDENTIFIER, RAW:"display_name"::VARCHAR as DISPLAY_NAME, RAW:"Brand"::VARCHAR as BRAND, RAW:"Assigned_To"::VARIANT as ASSIGNED_TO, RAW:"share_url"::VARCHAR as SHARE_URL, RAW:"object_version_ids"::VARIANT as OBJECT_VERSION_IDS, RAW:"Creation_Date"::DATE as CREATION_DATE, RAW:"Created_By"::VARCHAR as CREATED_BY, RAW:"purchase_price"::FLOAT as PURCHASE_PRICE, RAW:"next_service"::DATE as NEXT_SERVICE, RAW:"building"::VARIANT as BUILDING, RAW:"category"::VARIANT as CATEGORY, RAW:"description"::VARCHAR as DESCRIPTION, RAW:"changed_by"::VARCHAR as CHANGED_BY, RAW:"wireless_status"::VARCHAR as WIRELESS_STATUS, RAW:"created_at"::TIMESTAMP_TZ as CREATED_AT, RAW:"gps_coordinates"::VARIANT as GPS_COORDINATES, RAW:"updated_at"::TIMESTAMP_TZ as UPDATED_AT, RAW:"loaner_pool"::BOOLEAN as LOANER_POOL, RAW:"default_attachment"::VARIANT as DEFAULT_ATTACHMENT, RAW:"room"::VARIANT as ROOM, RAW:"notes"::VARCHAR as NOTES, RAW:"object_depreciation"::BOOLEAN as OBJECT_DEPRECIATION, RAW:"is_editable"::BOOLEAN as IS_EDITABLE, RAW:"wifi_mac_address"::VARCHAR as WIFI_MAC_ADDRESS, RAW:"change_date"::DATE as CHANGE_DATE, RAW:"display_size"::VARCHAR as DISPLAY_SIZE, RAW:"operating_system"::VARCHAR as OPERATING_SYSTEM, RAW:"serial"::VARCHAR as SERIAL, RAW:"end_of_life_date"::DATE as END_OF_LIFE_DATE, RAW:"imei_meid"::VARCHAR as IMEI_MEID, RAW:"model"::VARCHAR as MODEL, RAW:"mac_address"::VARCHAR as MAC_ADDRESS, RAW:"entity"::VARIANT as ENTITY, RAW:"PO"::VARCHAR as PO FROM "SNOWALERT"."DATA"."ASSETPANDA_DEFAULT_CONNECTION"; diff --git a/pkg/resources/testdata/view_1b.sql b/pkg/resources/testdata/view_1b.sql index 629c7f5529..b44467136e 100644 --- a/pkg/resources/testdata/view_1b.sql +++ b/pkg/resources/testdata/view_1b.sql @@ -1,6 +1,3 @@ --- Copyright (c) HashiCorp, Inc. --- SPDX-License-Identifier: MIT - SELECT RAW:"Asset_Panda_Number"::NUMBER as ASSET_PANDA_NUMBER, RAW:"is_locked"::BOOLEAN as IS_LOCKED, @@ -51,4 +48,4 @@ SELECT RAW:"mac_address"::VARCHAR as MAC_ADDRESS, RAW:"entity"::VARIANT as ENTITY, RAW:"PO"::VARCHAR as PO - FROM "SNOWALERT"."DATA"."ASSETPANDA_DEFAULT_CONNECTION"; \ No newline at end of file + FROM "SNOWALERT"."DATA"."ASSETPANDA_DEFAULT_CONNECTION"; diff --git a/pkg/resources/testdata/view_2a.sql b/pkg/resources/testdata/view_2a.sql index 8214cc4c47..b4190323f6 100644 --- a/pkg/resources/testdata/view_2a.sql +++ b/pkg/resources/testdata/view_2a.sql @@ -1,4 +1 @@ --- Copyright (c) HashiCorp, Inc. --- SPDX-License-Identifier: MIT - -SELECT value:configRuleName::VARCHAR AS CONFIG_RULE_NAME, VALUE:complianceType::VARCHAR AS COMPLIANCE_TYPE, * FROM ( SELECT parse_json(CONFIGURATION:configRuleList) AS SRC, * FROM "SNOWALERT"."DATA"."AWS_CONFIG_DEFAULT_EVENTS_CONNECTION" WHERE RESOURCE_TYPE = 'AWS::Config::ResourceCompliance' ), lateral flatten(input => SRC) \ No newline at end of file +SELECT value:configRuleName::VARCHAR AS CONFIG_RULE_NAME, VALUE:complianceType::VARCHAR AS COMPLIANCE_TYPE, * FROM ( SELECT parse_json(CONFIGURATION:configRuleList) AS SRC, * FROM "SNOWALERT"."DATA"."AWS_CONFIG_DEFAULT_EVENTS_CONNECTION" WHERE RESOURCE_TYPE = 'AWS::Config::ResourceCompliance' ), lateral flatten(input => SRC) diff --git a/pkg/resources/testdata/view_2b.sql b/pkg/resources/testdata/view_2b.sql index 25f9121721..c7f17d0a83 100644 --- a/pkg/resources/testdata/view_2b.sql +++ b/pkg/resources/testdata/view_2b.sql @@ -1,7 +1,5 @@ --- Copyright (c) HashiCorp, Inc. --- SPDX-License-Identifier: MIT - SELECT +SELECT value:configRuleName::VARCHAR AS CONFIG_RULE_NAME, VALUE:complianceType::VARCHAR AS COMPLIANCE_TYPE, * @@ -11,4 +9,4 @@ * FROM "SNOWALERT"."DATA"."AWS_CONFIG_DEFAULT_EVENTS_CONNECTION" WHERE RESOURCE_TYPE = 'AWS::Config::ResourceCompliance' - ), lateral flatten(input => SRC) \ No newline at end of file + ), lateral flatten(input => SRC) From c1714c8af27dd5e0bd2c30095025d9698c75470d Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 03:42:42 -0700 Subject: [PATCH 16/28] remove license --- .github/workflows/generate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 99686aabdc..98015536bd 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -12,7 +12,7 @@ permissions: jobs: generate: - name: docs and copywrite check + name: docs and fmt check runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 From bbef44a8fb01673ac1ab4357f86e7d4de88319f5 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 05:24:35 -0700 Subject: [PATCH 17/28] fix comments --- .github/workflows/acc-test.yml | 6 --- CONTRIBUTING.md | 2 +- Makefile | 61 +++++++++++++++---------------- pkg/sdk/tasks_dto_builders_gen.go | 2 + 4 files changed, 33 insertions(+), 38 deletions(-) diff --git a/.github/workflows/acc-test.yml b/.github/workflows/acc-test.yml index b90fc2a991..4c664df054 100644 --- a/.github/workflows/acc-test.yml +++ b/.github/workflows/acc-test.yml @@ -22,9 +22,3 @@ jobs: - name: Create and populate .snowflake/config file run: mkdir $HOME/.snowflake && echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > $HOME/.snowflake/config - run: make testacc - env: - SKIP_EMAIL_INTEGRATION_TESTS=true - SKIP_EXTERNAL_TABLE_TEST=true - SKIP_NOTIFICATION_INTEGRATION_TESTS=true - SKIP_SAML_INTEGRATION_TESTS=true - SKIP_STREAM_TEST=true diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e810e3b6f8..3cbd88073a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,7 @@ 2. Ensure that your `GOPATH` is set to the desired location 3. Fork this repo and clone it into `$GOPATH/src/github.com/Snowflake-Labs/terraform-provider-snowflake` 4. cd to `terraform-provider-snowflake` and install all the required packages with `go get` -5. Build provider with `make build` +5. Build and install provider with `make install` ## Testing diff --git a/Makefile b/Makefile index ecec58e7fa..dcf3e527f6 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,16 @@ +export SKIP_EMAIL_INTEGRATION_TESTS=true +export SKIP_EXTERNAL_TABLE_TEST=true +export SKIP_NOTIFICATION_INTEGRATION_TESTS=true +export SKIP_SAML_INTEGRATION_TESTS=true +export SKIP_STREAM_TEST=true -default: install - -build: - go build -v ./... - -clean-generator-poc: - rm -f ./internal/sdk/poc/example/*_gen.go - rm -f ./internal/sdk/poc/example/*_gen_test.go - -clean-generator-%: ## Clean generated files for specified resource - rm -f ./internal/sdk/$**_gen.go - rm -f ./internal/sdk/$**_gen_*test.go +default: help docs: go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate docs-check: docs ## check that docs have been generated git diff --exit-code -- docs -.PHONY: docs-check fmt: ## Run gofumpt @echo "==> Fixing source code with gofumpt..." @@ -29,16 +22,10 @@ fumpt: fmt generate: cd tools && go generate ./... -generate-all-dto: ## Generate all DTOs for SDK interfaces - go generate ./internal/sdk/*_dto.go - -generate-dto-%: ./internal/sdk/%_dto.go ## Generate DTO for given SDK interface - go generate $< - help: @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-23s\033[0m %s\n", $$1, $$2}' -install: build +install: go install -v ./... # See https://golangci-lint.run/ @@ -57,16 +44,6 @@ mod-check: mod ## check if there are any missing/unused modules pre-push: fmt lint mod docs ## Run a few checks before pushing a change (docs, fmt, mod, etc.) pre-push-check: docs-check lint-check mod-check; ## Run a few checks before pushing a change (docs, fmt, mod, etc.) -.PHONY: pre-push - - -run-generator-poc: - go generate ./internal/sdk/poc/example/*_def.go - go generate ./internal/sdk/poc/example/*_dto_gen.go - -run-generator-%: ./internal/sdk/%_def.go ## Run go generate on given object definition - go generate $< - go generate ./internal/sdk/$*_dto_gen.go sweep: ## destroy the whole architecture; USE ONLY FOR DEVELOPMENT ACCOUNTS @echo "WARNING: This will destroy infrastructure. Use only in development accounts." @@ -81,7 +58,7 @@ test: go test -v -cover -timeout=30m -parallel=4 ./... testacc: - TF_ACC=1 go test -v -cover -timeout 30m -parallel=4 `go list ./... | grep -v internal/sdk` + TF_ACC=1 go test -v -cover -timeout 30m -parallel=4 `go list ./... | grep -v pkg/sdk` tools: cd tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint @@ -89,4 +66,26 @@ tools: cd tools && go install github.com/hashicorp/copywrite cd tools && go install mvdan.cc/gofumpt +generate-all-dto: ## Generate all DTOs for SDK interfaces + go generate ./internal/sdk/*_dto.go + +generate-dto-%: ./internal/sdk/%_dto.go ## Generate DTO for given SDK interface + go generate $< + +clean-generator-poc: + rm -f ./internal/sdk/poc/example/*_gen.go + rm -f ./internal/sdk/poc/example/*_gen_test.go + +clean-generator-%: ## Clean generated files for specified resource + rm -f ./internal/sdk/$**_gen.go + rm -f ./internal/sdk/$**_gen_*test.go + +run-generator-poc: + go generate ./internal/sdk/poc/example/*_def.go + go generate ./internal/sdk/poc/example/*_dto_gen.go + +run-generator-%: ./internal/sdk/%_def.go ## Run go generate on given object definition + go generate $< + go generate ./internal/sdk/$*_dto_gen.go + .PHONY: build clean-generator-poc clean-generator-% docs docs-check fmt fumpt generate generate-all-dto generate-dto-% help install lint lint-fix mod mod-check pre-push pre-push-check run-generator-poc run-generator-% sweep test testacc tools diff --git a/pkg/sdk/tasks_dto_builders_gen.go b/pkg/sdk/tasks_dto_builders_gen.go index eb7317c18c..fd02c08b2e 100644 --- a/pkg/sdk/tasks_dto_builders_gen.go +++ b/pkg/sdk/tasks_dto_builders_gen.go @@ -2,6 +2,8 @@ package sdk +import () + func NewCreateTaskRequest( name SchemaObjectIdentifier, sql string, From dd45d451b611f00b8cb0753bf090350ff8cab274 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 05:38:47 -0700 Subject: [PATCH 18/28] change to yml --- .github/ISSUE_TEMPLATE/{bug_report.md => bug_report.yml} | 0 .github/ISSUE_TEMPLATE/{documentation.md => documentation.yml} | 0 .../ISSUE_TEMPLATE/{feature_request.md => feature_request.yml} | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename .github/ISSUE_TEMPLATE/{bug_report.md => bug_report.yml} (100%) rename .github/ISSUE_TEMPLATE/{documentation.md => documentation.yml} (100%) rename .github/ISSUE_TEMPLATE/{feature_request.md => feature_request.yml} (100%) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/bug_report.md rename to .github/ISSUE_TEMPLATE/bug_report.yml diff --git a/.github/ISSUE_TEMPLATE/documentation.md b/.github/ISSUE_TEMPLATE/documentation.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/documentation.md rename to .github/ISSUE_TEMPLATE/documentation.yml diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/feature_request.md rename to .github/ISSUE_TEMPLATE/feature_request.yml From 64169f00d2dc7773043db8f643b2a8e938516234 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 08:11:49 -0700 Subject: [PATCH 19/28] fmt --- .github/workflows/acc-test.yml | 24 ------ .github/workflows/codeql-analysis.yml | 51 ++++++++++++ .github/workflows/codeql.yml | 82 ------------------- .../{generate.yml => docs-and-format.yml} | 13 ++- .github/workflows/goreleaser.yml | 31 ------- .github/workflows/ok-to-test.yml | 29 +++++++ .github/workflows/pull-request.yml | 31 ------- .github/workflows/release-please.yml | 14 ---- .github/workflows/release.yml | 71 ++++++++++++++++ .github/workflows/test-acceptance.yml | 38 +++++++++ .../workflows/test-unit-and-integration.yml | 38 +++++++++ .github/workflows/unit-test.yml | 24 ------ CONTRIBUTING.md | 2 +- Makefile | 58 ++++++++----- .../TestAcc_DynamicTables_complete/1/test.tf | 56 ++++++------- .../1/variables.tf | 14 ++-- .../TestAcc_DynamicTable_basic/1/test.tf | 36 ++++---- .../TestAcc_DynamicTable_basic/1/variables.tf | 14 ++-- .../TestAcc_DynamicTable_basic/2/test.tf | 36 ++++---- .../TestAcc_DynamicTable_basic/2/variables.tf | 14 ++-- .../TestAcc_DynamicTable_basic/3/test.tf | 36 ++++---- .../TestAcc_DynamicTable_basic/3/variables.tf | 14 ++-- 22 files changed, 380 insertions(+), 346 deletions(-) delete mode 100644 .github/workflows/acc-test.yml create mode 100644 .github/workflows/codeql-analysis.yml delete mode 100644 .github/workflows/codeql.yml rename .github/workflows/{generate.yml => docs-and-format.yml} (56%) delete mode 100644 .github/workflows/goreleaser.yml create mode 100644 .github/workflows/ok-to-test.yml delete mode 100644 .github/workflows/pull-request.yml delete mode 100644 .github/workflows/release-please.yml create mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/test-acceptance.yml create mode 100644 .github/workflows/test-unit-and-integration.yml delete mode 100644 .github/workflows/unit-test.yml diff --git a/.github/workflows/acc-test.yml b/.github/workflows/acc-test.yml deleted file mode 100644 index 4c664df054..0000000000 --- a/.github/workflows/acc-test.yml +++ /dev/null @@ -1,24 +0,0 @@ -# Run secret-dependent integration tests only after /ok-to-test approval -on: - pull_request: - branches: [ main ] - paths-ignore: - - 'README.md' - - 'CHANGELOG.md' -name: acceptance - -jobs: - test: - name: test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 - with: - go-version-file: ./go.mod - cache: false - - name: Install dependencies - run: make tools - - name: Create and populate .snowflake/config file - run: mkdir $HOME/.snowflake && echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > $HOME/.snowflake/config - - run: make testacc diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000000..0dd6831987 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,51 @@ +name: 'Code scanning - action' + +on: + push: + pull_request: + schedule: + - cron: '0 2 * * *' + +jobs: + CodeQL-Build: + # CodeQL runs on ubuntu-latest and windows-latest + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + # We must fetch at least the immediate parents so that if this is + # a pull request then we can checkout the head. + fetch-depth: 2 + + # If this run was triggered by a pull request event, then checkout + # the head of the pull request instead of the merge commit. + - run: git checkout HEAD^2 + if: ${{ github.event_name == 'pull_request' }} + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + # Override language selection by uncommenting this and choosing your languages + # with: + # languages: go, javascript, csharp, python, cpp, java + + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + # ℹ️ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl + + # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language + + #- run: | + # make bootstrap + # make release + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index 97180f3f25..0000000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,82 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - push: - branches: [ "main", "master" ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ "main" ] - schedule: - - cron: '40 5 * * 4' - -jobs: - analyze: - name: Analyze - # Runner size impacts CodeQL analysis time. To learn more, please see: - # - https://gh.io/recommended-hardware-resources-for-running-codeql - # - https://gh.io/supported-runners-and-hardware-resources - # - https://gh.io/using-larger-runners - # Consider using larger runners for possible analysis time improvements. - runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} - timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'go' ] - # CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ] - # Use only 'java-kotlin' to analyze code written in Java, Kotlin or both - # Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - - # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality - - - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - # ℹ️ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - - # If the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 - with: - category: "/language:${{matrix.language}}" diff --git a/.github/workflows/generate.yml b/.github/workflows/docs-and-format.yml similarity index 56% rename from .github/workflows/generate.yml rename to .github/workflows/docs-and-format.yml index 98015536bd..f09aaf0fde 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/docs-and-format.yml @@ -1,4 +1,4 @@ -name: generate +name: check on: push: branches: @@ -11,8 +11,8 @@ permissions: # pull-requests: read jobs: - generate: - name: docs and fmt check + docs-and-fmt: + name: docs and fmt runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -20,8 +20,5 @@ jobs: with: go-version-file: ./go.mod cache: false - - run: make generate - - name: Confirm no diff - run: | - git diff --compact-summary --exit-code || \ - (echo "*** Unexpected differences after code generation. Run 'make generate' and commit."; exit 1) + - run: make docs-check + - run: make fmt-check diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml deleted file mode 100644 index 66123f6055..0000000000 --- a/.github/workflows/goreleaser.yml +++ /dev/null @@ -1,31 +0,0 @@ -on: - push: - branches: - - main -name: goreleaser -jobs: - goreleaser: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Allow goreleaser to access older tag information. - fetch-depth: 0 - - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 - with: - go-version-file: 'go.mod' - cache: true - - name: Import GPG key - uses: crazy-max/ghaction-import-gpg@82a020f1f7f605c65dd2449b392a52c3fcfef7ef # v6.0.0 - id: import_gpg - with: - gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} - passphrase: ${{ secrets.PASSPHRASE }} - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0 - with: - args: release --clean - env: - # GitHub sets the GITHUB_TOKEN secret automatically. - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} diff --git a/.github/workflows/ok-to-test.yml b/.github/workflows/ok-to-test.yml new file mode 100644 index 0000000000..8b4e881dca --- /dev/null +++ b/.github/workflows/ok-to-test.yml @@ -0,0 +1,29 @@ +# If someone with write access comments "/ok-to-test" on a pull request, emit repository_dispatch event +name: ok-to-test + +on: + issue_comment: + types: [created] + +jobs: + ok-to-test: + runs-on: ubuntu-latest + steps: + - name: Generate token + id: generate_token + uses: chanzuckerberg/github-app-token@v1.1.4 + with: + app_id: ${{ secrets.OK_TO_TEST_APP_ID }} + private_key: ${{ secrets.OK_TO_TEST_PRIVATE_KEY }} + + - name: Slash Command Dispatch + uses: peter-evans/slash-command-dispatch@v3 + env: + TOKEN: ${{ steps.generate_token.outputs.token }} + ACTIONS_STEP_DEBUG: true + with: + token: ${{ env.TOKEN }} # GitHub App installation access token + reaction-token: ${{ secrets.GITHUB_TOKEN }} + issue-type: pull-request + commands: ok-to-test + permission: write diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml deleted file mode 100644 index ef730621e5..0000000000 --- a/.github/workflows/pull-request.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: "Pull Request Triage" - -on: [pull_request_target] - -permissions: - # CodelyTV/pr-size-labeler uses issues URL for labeling - issues: write - pull-requests: write - -jobs: - triage: - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@ac9175f8a1f3625fd0d4fb234536d26811351594 # v4.3.0 - with: - configuration-path: .github/labeler-pull-request-triage.yml - repo-token: "${{ secrets.GITHUB_TOKEN }}" - - uses: CodelyTV/pr-size-labeler@54ef36785e9f4cb5ecf1949cfc9b00dbb621d761 # v1.8.1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - xs_label: 'size/XS' - xs_max_size: '30' - s_label: 'size/S' - s_max_size: '60' - m_label: 'size/M' - m_max_size: '150' - l_label: 'size/L' - l_max_size: '300' - xl_label: 'size/XL' - message_if_xl: '' - files_to_ignore: 'go.sum' diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml deleted file mode 100644 index fe9960d976..0000000000 --- a/.github/workflows/release-please.yml +++ /dev/null @@ -1,14 +0,0 @@ -on: - push: - branches: - - main -name: release-please -jobs: - release-please: - runs-on: ubuntu-latest - steps: - - uses: google-github-actions/release-please-action@v3 - with: - release-type: go - package-name: release-please-action - changelog-types: '[{"type":"feat","section":"🎉 **What's new:**","hidden":false},{"type":"fix","section":"🐛 **Bug fixes:**","hidden":false},{"type":"chore","section":"🔧 **Misc**","hidden":false}]' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..911864bb09 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,71 @@ +on: + push: + branches: + - main + tags: + - '*' + +name: release-please +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v6 + id: configure-changelog + with: + result-encoding: string + script: | + const changelogTypes = [ + {type: "feat", section: "🎉 **What's new:**", hidden: false}, + {type: "chore", section: "🔧 **Misc**", hidden: false}, + {type: "fix", section: "🐛 **Bug fixes:**", hidden: false}, + ] + + return JSON.stringify(changelogTypes) + # See https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow + # For why we need to generate a token and not use the default + - name: Generate token + id: generate_token + uses: chanzuckerberg/github-app-token@v1.1.4 + with: + app_id: ${{ secrets.CZI_RELEASE_PLEASE_APP_ID }} + private_key: ${{ secrets.CZI_RELEASE_PLEASE_PK }} + + - name: Import GPG key + id: import_gpg + uses: crazy-max/ghaction-import-gpg@v5 + with: + # These secrets will need to be configured for the repository: + GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} + PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + + - name: release please + uses: google-github-actions/release-please-action@v3 + id: release + with: + release-type: simple + bump-minor-pre-major: true + changelog-types: ${{ steps.configure-changelog.outputs.result }} + token: ${{ steps.generate_token.outputs.token }} + + - uses: actions/checkout@v3 + # we need to fetch all history and tags + # so we build the proper version + with: + fetch-depth: 0 + if: ${{ steps.release.outputs.release_created }} + + - uses: actions/setup-go@v4 + with: + go-version-file: ./go.mod + if: ${{ steps.release.outputs.release_created }} + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v4 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} + GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} + if: ${{ steps.release.outputs.release_created }} diff --git a/.github/workflows/test-acceptance.yml b/.github/workflows/test-acceptance.yml new file mode 100644 index 0000000000..579e75c5c8 --- /dev/null +++ b/.github/workflows/test-acceptance.yml @@ -0,0 +1,38 @@ +# Run secret-dependent integration tests only after /ok-to-test approval +on: + repository_dispatch: + types: [ok-to-test-command] + pull_request: +name: test-acceptance + +jobs: + test: + name: test + runs-on: ubuntu-latest + if: (github.event_name == 'repository_dispatch') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) + steps: + - id: verify-sha-input + if: github.event_name == 'repository_dispatch' + run: | + echo \"${{ github.event.client_payload.pull_request.head.sha }}\" + echo \"${{ github.event.client_payload.slash_command.args.named.sha }}\" + SHAINPUT=$(echo ${{github.event.client_payload.slash_command.args.named.sha}} | cut -c1-7) + if [ ${#SHAINPUT} -le 6 ]; then echo "error::input sha not at least 7 characters long" ; exit 1 + else echo "done" + fi + SHAHEAD=$(echo ${{github.event.client_payload.pull_request.head.sha}} | cut -c1-7) + echo ${#SHAINPUT} + echo ${#SHAHEAD} + if [ "${SHAHEAD}" != "${SHAINPUT}" ]; then echo "sha input from slash command does not equal the head sha" ; exit 1 + else echo "shas are equal" + fi + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version-file: ./go.mod + cache: false + - name: Install dependencies + run: make tools + - name: Create and populate .snowflake/config file + run: mkdir $HOME/.snowflake && echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > $HOME/.snowflake/config + - run: make test-acceptance diff --git a/.github/workflows/test-unit-and-integration.yml b/.github/workflows/test-unit-and-integration.yml new file mode 100644 index 0000000000..1c45a2129b --- /dev/null +++ b/.github/workflows/test-unit-and-integration.yml @@ -0,0 +1,38 @@ +# Run secret-dependent integration tests only after /ok-to-test approval +on: + repository_dispatch: + types: [ok-to-test-command] + pull_request: +name: test-unit-and-integration + +jobs: + unit: + name: test + runs-on: ubuntu-latest + if: (github.event_name == 'repository_dispatch') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) + steps: + - id: verify-sha-input + if: github.event_name == 'repository_dispatch' + run: | + echo \"${{ github.event.client_payload.pull_request.head.sha }}\" + echo \"${{ github.event.client_payload.slash_command.args.named.sha }}\" + SHAINPUT=$(echo ${{github.event.client_payload.slash_command.args.named.sha}} | cut -c1-7) + if [ ${#SHAINPUT} -le 6 ]; then echo "error::input sha not at least 7 characters long" ; exit 1 + else echo "done" + fi + SHAHEAD=$(echo ${{github.event.client_payload.pull_request.head.sha}} | cut -c1-7) + echo ${#SHAINPUT} + echo ${#SHAHEAD} + if [ "${SHAHEAD}" != "${SHAINPUT}" ]; then echo "sha input from slash command does not equal the head sha" ; exit 1 + else echo "shas are equal" + fi + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version-file: ./go.mod + cache: false + - name: Install dependencies + run: make tools + - name: Create and populate .snowflake/config file + run: mkdir $HOME/.snowflake && echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > $HOME/.snowflake/config + - run: make test diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml deleted file mode 100644 index d4dbe14398..0000000000 --- a/.github/workflows/unit-test.yml +++ /dev/null @@ -1,24 +0,0 @@ -# Run secret-dependent integration tests only after /ok-to-test approval -on: - pull_request: - branches: [ main ] - paths-ignore: - - 'README.md' - - 'CHANGELOG.md' -name: unit - -jobs: - unit: - name: test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 - with: - go-version-file: ./go.mod - cache: false - - name: Install dependencies - run: make tools - - name: Create and populate .snowflake/config file - run: mkdir $HOME/.snowflake && echo "${{ secrets.SNOWFLAKE_CONFIG_FILE }}" > $HOME/.snowflake/config - - run: make test diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3cbd88073a..b0eec73f54 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -54,7 +54,7 @@ You can run these first two sets of tests with `make test`. The 'acceptance' tests run the full stack, creating, modifying and destroying resources in a live snowflake account. To run them you need a snowflake account and the proper authentication set up. These tests are slower but have higher fidelity. You can create a new Snowflake Enterprise trial account and setup the environment variables for running acceptance tests. -To run all tests, including the acceptance tests, run `make testacc`. +To run all tests, including the acceptance tests, run `make test-acceptance`. ### Running tests in VSCode diff --git a/Makefile b/Makefile index dcf3e527f6..d2f3bcb064 100644 --- a/Makefile +++ b/Makefile @@ -3,33 +3,45 @@ export SKIP_EXTERNAL_TABLE_TEST=true export SKIP_NOTIFICATION_INTEGRATION_TESTS=true export SKIP_SAML_INTEGRATION_TESTS=true export SKIP_STREAM_TEST=true +export BASE_BINARY_NAME=terraform-provider-snowflake +export TERRAFORM_PLUGINS_DIR=$(HOME)/.terraform.d/plugins +export TERRAFORM_PLUGIN_LOCAL_INSTALL=$(TERRAFORM_PLUGINS_DIR)/$(BASE_BINARY_NAME) default: help -docs: +dev-setup: ## setup development dependencies + @which ./bin/golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./bin v1.53.3 + cd tools && go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs + cd tools && go install mvdan.cc/gofumpt + +dev-cleanup: ## cleanup development dependencies + rm -rf bin/* + +docs: ## generate docs go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate docs-check: docs ## check that docs have been generated git diff --exit-code -- docs -fmt: ## Run gofumpt - @echo "==> Fixing source code with gofumpt..." +fmt: terraform-fmt ## Run terraform fmt and gofumpt gofumpt -l -w . -fumpt: fmt +fmt-check: fmt terraform-fmt ## check that docs have been generated + git diff --exit-code -- . + if [ "$(gofmt -l . | wc -l)" -gt 0 ]; then exit 1; fi -# Generate docs, terraform fmt the examples folder -generate: - cd tools && go generate ./... +terraform-fmt: ## Run terraform fmt + terraform fmt -recursive ./examples/ + terraform fmt -recursive ./pkg/resources/testdata/ + terraform fmt -recursive ./pkg/datasources/testdata/ help: @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-23s\033[0m %s\n", $$1, $$2}' -install: +install: ## display help for this makefile go install -v ./... -# See https://golangci-lint.run/ -lint: +lint: # See https://golangci-lint.run/ golangci-lint run ./... -v lint-fix: ## Run static code analysis, check formatting and try to fix findings @@ -41,9 +53,9 @@ mod: ## add missing and remove unused modules mod-check: mod ## check if there are any missing/unused modules git diff --exit-code -- go.mod go.sum -pre-push: fmt lint mod docs ## Run a few checks before pushing a change (docs, fmt, mod, etc.) +pre-push: fmt docs mod lint ## Run a few checks before pushing a change (docs, fmt, mod, etc.) -pre-push-check: docs-check lint-check mod-check; ## Run a few checks before pushing a change (docs, fmt, mod, etc.) +pre-push-check: fmt-check docs-check lint-check mod-check; ## Run a few checks before pushing a change (docs, fmt, mod, etc.) sweep: ## destroy the whole architecture; USE ONLY FOR DEVELOPMENT ACCOUNTS @echo "WARNING: This will destroy infrastructure. Use only in development accounts." @@ -54,17 +66,21 @@ sweep: ## destroy the whole architecture; USE ONLY FOR DEVELOPMENT ACCOUNTS else echo "Aborting..."; \ fi; -test: +test: ## run unit and integration tests go test -v -cover -timeout=30m -parallel=4 ./... -testacc: - TF_ACC=1 go test -v -cover -timeout 30m -parallel=4 `go list ./... | grep -v pkg/sdk` +test-acceptance: ## run acceptance tests + TF_ACC=1 go test -v -cover -timeout 30m `go list ./... | grep -v pkg/sdk` -tools: - cd tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint - cd tools && go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs - cd tools && go install github.com/hashicorp/copywrite - cd tools && go install mvdan.cc/gofumpt +build-local: ## build the binary locally + go build -o $(BASE_BINARY_NAME) . + +install-tf: build-local ## installs plugin where terraform can find it + mkdir -p $(TERRAFORM_PLUGINS_DIR) + cp ./$(BASE_BINARY_NAME) $(TERRAFORM_PLUGIN_LOCAL_INSTALL) + +uninstall-tf: ## uninstalls plugin from where terraform can find it + rm -f $(TERRAFORM_PLUGIN_LOCAL_INSTALL) generate-all-dto: ## Generate all DTOs for SDK interfaces go generate ./internal/sdk/*_dto.go @@ -88,4 +104,4 @@ run-generator-%: ./internal/sdk/%_def.go ## Run go generate on given object defi go generate $< go generate ./internal/sdk/$*_dto_gen.go -.PHONY: build clean-generator-poc clean-generator-% docs docs-check fmt fumpt generate generate-all-dto generate-dto-% help install lint lint-fix mod mod-check pre-push pre-push-check run-generator-poc run-generator-% sweep test testacc tools +.PHONY: build-local clean-generator-poc dev-setup dev-cleanup docs docs-check fmt fmt-check fumpt help install lint lint-fix mod mod-check pre-push pre-push-check sweep test test-acceptance tools uninstall-tf diff --git a/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/test.tf b/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/test.tf index 171cbef7f6..e338862811 100644 --- a/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/test.tf +++ b/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/test.tf @@ -1,38 +1,38 @@ resource "snowflake_table" "t" { - database = var.database - schema = var.schema - name = var.table_name - change_tracking = true - column { - name = "id" - type = "NUMBER(38,0)" - } + database = var.database + schema = var.schema + name = var.table_name + change_tracking = true + column { + name = "id" + type = "NUMBER(38,0)" + } } resource "snowflake_dynamic_table" "dt" { - depends_on = [snowflake_table.t] - name = var.name - database = var.database - schema = var.schema - target_lag { - maximum_duration = "2 minutes" - } - warehouse = var.warehouse - query = var.query - comment = var.comment + depends_on = [snowflake_table.t] + name = var.name + database = var.database + schema = var.schema + target_lag { + maximum_duration = "2 minutes" + } + warehouse = var.warehouse + query = var.query + comment = var.comment } data "snowflake_dynamic_tables" "dts" { - like { - pattern = snowflake_dynamic_table.dt.name - } - in { - database = snowflake_dynamic_table.dt.database - } - starts_with = snowflake_dynamic_table.dt.name - limit { - rows = 1 - } + like { + pattern = snowflake_dynamic_table.dt.name + } + in { + database = snowflake_dynamic_table.dt.database + } + starts_with = snowflake_dynamic_table.dt.name + limit { + rows = 1 + } } diff --git a/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/variables.tf b/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/variables.tf index 52500bb56a..81bcd62944 100644 --- a/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/variables.tf +++ b/pkg/datasources/testdata/TestAcc_DynamicTables_complete/1/variables.tf @@ -1,29 +1,29 @@ variable "name" { - type = string + type = string } variable "database" { - type = string + type = string } variable "schema" { - type = string + type = string } variable "warehouse" { - type = string + type = string } variable "query" { - type = string + type = string } variable "comment" { - type = string + type = string } variable "table_name" { - type = string + type = string } diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/test.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/test.tf index 494101f87d..7b83d80292 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/test.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/test.tf @@ -1,25 +1,25 @@ resource "snowflake_table" "t" { - database = var.database - schema = var.schema - name = var.table_name - change_tracking = true - column { - name = "id" - type = "NUMBER(38,0)" - } + database = var.database + schema = var.schema + name = var.table_name + change_tracking = true + column { + name = "id" + type = "NUMBER(38,0)" + } } resource "snowflake_dynamic_table" "dt" { - depends_on = [snowflake_table.t] - name = var.name - database = var.database - schema = var.schema - target_lag { - maximum_duration = "2 minutes" - } - warehouse = var.warehouse - query = var.query - comment = var.comment + depends_on = [snowflake_table.t] + name = var.name + database = var.database + schema = var.schema + target_lag { + maximum_duration = "2 minutes" + } + warehouse = var.warehouse + query = var.query + comment = var.comment } diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/variables.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/variables.tf index 52500bb56a..81bcd62944 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/variables.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_basic/1/variables.tf @@ -1,29 +1,29 @@ variable "name" { - type = string + type = string } variable "database" { - type = string + type = string } variable "schema" { - type = string + type = string } variable "warehouse" { - type = string + type = string } variable "query" { - type = string + type = string } variable "comment" { - type = string + type = string } variable "table_name" { - type = string + type = string } diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/test.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/test.tf index e3a2ae7230..5d2ea4382d 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/test.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/test.tf @@ -1,25 +1,25 @@ resource "snowflake_table" "t" { - database = var.database - schema = var.schema - name = var.table_name - change_tracking = true - column { - name = "id" - type = "NUMBER(38,0)" - } + database = var.database + schema = var.schema + name = var.table_name + change_tracking = true + column { + name = "id" + type = "NUMBER(38,0)" + } } resource "snowflake_dynamic_table" "dt" { - depends_on = [snowflake_table.t] - name = var.name - database = var.database - schema = var.schema - target_lag { - downstream = true - } - warehouse = var.warehouse - query = var.query - comment = var.comment + depends_on = [snowflake_table.t] + name = var.name + database = var.database + schema = var.schema + target_lag { + downstream = true + } + warehouse = var.warehouse + query = var.query + comment = var.comment } diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/variables.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/variables.tf index 52500bb56a..81bcd62944 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/variables.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_basic/2/variables.tf @@ -1,29 +1,29 @@ variable "name" { - type = string + type = string } variable "database" { - type = string + type = string } variable "schema" { - type = string + type = string } variable "warehouse" { - type = string + type = string } variable "query" { - type = string + type = string } variable "comment" { - type = string + type = string } variable "table_name" { - type = string + type = string } diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/test.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/test.tf index e3a2ae7230..5d2ea4382d 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/test.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/test.tf @@ -1,25 +1,25 @@ resource "snowflake_table" "t" { - database = var.database - schema = var.schema - name = var.table_name - change_tracking = true - column { - name = "id" - type = "NUMBER(38,0)" - } + database = var.database + schema = var.schema + name = var.table_name + change_tracking = true + column { + name = "id" + type = "NUMBER(38,0)" + } } resource "snowflake_dynamic_table" "dt" { - depends_on = [snowflake_table.t] - name = var.name - database = var.database - schema = var.schema - target_lag { - downstream = true - } - warehouse = var.warehouse - query = var.query - comment = var.comment + depends_on = [snowflake_table.t] + name = var.name + database = var.database + schema = var.schema + target_lag { + downstream = true + } + warehouse = var.warehouse + query = var.query + comment = var.comment } diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/variables.tf b/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/variables.tf index 52500bb56a..81bcd62944 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/variables.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_basic/3/variables.tf @@ -1,29 +1,29 @@ variable "name" { - type = string + type = string } variable "database" { - type = string + type = string } variable "schema" { - type = string + type = string } variable "warehouse" { - type = string + type = string } variable "query" { - type = string + type = string } variable "comment" { - type = string + type = string } variable "table_name" { - type = string + type = string } From 641dabacbec31078517731dc13239f9d7c865825 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 08:13:50 -0700 Subject: [PATCH 20/28] revert goreleaser --- .goreleaser.yml | 44 +++++++++++++++----------------------------- 1 file changed, 15 insertions(+), 29 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 4bb39e825c..e35c0bb88b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,60 +1,46 @@ -# Visit https://goreleaser.com for documentation on how to customize this -# behavior. -before: - hooks: - # this is just an example and not a requirement for provider building/publishing - - go mod tidy builds: - env: - # goreleaser does not work with CGO, it could also complicate - # usage by users in CI/CD systems like Terraform Cloud where - # they are unable to install libraries. - - CGO_ENABLED=0 - mod_timestamp: '{{ .CommitTimestamp }}' - flags: - - -trimpath - ldflags: - - '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}' + - CGO_ENABLED=0 goos: - - freebsd - windows - linux - darwin + - freebsd goarch: - amd64 - - '386' - - arm - arm64 + - '386' + flags: + - -trimpath ignore: - - goos: darwin - goarch: '386' binary: '{{ .ProjectName }}_v{{ .Version }}' + archives: -- format: zip - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' + - format: zip + name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' + checksum: extra_files: - glob: 'terraform-registry-manifest.json' name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json' name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' algorithm: sha256 + signs: - artifacts: checksum args: - # if you are using this in a GitHub action or some other automated pipeline, you - # need to pass the batch flag to indicate its not interactive. - "--batch" - "--local-user" - - "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key + - "{{ .Env.GPG_FINGERPRINT }}" - "--output" - "${signature}" - "--detach-sign" - "${artifact}" + release: + github: + owner: Snowflake-Labs + name: terraform-provider-snowflake extra_files: - glob: 'terraform-registry-manifest.json' name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json' - # If you want to manually examine the release before its live, uncomment this line: - # draft: true -changelog: - skip: true From 55efde7fed445aa43400066520e81fde67e43999 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 08:18:45 -0700 Subject: [PATCH 21/28] revert reviewdog file --- .reviewdog.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.reviewdog.yml b/.reviewdog.yml index cecdb5668a..6b5c8ccd3b 100644 --- a/.reviewdog.yml +++ b/.reviewdog.yml @@ -1,9 +1,6 @@ -# Copyright (c) Snowflake, Inc. -# SPDX-License-Identifier: MIT - runner: golangci: - cmd: golangci-lint run --out-format=line-number --timeout 5m + cmd: ./bin/golangci-lint run --out-format=line-number --timeout 5m errorformat: - '%E%f:%l:%c: %m' - '%E%f:%l: %m' From 51f8f45f43e458940d0a1007b8fb8537302c8a82 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 08:25:17 -0700 Subject: [PATCH 22/28] update makefile --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d2f3bcb064..451a3ead68 100644 --- a/Makefile +++ b/Makefile @@ -26,9 +26,8 @@ docs-check: docs ## check that docs have been generated fmt: terraform-fmt ## Run terraform fmt and gofumpt gofumpt -l -w . -fmt-check: fmt terraform-fmt ## check that docs have been generated +fmt-check: fmt ## check that terraform fmt and gofumt have been run git diff --exit-code -- . - if [ "$(gofmt -l . | wc -l)" -gt 0 ]; then exit 1; fi terraform-fmt: ## Run terraform fmt terraform fmt -recursive ./examples/ From 1ef74353b6734005da1fe04cfd44aee7a3b54a38 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 08:31:29 -0700 Subject: [PATCH 23/28] remove check-fmt --- .github/workflows/docs-and-format.yml | 3 ++- Makefile | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs-and-format.yml b/.github/workflows/docs-and-format.yml index f09aaf0fde..06a6db9527 100644 --- a/.github/workflows/docs-and-format.yml +++ b/.github/workflows/docs-and-format.yml @@ -21,4 +21,5 @@ jobs: go-version-file: ./go.mod cache: false - run: make docs-check - - run: make fmt-check + - run: if [ "$(gofmt -l . | wc -l)" -gt 0 ]; then exit 1; fi + name: check gofmt diff --git a/Makefile b/Makefile index 451a3ead68..0b0cf58ada 100644 --- a/Makefile +++ b/Makefile @@ -26,9 +26,6 @@ docs-check: docs ## check that docs have been generated fmt: terraform-fmt ## Run terraform fmt and gofumpt gofumpt -l -w . -fmt-check: fmt ## check that terraform fmt and gofumt have been run - git diff --exit-code -- . - terraform-fmt: ## Run terraform fmt terraform fmt -recursive ./examples/ terraform fmt -recursive ./pkg/resources/testdata/ From 14c63b266344e476c0885e514a1e5499c6b8ca46 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Thu, 16 Nov 2023 16:44:36 -0800 Subject: [PATCH 24/28] fix comments --- Makefile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index 0b0cf58ada..ed94d16fbd 100644 --- a/Makefile +++ b/Makefile @@ -34,10 +34,10 @@ terraform-fmt: ## Run terraform fmt help: @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-23s\033[0m %s\n", $$1, $$2}' -install: ## display help for this makefile +install: ## install the binary go install -v ./... -lint: # See https://golangci-lint.run/ +lint: # Run static code analysis, check formatting. See https://golangci-lint.run/ golangci-lint run ./... -v lint-fix: ## Run static code analysis, check formatting and try to fix findings @@ -51,7 +51,7 @@ mod-check: mod ## check if there are any missing/unused modules pre-push: fmt docs mod lint ## Run a few checks before pushing a change (docs, fmt, mod, etc.) -pre-push-check: fmt-check docs-check lint-check mod-check; ## Run a few checks before pushing a change (docs, fmt, mod, etc.) +pre-push-check: fmt-check docs-check lint-check mod-check ## Run a few checks before pushing a change (docs, fmt, mod, etc.) sweep: ## destroy the whole architecture; USE ONLY FOR DEVELOPMENT ACCOUNTS @echo "WARNING: This will destroy infrastructure. Use only in development accounts." @@ -63,10 +63,10 @@ sweep: ## destroy the whole architecture; USE ONLY FOR DEVELOPMENT ACCOUNTS fi; test: ## run unit and integration tests - go test -v -cover -timeout=30m -parallel=4 ./... + go test -v -cover -timeout=30m ./... test-acceptance: ## run acceptance tests - TF_ACC=1 go test -v -cover -timeout 30m `go list ./... | grep -v pkg/sdk` + TF_ACC=1 go test -v -cover -timeout 30m (^TestAcc$) build-local: ## build the binary locally go build -o $(BASE_BINARY_NAME) . @@ -79,25 +79,25 @@ uninstall-tf: ## uninstalls plugin from where terraform can find it rm -f $(TERRAFORM_PLUGIN_LOCAL_INSTALL) generate-all-dto: ## Generate all DTOs for SDK interfaces - go generate ./internal/sdk/*_dto.go + go generate ./pkg/sdk/*_dto.go -generate-dto-%: ./internal/sdk/%_dto.go ## Generate DTO for given SDK interface +generate-dto-%: ./pkg/sdk/%_dto.go ## Generate DTO for given SDK interface go generate $< clean-generator-poc: - rm -f ./internal/sdk/poc/example/*_gen.go - rm -f ./internal/sdk/poc/example/*_gen_test.go + rm -f ./pkg/sdk/poc/example/*_gen.go + rm -f ./pkg/sdk/poc/example/*_gen_test.go clean-generator-%: ## Clean generated files for specified resource - rm -f ./internal/sdk/$**_gen.go - rm -f ./internal/sdk/$**_gen_*test.go + rm -f ./pkg/sdk/$**_gen.go + rm -f ./pkg/sdk/$**_gen_*test.go run-generator-poc: - go generate ./internal/sdk/poc/example/*_def.go - go generate ./internal/sdk/poc/example/*_dto_gen.go + go generate ./pkg/sdk/poc/example/*_def.go + go generate ./pkg/sdk/poc/example/*_dto_gen.go -run-generator-%: ./internal/sdk/%_def.go ## Run go generate on given object definition +run-generator-%: ./pkg/sdk/%_def.go ## Run go generate on given object definition go generate $< - go generate ./internal/sdk/$*_dto_gen.go + go generate ./pkg/sdk/$*_dto_gen.go .PHONY: build-local clean-generator-poc dev-setup dev-cleanup docs docs-check fmt fmt-check fumpt help install lint lint-fix mod mod-check pre-push pre-push-check sweep test test-acceptance tools uninstall-tf From 9e50e9f7bf5da5e5e300e9026e68392a79a9eb47 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Thu, 16 Nov 2023 16:47:42 -0800 Subject: [PATCH 25/28] mod fix --- go.mod | 206 +--------- go.sum | 1149 +------------------------------------------------------- 2 files changed, 16 insertions(+), 1339 deletions(-) diff --git a/go.mod b/go.mod index 21dd3e3e0c..60a33cbf54 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,6 @@ require ( github.com/google/uuid v1.3.1 github.com/gookit/color v1.5.4 github.com/hashicorp/go-uuid v1.0.3 - github.com/hashicorp/terraform-plugin-docs v0.16.0 github.com/hashicorp/terraform-plugin-framework v1.4.2 github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 github.com/hashicorp/terraform-plugin-go v0.19.0 @@ -28,182 +27,28 @@ require ( golang.org/x/crypto v0.14.0 golang.org/x/exp v0.0.0-20230905200255-921286631fa9 golang.org/x/text v0.13.0 - golang.org/x/tools v0.14.0 ) require ( - 4d63.com/gocheckcompilerdirectives v1.2.1 // indirect - 4d63.com/gochecknoglobals v0.2.1 // indirect - github.com/4meepo/tagalign v1.3.3 // indirect - github.com/Abirdcfly/dupword v0.0.13 // indirect - github.com/Antonboom/errname v0.1.12 // indirect - github.com/Antonboom/nilnil v0.1.7 // indirect - github.com/Antonboom/testifylint v0.2.3 // indirect - github.com/BurntSushi/toml v1.3.2 // indirect - github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 // indirect - github.com/GaijinEntertainment/go-exhaustruct/v3 v3.1.0 // indirect - github.com/Masterminds/semver v1.5.0 // indirect - github.com/OpenPeeDeeP/depguard/v2 v2.1.0 // indirect - github.com/alecthomas/go-check-sumtype v0.1.3 // indirect - github.com/alexkohler/nakedret/v2 v2.0.2 // indirect - github.com/alexkohler/prealloc v1.0.0 // indirect - github.com/alingse/asasalint v0.0.11 // indirect - github.com/ashanbrown/forbidigo v1.6.0 // indirect - github.com/ashanbrown/makezero v1.1.1 // indirect - github.com/beorn7/perks v1.0.1 // indirect - github.com/bkielbasa/cyclop v1.2.1 // indirect - github.com/blizzy78/varnamelen v0.8.0 // indirect - github.com/bombsimon/wsl/v3 v3.4.0 // indirect - github.com/breml/bidichk v0.2.7 // indirect - github.com/breml/errchkjson v0.3.6 // indirect - github.com/butuzov/ireturn v0.2.1 // indirect - github.com/butuzov/mirror v1.1.0 // indirect - github.com/catenacyber/perfsprint v0.2.0 // indirect - github.com/ccojocar/zxcvbn-go v1.0.1 // indirect - github.com/cespare/xxhash/v2 v2.2.0 // indirect - github.com/charithe/durationcheck v0.0.10 // indirect - github.com/chavacava/garif v0.1.0 // indirect - github.com/curioswitch/go-reassign v0.2.0 // indirect - github.com/daixiang0/gci v0.11.2 // indirect - github.com/denis-tingaikin/go-header v0.4.3 // indirect - github.com/esimonov/ifshort v1.0.4 // indirect - github.com/ettle/strcase v0.1.1 // indirect - github.com/fatih/structtag v1.2.0 // indirect - github.com/firefart/nonamedreturns v1.0.4 // indirect - github.com/fzipp/gocyclo v0.6.0 // indirect - github.com/ghostiam/protogetter v0.2.3 // indirect - github.com/go-critic/go-critic v0.9.0 // indirect - github.com/go-toolsmith/astcast v1.1.0 // indirect - github.com/go-toolsmith/astcopy v1.1.0 // indirect - github.com/go-toolsmith/astequal v1.1.0 // indirect - github.com/go-toolsmith/astfmt v1.1.0 // indirect - github.com/go-toolsmith/astp v1.1.0 // indirect - github.com/go-toolsmith/strparse v1.1.0 // indirect - github.com/go-toolsmith/typep v1.1.0 // indirect - github.com/go-xmlfmt/xmlfmt v1.1.2 // indirect - github.com/gobwas/glob v0.2.3 // indirect - github.com/gofrs/flock v0.8.1 // indirect - github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 // indirect - github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a // indirect - github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe // indirect - github.com/golangci/gofmt v0.0.0-20231018234816-f50ced29576e // indirect - github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 // indirect - github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca // indirect - github.com/golangci/misspell v0.4.1 // indirect - github.com/golangci/revgrep v0.5.0 // indirect - github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 // indirect - github.com/gordonklaus/ineffassign v0.0.0-20230610083614-0e73809eb601 // indirect - github.com/gostaticanalysis/analysisutil v0.7.1 // indirect - github.com/gostaticanalysis/comment v1.4.2 // indirect - github.com/gostaticanalysis/forcetypeassert v0.1.0 // indirect - github.com/gostaticanalysis/nilerr v0.1.1 // indirect - github.com/hexops/gotextdiff v1.0.3 // indirect - github.com/jgautheron/goconst v1.6.0 // indirect - github.com/jingyugao/rowserrcheck v1.1.1 // indirect - github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af // indirect - github.com/julz/importas v0.1.0 // indirect - github.com/kisielk/errcheck v1.6.3 // indirect - github.com/kisielk/gotool v1.0.0 // indirect - github.com/kkHAIKE/contextcheck v1.1.4 // indirect - github.com/kulti/thelper v0.6.3 // indirect - github.com/kunwardeep/paralleltest v1.0.8 // indirect - github.com/kyoh86/exportloopref v0.1.11 // indirect - github.com/ldez/gomoddirectives v0.2.3 // indirect - github.com/ldez/tagliatelle v0.5.0 // indirect - github.com/leonklingele/grouper v1.1.1 // indirect - github.com/lufeee/execinquery v1.2.1 // indirect - github.com/macabu/inamedparam v0.1.2 // indirect - github.com/magiconair/properties v1.8.6 // indirect - github.com/maratori/testableexamples v1.0.0 // indirect - github.com/maratori/testpackage v1.1.1 // indirect - github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26 // indirect - github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect - github.com/mbilski/exhaustivestruct v1.2.0 // indirect - github.com/mgechev/revive v1.3.4 // indirect - github.com/moricho/tparallel v0.3.1 // indirect - github.com/nakabonne/nestif v0.3.1 // indirect - github.com/nishanths/exhaustive v0.11.0 // indirect - github.com/nishanths/predeclared v0.2.2 // indirect - github.com/nunnatsa/ginkgolinter v0.14.0 // indirect - github.com/olekukonko/tablewriter v0.0.5 // indirect - github.com/pelletier/go-toml v1.9.5 // indirect - github.com/polyfloyd/go-errorlint v1.4.5 // indirect - github.com/prometheus/client_golang v1.12.1 // indirect - github.com/prometheus/client_model v0.2.0 // indirect - github.com/prometheus/common v0.32.1 // indirect - github.com/prometheus/procfs v0.7.3 // indirect - github.com/quasilyte/go-ruleguard v0.4.0 // indirect - github.com/quasilyte/gogrep v0.5.0 // indirect - github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 // indirect - github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 // indirect - github.com/ryancurrah/gomodguard v1.3.0 // indirect - github.com/ryanrolds/sqlclosecheck v0.5.1 // indirect - github.com/sanposhiho/wastedassign/v2 v2.0.7 // indirect - github.com/sashamelentyev/interfacebloat v1.1.0 // indirect - github.com/sashamelentyev/usestdlibvars v1.24.0 // indirect - github.com/securego/gosec/v2 v2.18.1 // indirect - github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c // indirect - github.com/sivchari/containedctx v1.0.3 // indirect - github.com/sivchari/nosnakecase v1.7.0 // indirect - github.com/sivchari/tenv v1.7.1 // indirect - github.com/sonatard/noctx v0.0.2 // indirect - github.com/sourcegraph/go-diff v0.7.0 // indirect - github.com/spf13/afero v1.9.5 // indirect - github.com/spf13/jwalterweatherman v1.1.0 // indirect - github.com/spf13/viper v1.12.0 // indirect - github.com/ssgreg/nlreturn/v2 v2.2.1 // indirect - github.com/stbenjam/no-sprintf-host-port v0.1.1 // indirect - github.com/stretchr/objx v0.5.0 // indirect - github.com/subosito/gotenv v1.4.1 // indirect - github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c // indirect - github.com/tdakkota/asciicheck v0.2.0 // indirect - github.com/tetafro/godot v1.4.15 // indirect - github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966 // indirect - github.com/timonwong/loggercheck v0.9.4 // indirect - github.com/tomarrell/wrapcheck/v2 v2.8.1 // indirect - github.com/tommy-muehle/go-mnd/v2 v2.5.1 // indirect - github.com/ultraware/funlen v0.1.0 // indirect - github.com/ultraware/whitespace v0.0.5 // indirect - github.com/uudashr/gocognit v1.1.2 // indirect - github.com/xen0n/gosmopolitan v1.2.2 // indirect - github.com/yagipy/maintidx v1.0.0 // indirect - github.com/yeya24/promlinter v0.2.0 // indirect - github.com/ykadowak/zerologlint v0.1.3 // indirect - gitlab.com/bosi/decorder v0.4.1 // indirect - go-simpler.org/sloglint v0.1.2 // indirect - go.tmz.dev/musttag v0.7.2 // indirect - go.uber.org/atomic v1.7.0 // indirect - go.uber.org/multierr v1.6.0 // indirect - go.uber.org/zap v1.24.0 // indirect - golang.org/x/exp/typeparams v0.0.0-20230307190834-24139beb5833 // indirect - gopkg.in/ini.v1 v1.67.0 // indirect - gopkg.in/yaml.v2 v2.4.0 // indirect - honnef.co/go/tools v0.4.6 // indirect - mvdan.cc/gofumpt v0.5.0 // indirect - mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed // indirect - mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b // indirect - mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d // indirect + github.com/go-sql-driver/mysql v1.7.1 // indirect + github.com/lib/pq v1.10.9 // indirect + github.com/rogpeppe/go-internal v1.10.0 // indirect + golang.org/x/tools v0.14.0 // indirect ) require ( github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.2 // indirect - github.com/AlecAivazis/survey/v2 v2.3.6 // indirect github.com/Azure/azure-sdk-for-go/sdk/azcore v1.7.2 // indirect github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.1.0 // indirect github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c // indirect - github.com/Masterminds/goutils v1.1.1 // indirect - github.com/Masterminds/semver/v3 v3.2.0 // indirect - github.com/Masterminds/sprig/v3 v3.2.3 // indirect github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c // indirect github.com/agext/levenshtein v1.2.3 // indirect github.com/andybalholm/brotli v1.0.5 // indirect github.com/apache/arrow/go/v12 v12.0.1 // indirect github.com/apache/thrift v0.19.0 // indirect github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect - github.com/armon/go-radix v1.0.0 // indirect - github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef // indirect github.com/aws/aws-sdk-go-v2 v1.21.0 // indirect github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.13 // indirect github.com/aws/aws-sdk-go-v2/credentials v1.13.41 // indirect @@ -217,32 +62,18 @@ require ( github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.15.4 // indirect github.com/aws/aws-sdk-go-v2/service/s3 v1.40.0 // indirect github.com/aws/smithy-go v1.14.2 // indirect - github.com/bgentry/speakeasy v0.1.0 // indirect - github.com/bmatcuk/doublestar/v4 v4.6.0 // indirect - github.com/bradleyfalzon/ghinstallation/v2 v2.5.0 // indirect - github.com/cli/go-gh v1.2.1 // indirect - github.com/cli/safeexec v1.0.0 // indirect - github.com/cli/shurcooL-graphql v0.0.2 // indirect github.com/cloudflare/circl v1.3.3 // indirect github.com/danieljoos/wincred v1.2.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dvsekhvalnov/jose2go v1.5.0 // indirect github.com/fatih/color v1.15.0 // indirect github.com/form3tech-oss/jwt-go v3.2.5+incompatible // indirect - github.com/fsnotify/fsnotify v1.5.4 // indirect github.com/gabriel-vasile/mimetype v1.4.2 // indirect - github.com/go-openapi/errors v0.20.2 // indirect - github.com/go-openapi/strfmt v0.21.3 // indirect github.com/goccy/go-json v0.10.2 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect - github.com/golang-jwt/jwt/v4 v4.5.0 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/golang/snappy v0.0.4 // indirect - github.com/golangci/golangci-lint v1.55.0 github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/go-github/v45 v45.2.0 // indirect - github.com/google/go-github/v53 v53.0.0 // indirect - github.com/google/go-querystring v1.1.0 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect github.com/hashicorp/errwrap v1.1.0 // indirect @@ -254,7 +85,6 @@ require ( github.com/hashicorp/go-plugin v1.5.2 // indirect github.com/hashicorp/go-version v1.6.0 // indirect github.com/hashicorp/hc-install v0.6.0 // indirect - github.com/hashicorp/hcl v1.0.0 // indirect github.com/hashicorp/hcl/v2 v2.18.0 // indirect github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/terraform-exec v0.19.0 // indirect @@ -262,62 +92,34 @@ require ( github.com/hashicorp/terraform-registry-address v0.2.2 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect github.com/hashicorp/yamux v0.1.1 // indirect - github.com/henvic/httpretty v0.0.6 // indirect - github.com/huandu/xstrings v1.4.0 // indirect - github.com/imdario/mergo v0.3.15 // indirect - github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/jedib0t/go-pretty v4.3.0+incompatible // indirect - github.com/jedib0t/go-pretty/v6 v6.4.6 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect - github.com/joho/godotenv v1.3.0 // indirect - github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect github.com/klauspost/asmfmt v1.3.2 // indirect github.com/klauspost/compress v1.17.0 // indirect github.com/klauspost/cpuid/v2 v2.2.5 // indirect - github.com/knadh/koanf v1.5.0 // indirect github.com/kr/text v0.2.0 // indirect - github.com/lucasb-eyer/go-colorful v1.2.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.19 // indirect - github.com/mattn/go-runewidth v0.0.13 // indirect - github.com/mergestat/timediff v0.0.3 // indirect - github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8 // indirect github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3 // indirect - github.com/mitchellh/cli v1.1.5 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/mitchellh/go-wordwrap v1.0.1 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/mtibben/percent v0.2.1 // indirect - github.com/muesli/termenv v0.12.0 // indirect github.com/oklog/run v1.1.0 // indirect - github.com/oklog/ulid v1.3.1 // indirect github.com/pierrec/lz4/v4 v4.1.18 // indirect github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/posener/complete v1.2.3 // indirect - github.com/rivo/uniseg v0.2.0 // indirect - github.com/russross/blackfriday v1.6.0 // indirect - github.com/samber/lo v1.37.0 // indirect - github.com/shopspring/decimal v1.3.1 // indirect github.com/sirupsen/logrus v1.9.3 // indirect - github.com/spf13/cast v1.5.0 // indirect - github.com/spf13/cobra v1.7.0 // indirect - github.com/spf13/pflag v1.0.5 // indirect - github.com/thanhpk/randstr v1.0.4 // indirect - github.com/thlib/go-timezone-local v0.0.0-20210907160436-ef149e42d28e // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v5 v5.4.0 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect github.com/zclconf/go-cty v1.14.0 // indirect github.com/zeebo/xxh3 v1.0.2 // indirect - go.mongodb.org/mongo-driver v1.10.0 // indirect golang.org/x/mod v0.13.0 // indirect golang.org/x/net v0.17.0 // indirect - golang.org/x/oauth2 v0.10.0 // indirect golang.org/x/sync v0.4.0 // indirect golang.org/x/sys v0.13.0 // indirect golang.org/x/term v0.13.0 // indirect diff --git a/go.sum b/go.sum index 8e9b5112b6..1ef9983f52 100644 --- a/go.sum +++ b/go.sum @@ -1,63 +1,8 @@ -4d63.com/gocheckcompilerdirectives v1.2.1 h1:AHcMYuw56NPjq/2y615IGg2kYkBdTvOaojYCBcRE7MA= -4d63.com/gocheckcompilerdirectives v1.2.1/go.mod h1:yjDJSxmDTtIHHCqX0ufRYZDL6vQtMG7tJdKVeWwsqvs= -4d63.com/gochecknoglobals v0.2.1 h1:1eiorGsgHOFOuoOiJDy2psSrQbRdIHrlge0IJIkUgDc= -4d63.com/gochecknoglobals v0.2.1/go.mod h1:KRE8wtJB3CXCsb1xy421JfTHIIbmT3U5ruxw2Qu8fSU= -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= -cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= -cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= -cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= -cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= -cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= -cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= -cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= -cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= -cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= -cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= -cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= -cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= -cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= -cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= -cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= -cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= -cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= -cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= -cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= -cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= -cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= -cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= -cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= -cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/4meepo/tagalign v1.3.3 h1:ZsOxcwGD/jP4U/aw7qeWu58i7dwYemfy5Y+IF1ACoNw= -github.com/4meepo/tagalign v1.3.3/go.mod h1:Q9c1rYMZJc9dPRkbQPpcBNCLEmY2njbAsXhQOZFE2dE= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= github.com/99designs/keyring v1.2.2 h1:pZd3neh/EmUzWONb35LxQfvuY7kiSXAq3HQd97+XBn0= github.com/99designs/keyring v1.2.2/go.mod h1:wes/FrByc8j7lFOAGLGSNEg8f/PaI3cgTBqhFkHUrPk= -github.com/Abirdcfly/dupword v0.0.13 h1:SMS17YXypwP000fA7Lr+kfyBQyW14tTT+nRv9ASwUUo= -github.com/Abirdcfly/dupword v0.0.13/go.mod h1:Ut6Ue2KgF/kCOawpW4LnExT+xZLQviJPE4klBPMK/5Y= -github.com/AlecAivazis/survey/v2 v2.3.6 h1:NvTuVHISgTHEHeBFqt6BHOe4Ny/NwGZr7w+F8S9ziyw= -github.com/AlecAivazis/survey/v2 v2.3.6/go.mod h1:4AuI9b7RjAR+G7v9+C4YSlX/YL3K3cWNXgWXOhllqvI= -github.com/Antonboom/errname v0.1.12 h1:oh9ak2zUtsLp5oaEd/erjB4GPu9w19NyoIskZClDcQY= -github.com/Antonboom/errname v0.1.12/go.mod h1:bK7todrzvlaZoQagP1orKzWXv59X/x0W0Io2XT1Ssro= -github.com/Antonboom/nilnil v0.1.7 h1:ofgL+BA7vlA1K2wNQOsHzLJ2Pw5B5DpWRLdDAVvvTow= -github.com/Antonboom/nilnil v0.1.7/go.mod h1:TP+ScQWVEq0eSIxqU8CbdT5DFWoHp0MbP+KMUO1BKYQ= -github.com/Antonboom/testifylint v0.2.3 h1:MFq9zyL+rIVpsvLX4vDPLojgN7qODzWsrnftNX2Qh60= -github.com/Antonboom/testifylint v0.2.3/go.mod h1:IYaXaOX9NbfAyO+Y04nfjGI8wDemC1rUyM/cYolz018= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.7.2 h1:t5+QXLCK9SVi0PPdaY0PrFvYUo24KwA0QwxnaHRSVd4= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.7.2/go.mod h1:bjGvMhVMb+EEm3VRNQawDMUyMMjo+S5ewNjflkep/0Q= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.3.0 h1:vcYCAze6p19qBW7MhZybIsqD8sMV8js0NyQM8JDnVtg= @@ -67,87 +12,35 @@ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.2.0 github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.1.0 h1:nVocQV40OQne5613EeLayJiRAJuKlBGy+m22qWG+WRg= github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.1.0/go.mod h1:7QJP7dr2wznCMeqIrhMgWGf7XpAQnVrJqDm9nvV3Cu4= github.com/AzureAD/microsoft-authentication-library-for-go v1.0.0 h1:OBhqkivkhkMqLPymWEppkm7vgPQY2XsHoEkaMQ0AdZY= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8= -github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60= github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= -github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 h1:sHglBQTwgx+rWPdisA5ynNEsoARbiCBOyGcJM4/OzsM= -github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs= -github.com/GaijinEntertainment/go-exhaustruct/v3 v3.1.0 h1:3ZBs7LAezy8gh0uECsA6CGU43FF3zsx5f4eah5FxTMA= -github.com/GaijinEntertainment/go-exhaustruct/v3 v3.1.0/go.mod h1:rZLTje5A9kFBe0pzhpe2TdhRniBF++PRHQuRpR8esVc= github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c h1:RGWPOewvKIROun94nF7v2cua9qP+thov/7M50KEoeSU= github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c/go.mod h1:X0CRv0ky0k6m906ixxpzmDRLvX58TFUKS2eePweuyxk= -github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= -github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= -github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= -github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= -github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= -github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g= -github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= -github.com/Masterminds/sprig/v3 v3.2.1/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk= -github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA= -github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= -github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w= -github.com/OpenPeeDeeP/depguard/v2 v2.1.0 h1:aQl70G173h/GZYhWf36aE5H0KaujXfVMnn/f1kSDVYY= -github.com/OpenPeeDeeP/depguard/v2 v2.1.0/go.mod h1:PUBgk35fX4i7JDmwzlJwJ+GMe6NfO1723wmJMgPThNQ= -github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8/go.mod h1:I0gYDMZ6Z5GRU7l58bNFSkPTFN6Yl12dsUlAZ8xy98g= github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c h1:kMFnB0vCcX7IL/m9Y5LO+KQYv+t1CQOiFe6+SV2J7bE= github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= github.com/acomagu/bufpipe v1.0.4 h1:e3H4WUzM3npvo5uv95QuJM3cQspFNtFBzvJ2oNjKIDQ= github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= -github.com/alecthomas/go-check-sumtype v0.1.3 h1:M+tqMxB68hcgccRXBMVCPI4UJ+QUfdSx0xdbypKCqA8= -github.com/alecthomas/go-check-sumtype v0.1.3/go.mod h1:WyYPfhfkdhyrdaligV6svFopZV8Lqdzn5pyVBaV6jhQ= -github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/alexkohler/nakedret/v2 v2.0.2 h1:qnXuZNvv3/AxkAb22q/sEsEpcA99YxLFACDtEw9TPxE= -github.com/alexkohler/nakedret/v2 v2.0.2/go.mod h1:2b8Gkk0GsOrqQv/gPWjNLDSKwG8I5moSXG1K4VIBcTQ= -github.com/alexkohler/prealloc v1.0.0 h1:Hbq0/3fJPQhNkN0dR95AVrr6R7tou91y0uHG5pOcUuw= -github.com/alexkohler/prealloc v1.0.0/go.mod h1:VetnK3dIgFBBKmg0YnD9F9x6Icjd+9cvfHR56wJVlKE= -github.com/alingse/asasalint v0.0.11 h1:SFwnQXJ49Kx/1GghOFz1XGqHYKp21Kq1nHad/0WQRnw= -github.com/alingse/asasalint v0.0.11/go.mod h1:nCaoMhw7a9kSJObvQyVzNTPBDbNpdocqrSP7t/cW5+I= github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/cCs= github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/apache/arrow/go/v12 v12.0.1 h1:JsR2+hzYYjgSUkBSaahpqCetqZMr76djX80fF/DiJbg= github.com/apache/arrow/go/v12 v12.0.1/go.mod h1:weuTY7JvTG/HDPtMQxEUp7pU73vkLWMLpY67QwZ/WWw= github.com/apache/thrift v0.19.0 h1:sOqkWPzMj7w6XaYbJQG7m4sGqVolaW/0D28Ln7yPzMk= github.com/apache/thrift v0.19.0/go.mod h1:SUALL216IiaOw2Oy+5Vs9lboJ/t9g40C+G07Dc0QC1I= github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= -github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo= github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY= github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4= -github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= -github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= -github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef h1:46PFijGLmAjMPwCCCo7Jf0W6f9slllCkkv7vyc1yOSg= -github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= -github.com/ashanbrown/forbidigo v1.6.0 h1:D3aewfM37Yb3pxHujIPSpTf6oQk9sc9WZi8gerOIVIY= -github.com/ashanbrown/forbidigo v1.6.0/go.mod h1:Y8j9jy9ZYAEHXdu723cUlraTqbzjKF1MUyfOKL+AjcU= -github.com/ashanbrown/makezero v1.1.1 h1:iCQ87C0V0vSyO+M9E/FZYbu65auqH0lnsOkf5FcB28s= -github.com/ashanbrown/makezero v1.1.1/go.mod h1:i1bJLCRSCHOcOa9Y6MyF2FTfMZMFdHvxKHxgO5Z1axI= github.com/avast/retry-go v3.0.0+incompatible h1:4SOWQ7Qs+oroOTQOYnAHqelpCO0biHSxpiH9JdtuBj0= github.com/avast/retry-go v3.0.0+incompatible/go.mod h1:XtSnn+n/sHqQIpZ10K1qAevBhOOCWBLXXy3hyiqqBrY= -github.com/aws/aws-sdk-go-v2 v1.9.2/go.mod h1:cK/D0BBs0b/oWPIcX/Z/obahJK1TT7IPVjy53i/mX/4= github.com/aws/aws-sdk-go-v2 v1.21.0 h1:gMT0IW+03wtYJhRqTVYn0wLzwdnK9sRMcxmtfGzRdJc= github.com/aws/aws-sdk-go-v2 v1.21.0/go.mod h1:/RfNgGmRxI+iFOB1OeJUyxiU+9s88k3pfHvDagGEp0M= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.13 h1:OPLEkmhXf6xFPiz0bLeDArZIDx1NNS4oJyG4nv3Gct0= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.13/go.mod h1:gpAbvyDGQFozTEmlTFO8XcQKHzubdq0LzRyJpG6MiXM= -github.com/aws/aws-sdk-go-v2/config v1.8.3/go.mod h1:4AEiLtAb8kLs7vgw2ZV3p2VZ1+hBavOc84hqxVNpCyw= github.com/aws/aws-sdk-go-v2/config v1.18.43 h1:IgdUtTRvUDC6eiJBqU6vh7bHFNAEBjQ8S+qJ7zVhDOs= github.com/aws/aws-sdk-go-v2/config v1.18.43/go.mod h1:NiFev8qlgg8MPzw3fO/EwzMZeZwlJEKGwfpjRPA9Nvw= -github.com/aws/aws-sdk-go-v2/credentials v1.4.3/go.mod h1:FNNC6nQZQUuyhq5aE5c7ata8o9e4ECGmS4lAXC7o1mQ= github.com/aws/aws-sdk-go-v2/credentials v1.13.41 h1:dgbKq1tamtboYAKSXWbqL0lKO9rmEzEhbZFh9JQW/Bg= github.com/aws/aws-sdk-go-v2/credentials v1.13.41/go.mod h1:cc3Fn7DkKbJalPtQnudHGZZ8ml9+hwtbc1CJONsYYqk= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.6.0/go.mod h1:gqlclDEZp4aqJOancXK6TN24aKhT0W0Ae9MHk3wzTMM= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.11 h1:uDZJF1hu0EVT/4bogChk8DyjSF6fof6uL/0Y26Ma7Fg= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.11/go.mod h1:TEPP4tENqBGO99KwVpV9MlOX4NSrSLP8u3KRy2CDwA8= github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.88 h1:AxcMcV1uTY15jysvTiXC6Mgpb5nU1rnqH0PmgJ7ig80= @@ -156,383 +49,117 @@ github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.41 h1:22dGT7PneFMx4+b3p github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.41/go.mod h1:CrObHAuPneJBlfEJ5T3szXOUkLEThaGfvnhTf33buas= github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.35 h1:SijA0mgjV8E+8G45ltVHs0fvKpTj8xmZJ3VwhGKtUSI= github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.35/go.mod h1:SJC1nEVVva1g3pHAIdCp7QsRIkMmLAgoDquQ9Rr8kYw= -github.com/aws/aws-sdk-go-v2/internal/ini v1.2.4/go.mod h1:ZcBrrI3zBKlhGFNYWvju0I3TR93I7YIgAfy82Fh4lcQ= github.com/aws/aws-sdk-go-v2/internal/ini v1.3.43 h1:g+qlObJH4Kn4n21g69DjspU0hKTjWtq7naZ9OLCv0ew= github.com/aws/aws-sdk-go-v2/internal/ini v1.3.43/go.mod h1:rzfdUlfA+jdgLDmPKjd3Chq9V7LVLYo1Nz++Wb91aRo= github.com/aws/aws-sdk-go-v2/internal/v4a v1.1.4 h1:6lJvvkQ9HmbHZ4h/IEwclwv2mrTW8Uq1SOB/kXy0mfw= github.com/aws/aws-sdk-go-v2/internal/v4a v1.1.4/go.mod h1:1PrKYwxTM+zjpw9Y41KFtoJCQrJ34Z47Y4VgVbfndjo= -github.com/aws/aws-sdk-go-v2/service/appconfig v1.4.2/go.mod h1:FZ3HkCe+b10uFZZkFdvf98LHW21k49W8o8J366lqVKY= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.14 h1:m0QTSI6pZYJTk5WSKx3fm5cNW/DCicVzULBgU/6IyD0= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.14/go.mod h1:dDilntgHy9WnHXsh7dDtUPgHKEfTJIBUTHM8OWm0f/0= github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.36 h1:eev2yZX7esGRjqRbnVk1UxMLw4CyVZDpZXRCcy75oQk= github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.36/go.mod h1:lGnOkH9NJATw0XEPcAknFBj3zzNTEGRHtSw+CwC1YTg= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.3.2/go.mod h1:72HRZDLMtmVQiLG2tLfQcaWLCssELvGl+Zf2WVxMmR8= github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.35 h1:CdzPW9kKitgIiLV1+MHobfR5Xg25iYnyzWZhyQuSlDI= github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.35/go.mod h1:QGF2Rs33W5MaN9gYdEQOBBFPLwTZkEhRwI33f7KIG0o= github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.15.4 h1:v0jkRigbSD6uOdwcaUQmgEwG1BkPfAPDqaeNt/29ghg= github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.15.4/go.mod h1:LhTyt8J04LL+9cIt7pYJ5lbS/U98ZmXovLOR/4LUsk8= github.com/aws/aws-sdk-go-v2/service/s3 v1.40.0 h1:wl5dxN1NONhTDQD9uaEvNsDRX29cBmGED/nl0jkWlt4= github.com/aws/aws-sdk-go-v2/service/s3 v1.40.0/go.mod h1:rDGMZA7f4pbmTtPOk5v5UM2lmX6UAbRnMDJeDvnH7AM= -github.com/aws/aws-sdk-go-v2/service/sso v1.4.2/go.mod h1:NBvT9R1MEF+Ud6ApJKM0G+IkPchKS7p7c2YPKwHmBOk= github.com/aws/aws-sdk-go-v2/service/sso v1.15.0 h1:vuGK1vHNP9zx0PfOrtPumbwR2af0ATQ1Z2H6p75AgRQ= github.com/aws/aws-sdk-go-v2/service/sso v1.15.0/go.mod h1:fIAwKQKBFu90pBxx07BFOMJLpRUGu8VOzLJakeY+0K4= github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.1 h1:8lKOidPkmSmfUtiTgtdXWgaKItCZ/g75/jEk6Ql6GsA= github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.1/go.mod h1:yygr8ACQRY2PrEcy3xsUI357stq2AxnFM6DIsR9lij4= -github.com/aws/aws-sdk-go-v2/service/sts v1.7.2/go.mod h1:8EzeIqfWt2wWT4rJVu3f21TfrhJ8AEMzVybRNSb/b4g= github.com/aws/aws-sdk-go-v2/service/sts v1.23.0 h1:pyvfUqkNLMipdKNAtu7OVbRxUrR2BMaKccIPpk/Hkak= github.com/aws/aws-sdk-go-v2/service/sts v1.23.0/go.mod h1:VC7JDqsqiwXukYEDjoHh9U0fOJtNWh04FPQz4ct4GGU= -github.com/aws/smithy-go v1.8.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/aws/smithy-go v1.14.2 h1:MJU9hqBGbvWZdApzpvoF2WAIJDbtjK2NDJSiJP7HblQ= github.com/aws/smithy-go v1.14.2/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= -github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= -github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= -github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= -github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= -github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bkielbasa/cyclop v1.2.1 h1:AeF71HZDob1P2/pRm1so9cd1alZnrpyc4q2uP2l0gJY= -github.com/bkielbasa/cyclop v1.2.1/go.mod h1:K/dT/M0FPAiYjBgQGau7tz+3TMh4FWAEqlMhzFWCrgM= -github.com/blizzy78/varnamelen v0.8.0 h1:oqSblyuQvFsW1hbBHh1zfwrKe3kcSj0rnXkKzsQ089M= -github.com/blizzy78/varnamelen v0.8.0/go.mod h1:V9TzQZ4fLJ1DSrjVDfl89H7aMnTvKkApdHeyESmyR7k= -github.com/bmatcuk/doublestar/v4 v4.6.0 h1:HTuxyug8GyFbRkrffIpzNCSK4luc0TY3wzXvzIZhEXc= -github.com/bmatcuk/doublestar/v4 v4.6.0/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= -github.com/bombsimon/wsl/v3 v3.4.0 h1:RkSxjT3tmlptwfgEgTgU+KYKLI35p/tviNXNXiL2aNU= -github.com/bombsimon/wsl/v3 v3.4.0/go.mod h1:KkIB+TXkqy6MvK9BDZVbZxKNYsE1/oLRJbIFtf14qqo= -github.com/bradleyfalzon/ghinstallation/v2 v2.5.0 h1:yaYcGQ7yEIGbsJfW/9z7v1sLiZg/5rSNNXwmMct5XaE= -github.com/bradleyfalzon/ghinstallation/v2 v2.5.0/go.mod h1:amcvPQMrRkWNdueWOjPytGL25xQGzox7425qMgzo+Vo= -github.com/breml/bidichk v0.2.7 h1:dAkKQPLl/Qrk7hnP6P+E0xOodrq8Us7+U0o4UBOAlQY= -github.com/breml/bidichk v0.2.7/go.mod h1:YodjipAGI9fGcYM7II6wFvGhdMYsC5pHDlGzqvEW3tQ= -github.com/breml/errchkjson v0.3.6 h1:VLhVkqSBH96AvXEyclMR37rZslRrY2kcyq+31HCsVrA= -github.com/breml/errchkjson v0.3.6/go.mod h1:jhSDoFheAF2RSDOlCfhHO9KqhZgAYLyvHe7bRCX8f/U= github.com/brianvoe/gofakeit/v6 v6.23.2 h1:lVde18uhad5wII/f5RMVFLtdQNE0HaGFuBUXmYKk8i8= github.com/brianvoe/gofakeit/v6 v6.23.2/go.mod h1:Ow6qC71xtwm79anlwKRlWZW6zVq9D2XHE4QSSMP/rU8= github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMUs= github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= -github.com/butuzov/ireturn v0.2.1 h1:w5Ks4tnfeFDZskGJ2x1GAkx5gaQV+kdU3NKNr3NEBzY= -github.com/butuzov/ireturn v0.2.1/go.mod h1:RfGHUvvAuFFxoHKf4Z8Yxuh6OjlCw1KvR2zM1NFHeBk= -github.com/butuzov/mirror v1.1.0 h1:ZqX54gBVMXu78QLoiqdwpl2mgmoOJTk7s4p4o+0avZI= -github.com/butuzov/mirror v1.1.0/go.mod h1:8Q0BdQU6rC6WILDiBM60DBfvV78OLJmMmixe7GF45AE= -github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= -github.com/catenacyber/perfsprint v0.2.0 h1:azOocHLscPjqXVJ7Mf14Zjlkn4uNua0+Hcg1wTR6vUo= -github.com/catenacyber/perfsprint v0.2.0/go.mod h1:/wclWYompEyjUD2FuIIDVKNkqz7IgBIWXIH3V0Zol50= -github.com/ccojocar/zxcvbn-go v1.0.1 h1:+sxrANSCj6CdadkcMnvde/GWU1vZiiXRbqYSCalV4/4= -github.com/ccojocar/zxcvbn-go v1.0.1/go.mod h1:g1qkXtUSvHP8lhHp5GrSmTz6uWALGRMQdw6Qnz/hi60= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= -github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/charithe/durationcheck v0.0.10 h1:wgw73BiocdBDQPik+zcEoBG/ob8uyBHf2iyoHGPf5w4= -github.com/charithe/durationcheck v0.0.10/go.mod h1:bCWXb7gYRysD1CU3C+u4ceO49LoGOY1C1L6uouGNreQ= -github.com/chavacava/garif v0.1.0 h1:2JHa3hbYf5D9dsgseMKAmc/MZ109otzgNFk5s87H9Pc= -github.com/chavacava/garif v0.1.0/go.mod h1:XMyYCkEL58DF0oyW4qDjjnPWONs2HBqYKI+UIPD+Gww= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/cli/go-gh v1.2.1 h1:xFrjejSsgPiwXFP6VYynKWwxLQcNJy3Twbu82ZDlR/o= -github.com/cli/go-gh v1.2.1/go.mod h1:Jxk8X+TCO4Ui/GarwY9tByWm/8zp4jJktzVZNlTW5VM= -github.com/cli/safeexec v1.0.0 h1:0VngyaIyqACHdcMNWfo6+KdUYnqEr2Sg+bSP1pdF+dI= -github.com/cli/safeexec v1.0.0/go.mod h1:Z/D4tTN8Vs5gXYHDCbaM1S/anmEDnJb1iW0+EJ5zx3Q= -github.com/cli/shurcooL-graphql v0.0.2 h1:rwP5/qQQ2fM0TzkUTwtt6E2LbIYf6R+39cUXTa04NYk= -github.com/cli/shurcooL-graphql v0.0.2/go.mod h1:tlrLmw/n5Q/+4qSvosT+9/W5zc8ZMjnJeYBxSdb4nWA= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I= github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs= github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/creack/pty v1.1.17/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= -github.com/curioswitch/go-reassign v0.2.0 h1:G9UZyOcpk/d7Gd6mqYgd8XYWFMw/znxwGDUstnC9DIo= -github.com/curioswitch/go-reassign v0.2.0/go.mod h1:x6OpXuWvgfQaMGks2BZybTngWjT84hqJfKoO8Tt/Roc= -github.com/daixiang0/gci v0.11.2 h1:Oji+oPsp3bQ6bNNgX30NBAVT18P4uBH4sRZnlOlTj7Y= -github.com/daixiang0/gci v0.11.2/go.mod h1:xtHP9N7AHdNvtRNfcx9gwTDfw7FRJx4bZUsiEfiNNAI= github.com/danieljoos/wincred v1.2.0 h1:ozqKHaLK0W/ii4KVbbvluM91W2H3Sh0BncbUNPS7jLE= github.com/danieljoos/wincred v1.2.0/go.mod h1:FzQLLMKBFdvu+osBrnFODiv32YGwCfx0SkRa/eYHgec= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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/denis-tingaikin/go-header v0.4.3 h1:tEaZKAlqql6SKCY++utLmkPLd6K8IBM20Ha7UVm+mtU= -github.com/denis-tingaikin/go-header v0.4.3/go.mod h1:0wOCWuN71D5qIgE2nz9KrKmuYBAC2Mra5RassOIQ2/c= github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= -github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dvsekhvalnov/jose2go v1.5.0 h1:3j8ya4Z4kMCwT5nXIKFSV84YS+HdqSSO0VsTQxaLAeM= github.com/dvsekhvalnov/jose2go v1.5.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/esimonov/ifshort v1.0.4 h1:6SID4yGWfRae/M7hkVDVVyppy8q/v9OuxNdmjLQStBA= -github.com/esimonov/ifshort v1.0.4/go.mod h1:Pe8zjlRrJ80+q2CxHLfEOfTwxCZ4O+MuhcHcfgNWTk0= -github.com/ettle/strcase v0.1.1 h1:htFueZyVeE1XNnMEfbqp5r67qAN/4r6ya1ysq8Q+Zcw= -github.com/ettle/strcase v0.1.1/go.mod h1:hzDLsPC7/lwKyBOywSHEP89nt2pDgdy+No1NBA9o9VY= -github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= -github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= -github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4= -github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94= -github.com/firefart/nonamedreturns v1.0.4 h1:abzI1p7mAEPYuR4A+VLKn4eNDOycjYo2phmY9sfv40Y= -github.com/firefart/nonamedreturns v1.0.4/go.mod h1:TDhe/tjI1BXo48CmYbUduTV7BdIga8MAO/xbKdcVsGI= github.com/form3tech-oss/jwt-go v3.2.5+incompatible h1:/l4kBbb4/vGSsdtB5nUe8L7B9mImVMaBPw9L/0TBHU8= github.com/form3tech-oss/jwt-go v3.2.5+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= -github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= -github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI= -github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= -github.com/fzipp/gocyclo v0.6.0 h1:lsblElZG7d3ALtGMx9fmxeTKZaLLpU8mET09yN4BBLo= -github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU= github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/ghostiam/protogetter v0.2.3 h1:qdv2pzo3BpLqezwqfGDLZ+nHEYmc5bUpIdsMbBVwMjw= -github.com/ghostiam/protogetter v0.2.3/go.mod h1:KmNLOsy1v04hKbvZs8EfGI1fk39AgTdRDxWNYPfXVc4= -github.com/go-critic/go-critic v0.9.0 h1:Pmys9qvU3pSML/3GEQ2Xd9RZ/ip+aXHKILuxczKGV/U= -github.com/go-critic/go-critic v0.9.0/go.mod h1:5P8tdXL7m/6qnyG6oRAlYLORvoXH0WDypYgAEmagT40= github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI= github.com/go-git/go-billy/v5 v5.4.1 h1:Uwp5tDRkPr+l/TnbHOQzp+tmJfLceOlbVucgpTz8ix4= github.com/go-git/go-git/v5 v5.8.1 h1:Zo79E4p7TRk0xoRgMq0RShiTHGKcKI4+DI6BfJc/Q+A= -github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= -github.com/go-ldap/ldap v3.0.2+incompatible/go.mod h1:qfd9rJvER9Q0/D/Sqn1DfHRoBp40uXYvFoEVrNEPqRc= -github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= -github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= -github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= -github.com/go-openapi/errors v0.20.2 h1:dxy7PGTqEh94zj2E3h1cUmQQWiM1+aeCROfAr02EmK8= -github.com/go-openapi/errors v0.20.2/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= -github.com/go-openapi/strfmt v0.21.3 h1:xwhj5X6CjXEZZHMWy1zKJxvW9AfHC9pkyUjLvHtKG7o= -github.com/go-openapi/strfmt v0.21.3/go.mod h1:k+RzNO0Da+k3FrrynSNN8F7n/peCmQQqbbXjtDfvmGg= -github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE= github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= -github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-test/deep v1.0.2-0.20181118220953-042da051cf31/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= +github.com/go-sql-driver/mysql v1.7.1 h1:lUIinVbN1DY0xBg0eMOzmmtGoHwWBbvnWubQUrtU8EI= +github.com/go-sql-driver/mysql v1.7.1/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI= github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68= -github.com/go-toolsmith/astcast v1.1.0 h1:+JN9xZV1A+Re+95pgnMgDboWNVnIMMQXwfBwLRPgSC8= -github.com/go-toolsmith/astcast v1.1.0/go.mod h1:qdcuFWeGGS2xX5bLM/c3U9lewg7+Zu4mr+xPwZIB4ZU= -github.com/go-toolsmith/astcopy v1.1.0 h1:YGwBN0WM+ekI/6SS6+52zLDEf8Yvp3n2seZITCUBt5s= -github.com/go-toolsmith/astcopy v1.1.0/go.mod h1:hXM6gan18VA1T/daUEHCFcYiW8Ai1tIwIzHY6srfEAw= -github.com/go-toolsmith/astequal v1.0.3/go.mod h1:9Ai4UglvtR+4up+bAD4+hCj7iTo4m/OXVTSLnCyTAx4= -github.com/go-toolsmith/astequal v1.1.0 h1:kHKm1AWqClYn15R0K1KKE4RG614D46n+nqUQ06E1dTw= -github.com/go-toolsmith/astequal v1.1.0/go.mod h1:sedf7VIdCL22LD8qIvv7Nn9MuWJruQA/ysswh64lffQ= -github.com/go-toolsmith/astfmt v1.1.0 h1:iJVPDPp6/7AaeLJEruMsBUlOYCmvg0MoCfJprsOmcco= -github.com/go-toolsmith/astfmt v1.1.0/go.mod h1:OrcLlRwu0CuiIBp/8b5PYF9ktGVZUjlNMV634mhwuQ4= -github.com/go-toolsmith/astp v1.1.0 h1:dXPuCl6u2llURjdPLLDxJeZInAeZ0/eZwFJmqZMnpQA= -github.com/go-toolsmith/astp v1.1.0/go.mod h1:0T1xFGz9hicKs8Z5MfAqSUitoUYS30pDMsRVIDHs8CA= -github.com/go-toolsmith/strparse v1.0.0/go.mod h1:YI2nUKP9YGZnL/L1/DLFBfixrcjslWct4wyljWhSRy8= -github.com/go-toolsmith/strparse v1.1.0 h1:GAioeZUK9TGxnLS+qfdqNbA4z0SSm5zVNtCQiyP2Bvw= -github.com/go-toolsmith/strparse v1.1.0/go.mod h1:7ksGy58fsaQkGQlY8WVoBFNyEPMGuJin1rfoPS4lBSQ= -github.com/go-toolsmith/typep v1.1.0 h1:fIRYDyF+JywLfqzyhdiHzRop/GQDxxNhLGQ6gFUNHus= -github.com/go-toolsmith/typep v1.1.0/go.mod h1:fVIw+7zjdsMxDA3ITWnH1yOiw1rnTQKCsF/sk2H/qig= -github.com/go-xmlfmt/xmlfmt v1.1.2 h1:Nea7b4icn8s57fTx1M5AI4qQT5HEM3rVUO8MuE6g80U= -github.com/go-xmlfmt/xmlfmt v1.1.2/go.mod h1:aUCEOzzezBEjDBbFBoSiya/gduyIiWYRP6CnSFIV8AM= -github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= -github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= -github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gofrs/flock v0.8.1 h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw= -github.com/gofrs/flock v0.8.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= -github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= -github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 h1:23T5iq8rbUYlhpt5DB4XJkc6BU31uODLD1o1gKvZmD0= -github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2/go.mod h1:k9Qvh+8juN+UKMCS/3jFtGICgW8O96FVaZsaxdzDkR4= -github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a h1:w8hkcTqaFpzKqonE9uMCefW1WDie15eSP/4MssdenaM= -github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a/go.mod h1:ryS0uhF+x9jgbj/N71xsEqODy9BN81/GonCZiOzirOk= -github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe h1:6RGUuS7EGotKx6J5HIP8ZtyMdiDscjMLfRBSPuzVVeo= -github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe/go.mod h1:gjqyPShc/m8pEMpk0a3SeagVb0kaqvhscv+i9jI5ZhQ= -github.com/golangci/gofmt v0.0.0-20231018234816-f50ced29576e h1:ULcKCDV1LOZPFxGZaA6TlQbiM3J2GCPnkx/bGF6sX/g= -github.com/golangci/gofmt v0.0.0-20231018234816-f50ced29576e/go.mod h1:Pm5KhLPA8gSnQwrQ6ukebRcapGb/BG9iUkdaiCcGHJM= -github.com/golangci/golangci-lint v1.55.0 h1:ePpc6YhM1ZV8kHU8dwmHDHAdeedZHdK8cmTXlkkRdi8= -github.com/golangci/golangci-lint v1.55.0/go.mod h1:Z/OawFQ4yqFo2/plDYlIjoZlJeVYkRcqS9dW55p0FXg= -github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 h1:MfyDlzVjl1hoaPzPD4Gpb/QgoRfSBR0jdhwGyAWwMSA= -github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0/go.mod h1:66R6K6P6VWk9I95jvqGxkqJxVWGFy9XlDwLwVz1RCFg= -github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca h1:kNY3/svz5T29MYHubXix4aDDuE3RWHkPvopM/EDv/MA= -github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca/go.mod h1:tvlJhZqDe4LMs4ZHD0oMUlt9G2LWuDGoisJTBzLMV9o= -github.com/golangci/misspell v0.4.1 h1:+y73iSicVy2PqyX7kmUefHusENlrP9YwuHZHPLGQj/g= -github.com/golangci/misspell v0.4.1/go.mod h1:9mAN1quEo3DlpbaIKKyEvRxK1pwqR9s/Sea1bJCtlNI= -github.com/golangci/revgrep v0.5.0 h1:GGBqHFtFOeHiSUQtFVZXPJtVZYOGB4iVlAjaoFRBQvY= -github.com/golangci/revgrep v0.5.0/go.mod h1:bjAMA+Sh/QUfTDcHzxfyHxr4xKvllVr/0sCv2e7jJHA= -github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 h1:zwtduBRr5SSWhqsYNgcuWO2kFlpdOZbP0+yRjmvPGys= -github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4/go.mod h1:Izgrg8RkN3rCIMLGE9CyYmU9pY2Jer6DgANEnZ/L/cQ= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/flatbuffers v23.5.26+incompatible h1:M9dgRyhJemaM4Sw8+66GHBu8ioaQmyPLg1b8VwK5WJg= github.com/google/flatbuffers v23.5.26+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-github/v45 v45.2.0 h1:5oRLszbrkvxDDqBCNj2hjDZMKmvexaZ1xw/FCD+K3FI= -github.com/google/go-github/v45 v45.2.0/go.mod h1:FObaZJEDSTa/WGCzZ2Z3eoCDXWJKMenWWTrd8jrta28= -github.com/google/go-github/v53 v53.0.0 h1:T1RyHbSnpHYnoF0ZYKiIPSgPtuJ8G6vgc0MKodXsQDQ= -github.com/google/go-github/v53 v53.0.0/go.mod h1:XhFRObz+m/l+UCm9b7KSIC3lT3NWSXGt7mOsAWEloao= -github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= -github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= -github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= -github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= -github.com/gordonklaus/ineffassign v0.0.0-20230610083614-0e73809eb601 h1:mrEEilTAUmaAORhssPPkxj84TsHrPMLBGW2Z4SoTxm8= -github.com/gordonklaus/ineffassign v0.0.0-20230610083614-0e73809eb601/go.mod h1:Qcp2HIAYhR7mNUVSIxZww3Guk4it82ghYcEXIAk+QT0= -github.com/gostaticanalysis/analysisutil v0.7.1 h1:ZMCjoue3DtDWQ5WyU16YbjbQEQ3VuzwxALrpYd+HeKk= -github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= -github.com/gostaticanalysis/comment v1.4.1/go.mod h1:ih6ZxzTHLdadaiSnF5WY3dxUoXfXAlTaRzuaNDlSado= -github.com/gostaticanalysis/comment v1.4.2 h1:hlnx5+S2fY9Zo9ePo4AhgYsYHbM2+eAv8m/s1JiCd6Q= -github.com/gostaticanalysis/comment v1.4.2/go.mod h1:KLUTGDv6HOCotCH8h2erHKmpci2ZoR8VPu34YA2uzdM= -github.com/gostaticanalysis/forcetypeassert v0.1.0 h1:6eUflI3DiGusXGK6X7cCcIgVCpZ2CiZ1Q7jl6ZxNV70= -github.com/gostaticanalysis/forcetypeassert v0.1.0/go.mod h1:qZEedyP/sY1lTGV1uJ3VhWZ2mqag3IkWsDHVbplHXak= -github.com/gostaticanalysis/nilerr v0.1.1 h1:ThE+hJP0fEp4zWLkWHWcRyI2Od0p7DlgYG3Uqrmrcpk= -github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= -github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/gookit/color v1.5.4 h1:FZmqs7XOyGgCAxmWyPslpiok1k05wmY3SJTytgvYFs0= +github.com/gookit/color v1.5.4/go.mod h1:pZJOeOS8DM43rXbp4AZo1n9zCU2qjpcRko0b6/QJi9w= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= -github.com/hashicorp/consul/api v1.13.0/go.mod h1:ZlVrynguJKcYr54zGaDbaL3fOvKC9m72FhPvA8T35KQ= -github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= -github.com/hashicorp/copywrite v0.16.6 h1:tTkXQiFwK/INXptOgxQ8Vu2i2+GjAf8iE8HRw3IhLA0= -github.com/hashicorp/copywrite v0.16.6/go.mod h1:6wvQH+ICDoD2bpjO1RJ6fi+h3aY5NeLEM12oTkEtFoc= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU= github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUKaCaGKZ/dR2roBXv0vKbSCnssIldfQdI= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs= -github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9uLqI8l75knNv3lV1kA55veR+WUPSiKIWcQHudI= -github.com/hashicorp/go-hclog v0.8.0/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= -github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= -github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= -github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/go-plugin v1.0.1/go.mod h1:++UyYGoz3o5w9ZzAdZxtQKrWWP+iqPBn3cQptSMzBuY= github.com/hashicorp/go-plugin v1.5.2 h1:aWv8eimFqWlsEiMrYZdPYl+FdHaBJSN4AWwGWfT1G2Y= github.com/hashicorp/go-plugin v1.5.2/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4= -github.com/hashicorp/go-retryablehttp v0.5.4/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= -github.com/hashicorp/go-rootcerts v1.0.1/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= -github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= -github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= -github.com/hashicorp/go-sockaddr v1.0.2/go.mod h1:rB4wwRAUzs07qva3c5SdrY/NEtAUjGlgmH/UkBUC97A= -github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/hc-install v0.6.0 h1:fDHnU7JNFNSQebVKYhHZ0va1bC6SrPQ8fpebsvNr2w4= github.com/hashicorp/hc-install v0.6.0/go.mod h1:10I912u3nntx9Umo1VAeYPUUuehk0aRQJYpMwbX5wQA= -github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= -github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/hcl/v2 v2.18.0 h1:wYnG7Lt31t2zYkcquwgKo6MWXzRUDIeIVU5naZwHLl8= github.com/hashicorp/hcl/v2 v2.18.0/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE= github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= -github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= -github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= github.com/hashicorp/terraform-exec v0.19.0 h1:FpqZ6n50Tk95mItTSS9BjeOVUb4eg81SpgVtZNNtFSM= github.com/hashicorp/terraform-exec v0.19.0/go.mod h1:tbxUpe3JKruE9Cuf65mycSIT8KiNPZ0FkuTE3H4urQg= github.com/hashicorp/terraform-json v0.17.1 h1:eMfvh/uWggKmY7Pmb3T85u86E2EQg6EQHgyRwf3RkyA= github.com/hashicorp/terraform-json v0.17.1/go.mod h1:Huy6zt6euxaY9knPAFKjUITn8QxUFIe9VuSzb4zn/0o= -github.com/hashicorp/terraform-plugin-docs v0.16.0 h1:UmxFr3AScl6Wged84jndJIfFccGyBZn52KtMNsS12dI= -github.com/hashicorp/terraform-plugin-docs v0.16.0/go.mod h1:M3ZrlKBJAbPMtNOPwHicGi1c+hZUh7/g0ifT/z7TVfA= github.com/hashicorp/terraform-plugin-framework v1.4.2 h1:P7a7VP1GZbjc4rv921Xy5OckzhoiO3ig6SGxwelD2sI= github.com/hashicorp/terraform-plugin-framework v1.4.2/go.mod h1:GWl3InPFZi2wVQmdVnINPKys09s9mLmTZr95/ngLnbY= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc= @@ -551,400 +178,94 @@ github.com/hashicorp/terraform-registry-address v0.2.2 h1:lPQBg403El8PPicg/qONZJ github.com/hashicorp/terraform-registry-address v0.2.2/go.mod h1:LtwNbCihUoUZ3RYriyS2wF/lGPB6gF9ICLRtuDk7hSo= github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ= github.com/hashicorp/terraform-svchost v0.1.1/go.mod h1:mNsjQfZyf/Jhz35v6/0LWcv26+X7JPS+buii2c9/ctc= -github.com/hashicorp/vault/api v1.0.4/go.mod h1:gDcqh3WGcR1cpF5AJz/B1UFheUEneMoIospckxBxk6Q= -github.com/hashicorp/vault/sdk v0.1.13/go.mod h1:B+hVj7TpuQY1Y/GPbCpffmgd+tSEwvhkWnjtSYCaS2M= -github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= -github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= -github.com/henvic/httpretty v0.0.6 h1:JdzGzKZBajBfnvlMALXXMVQWxWMF/ofTy8C3/OSUTxs= -github.com/henvic/httpretty v0.0.6/go.mod h1:X38wLjWXHkXT7r2+uK8LjCMne9rsuNaBLJ+5cU2/Pmo= -github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= -github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= -github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68= -github.com/hjson/hjson-go/v4 v4.0.0/go.mod h1:KaYt3bTw3zhBjYqnXkYywcYctk0A2nxeEFTse3rH13E= -github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU= -github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= -github.com/imdario/mergo v0.3.15 h1:M8XP7IuFNsqUx6VPK2P9OSmsYsI/YFaGil0uD21V3dM= -github.com/imdario/mergo v0.3.15/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= -github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc= -github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= -github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= -github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= -github.com/jedib0t/go-pretty v4.3.0+incompatible h1:CGs8AVhEKg/n9YbUenWmNStRW2PHJzaeDodcfvRAbIo= -github.com/jedib0t/go-pretty v4.3.0+incompatible/go.mod h1:XemHduiw8R651AF9Pt4FwCTKeG3oo7hrHJAoznj9nag= -github.com/jedib0t/go-pretty/v6 v6.4.6 h1:v6aG9h6Uby3IusSSEjHaZNXpHFhzqMmjXcPq1Rjl9Jw= -github.com/jedib0t/go-pretty/v6 v6.4.6/go.mod h1:Ndk3ase2CkQbXLLNf5QDHoYb6J9WtVfmHZu9n8rk2xs= -github.com/jgautheron/goconst v1.6.0 h1:gbMLWKRMkzAc6kYsQL6/TxaoBUg3Jm9LSF/Ih1ADWGA= -github.com/jgautheron/goconst v1.6.0/go.mod h1:aAosetZ5zaeC/2EfMeRswtxUFBpe2Hr7HzkgX4fanO4= github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= -github.com/jingyugao/rowserrcheck v1.1.1 h1:zibz55j/MJtLsjP1OF4bSdgXxwL1b+Vn7Tjzq7gFzUs= -github.com/jingyugao/rowserrcheck v1.1.1/go.mod h1:4yvlZSDb3IyDTUZJUmpZfm2Hwok+Dtp+nu2qOq+er9c= -github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af h1:KA9BjwUk7KlCh6S9EAGWBt1oExIUv9WyNCiRz5amv48= -github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af/go.mod h1:HEWGJkRDzjJY2sqdDwxccsGicWEf9BQOZsq2tV+xzM0= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= github.com/jmoiron/sqlx v1.3.5 h1:vFFPA71p1o5gAeqtEAwLU4dnX2napprKtHr7PYIcN3g= github.com/jmoiron/sqlx v1.3.5/go.mod h1:nRVWtLre0KfCLJvgxzCsLVMogSvQ1zNJtpYr2Ccp0mQ= -github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc= -github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= -github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= -github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/julz/importas v0.1.0 h1:F78HnrsjY3cR7j0etXy5+TU1Zuy7Xt08X/1aJnH5xXY= -github.com/julz/importas v0.1.0/go.mod h1:oSFU2R4XK/P7kNBrnL/FEQlDGN1/6WoxXEjSSXO0DV0= -github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= -github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= -github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/errcheck v1.6.3 h1:dEKh+GLHcWm2oN34nMvDzn1sqI0i0WxPvrgiJA5JuM8= -github.com/kisielk/errcheck v1.6.3/go.mod h1:nXw/i/MfnvRHqXa7XXmQMUB0oNFGuBrNI8d8NLy0LPw= -github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/kkHAIKE/contextcheck v1.1.4 h1:B6zAaLhOEEcjvUgIYEqystmnFk1Oemn8bvJhbt0GMb8= -github.com/kkHAIKE/contextcheck v1.1.4/go.mod h1:1+i/gWqokIa+dm31mqGLZhZJ7Uh44DJGZVmr6QRBNJg= github.com/klauspost/asmfmt v1.3.2 h1:4Ri7ox3EwapiOjCki+hw14RyKk201CN4rzyCJRFLpK4= github.com/klauspost/asmfmt v1.3.2/go.mod h1:AG8TuvYojzulgDAMCnYn50l/5QV3Bs/tp6j0HLHbNSE= -github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/klauspost/compress v1.17.0 h1:Rnbp4K9EjcDuVuHtd0dgA4qNuv9yKDYKK1ulpJwgrqM= github.com/klauspost/compress v1.17.0/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= github.com/klauspost/cpuid/v2 v2.2.5 h1:0E5MSMDEoAulmXNFquVs//DdoomxaoTY1kUhbc/qbZg= github.com/klauspost/cpuid/v2 v2.2.5/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= -github.com/knadh/koanf v1.5.0 h1:q2TSd/3Pyc/5yP9ldIrSdIz26MCcyNQzW0pEAugLPNs= -github.com/knadh/koanf v1.5.0/go.mod h1:Hgyjp4y8v44hpZtPzs7JZfRAW5AhN7KfZcwv1RYggDs= -github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= -github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/kulti/thelper v0.6.3 h1:ElhKf+AlItIu+xGnI990no4cE2+XaSu1ULymV2Yulxs= -github.com/kulti/thelper v0.6.3/go.mod h1:DsqKShOvP40epevkFrvIwkCMNYxMeTNjdWL4dqWHZ6I= -github.com/kunwardeep/paralleltest v1.0.8 h1:Ul2KsqtzFxTlSU7IP0JusWlLiNqQaloB9vguyjbE558= -github.com/kunwardeep/paralleltest v1.0.8/go.mod h1:2C7s65hONVqY7Q5Efj5aLzRCNLjw2h4eMc9EcypGjcY= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= -github.com/kyoh86/exportloopref v0.1.11 h1:1Z0bcmTypkL3Q4k+IDHMWTcnCliEZcaPiIe0/ymEyhQ= -github.com/kyoh86/exportloopref v0.1.11/go.mod h1:qkV4UF1zGl6EkF1ox8L5t9SwyeBAZ3qLMd6up458uqA= -github.com/ldez/gomoddirectives v0.2.3 h1:y7MBaisZVDYmKvt9/l1mjNCiSA1BVn34U0ObUcJwlhA= -github.com/ldez/gomoddirectives v0.2.3/go.mod h1:cpgBogWITnCfRq2qGoDkKMEVSaarhdBr6g8G04uz6d0= -github.com/ldez/tagliatelle v0.5.0 h1:epgfuYt9v0CG3fms0pEgIMNPuFf/LpPIfjk4kyqSioo= -github.com/ldez/tagliatelle v0.5.0/go.mod h1:rj1HmWiL1MiKQuOONhd09iySTEkUuE/8+5jtPYz9xa4= -github.com/leonklingele/grouper v1.1.1 h1:suWXRU57D4/Enn6pXR0QVqqWWrnJ9Osrz+5rjt8ivzU= -github.com/leonklingele/grouper v1.1.1/go.mod h1:uk3I3uDfi9B6PeUjsCKi6ndcf63Uy7snXgR4yDYQVDY= -github.com/lib/pq v1.2.0 h1:LXpIM/LZ5xGFhOpXAQUIMM1HdyqzVYM13zNdjCEEcA0= github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY= -github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= -github.com/lufeee/execinquery v1.2.1 h1:hf0Ems4SHcUGBxpGN7Jz78z1ppVkP/837ZlETPCEtOM= -github.com/lufeee/execinquery v1.2.1/go.mod h1:EC7DrEKView09ocscGHC+apXMIaorh4xqSxS/dy8SbM= +github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= +github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/luna-duclos/instrumentedsql v1.1.3 h1:t7mvC0z1jUt5A0UQ6I/0H31ryymuQRnJcWCiqV3lSAA= github.com/luna-duclos/instrumentedsql v1.1.3/go.mod h1:9J1njvFds+zN7y85EDhN9XNQLANWwZt2ULeIC8yMNYs= -github.com/macabu/inamedparam v0.1.2 h1:RR5cnayM6Q7cDhQol32DE2BGAPGMnffJ31LFE+UklaU= -github.com/macabu/inamedparam v0.1.2/go.mod h1:Xg25QvY7IBRl1KLPV9Rbml8JOMZtF/iAkNkmV7eQgjw= -github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= -github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= -github.com/maratori/testableexamples v1.0.0 h1:dU5alXRrD8WKSjOUnmJZuzdxWOEQ57+7s93SLMxb2vI= -github.com/maratori/testableexamples v1.0.0/go.mod h1:4rhjL1n20TUTT4vdh3RDqSizKLyXp7K2u6HgraZCGzE= -github.com/maratori/testpackage v1.1.1 h1:S58XVV5AD7HADMmD0fNnziNHqKvSdDuEKdPD1rNTU04= -github.com/maratori/testpackage v1.1.1/go.mod h1:s4gRK/ym6AMrqpOa/kEbQTV4Q4jb7WeLZzVhVVVOQMc= -github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26 h1:gWg6ZQ4JhDfJPqlo2srm/LN17lpybq15AryXIRcWYLE= -github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26/go.mod h1:1BELzlh859Sh1c6+90blK8lbYy0kwQf1bYlBhBysy1s= -github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= -github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= -github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= -github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU= -github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/mattn/go-sqlite3 v1.14.6 h1:dNPt6NO46WmLVt2DLNpwczCmdV5boIZ6g/tlDrlRUbg= github.com/mattn/go-sqlite3 v1.14.6/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= -github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= -github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/mbilski/exhaustivestruct v1.2.0 h1:wCBmUnSYufAHO6J4AVWY6ff+oxWxsVFrwgOdMUQePUo= -github.com/mbilski/exhaustivestruct v1.2.0/go.mod h1:OeTBVxQWoEmB2J2JCHmXWPJ0aksxSUOUy+nvtVEfzXc= -github.com/mergestat/timediff v0.0.3 h1:ucCNh4/ZrTPjFZ081PccNbhx9spymCJkFxSzgVuPU+Y= -github.com/mergestat/timediff v0.0.3/go.mod h1:yvMUaRu2oetc+9IbPLYBJviz6sA7xz8OXMDfhBl7YSI= -github.com/mgechev/revive v1.3.4 h1:k/tO3XTaWY4DEHal9tWBkkUMJYO/dLDVyMmAQxmIMDc= -github.com/mgechev/revive v1.3.4/go.mod h1:W+pZCMu9qj8Uhfs1iJMQsEFLRozUfvwFwqVvRbSNLVw= -github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= -github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI= -github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= -github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= -github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8 h1:AMFGa4R4MiIpspGNG7Z948v4n35fFGB3RR3G/ry4FWs= github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8/go.mod h1:mC1jAcsrzbxHt8iiaC+zU4b1ylILSosueou12R++wfY= github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3 h1:+n/aFZefKZp7spd8DFdX7uMikMLXX4oubIzJF4kv/wI= github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3/go.mod h1:RagcQ7I8IeTMnF8JTXieKnO4Z6JCsikNEzj0DwauVzE= -github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= -github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= -github.com/mitchellh/cli v1.1.5 h1:OxRIeJXpAMztws/XHlN2vu6imG5Dpq+j61AzAX5fLng= -github.com/mitchellh/cli v1.1.5/go.mod h1:v8+iFts2sPIKUV1ltktPXMCC8fumSKFItNcD2cLtRR4= -github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= -github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= -github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= -github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= -github.com/moricho/tparallel v0.3.1 h1:fQKD4U1wRMAYNngDonW5XupoB/ZGJHdpzrWqgyg9krA= -github.com/moricho/tparallel v0.3.1/go.mod h1:leENX2cUv7Sv2qDgdi0D0fCftN8fRC67Bcn8pqzeYNI= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= -github.com/muesli/termenv v0.12.0 h1:KuQRUE3PgxRFWhq4gHvZtPSLCGDqM5q/cYr1pZ39ytc= -github.com/muesli/termenv v0.12.0/go.mod h1:WCCv32tusQ/EEZ5S8oUIIrC/nIuBcxCVqlN4Xfkv+7A= -github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/nakabonne/nestif v0.3.1 h1:wm28nZjhQY5HyYPx+weN3Q65k6ilSBxDb8v5S81B81U= -github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/nishanths/exhaustive v0.11.0 h1:T3I8nUGhl/Cwu5Z2hfc92l0e04D2GEW6e0l8pzda2l0= -github.com/nishanths/exhaustive v0.11.0/go.mod h1:RqwDsZ1xY0dNdqHho2z6X+bgzizwbLYOWnZbbl2wLB4= -github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk= -github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c= -github.com/npillmayer/nestext v0.1.3/go.mod h1:h2lrijH8jpicr25dFY+oAJLyzlya6jhnuG+zWp9L0Uk= -github.com/nunnatsa/ginkgolinter v0.14.0 h1:XQPNmw+kZz5cC/HbFK3mQutpjzAQv1dHregRA+4CGGg= -github.com/nunnatsa/ginkgolinter v0.14.0/go.mod h1:cm2xaqCUCRd7qcP4DqbVvpcyEMkuLM9CF0wY6VASohk= -github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= -github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= -github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= -github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= -github.com/otiai10/copy v1.2.0/go.mod h1:rrF5dJ5F0t/EWSYODDu4j9/vEeYHMkc8jt0zJChqQWw= -github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= -github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs= -github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo= -github.com/otiai10/mint v1.3.1/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc= -github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAvS1LBMMhTE= -github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= -github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml/v2 v2.1.0 h1:FnwAJ4oYMvbT/34k9zzHuZNrhlz48GB3/s6at6/MHO4= github.com/pelletier/go-toml/v2 v2.1.0/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= -github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4/v4 v4.1.18 h1:xaKrnTkyoqfh1YItXl56+6KJNVYWlEEPuAQW9xsplYQ= github.com/pierrec/lz4/v4 v4.1.18/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU= github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/profile v1.6.0/go.mod h1:qBsxPvzyUincmltOk6iyRVxHYg4adc0OFOv72ZdLa18= -github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/polyfloyd/go-errorlint v1.4.5 h1:70YWmMy4FgRHehGNOUask3HtSFSOLKgmDn7ryNe7LqI= -github.com/polyfloyd/go-errorlint v1.4.5/go.mod h1:sIZEbFoDOCnTYYZoVkjc4hTnM459tuWA9H/EkdXwsKk= -github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= -github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo= -github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= -github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.12.1 h1:ZiaPsmm9uiBeaSMRznKsCDNtPCS0T3JVDGF+06gjBzk= -github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= -github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= -github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= -github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.32.1 h1:hWIdL3N2HoUx3B8j3YN9mWor0qhY/NlEKZEaXxuIRh4= -github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= -github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/quasilyte/go-ruleguard v0.4.0 h1:DyM6r+TKL+xbKB4Nm7Afd1IQh9kEUKQs2pboWGKtvQo= -github.com/quasilyte/go-ruleguard v0.4.0/go.mod h1:Eu76Z/R8IXtViWUIHkE3p8gdH3/PKk1eh3YGfaEof10= -github.com/quasilyte/gogrep v0.5.0 h1:eTKODPXbI8ffJMN+W2aE0+oL0z/nh8/5eNdiO34SOAo= -github.com/quasilyte/gogrep v0.5.0/go.mod h1:Cm9lpz9NZjEoL1tgZ2OgeUKPIxL1meE7eo60Z6Sk+Ng= -github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 h1:TCg2WBOl980XxGFEZSS6KlBGIV0diGdySzxATTWoqaU= -github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= -github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 h1:M8mH9eK4OUR4lu7Gd+PU1fV2/qnDNfzT635KRSObncs= -github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= -github.com/rhnvrm/simples3 v0.6.1/go.mod h1:Y+3vYm2V7Y4VijFoJHHTrja6OgPrJ2cBti8dPGkC3sA= -github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= -github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= -github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww= -github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY= -github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/ryancurrah/gomodguard v1.3.0 h1:q15RT/pd6UggBXVBuLps8BXRvl5GPBcwVA7BJHMLuTw= -github.com/ryancurrah/gomodguard v1.3.0/go.mod h1:ggBxb3luypPEzqVtq33ee7YSN35V28XeGnid8dnni50= -github.com/ryanrolds/sqlclosecheck v0.5.1 h1:dibWW826u0P8jNLsLN+En7+RqWWTYrjCB9fJfSfdyCU= -github.com/ryanrolds/sqlclosecheck v0.5.1/go.mod h1:2g3dUjoS6AL4huFdv6wn55WpLIDjY7ZgUR4J8HOO/XQ= -github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= -github.com/samber/lo v1.37.0 h1:XjVcB8g6tgUp8rsPsJ2CvhClfImrpL04YpQHXeHPhRw= -github.com/samber/lo v1.37.0/go.mod h1:9vaz2O4o8oOnK23pd2TrXufcbdbJIa3b6cstBWKpopA= -github.com/sanposhiho/wastedassign/v2 v2.0.7 h1:J+6nrY4VW+gC9xFzUc+XjPD3g3wF3je/NsJFwFK7Uxc= -github.com/sanposhiho/wastedassign/v2 v2.0.7/go.mod h1:KyZ0MWTwxxBmfwn33zh3k1dmsbF2ud9pAAGfoLfjhtI= -github.com/sashamelentyev/interfacebloat v1.1.0 h1:xdRdJp0irL086OyW1H/RTZTr1h/tMEOsumirXcOJqAw= -github.com/sashamelentyev/interfacebloat v1.1.0/go.mod h1:+Y9yU5YdTkrNvoX0xHc84dxiN1iBi9+G8zZIhPVoNjQ= -github.com/sashamelentyev/usestdlibvars v1.24.0 h1:MKNzmXtGh5N0y74Z/CIaJh4GlB364l0K1RUT08WSWAc= -github.com/sashamelentyev/usestdlibvars v1.24.0/go.mod h1:9cYkq+gYJ+a5W2RPdhfaSCnTVUC1OQP/bSiiBhq3OZE= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/sebdah/goldie v1.0.0/go.mod h1:jXP4hmWywNEwZzhMuv2ccnqTSFpuq8iyQhtQdkkZBH4= -github.com/securego/gosec/v2 v2.18.1 h1:xnnehWg7dIW8qrRPGm8ykY21zp2MueKyC99Vlcuj96I= -github.com/securego/gosec/v2 v2.18.1/go.mod h1:ZUTcKD9gAFip1lLGHWCjkoBQJyaEzePTNzjwlL2HHoE= +github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= +github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= -github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c h1:W65qqJCIOVP4jpqPQ0YvHYKwcMEMVWIzWC5iNQQfBTU= -github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c/go.mod h1:/PevMnwAxekIXwN8qQyfc5gl2NlkB3CQlkizAbOkeBs= -github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= -github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= -github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= -github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= -github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= -github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/sivchari/containedctx v1.0.3 h1:x+etemjbsh2fB5ewm5FeLNi5bUjK0V8n0RB+Wwfd0XE= -github.com/sivchari/containedctx v1.0.3/go.mod h1:c1RDvCbnJLtH4lLcYD/GqwiBSSf4F5Qk0xld2rBqzJ4= -github.com/sivchari/nosnakecase v1.7.0 h1:7QkpWIRMe8x25gckkFd2A5Pi6Ymo0qgr4JrhGt95do8= -github.com/sivchari/nosnakecase v1.7.0/go.mod h1:CwDzrzPea40/GB6uynrNLiorAlgFRvRbFSgJx2Gs+QY= -github.com/sivchari/tenv v1.7.1 h1:PSpuD4bu6fSmtWMxSGWcvqUUgIn7k3yOJhOIzVWn8Ak= -github.com/sivchari/tenv v1.7.1/go.mod h1:64yStXKSOxDfX47NlhVwND4dHwfZDdbp2Lyl018Icvg= github.com/skeema/knownhosts v1.2.0 h1:h9r9cf0+u7wSE+M183ZtMGgOJKiL96brpaz5ekfJCpM= github.com/snowflakedb/gosnowflake v1.6.25 h1:o5zUmxTOo0Eo9AdkEj8blCeiMuILrQJ+rjUMAeZhcRE= github.com/snowflakedb/gosnowflake v1.6.25/go.mod h1:KfO4F7bk+aXPUIvBqYxvPhxLlu2/w4TtSC8Rw/yr5Mg= -github.com/sonatard/noctx v0.0.2 h1:L7Dz4De2zDQhW8S0t+KUjY0MAQJd6SgVwhzNIc4ok00= -github.com/sonatard/noctx v0.0.2/go.mod h1:kzFz+CzWSjQ2OzIm46uJZoXuBpa2+0y3T36U18dWqIo= -github.com/sourcegraph/go-diff v0.7.0 h1:9uLlrd5T46OXs5qpp8L/MTltk0zikUGi0sNNyCpA8G0= -github.com/sourcegraph/go-diff v0.7.0/go.mod h1:iBszgVvyxdc8SFZ7gm69go2KDdt3ag071iBaWPF6cjs= -github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= -github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= -github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= -github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= -github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA= -github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= -github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= -github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= -github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= -github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= -github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= -github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.12.0 h1:CZ7eSOd3kZoaYDLbXnmzgQI5RlciuXBMA+18HwHRfZQ= -github.com/spf13/viper v1.12.0/go.mod h1:b6COn30jlNxbm/V2IqWiNWkJ+vZNiMNksliPCiuKtSI= -github.com/ssgreg/nlreturn/v2 v2.2.1 h1:X4XDI7jstt3ySqGU86YGAURbxw3oTDPK9sPEi6YEwQ0= -github.com/ssgreg/nlreturn/v2 v2.2.1/go.mod h1:E/iiPB78hV7Szg2YfRgyIrk1AD6JVMTRkkxBiELzh2I= -github.com/stbenjam/no-sprintf-host-port v0.1.1 h1:tYugd/yrm1O0dV+ThCbaKZh195Dfm07ysF0U6JQXczc= -github.com/stbenjam/no-sprintf-host-port v0.1.1/go.mod h1:TLhvtIvONRzdmkFiio4O8LHsN9N74I+PhRquPsxpL0I= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= -github.com/stretchr/testify v1.7.4/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs= -github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= -github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c h1:+aPplBwWcHBo6q9xrfWdMrT9o4kltkmmvpemgIjep/8= -github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c/go.mod h1:SbErYREK7xXdsRiigaQiQkI9McGRzYMvlKYaP3Nimdk= -github.com/tdakkota/asciicheck v0.2.0 h1:o8jvnUANo0qXtnslk2d3nMKTFNlOnJjRrNcj0j9qkHM= -github.com/tdakkota/asciicheck v0.2.0/go.mod h1:Qb7Y9EgjCLJGup51gDHFzbI08/gbGhL/UVhYIPWG2rg= -github.com/tenntenn/modver v1.0.1/go.mod h1:bePIyQPb7UeioSRkw3Q0XeMhYZSMx9B8ePqg6SAMGH0= -github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3/go.mod h1:ON8b8w4BN/kE1EOhwT0o+d62W65a6aPw1nouo9LMgyY= -github.com/tetafro/godot v1.4.15 h1:QzdIs+XB8q+U1WmQEWKHQbKmCw06QuQM7gLx/dky2RM= -github.com/tetafro/godot v1.4.15/go.mod h1:2oVxTBSftRTh4+MVfUaUXR6bn2GDXCaMcOG4Dk3rfio= -github.com/thanhpk/randstr v1.0.4 h1:IN78qu/bR+My+gHCvMEXhR/i5oriVHcTB/BJJIRTsNo= -github.com/thanhpk/randstr v1.0.4/go.mod h1:M/H2P1eNLZzlDwAzpkkkUvoyNNMbzRGhESZuEQk3r0U= -github.com/thlib/go-timezone-local v0.0.0-20210907160436-ef149e42d28e h1:BuzhfgfWQbX0dWzYzT1zsORLnHRv3bcRcsaUk0VmXA8= -github.com/thlib/go-timezone-local v0.0.0-20210907160436-ef149e42d28e/go.mod h1:/Tnicc6m/lsJE0irFMA0LfIwTBo4QP7A8IfyIv4zZKI= -github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= -github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966 h1:quvGphlmUVU+nhpFa4gg4yJyTRJ13reZMDHrKwYw53M= -github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966/go.mod h1:27bSVNWSBOHm+qRp1T9qzaIpsWEP6TbUnei/43HK+PQ= -github.com/timonwong/loggercheck v0.9.4 h1:HKKhqrjcVj8sxL7K77beXh0adEm6DLjV/QOGeMXEVi4= -github.com/timonwong/loggercheck v0.9.4/go.mod h1:caz4zlPcgvpEkXgVnAJGowHAMW2NwHaNlpS8xDbVhTg= -github.com/tomarrell/wrapcheck/v2 v2.8.1 h1:HxSqDSN0sAt0yJYsrcYVoEeyM4aI9yAm3KQpIXDJRhQ= -github.com/tomarrell/wrapcheck/v2 v2.8.1/go.mod h1:/n2Q3NZ4XFT50ho6Hbxg+RV1uyo2Uow/Vdm9NQcl5SE= -github.com/tommy-muehle/go-mnd/v2 v2.5.1 h1:NowYhSdyE/1zwK9QCLeRb6USWdoif80Ie+v+yU8u1Zw= -github.com/tommy-muehle/go-mnd/v2 v2.5.1/go.mod h1:WsUAkMJMYww6l/ufffCD3m+P7LEvr8TnZn9lwVDlgzw= -github.com/ultraware/funlen v0.1.0 h1:BuqclbkY6pO+cvxoq7OsktIXZpgBSkYTQtmwhAK81vI= -github.com/ultraware/funlen v0.1.0/go.mod h1:XJqmOQja6DpxarLj6Jj1U7JuoS8PvL4nEqDaQhy22p4= -github.com/ultraware/whitespace v0.0.5 h1:hh+/cpIcopyMYbZNVov9iSxvJU3OYQg78Sfaqzi/CzI= -github.com/ultraware/whitespace v0.0.5/go.mod h1:aVMh/gQve5Maj9hQ/hg+F75lr/X5A89uZnzAmWSineA= -github.com/uudashr/gocognit v1.1.2 h1:l6BAEKJqQH2UpKAPKdMfZf5kE4W/2xk8pfU1OVLvniI= -github.com/uudashr/gocognit v1.1.2/go.mod h1:aAVdLURqcanke8h3vg35BC++eseDm66Z7KmchI5et4k= github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI= github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= @@ -953,556 +274,110 @@ github.com/vmihailenco/msgpack/v5 v5.4.0/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21 github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= -github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= -github.com/xdg-go/scram v1.1.1/go.mod h1:RaEWvsqvNKKvBPvcKeFjrG2cJqOkHTiyTpzz23ni57g= -github.com/xdg-go/stringprep v1.0.3/go.mod h1:W3f5j4i+9rC0kuIEJL0ky1VpHXQU3ocBgklLGvcBnW8= -github.com/xen0n/gosmopolitan v1.2.2 h1:/p2KTnMzwRexIW8GlKawsTWOxn7UHA+jCMF/V8HHtvU= -github.com/xen0n/gosmopolitan v1.2.2/go.mod h1:7XX7Mj61uLYrj0qmeN0zi7XDon9JRAEhYQqAPLVNTeg= -github.com/yagipy/maintidx v1.0.0 h1:h5NvIsCz+nRDapQ0exNv4aJ0yXSI0420omVANTv3GJM= -github.com/yagipy/maintidx v1.0.0/go.mod h1:0qNf/I/CCZXSMhsRsrEPDZ+DkekpKLXAJfsTACwgXLk= -github.com/yeya24/promlinter v0.2.0 h1:xFKDQ82orCU5jQujdaD8stOHiv8UN68BSdn2a8u8Y3o= -github.com/yeya24/promlinter v0.2.0/go.mod h1:u54lkmBOZrpEbQQ6gox2zWKKLKu2SGe+2KOiextY+IA= -github.com/ykadowak/zerologlint v0.1.3 h1:TLy1dTW3Nuc+YE3bYRPToG1Q9Ej78b5UUN6bjbGdxPE= -github.com/ykadowak/zerologlint v0.1.3/go.mod h1:KaUskqF3e/v59oPmdq1U1DnKcuHokl2/K1U4pmIELKg= -github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= +github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 h1:QldyIu/L63oPpyvQmHgvgickp1Yw510KJOqX7H24mg8= +github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs= github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a h1:fZHgsYlfvtyqToslyjUt3VOPF4J7aK/3MPcK7xp3PDk= github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a/go.mod h1:ul22v+Nro/R083muKhosV54bj5niojjWZvU8xrevuH4= -github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/zclconf/go-cty v1.14.0 h1:/Xrd39K7DXbHzlisFP9c4pHao4yyf+/Ug9LEz+Y/yhc= github.com/zclconf/go-cty v1.14.0/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= -github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ= github.com/zeebo/xxh3 v1.0.2 h1:xZmwmqxHZA8AI603jOQ0tMqmBr9lPeFwGg6d+xy9DC0= github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaDcA= -gitlab.com/bosi/decorder v0.4.1 h1:VdsdfxhstabyhZovHafFw+9eJ6eU0d2CkFNJcZz/NU4= -gitlab.com/bosi/decorder v0.4.1/go.mod h1:jecSqWUew6Yle1pCr2eLWTensJMmsxHsBwt+PVbkAqA= -go-simpler.org/sloglint v0.1.2 h1:IjdhF8NPxyn0Ckn2+fuIof7ntSnVUAqBFcQRrnG9AiM= -go-simpler.org/sloglint v0.1.2/go.mod h1:2LL+QImPfTslD5muNPydAEYmpXIj6o/WYcqnJjLi4o4= -go.etcd.io/etcd/api/v3 v3.5.4/go.mod h1:5GB2vv4A4AOn3yk7MftYGHkUfGtDHnEraIjym4dYz5A= -go.etcd.io/etcd/client/pkg/v3 v3.5.4/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/v3 v3.5.4/go.mod h1:ZaRkVgBZC+L+dLCjTcF1hRXpgZXQPOvnA/Ak/gq3kiY= -go.mongodb.org/mongo-driver v1.10.0 h1:UtV6N5k14upNp4LTduX0QCufG124fSu25Wz9tu94GLg= -go.mongodb.org/mongo-driver v1.10.0/go.mod h1:wsihk0Kdgv8Kqu1Anit4sfK+22vSFbUrAVEYRhCXrA8= -go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= -go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= -go.tmz.dev/musttag v0.7.2 h1:1J6S9ipDbalBSODNT5jCep8dhZyMr4ttnjQagmGYR5s= -go.tmz.dev/musttag v0.7.2/go.mod h1:m6q5NiiSKMnQYokefa2xGoyoXnrswCbJ0AWYzf4Zs28= -go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= -go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4= -go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= -go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= -go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= -golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= -golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= -golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= -golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= -golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20230905200255-921286631fa9 h1:GoHiUyI/Tp2nVkLI2mCxVkOjsbSXD66ic0XW0js0R9g= golang.org/x/exp v0.0.0-20230905200255-921286631fa9/go.mod h1:S2oDrQGGwySpoQPVqRShND87VCbxmc6bL1Yd2oYrm6k= -golang.org/x/exp/typeparams v0.0.0-20220428152302-39d4317da171/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= -golang.org/x/exp/typeparams v0.0.0-20230203172020-98cc5a0785f9/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= -golang.org/x/exp/typeparams v0.0.0-20230307190834-24139beb5833 h1:jWGQJV4niP+CCmFW9ekjA9Zx8vYORzOUH2/Nl5WPuLQ= -golang.org/x/exp/typeparams v0.0.0-20230307190834-24139beb5833/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= -golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= -golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= -golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= -golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220923203811-8be639271d50/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= -golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= -golang.org/x/oauth2 v0.10.0 h1:zHCpF2Khkwy4mMB4bv0U37YtJdTGW8jI0glAApi0Kh8= -golang.org/x/oauth2 v0.10.0/go.mod h1:kTpgurOux7LqtuxjuyZa4Gj2gdezIt/jQtGnNFfypQI= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/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.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.4.0 h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ= golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= -golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190129075346-302c3dd5f1cc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210831042530-f4d43177bf5e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211105183446-c75c47738b0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220702020025-31831981b65f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210503060354-a79de5458b56/go.mod h1:tfny5GFUkzUvx4ps4ajbZsCe5lw1metzhBm9T3x7oIY= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= -golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= -golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek= golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= -golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190321232350-e250d351ecad/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190910044552-dd2b5c81c578/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200324003944-a576cf524670/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200329025819-fd4102a86c65/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200724022722-7017fd6b1305/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200820010801-b793a1359eac/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= -golang.org/x/tools v0.0.0-20201001104356-43ebab892c4c/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= -golang.org/x/tools v0.0.0-20201023174141-c8cfbd0f21e6/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= -golang.org/x/tools v0.1.1-0.20210205202024-ef80cdb6ec6d/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= -golang.org/x/tools v0.1.1-0.20210302220138-2ac05c832e1a/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= -golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= -golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= -golang.org/x/tools v0.1.11/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= -golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= -golang.org/x/tools v0.5.0/go.mod h1:N+Kgy78s5I24c24dU8OfWNEotWjutIs8SnJvn5IDq+k= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.13.0 h1:Iey4qkscZuv0VvIt8E0neZjtPVQFSc870HQ448QgEmQ= -golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= 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= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= gonum.org/v1/gonum v0.11.0 h1:f1IJhK4Km5tBJmaiJXtk/PkL4cdVX6J+tGiM187uT5E= -google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= -google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= -google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= -google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= -google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= -google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= -google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 h1:6GQBEOdGkX6MMTLT9V+TjtIRZCw9VPD5Z+yHY9wMgS0= google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97/go.mod h1:v7nGkzlmW8P3n/bKmWBn2WpBjpOEx8Q6gMueudAmKfY= -google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.22.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= -google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= -google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= -google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= google.golang.org/grpc v1.58.2 h1:SXUpjxeVF3FKrTYQI4f4KvbGD5u2xccdYdurwowix5I= google.golang.org/grpc v1.58.2/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= -gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= -gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= -gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.4.6 h1:oFEHCKeID7to/3autwsWfnuv69j3NsfcXbvJKuIcep8= -honnef.co/go/tools v0.4.6/go.mod h1:+rnGS1THNh8zMwnd2oVOTL9QF6vmfyG6ZXBULae2uc0= -mvdan.cc/gofumpt v0.5.0 h1:0EQ+Z56k8tXjj/6TQD25BFNKQXpCvT0rnansIc7Ug5E= -mvdan.cc/gofumpt v0.5.0/go.mod h1:HBeVDtMKRZpXyxFciAirzdKklDlGu8aAy1wEbH5Y9js= -mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed h1:WX1yoOaKQfddO/mLzdV4wptyWgoH/6hwLs7QHTixo0I= -mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc= -mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b h1:DxJ5nJdkhDlLok9K6qO+5290kphDJbHOQO1DFFFTeBo= -mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4= -mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d h1:3rvTIIM22r9pvXk+q3swxUQAQOxksVMGK7sml4nG57w= -mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d/go.mod h1:IeHQjmn6TOD+e4Z3RFiZMMsLVL+A96Nvptar8Fj71is= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= -rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= -sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= From 7549f0a76568554d1288d93d257c6f23ea6b90b2 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Fri, 17 Nov 2023 00:00:09 -0800 Subject: [PATCH 26/28] update docs --- docs/resources/grant_privileges_to_role.md | 2 +- .../resource.tf | 2 +- go.mod | 13 +++++ go.sum | 55 +++++++++++++++++++ .../TestAcc_DynamicTable_issue2134/1/test.tf | 36 ++++++------ .../1/variables.tf | 14 ++--- .../TestAcc_DynamicTable_issue2173/1/test.tf | 22 ++++---- .../1/variables.tf | 16 +++--- .../TestAcc_DynamicTable_issue2173/2/test.tf | 42 +++++++------- .../2/variables.tf | 16 +++--- 10 files changed, 143 insertions(+), 75 deletions(-) diff --git a/docs/resources/grant_privileges_to_role.md b/docs/resources/grant_privileges_to_role.md index 1251b7ae83..9fdc69a5c2 100644 --- a/docs/resources/grant_privileges_to_role.md +++ b/docs/resources/grant_privileges_to_role.md @@ -130,7 +130,7 @@ resource "snowflake_grant_privileges_to_role" "g11" { on_schema_object { all { object_type_plural = "TABLES" - in_database = snowflake_database.d.name + in_database = snowflake_database.d.name } } } diff --git a/examples/resources/snowflake_grant_privileges_to_role/resource.tf b/examples/resources/snowflake_grant_privileges_to_role/resource.tf index e748bd7e26..b54bc9c934 100644 --- a/examples/resources/snowflake_grant_privileges_to_role/resource.tf +++ b/examples/resources/snowflake_grant_privileges_to_role/resource.tf @@ -115,7 +115,7 @@ resource "snowflake_grant_privileges_to_role" "g11" { on_schema_object { all { object_type_plural = "TABLES" - in_database = snowflake_database.d.name + in_database = snowflake_database.d.name } } } diff --git a/go.mod b/go.mod index 60a33cbf54..372d1735f8 100644 --- a/go.mod +++ b/go.mod @@ -43,12 +43,16 @@ require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.1.0 // indirect github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c // indirect + github.com/Masterminds/goutils v1.1.1 // indirect + github.com/Masterminds/semver/v3 v3.1.1 // indirect + github.com/Masterminds/sprig/v3 v3.2.2 // indirect github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c // indirect github.com/agext/levenshtein v1.2.3 // indirect github.com/andybalholm/brotli v1.0.5 // indirect github.com/apache/arrow/go/v12 v12.0.1 // indirect github.com/apache/thrift v0.19.0 // indirect github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect + github.com/armon/go-radix v1.0.0 // indirect github.com/aws/aws-sdk-go-v2 v1.21.0 // indirect github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.13 // indirect github.com/aws/aws-sdk-go-v2/credentials v1.13.41 // indirect @@ -62,6 +66,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.15.4 // indirect github.com/aws/aws-sdk-go-v2/service/s3 v1.40.0 // indirect github.com/aws/smithy-go v1.14.2 // indirect + github.com/bgentry/speakeasy v0.1.0 // indirect github.com/cloudflare/circl v1.3.3 // indirect github.com/danieljoos/wincred v1.2.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect @@ -89,9 +94,12 @@ require ( github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/terraform-exec v0.19.0 // indirect github.com/hashicorp/terraform-json v0.17.1 // indirect + github.com/hashicorp/terraform-plugin-docs v0.16.0 // indirect github.com/hashicorp/terraform-registry-address v0.2.2 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect github.com/hashicorp/yamux v0.1.1 // indirect + github.com/huandu/xstrings v1.3.2 // indirect + github.com/imdario/mergo v0.3.15 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/klauspost/asmfmt v1.3.2 // indirect github.com/klauspost/compress v1.17.0 // indirect @@ -101,6 +109,7 @@ require ( github.com/mattn/go-isatty v0.0.19 // indirect github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8 // indirect github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3 // indirect + github.com/mitchellh/cli v1.1.5 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/mitchellh/go-wordwrap v1.0.1 // indirect @@ -111,7 +120,11 @@ require ( github.com/pierrec/lz4/v4 v4.1.18 // indirect github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/posener/complete v1.2.3 // indirect + github.com/russross/blackfriday v1.6.0 // indirect + github.com/shopspring/decimal v1.3.1 // indirect github.com/sirupsen/logrus v1.9.3 // indirect + github.com/spf13/cast v1.5.0 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v5 v5.4.0 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect diff --git a/go.sum b/go.sum index 1ef9983f52..0d420e2126 100644 --- a/go.sum +++ b/go.sum @@ -16,6 +16,13 @@ github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20O github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c h1:RGWPOewvKIROun94nF7v2cua9qP+thov/7M50KEoeSU= github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c/go.mod h1:X0CRv0ky0k6m906ixxpzmDRLvX58TFUKS2eePweuyxk= +github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= +github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= +github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc= +github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= +github.com/Masterminds/sprig/v3 v3.2.1/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk= +github.com/Masterminds/sprig/v3 v3.2.2 h1:17jRggJu518dr3QaafizSXOjKYp94wKfABxUmyxvxX8= +github.com/Masterminds/sprig/v3 v3.2.2/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c h1:kMFnB0vCcX7IL/m9Y5LO+KQYv+t1CQOiFe6+SV2J7bE= github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= @@ -29,8 +36,12 @@ github.com/apache/arrow/go/v12 v12.0.1/go.mod h1:weuTY7JvTG/HDPtMQxEUp7pU73vkLWM github.com/apache/thrift v0.19.0 h1:sOqkWPzMj7w6XaYbJQG7m4sGqVolaW/0D28Ln7yPzMk= github.com/apache/thrift v0.19.0/go.mod h1:SUALL216IiaOw2Oy+5Vs9lboJ/t9g40C+G07Dc0QC1I= github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= +github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo= github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY= github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4= +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= +github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/avast/retry-go v3.0.0+incompatible h1:4SOWQ7Qs+oroOTQOYnAHqelpCO0biHSxpiH9JdtuBj0= github.com/avast/retry-go v3.0.0+incompatible/go.mod h1:XtSnn+n/sHqQIpZ10K1qAevBhOOCWBLXXy3hyiqqBrY= github.com/aws/aws-sdk-go-v2 v1.21.0 h1:gMT0IW+03wtYJhRqTVYn0wLzwdnK9sRMcxmtfGzRdJc= @@ -71,6 +82,8 @@ github.com/aws/aws-sdk-go-v2/service/sts v1.23.0 h1:pyvfUqkNLMipdKNAtu7OVbRxUrR2 github.com/aws/aws-sdk-go-v2/service/sts v1.23.0/go.mod h1:VC7JDqsqiwXukYEDjoHh9U0fOJtNWh04FPQz4ct4GGU= github.com/aws/smithy-go v1.14.2 h1:MJU9hqBGbvWZdApzpvoF2WAIJDbtjK2NDJSiJP7HblQ= github.com/aws/smithy-go v1.14.2/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= +github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= +github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/brianvoe/gofakeit/v6 v6.23.2 h1:lVde18uhad5wII/f5RMVFLtdQNE0HaGFuBUXmYKk8i8= github.com/brianvoe/gofakeit/v6 v6.23.2/go.mod h1:Ow6qC71xtwm79anlwKRlWZW6zVq9D2XHE4QSSMP/rU8= github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= @@ -89,6 +102,7 @@ github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= github.com/dvsekhvalnov/jose2go v1.5.0 h1:3j8ya4Z4kMCwT5nXIKFSV84YS+HdqSSO0VsTQxaLAeM= github.com/dvsekhvalnov/jose2go v1.5.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= @@ -123,6 +137,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gookit/color v1.5.4 h1:FZmqs7XOyGgCAxmWyPslpiok1k05wmY3SJTytgvYFs0= @@ -141,6 +157,7 @@ github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUK github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs= github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-plugin v1.5.2 h1:aWv8eimFqWlsEiMrYZdPYl+FdHaBJSN4AWwGWfT1G2Y= @@ -160,6 +177,8 @@ github.com/hashicorp/terraform-exec v0.19.0 h1:FpqZ6n50Tk95mItTSS9BjeOVUb4eg81Sp github.com/hashicorp/terraform-exec v0.19.0/go.mod h1:tbxUpe3JKruE9Cuf65mycSIT8KiNPZ0FkuTE3H4urQg= github.com/hashicorp/terraform-json v0.17.1 h1:eMfvh/uWggKmY7Pmb3T85u86E2EQg6EQHgyRwf3RkyA= github.com/hashicorp/terraform-json v0.17.1/go.mod h1:Huy6zt6euxaY9knPAFKjUITn8QxUFIe9VuSzb4zn/0o= +github.com/hashicorp/terraform-plugin-docs v0.16.0 h1:UmxFr3AScl6Wged84jndJIfFccGyBZn52KtMNsS12dI= +github.com/hashicorp/terraform-plugin-docs v0.16.0/go.mod h1:M3ZrlKBJAbPMtNOPwHicGi1c+hZUh7/g0ifT/z7TVfA= github.com/hashicorp/terraform-plugin-framework v1.4.2 h1:P7a7VP1GZbjc4rv921Xy5OckzhoiO3ig6SGxwelD2sI= github.com/hashicorp/terraform-plugin-framework v1.4.2/go.mod h1:GWl3InPFZi2wVQmdVnINPKys09s9mLmTZr95/ngLnbY= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc= @@ -180,7 +199,14 @@ github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S github.com/hashicorp/terraform-svchost v0.1.1/go.mod h1:mNsjQfZyf/Jhz35v6/0LWcv26+X7JPS+buii2c9/ctc= github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= +github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/huandu/xstrings v1.3.2 h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw= +github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= +github.com/imdario/mergo v0.3.15 h1:M8XP7IuFNsqUx6VPK2P9OSmsYsI/YFaGil0uD21V3dM= +github.com/imdario/mergo v0.3.15/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= @@ -207,10 +233,12 @@ github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/luna-duclos/instrumentedsql v1.1.3 h1:t7mvC0z1jUt5A0UQ6I/0H31ryymuQRnJcWCiqV3lSAA= github.com/luna-duclos/instrumentedsql v1.1.3/go.mod h1:9J1njvFds+zN7y85EDhN9XNQLANWwZt2ULeIC8yMNYs= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= @@ -222,6 +250,9 @@ github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8 h1:AMFGa4R4MiIpsp github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8/go.mod h1:mC1jAcsrzbxHt8iiaC+zU4b1ylILSosueou12R++wfY= github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3 h1:+n/aFZefKZp7spd8DFdX7uMikMLXX4oubIzJF4kv/wI= github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3/go.mod h1:RagcQ7I8IeTMnF8JTXieKnO4Z6JCsikNEzj0DwauVzE= +github.com/mitchellh/cli v1.1.5 h1:OxRIeJXpAMztws/XHlN2vu6imG5Dpq+j61AzAX5fLng= +github.com/mitchellh/cli v1.1.5/go.mod h1:v8+iFts2sPIKUV1ltktPXMCC8fumSKFItNcD2cLtRR4= +github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= @@ -232,6 +263,7 @@ github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQ github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= @@ -248,18 +280,34 @@ github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9 github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo= +github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= +github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww= +github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY= +github.com/sebdah/goldie v1.0.0/go.mod h1:jXP4hmWywNEwZzhMuv2ccnqTSFpuq8iyQhtQdkkZBH4= github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= +github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= +github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= +github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/skeema/knownhosts v1.2.0 h1:h9r9cf0+u7wSE+M183ZtMGgOJKiL96brpaz5ekfJCpM= github.com/snowflakedb/gosnowflake v1.6.25 h1:o5zUmxTOo0Eo9AdkEj8blCeiMuILrQJ+rjUMAeZhcRE= github.com/snowflakedb/gosnowflake v1.6.25/go.mod h1:KfO4F7bk+aXPUIvBqYxvPhxLlu2/w4TtSC8Rw/yr5Mg= +github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= +github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= @@ -281,11 +329,14 @@ github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a/go.mod h1:ul22v+Nro/ github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/zclconf/go-cty v1.14.0 h1:/Xrd39K7DXbHzlisFP9c4pHao4yyf+/Ug9LEz+Y/yhc= github.com/zclconf/go-cty v1.14.0/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= +github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ= github.com/zeebo/xxh3 v1.0.2 h1:xZmwmqxHZA8AI603jOQ0tMqmBr9lPeFwGg6d+xy9DC0= github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaDcA= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= @@ -375,8 +426,12 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_issue2134/1/test.tf b/pkg/resources/testdata/TestAcc_DynamicTable_issue2134/1/test.tf index ae737b1923..ba6a1417fb 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_issue2134/1/test.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_issue2134/1/test.tf @@ -1,23 +1,23 @@ resource "snowflake_table" "t" { - database = var.database - schema = var.schema - name = var.table_name - change_tracking = true - column { - name = "id" - type = "NUMBER(38,0)" - } + database = var.database + schema = var.schema + name = var.table_name + change_tracking = true + column { + name = "id" + type = "NUMBER(38,0)" + } } resource "snowflake_dynamic_table" "dt" { - depends_on = [snowflake_table.t] - name = var.name - database = var.database - schema = var.schema - target_lag { - maximum_duration = "2 minutes" - } - warehouse = var.warehouse - query = var.query - comment = var.comment + depends_on = [snowflake_table.t] + name = var.name + database = var.database + schema = var.schema + target_lag { + maximum_duration = "2 minutes" + } + warehouse = var.warehouse + query = var.query + comment = var.comment } diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_issue2134/1/variables.tf b/pkg/resources/testdata/TestAcc_DynamicTable_issue2134/1/variables.tf index 462d6218dd..5a6d6701d9 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_issue2134/1/variables.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_issue2134/1/variables.tf @@ -1,27 +1,27 @@ variable "name" { - type = string + type = string } variable "database" { - type = string + type = string } variable "schema" { - type = string + type = string } variable "warehouse" { - type = string + type = string } variable "query" { - type = string + type = string } variable "comment" { - type = string + type = string } variable "table_name" { - type = string + type = string } diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_issue2173/1/test.tf b/pkg/resources/testdata/TestAcc_DynamicTable_issue2173/1/test.tf index d32631d2e2..9e679ae518 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_issue2173/1/test.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_issue2173/1/test.tf @@ -1,16 +1,16 @@ resource "snowflake_schema" "other_schema" { - database = var.database - name = var.other_schema - comment = "Other schema" + database = var.database + name = var.other_schema + comment = "Other schema" } resource "snowflake_table" "t" { - database = var.database - schema = var.schema - name = var.table_name - change_tracking = true - column { - name = "id" - type = "NUMBER(38,0)" - } + database = var.database + schema = var.schema + name = var.table_name + change_tracking = true + column { + name = "id" + type = "NUMBER(38,0)" + } } diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_issue2173/1/variables.tf b/pkg/resources/testdata/TestAcc_DynamicTable_issue2173/1/variables.tf index e0f023624b..d152aec484 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_issue2173/1/variables.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_issue2173/1/variables.tf @@ -1,31 +1,31 @@ variable "name" { - type = string + type = string } variable "database" { - type = string + type = string } variable "schema" { - type = string + type = string } variable "warehouse" { - type = string + type = string } variable "query" { - type = string + type = string } variable "comment" { - type = string + type = string } variable "table_name" { - type = string + type = string } variable "other_schema" { - type = string + type = string } diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_issue2173/2/test.tf b/pkg/resources/testdata/TestAcc_DynamicTable_issue2173/2/test.tf index 6cd68399c6..07dbef8802 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_issue2173/2/test.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_issue2173/2/test.tf @@ -1,29 +1,29 @@ resource "snowflake_schema" "other_schema" { - database = var.database - name = var.other_schema - comment = "Other schema" + database = var.database + name = var.other_schema + comment = "Other schema" } resource "snowflake_table" "t" { - database = var.database - schema = var.schema - name = var.table_name - change_tracking = true - column { - name = "id" - type = "NUMBER(38,0)" - } + database = var.database + schema = var.schema + name = var.table_name + change_tracking = true + column { + name = "id" + type = "NUMBER(38,0)" + } } resource "snowflake_dynamic_table" "dt" { - depends_on = [snowflake_table.t] - name = var.name - database = var.database - schema = var.schema - target_lag { - maximum_duration = "2 minutes" - } - warehouse = var.warehouse - query = var.query - comment = var.comment + depends_on = [snowflake_table.t] + name = var.name + database = var.database + schema = var.schema + target_lag { + maximum_duration = "2 minutes" + } + warehouse = var.warehouse + query = var.query + comment = var.comment } diff --git a/pkg/resources/testdata/TestAcc_DynamicTable_issue2173/2/variables.tf b/pkg/resources/testdata/TestAcc_DynamicTable_issue2173/2/variables.tf index e0f023624b..d152aec484 100644 --- a/pkg/resources/testdata/TestAcc_DynamicTable_issue2173/2/variables.tf +++ b/pkg/resources/testdata/TestAcc_DynamicTable_issue2173/2/variables.tf @@ -1,31 +1,31 @@ variable "name" { - type = string + type = string } variable "database" { - type = string + type = string } variable "schema" { - type = string + type = string } variable "warehouse" { - type = string + type = string } variable "query" { - type = string + type = string } variable "comment" { - type = string + type = string } variable "table_name" { - type = string + type = string } variable "other_schema" { - type = string + type = string } From 736f5c4320dfcd16ac7d13a8e7ae88a721add2a4 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Fri, 17 Nov 2023 00:22:36 -0800 Subject: [PATCH 27/28] update docs --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ed94d16fbd..e09f446673 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ test: ## run unit and integration tests go test -v -cover -timeout=30m ./... test-acceptance: ## run acceptance tests - TF_ACC=1 go test -v -cover -timeout 30m (^TestAcc$) + TF_ACC=1 go test -v -cover -timeout 30m build-local: ## build the binary locally go build -o $(BASE_BINARY_NAME) . From 6e70b4d05a1db7c1a28c185f4f9895ec0fa72ff9 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Mon, 20 Nov 2023 20:09:42 -0800 Subject: [PATCH 28/28] update makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e09f446673..8981fadcd0 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ test: ## run unit and integration tests go test -v -cover -timeout=30m ./... test-acceptance: ## run acceptance tests - TF_ACC=1 go test -v -cover -timeout 30m + TF_ACC=1 go test -v -cover -timeout=30m ./... build-local: ## build the binary locally go build -o $(BASE_BINARY_NAME) .