Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit 4dd021c

Browse files
authored
Merge pull request #3 from OpenVPN/support-user-create-roles
Actualize imports, role for users and descriptions for route
2 parents 77ecc68 + 69f520f commit 4dd021c

19 files changed

+87
-92
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
HOSTNAME=patoarvizu.dev
1+
HOSTNAME=openvpncloud.dev
22
NAMESPACE=openvpn
33
NAME=openvpncloud
4-
VERSION=0.0.4
4+
VERSION=0.0.6
55
BINARY=terraform-provider-${NAME}
66
OS_ARCH=darwin_amd64
77

client/route.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ type Route struct {
1414
Domain string `json:"domain"`
1515
Value string `json:"value"`
1616
NetworkItemId string `json:"networkItemId"`
17+
Description string `json:"description"`
1718
}
1819

1920
const (

go.mod

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,41 @@
1-
module github.com/patoarvizu/terraform-provider-openvpn-cloud
1+
module github.com/OpenVPN/terraform-provider-openvpn-cloud
22

3-
go 1.16
3+
go 1.19
4+
5+
require github.com/hashicorp/terraform-plugin-sdk/v2 v2.8.0
46

57
require (
6-
github.com/hashicorp/terraform-plugin-sdk v1.17.2
7-
github.com/hashicorp/terraform-plugin-sdk/v2 v2.8.0
8+
github.com/agext/levenshtein v1.2.2 // indirect
9+
github.com/apparentlymart/go-textseg/v12 v12.0.0 // indirect
10+
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
11+
github.com/fatih/color v1.7.0 // indirect
12+
github.com/golang/protobuf v1.4.2 // indirect
13+
github.com/hashicorp/errwrap v1.0.0 // indirect
14+
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
15+
github.com/hashicorp/go-hclog v0.15.0 // indirect
16+
github.com/hashicorp/go-multierror v1.0.0 // indirect
17+
github.com/hashicorp/go-plugin v1.4.1 // indirect
18+
github.com/hashicorp/go-uuid v1.0.1 // indirect
19+
github.com/hashicorp/go-version v1.3.0 // indirect
20+
github.com/hashicorp/hcl/v2 v2.8.2 // indirect
21+
github.com/hashicorp/terraform-plugin-go v0.4.0 // indirect
22+
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
23+
github.com/mattn/go-colorable v0.1.4 // indirect
24+
github.com/mattn/go-isatty v0.0.10 // indirect
25+
github.com/mitchellh/copystructure v1.2.0 // indirect
26+
github.com/mitchellh/go-testing-interface v1.0.4 // indirect
27+
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
28+
github.com/mitchellh/mapstructure v1.1.2 // indirect
29+
github.com/mitchellh/reflectwalk v1.0.2 // indirect
30+
github.com/oklog/run v1.0.0 // indirect
31+
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
32+
github.com/zclconf/go-cty v1.8.4 // indirect
33+
golang.org/x/net v0.0.0-20210326060303-6b1517762897 // indirect
34+
golang.org/x/sys v0.0.0-20210502180810-71e4cd670f79 // indirect
35+
golang.org/x/text v0.3.5 // indirect
36+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
37+
google.golang.org/appengine v1.6.6 // indirect
38+
google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d // indirect
39+
google.golang.org/grpc v1.32.0 // indirect
40+
google.golang.org/protobuf v1.25.0 // indirect
841
)

go.sum

Lines changed: 14 additions & 69 deletions
Large diffs are not rendered by default.

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"github.com/patoarvizu/terraform-provider-openvpn-cloud/openvpncloud"
4+
"github.com/OpenVPN/terraform-provider-openvpn-cloud/openvpncloud"
55

66
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
77
"github.com/hashicorp/terraform-plugin-sdk/v2/plugin"

openvpncloud/data_source_connector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"strconv"
66
"time"
77

8+
"github.com/OpenVPN/terraform-provider-openvpn-cloud/client"
89
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
910
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
10-
"github.com/patoarvizu/terraform-provider-openvpn-cloud/client"
1111
)
1212

1313
func dataSourceConnector() *schema.Resource {

openvpncloud/data_source_host.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"strconv"
66
"time"
77

8+
"github.com/OpenVPN/terraform-provider-openvpn-cloud/client"
89
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
910
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
10-
"github.com/patoarvizu/terraform-provider-openvpn-cloud/client"
1111
)
1212

1313
func dataSourceHost() *schema.Resource {

openvpncloud/data_source_network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"strconv"
66
"time"
77

8+
"github.com/OpenVPN/terraform-provider-openvpn-cloud/client"
89
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
910
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
10-
"github.com/patoarvizu/terraform-provider-openvpn-cloud/client"
1111
)
1212

1313
func dataSourceNetwork() *schema.Resource {

openvpncloud/data_source_network_routes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"strconv"
66
"time"
77

8+
"github.com/OpenVPN/terraform-provider-openvpn-cloud/client"
89
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
910
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
10-
"github.com/patoarvizu/terraform-provider-openvpn-cloud/client"
1111
)
1212

1313
func dataSourceNetworkRoutes() *schema.Resource {

openvpncloud/data_source_user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"strconv"
66
"time"
77

8+
"github.com/OpenVPN/terraform-provider-openvpn-cloud/client"
89
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
910
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
10-
"github.com/patoarvizu/terraform-provider-openvpn-cloud/client"
1111
)
1212

1313
func dataSourceUser() *schema.Resource {

0 commit comments

Comments
 (0)