Skip to content

Commit

Permalink
fix: Update go and docs package (#1009)
Browse files Browse the repository at this point in the history
  • Loading branch information
alldoami authored May 23, 2022
1 parent 1c5af87 commit 72c3180
Show file tree
Hide file tree
Showing 212 changed files with 3,021 additions and 2,154 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,17 @@ jobs:

- name: make lint-ci integration
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.REVIEWDOG_GITHUB_API_TOKEN }}
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }}
run: make lint-ci

- name: make test-acceptance integration
if: always()
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.REVIEWDOG_GITHUB_API_TOKEN }}
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ all: test docs install

setup: ## setup development dependencies
curl -sfL https://raw.githubusercontent.com/chanzuckerberg/bff/main/download.sh | sh
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh
curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh
bash .download-tfproviderlint.sh
go get golang.org/x/tools/cmd/goimports
Expand All @@ -31,7 +31,7 @@ lint: fmt ## run the fast go linters
.PHONY: lint

lint-ci: ## run the fast go linters
./bin/reviewdog -conf .reviewdog.yml -reporter=github-pr-review -tee
./bin/reviewdog -conf .reviewdog.yml -reporter=github-pr-review -tee -fail-on-error=true
.PHONY: lint-ci

lint-all: fmt ## run the fast go linters
Expand Down
11 changes: 4 additions & 7 deletions docs/data-sources/current_account.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,11 @@ resource "aws_ssm_parameter" "snowflake_account_url" {
<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- **id** (String) The ID of this resource.

### Read-Only

- **account** (String) The Snowflake Account ID; as returned by CURRENT_ACCOUNT().
- **region** (String) The Snowflake Region; as returned by CURRENT_REGION()
- **url** (String) The Snowflake URL.
- `account` (String) The Snowflake Account ID; as returned by CURRENT_ACCOUNT().
- `id` (String) The ID of this resource.
- `region` (String) The Snowflake Region; as returned by CURRENT_REGION()
- `url` (String) The Snowflake URL.


23 changes: 10 additions & 13 deletions docs/data-sources/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,18 @@ data "snowflake_database" "this" {

### Required

- **name** (String) The database from which to return its metadata.

### Optional

- **id** (String) The ID of this resource.
- `name` (String) The database from which to return its metadata.

### Read-Only

- **comment** (String)
- **created_on** (String)
- **is_current** (Boolean)
- **is_default** (Boolean)
- **options** (String)
- **origin** (String)
- **owner** (String)
- **retention_time** (Number)
- `comment` (String)
- `created_on` (String)
- `id` (String) The ID of this resource.
- `is_current` (Boolean)
- `is_default` (Boolean)
- `options` (String)
- `origin` (String)
- `owner` (String)
- `retention_time` (Number)


25 changes: 11 additions & 14 deletions docs/data-sources/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,24 @@ data "snowflake_databases" "this" {}
<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- **id** (String) The ID of this resource.

### Read-Only

- **databases** (List of Object) Snowflake databases (see [below for nested schema](#nestedatt--databases))
- `databases` (List of Object) Snowflake databases (see [below for nested schema](#nestedatt--databases))
- `id` (String) The ID of this resource.

<a id="nestedatt--databases"></a>
### Nested Schema for `databases`

Read-Only:

- **comment** (String)
- **created_on** (String)
- **is_current** (Boolean)
- **is_default** (Boolean)
- **name** (String)
- **options** (String)
- **origin** (String)
- **owner** (String)
- **retention_time** (Number)
- `comment` (String)
- `created_on` (String)
- `is_current` (Boolean)
- `is_default` (Boolean)
- `name` (String)
- `options` (String)
- `origin` (String)
- `owner` (String)
- `retention_time` (Number)


21 changes: 9 additions & 12 deletions docs/data-sources/external_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,23 @@ data "snowflake_external_functions" "current" {

### Required

- **database** (String) The database from which to return the schemas from.
- **schema** (String) The schema from which to return the external functions from.

### Optional

- **id** (String) The ID of this resource.
- `database` (String) The database from which to return the schemas from.
- `schema` (String) The schema from which to return the external functions from.

### Read-Only

- **external_functions** (List of Object) The external functions in the schema (see [below for nested schema](#nestedatt--external_functions))
- `external_functions` (List of Object) The external functions in the schema (see [below for nested schema](#nestedatt--external_functions))
- `id` (String) The ID of this resource.

<a id="nestedatt--external_functions"></a>
### Nested Schema for `external_functions`

Read-Only:

- **comment** (String)
- **database** (String)
- **language** (String)
- **name** (String)
- **schema** (String)
- `comment` (String)
- `database` (String)
- `language` (String)
- `name` (String)
- `schema` (String)


19 changes: 8 additions & 11 deletions docs/data-sources/external_tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,22 @@ data "snowflake_external_tables" "current" {

### Required

- **database** (String) The database from which to return the schemas from.
- **schema** (String) The schema from which to return the external tables from.

### Optional

- **id** (String) The ID of this resource.
- `database` (String) The database from which to return the schemas from.
- `schema` (String) The schema from which to return the external tables from.

### Read-Only

- **external_tables** (List of Object) The external tables in the schema (see [below for nested schema](#nestedatt--external_tables))
- `external_tables` (List of Object) The external tables in the schema (see [below for nested schema](#nestedatt--external_tables))
- `id` (String) The ID of this resource.

<a id="nestedatt--external_tables"></a>
### Nested Schema for `external_tables`

Read-Only:

- **comment** (String)
- **database** (String)
- **name** (String)
- **schema** (String)
- `comment` (String)
- `database` (String)
- `name` (String)
- `schema` (String)


21 changes: 9 additions & 12 deletions docs/data-sources/file_formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,23 @@ data "snowflake_file_formats" "current" {

### Required

- **database** (String) The database from which to return the schemas from.
- **schema** (String) The schema from which to return the file formats from.

### Optional

- **id** (String) The ID of this resource.
- `database` (String) The database from which to return the schemas from.
- `schema` (String) The schema from which to return the file formats from.

### Read-Only

- **file_formats** (List of Object) The file formats in the schema (see [below for nested schema](#nestedatt--file_formats))
- `file_formats` (List of Object) The file formats in the schema (see [below for nested schema](#nestedatt--file_formats))
- `id` (String) The ID of this resource.

<a id="nestedatt--file_formats"></a>
### Nested Schema for `file_formats`

Read-Only:

- **comment** (String)
- **database** (String)
- **format_type** (String)
- **name** (String)
- **schema** (String)
- `comment` (String)
- `database` (String)
- `format_type` (String)
- `name` (String)
- `schema` (String)


23 changes: 10 additions & 13 deletions docs/data-sources/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,24 @@ data "snowflake_functions" "current" {

### Required

- **database** (String) The database from which to return the schemas from.
- **schema** (String) The schema from which to return the functions from.

### Optional

- **id** (String) The ID of this resource.
- `database` (String) The database from which to return the schemas from.
- `schema` (String) The schema from which to return the functions from.

### Read-Only

- **functions** (List of Object) The functions in the schema (see [below for nested schema](#nestedatt--functions))
- `functions` (List of Object) The functions in the schema (see [below for nested schema](#nestedatt--functions))
- `id` (String) The ID of this resource.

<a id="nestedatt--functions"></a>
### Nested Schema for `functions`

Read-Only:

- **argument_types** (List of String)
- **comment** (String)
- **database** (String)
- **name** (String)
- **return_type** (String)
- **schema** (String)
- `argument_types` (List of String)
- `comment` (String)
- `database` (String)
- `name` (String)
- `return_type` (String)
- `schema` (String)


21 changes: 9 additions & 12 deletions docs/data-sources/masking_policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,23 @@ data "snowflake_masking_policies" "current" {

### Required

- **database** (String) The database from which to return the schemas from.
- **schema** (String) The schema from which to return the maskingPolicies from.

### Optional

- **id** (String) The ID of this resource.
- `database` (String) The database from which to return the schemas from.
- `schema` (String) The schema from which to return the maskingPolicies from.

### Read-Only

- **masking_policies** (List of Object) The maskingPolicies in the schema (see [below for nested schema](#nestedatt--masking_policies))
- `id` (String) The ID of this resource.
- `masking_policies` (List of Object) The maskingPolicies in the schema (see [below for nested schema](#nestedatt--masking_policies))

<a id="nestedatt--masking_policies"></a>
### Nested Schema for `masking_policies`

Read-Only:

- **comment** (String)
- **database** (String)
- **kind** (String)
- **name** (String)
- **schema** (String)
- `comment` (String)
- `database` (String)
- `kind` (String)
- `name` (String)
- `schema` (String)


19 changes: 8 additions & 11 deletions docs/data-sources/materialized_views.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,22 @@ data "snowflake_materialized_views" "current" {

### Required

- **database** (String) The database from which to return the schemas from.
- **schema** (String) The schema from which to return the views from.

### Optional

- **id** (String) The ID of this resource.
- `database` (String) The database from which to return the schemas from.
- `schema` (String) The schema from which to return the views from.

### Read-Only

- **materialized_views** (List of Object) The views in the schema (see [below for nested schema](#nestedatt--materialized_views))
- `id` (String) The ID of this resource.
- `materialized_views` (List of Object) The views in the schema (see [below for nested schema](#nestedatt--materialized_views))

<a id="nestedatt--materialized_views"></a>
### Nested Schema for `materialized_views`

Read-Only:

- **comment** (String)
- **database** (String)
- **name** (String)
- **schema** (String)
- `comment` (String)
- `database` (String)
- `name` (String)
- `schema` (String)


21 changes: 9 additions & 12 deletions docs/data-sources/pipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,23 @@ data "snowflake_pipes" "current" {

### Required

- **database** (String) The database from which to return the schemas from.
- **schema** (String) The schema from which to return the pipes from.

### Optional

- **id** (String) The ID of this resource.
- `database` (String) The database from which to return the schemas from.
- `schema` (String) The schema from which to return the pipes from.

### Read-Only

- **pipes** (List of Object) The pipes in the schema (see [below for nested schema](#nestedatt--pipes))
- `id` (String) The ID of this resource.
- `pipes` (List of Object) The pipes in the schema (see [below for nested schema](#nestedatt--pipes))

<a id="nestedatt--pipes"></a>
### Nested Schema for `pipes`

Read-Only:

- **comment** (String)
- **database** (String)
- **integration** (String)
- **name** (String)
- **schema** (String)
- `comment` (String)
- `database` (String)
- `integration` (String)
- `name` (String)
- `schema` (String)


Loading

0 comments on commit 72c3180

Please sign in to comment.