Skip to content

Commit

Permalink
Update go version to v1.20 along with all dependencies and pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyrZotov committed Jul 13, 2023
1 parent d307f3e commit 4a367f7
Show file tree
Hide file tree
Showing 2,019 changed files with 159,488 additions and 305,753 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ^1.15
go-version: ^1.19

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build
run: go build -v ./...
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ^1.15
go-version: ^1.19

- name: Install Terraform
uses: hashicorp/setup-terraform@v1
uses: hashicorp/setup-terraform@v2
with:
terraform_wrapper: false

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Generate docs
run: go generate
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- id: is_release_branch_without_pr
name: Find matching PR
uses: actions/github-script@v3
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand All @@ -42,7 +42,7 @@ jobs:
name: Create Release Pull Request
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Parse release version
id: get_version
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.16
go-version: ^1.19
-
name: Import GPG key
id: import_gpg
Expand Down
56 changes: 30 additions & 26 deletions docs/data-sources/item.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "onepassword_item Data Source - terraform-provider-onepassword"
subcategory: ""
description: |-
Use this data source to get details of an item by its vault uuid and either the title or the uuid of the item.
---

# Data Source `onepassword_item`
# onepassword_item (Data Source)

Use this data source to get details of an item by its vault uuid and either the title or the uuid of the item.

