Skip to content

Commit c487afc

Browse files
authored
feat: update go-dvls to support public api (#19)
1 parent a11b774 commit c487afc

9 files changed

+202
-191
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ bin/
1111
dist/
1212
modules-dev/
1313
/pkg/
14+
terraform-tests/
1415
website/.vagrant
1516
website/.bundle
1617
website/build

.golangci.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
11
# Visit https://golangci-lint.run/ for usage documentation
22
# and information on other useful linters
3-
issues:
4-
max-per-linter: 0
5-
max-same-issues: 0
3+
version: "2"
64

75
linters:
8-
disable-all: true
6+
default: none
97
enable:
8+
- errcheck
9+
- govet
10+
- ineffassign
11+
- staticcheck
12+
- unused
1013
- durationcheck
1114
- errcheck
12-
- exportloopref
1315
- forcetypeassert
1416
- godot
15-
- gofmt
16-
- gosimple
1717
- ineffassign
1818
- makezero
1919
- misspell
2020
- nilerr
2121
- predeclared
2222
- staticcheck
23-
- tenv
2423
- unconvert
2524
- unparam
2625
- unused
27-
- vet
26+
27+
formatters:
28+
enable:
29+
- gofmt
30+
- goimports
31+
32+
issues:
33+
max-issues-per-linter: 0
34+
max-same-issues: 0

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ make testacc
5454

5555
## Testing the Provider while developing
5656

57-
In order to perform a test of the provider, create a `dev.tfrc` file in the root of the folder with the following content:
57+
In order to perform a test of the provider, create/update the `~/.terraformrc` (`%APPDATA%\terraform.rc` on Windows) file with the following content:
5858

5959
```hcl
6060
provider_installation {
@@ -73,8 +73,6 @@ Then run the following command, assuming you are on macOS or Linux:
7373
```shell
7474
go build -o ~/go/bin/terraform-provider-dvls_v1.0.0
7575
chmod +x ~/go/bin/terraform-provider-dvls_v1.0.0
76-
# Run this command in the root directory of the repository
77-
terraform init
7876
```
7977
You can then create a test.tf or example.tf file with the required content; here is a sample:
8078

@@ -112,10 +110,10 @@ This will be the output:
112110

113111
```shell
114112
│ Warning: Provider development overrides are in effect
115-
113+
116114
│ The following provider development overrides are set in the CLI configuration:
117115
│ - devolutions/dvls in /Users/USERNAME/go/bin
118-
116+
119117
│ The behavior may therefore not match any released version of the provider and applying changes may cause the state to become incompatible
120118
│ with published releases.
121119

docs/resources/vault.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ resource "dvls_vault" "example" {
3333

3434
- `description` (String) Vault description
3535
- `master_password` (String, Sensitive) Vault master password
36-
- `security_level` (String) Vault security level. Must be one of the following: [standard, high]
36+
- `security_level` (String) Vault security level. Must be one of the following: [high, standard]
3737
- `visibility` (String) Vault visibility. Must be one of the following: [default, public, private]
3838

3939
### Read-Only

go.mod

Lines changed: 41 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
module github.com/Devolutions/terraform-provider-dvls
22

3-
go 1.21
3+
go 1.23.0
44

5-
toolchain go1.22.1
5+
toolchain go1.24.3
66

77
require (
8-
github.com/Devolutions/go-dvls v0.10.0
8+
github.com/Devolutions/go-dvls v0.11.0
99
github.com/google/uuid v1.6.0
10-
github.com/hashicorp/terraform-plugin-docs v0.19.2
11-
github.com/hashicorp/terraform-plugin-framework v1.8.0
12-
github.com/hashicorp/terraform-plugin-framework-timetypes v0.4.0
13-
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0
14-
github.com/hashicorp/terraform-plugin-go v0.23.0
15-
github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0
10+
github.com/hashicorp/terraform-plugin-docs v0.21.0
11+
github.com/hashicorp/terraform-plugin-framework v1.14.1
12+
github.com/hashicorp/terraform-plugin-framework-timetypes v0.5.0
13+
github.com/hashicorp/terraform-plugin-framework-validators v0.17.0
14+
github.com/hashicorp/terraform-plugin-go v0.26.0
15+
github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.1
1616
)
1717

1818
require (
@@ -21,43 +21,44 @@ require (
2121
github.com/Masterminds/goutils v1.1.1 // indirect
2222
github.com/Masterminds/semver/v3 v3.2.0 // indirect
2323
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
24-
github.com/ProtonMail/go-crypto v1.1.0-alpha.2 // indirect
25-
github.com/agext/levenshtein v1.2.2 // indirect
24+
github.com/ProtonMail/go-crypto v1.2.0 // indirect
25+
github.com/agext/levenshtein v1.2.3 // indirect
2626
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
2727
github.com/armon/go-radix v1.0.0 // indirect
2828
github.com/bgentry/speakeasy v0.1.0 // indirect
29-
github.com/bmatcuk/doublestar/v4 v4.6.1 // indirect
30-
github.com/cloudflare/circl v1.3.7 // indirect
31-
github.com/fatih/color v1.16.0 // indirect
29+
github.com/bmatcuk/doublestar/v4 v4.8.1 // indirect
30+
github.com/cloudflare/circl v1.6.1 // indirect
31+
github.com/fatih/color v1.18.0 // indirect
3232
github.com/golang/protobuf v1.5.4 // indirect
33-
github.com/google/go-cmp v0.6.0 // indirect
34-
github.com/hashicorp/cli v1.1.6 // indirect
33+
github.com/google/go-cmp v0.7.0 // indirect
34+
github.com/hashicorp/cli v1.1.7 // indirect
3535
github.com/hashicorp/errwrap v1.1.0 // indirect
3636
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
3737
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
38-
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
39-
github.com/hashicorp/go-hclog v1.6.2 // indirect
38+
github.com/hashicorp/go-cty v1.5.0 // indirect
39+
github.com/hashicorp/go-hclog v1.6.3 // indirect
4040
github.com/hashicorp/go-multierror v1.1.1 // indirect
41-
github.com/hashicorp/go-plugin v1.6.0 // indirect
41+
github.com/hashicorp/go-plugin v1.6.3 // indirect
42+
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
4243
github.com/hashicorp/go-uuid v1.0.3 // indirect
43-
github.com/hashicorp/go-version v1.6.0 // indirect
44-
github.com/hashicorp/hc-install v0.6.4 // indirect
45-
github.com/hashicorp/hcl/v2 v2.19.1 // indirect
44+
github.com/hashicorp/go-version v1.7.0 // indirect
45+
github.com/hashicorp/hc-install v0.9.2 // indirect
46+
github.com/hashicorp/hcl/v2 v2.23.0 // indirect
4647
github.com/hashicorp/logutils v1.0.0 // indirect
47-
github.com/hashicorp/terraform-exec v0.20.0 // indirect
48-
github.com/hashicorp/terraform-json v0.21.0 // indirect
48+
github.com/hashicorp/terraform-exec v0.23.0 // indirect
49+
github.com/hashicorp/terraform-json v0.24.0 // indirect
4950
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
50-
github.com/hashicorp/terraform-registry-address v0.2.3 // indirect
51+
github.com/hashicorp/terraform-registry-address v0.2.5 // indirect
5152
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
52-
github.com/hashicorp/yamux v0.1.1 // indirect
53+
github.com/hashicorp/yamux v0.1.2 // indirect
5354
github.com/huandu/xstrings v1.3.3 // indirect
5455
github.com/imdario/mergo v0.3.15 // indirect
55-
github.com/mattn/go-colorable v0.1.13 // indirect
56+
github.com/mattn/go-colorable v0.1.14 // indirect
5657
github.com/mattn/go-isatty v0.0.20 // indirect
5758
github.com/mattn/go-runewidth v0.0.9 // indirect
5859
github.com/mitchellh/copystructure v1.2.0 // indirect
5960
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
60-
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
61+
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
6162
github.com/mitchellh/mapstructure v1.5.0 // indirect
6263
github.com/mitchellh/reflectwalk v1.0.2 // indirect
6364
github.com/oklog/run v1.1.0 // indirect
@@ -67,20 +68,22 @@ require (
6768
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
6869
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
6970
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
70-
github.com/yuin/goldmark v1.7.1 // indirect
71+
github.com/yuin/goldmark v1.7.7 // indirect
7172
github.com/yuin/goldmark-meta v1.1.0 // indirect
72-
github.com/zclconf/go-cty v1.14.4 // indirect
73+
github.com/zclconf/go-cty v1.16.2 // indirect
7374
go.abhg.dev/goldmark/frontmatter v0.2.0 // indirect
74-
golang.org/x/crypto v0.31.0 // indirect
75+
golang.org/x/crypto v0.38.0 // indirect
7576
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect
76-
golang.org/x/mod v0.17.0 // indirect
77-
golang.org/x/net v0.33.0 // indirect
78-
golang.org/x/sys v0.28.0 // indirect
79-
golang.org/x/text v0.21.0 // indirect
77+
golang.org/x/mod v0.24.0 // indirect
78+
golang.org/x/net v0.40.0 // indirect
79+
golang.org/x/sync v0.14.0 // indirect
80+
golang.org/x/sys v0.33.0 // indirect
81+
golang.org/x/text v0.25.0 // indirect
82+
golang.org/x/tools v0.33.0 // indirect
8083
google.golang.org/appengine v1.6.8 // indirect
81-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect
82-
google.golang.org/grpc v1.63.2 // indirect
83-
google.golang.org/protobuf v1.34.0 // indirect
84+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250505200425-f936aa4a68b2 // indirect
85+
google.golang.org/grpc v1.72.0 // indirect
86+
google.golang.org/protobuf v1.36.6 // indirect
8487
gopkg.in/yaml.v2 v2.3.0 // indirect
8588
gopkg.in/yaml.v3 v3.0.1 // indirect
8689
)

0 commit comments

Comments
 (0)