Expand All @@ -18,46 +19,49 @@ data "onepassword_item" "example" {
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- **vault** (String, Required) The UUID of the vault the item is in.
- `vault` (String) The UUID of the vault the item is in.

### Optional

- **note_value** (String, Optional) Secure Note value.
- **title** (String, Optional) The title of the item to retrieve. This field will be populated with the title of the item if the item it looked up by its UUID.
- **uuid** (String, Optional) The UUID of the item to retrieve. This field will be populated with the UUID of the item if the item it looked up by its title.
- `note_value` (String, Sensitive) Secure Note value.
- `title` (String) The title of the item to retrieve. This field will be populated with the title of the item if the item it looked up by its UUID.
- `uuid` (String) The UUID of the item to retrieve. This field will be populated with the UUID of the item if the item it looked up by its title.

### Read-only
### Read-Only

- **category** (String, Read-only) The category of the item. One of ["login" "password" "database"]
- **database** (String, Read-only) (Only applies to the database category) The name of the database.
- **hostname** (String, Read-only) (Only applies to the database category) The address where the database can be found
- **id** (String, Read-only) The Terraform resource identifier for this item in the format `vaults/<vault_id>/items/<item_id>`
- **password** (String, Read-only) Password for this item.
- **port** (String, Read-only) (Only applies to the database category) The port the database is listening on.
- **section** (List of Object, Read-only) A list of custom sections in an item (see [below for nested schema](#nestedatt--section))
- **tags** (List of String, Read-only) An array of strings of the tags assigned to the item.
- **type** (String, Read-only) (Only applies to the database category) The type of database. One of ["db2" "filemaker" "msaccess" "mssql" "mysql" "oracle" "postgresql" "sqlite" "other"]
- **url** (String, Read-only) The primary URL for the item.
- **username** (String, Read-only) Username for this item.
- `category` (String) The category of the item. One of ["login" "password" "database"]
- `database` (String) (Only applies to the database category) The name of the database.
- `hostname` (String) (Only applies to the database category) The address where the database can be found
- `id` (String) The Terraform resource identifier for this item in the format `vaults/<vault_id>/items/<item_id>`
- `password` (String, Sensitive) Password for this item.
- `port` (String) (Only applies to the database category) The port the database is listening on.
- `section` (List of Object) A list of custom sections in an item (see [below for nested schema](#nestedatt--section))
- `tags` (List of String) An array of strings of the tags assigned to the item.
- `type` (String) (Only applies to the database category) The type of database. One of ["db2" "filemaker" "msaccess" "mssql" "mysql" "oracle" "postgresql" "sqlite" "other"]
- `url` (String) The primary URL for the item.
- `username` (String) Username for this item.

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

- **field** (List of Object) (see [below for nested schema](#nestedobjatt--section--field))
- **id** (String)
- **label** (String)
Read-Only:

- `field` (List of Object) (see [below for nested schema](#nestedobjatt--section--field))
- `id` (String)
- `label` (String)

<a id="nestedobjatt--section--field"></a>
### Nested Schema for `section.field`

- **id** (String)
- **label** (String)
- **purpose** (String)
- **type** (String)
- **value** (String)

Read-Only:

- `id` (String)
- `label` (String)
- `purpose` (String)
- `type` (String)
- `value` (String)
16 changes: 8 additions & 8 deletions docs/data-sources/vault.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "onepassword_vault Data Source - terraform-provider-onepassword"
subcategory: ""
description: |-
Use this data source to get details of a vault by either its name or uuid.
---

# Data Source `onepassword_vault`
# onepassword_vault (Data Source)

Use this data source to get details of a vault by either its name or uuid.



<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- **name** (String, Optional) The name of the vault to retrieve. This field will be populated with the name of the vault if the vault it looked up by its UUID.
- **uuid** (String, Optional) The UUID of the vault to retrieve. This field will be populated with the UUID of the vault if the vault it looked up by its name.

### Read-only

- **description** (String, Read-only) The description of the vault.
- **id** (String, Read-only) The Terraform resource identifier for this item in the format `vaults/<vault_id>`
- `name` (String) The name of the vault to retrieve. This field will be populated with the name of the vault if the vault it looked up by its UUID.
- `uuid` (String) The UUID of the vault to retrieve. This field will be populated with the UUID of the vault if the vault it looked up by its name.

### Read-Only

- `description` (String) The description of the vault.
- `id` (String) The Terraform resource identifier for this item in the format `vaults/<vault_id>`
5 changes: 3 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ provider "onepassword" {
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- **token** (String, Required) A valid token for your 1Password Connect API. Can also be sourced from OP_CONNECT_TOKEN.
- `token` (String) A valid token for your 1Password Connect API. Can also be sourced from OP_CONNECT_TOKEN.

### Optional

- **url** (String, Optional) The HTTP(S) URL where your 1Password Connect API can be found. Must be provided through the OP_CONNECT_HOST environment variable if this attribute is not set.
- `url` (String) The HTTP(S) URL where your 1Password Connect API can be found. Must be provided through the OP_CONNECT_HOST environment variable if this attribute is not set.
72 changes: 37 additions & 35 deletions docs/resources/item.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "onepassword_item Resource - terraform-provider-onepassword"
subcategory: ""
description: |-
A 1Password item.
---

# Resource `onepassword_item`
# onepassword_item (Resource)

A 1Password item.

Expand Down Expand Up @@ -46,82 +47,83 @@ resource "onepassword_item" "demo_db" {
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- **vault** (String, Required) The UUID of the vault the item is in.
- `vault` (String) The UUID of the vault the item is in.

### Optional

- **category** (String, Optional) The category of the item. One of ["login" "password" "database"]
- **database** (String, Optional) (Only applies to the database category) The name of the database.
- **hostname** (String, Optional) (Only applies to the database category) The address where the database can be found
- **password** (String, Optional) Password for this item.
- **password_recipe** (Block List, Max: 1) Password for this item. (see [below for nested schema](#nestedblock--password_recipe))
- **port** (String, Optional) (Only applies to the database category) The port the database is listening on.
- **section** (Block List) A list of custom sections in an item (see [below for nested schema](#nestedblock--section))
- **tags** (List of String, Optional) An array of strings of the tags assigned to the item.
- **title** (String, Optional) The title of the item.
- **type** (String, Optional) (Only applies to the database category) The type of database. One of ["db2" "filemaker" "msaccess" "mssql" "mysql" "oracle" "postgresql" "sqlite" "other"]
- **url** (String, Optional) The primary URL for the item.
- **username** (String, Optional) Username for this item.
- `category` (String) The category of the item. One of ["login" "password" "database"]
- `database` (String) (Only applies to the database category) The name of the database.
- `hostname` (String) (Only applies to the database category) The address where the database can be found
- `password` (String, Sensitive) Password for this item.
- `password_recipe` (Block List, Max: 1) Password for this item. (see [below for nested schema](#nestedblock--password_recipe))
- `port` (String) (Only applies to the database category) The port the database is listening on.
- `section` (Block List) A list of custom sections in an item (see [below for nested schema](#nestedblock--section))
- `tags` (List of String) An array of strings of the tags assigned to the item.
- `title` (String) The title of the item.
- `type` (String) (Only applies to the database category) The type of database. One of ["db2" "filemaker" "msaccess" "mssql" "mysql" "oracle" "postgresql" "sqlite" "other"]
- `url` (String) The primary URL for the item.
- `username` (String) Username for this item.

### Read-only
### Read-Only

- **id** (String, Read-only) The Terraform resource identifier for this item in the format `vaults/<vault_id>/items/<item_id>`.
- **uuid** (String, Read-only) The UUID of the item. Item identifiers are unique within a specific vault.
- `id` (String) The Terraform resource identifier for this item in the format `vaults/<vault_id>/items/<item_id>`.
- `uuid` (String) The UUID of the item. Item identifiers are unique within a specific vault.

<a id="nestedblock--password_recipe"></a>
### Nested Schema for `password_recipe`

Optional:

- **digits** (Boolean, Optional) Use digits [0-9] when generating the password.
- **length** (Number, Optional) The length of the password to be generated.
- **letters** (Boolean, Optional) Use letters [a-zA-Z] when generating the password.
- **symbols** (Boolean, Optional) Use symbols [!@.-_*] when generating the password.
- `digits` (Boolean) Use digits [0-9] when generating the password.
- `length` (Number) The length of the password to be generated.
- `letters` (Boolean) Use letters [a-zA-Z] when generating the password.
- `symbols` (Boolean) Use symbols [!@.-_*] when generating the password.


<a id="nestedblock--section"></a>
### Nested Schema for `section`

Required:

- **label** (String, Required) The label for the section.
- `label` (String) The label for the section.

Optional:

- **field** (Block List) A list of custom fields in the section. (see [below for nested schema](#nestedblock--section--field))
- `field` (Block List) A list of custom fields in the section. (see [below for nested schema](#nestedblock--section--field))

Read-only:
Read-Only:

- **id** (String, Read-only) A unique identifier for the section.
- `id` (String) A unique identifier for the section.

<a id="nestedblock--section--field"></a>
### Nested Schema for `section.field`

Required:

- **label** (String, Required) The label for the field.
- `label` (String) The label for the field.

Optional:

- **id** (String, Optional) A unique identifier for the field.
- **password_recipe** (Block List, Max: 1) Password for this item. (see [below for nested schema](#nestedblock--section--field--password_recipe))
- **purpose** (String, Optional) Purpose indicates this is a special field: a username, password, or notes field. One of ["USERNAME" "PASSWORD" "NOTES"]
- **type** (String, Optional) The type of value stored in the field. One of ["STRING" "EMAIL" "CONCEALED" "URL" "OTP" "DATE" "MONTH_YEAR" "MENU"]
- **value** (String, Optional) The value of the field.
- `id` (String) A unique identifier for the field.
- `password_recipe` (Block List, Max: 1) Password for this item. (see [below for nested schema](#nestedblock--section--field--password_recipe))
- `purpose` (String) Purpose indicates this is a special field: a username, password, or notes field. One of ["USERNAME" "PASSWORD" "NOTES"]
- `type` (String) The type of value stored in the field. One of ["STRING" "EMAIL" "CONCEALED" "URL" "OTP" "DATE" "MONTH_YEAR" "MENU"]
- `value` (String, Sensitive) The value of the field.

<a id="nestedblock--section--field--password_recipe"></a>
### Nested Schema for `section.field.password_recipe`

Optional:

- **digits** (Boolean, Optional) Use digits [0-9] when generating the password.
- **length** (Number, Optional) The length of the password to be generated.
- **letters** (Boolean, Optional) Use letters [a-zA-Z] when generating the password.
- **symbols** (Boolean, Optional) Use symbols [!@.-_*] when generating the password.
- `digits` (Boolean) Use digits [0-9] when generating the password.
- `length` (Number) The length of the password to be generated.
- `letters` (Boolean) Use letters [a-zA-Z] when generating the password.
- `symbols` (Boolean) Use symbols [!@.-_*] when generating the password.

## Import

Expand Down
Loading

0 comments on commit 4a367f7

Please sign in to comment.