Skip to content

Commit

Permalink
fix: user bool -> string
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Rawlings committed Jun 24, 2023
1 parent 6ebf8b9 commit 64a3561
Show file tree
Hide file tree
Showing 17 changed files with 240 additions and 72 deletions.
2 changes: 0 additions & 2 deletions docs/data-sources/api_keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,3 @@ Read-Only:
- `expired` (Boolean) If the api key is expired.
- `id` (String) The id of the api key.
- `prefix` (String) The api key's prefix.


2 changes: 0 additions & 2 deletions docs/data-sources/device.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,3 @@ data "headscale_device" "first_host" {
- `register_method` (String) The method used to register the device.
- `tags` (List of String) The tags applied to the device.
- `user` (String) The ID of the user who owns the device.


2 changes: 0 additions & 2 deletions docs/data-sources/device_subnet_routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,3 @@ Read-Only:
- `enabled` (Boolean) The status of the route.
- `id` (String) The id of the route.
- `route` (String) The subnet route.


2 changes: 0 additions & 2 deletions docs/data-sources/devices.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,3 @@ Read-Only:
- `register_method` (String) The method used to register the device.
- `tags` (List of String) The tags applied to the device.
- `user` (String) The ID of the user who owns the device.


4 changes: 1 addition & 3 deletions docs/data-sources/pre_auth_keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The pre auth key data source allows you to list all pre auth keys that belong to

### Required

- `user` (Boolean) The user to get pre auth keys for.
- `user` (String) The user to get pre auth keys for.

### Optional

Expand All @@ -43,5 +43,3 @@ Read-Only:
- `reusable` (Boolean) If the key is reusable.
- `used` (Boolean) If the key has been used.
- `user` (String) The user who owns this key.


2 changes: 0 additions & 2 deletions docs/data-sources/subnet_routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,3 @@ Read-Only:
- `route` (String) The subnet route.
- `status` (String) The status of the route.
- `user_id` (String) The ID of the user who owns the device the route belong to.


2 changes: 0 additions & 2 deletions docs/data-sources/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,3 @@ data "headscale_user" "awlsring" {

- `created_at` (String) The time the user was created.
- `id` (String) The user's id.


2 changes: 0 additions & 2 deletions docs/data-sources/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ Read-Only:
- `created_at` (String) The time the user entry was created.
- `id` (String) The user's id.
- `name` (String) The name of the user.


2 changes: 0 additions & 2 deletions docs/resources/api_key.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,3 @@ resource "headscale_api_key" "week" {
- `id` (String) The id of the api key.
- `key` (String, Sensitive) The api key.
- `prefix` (String) The api key's prefix.


2 changes: 0 additions & 2 deletions docs/resources/device_subnet_routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ resource "headscale_device_subnet_routes" "device_1" {
### Read-Only

- `id` (String) The Terrafrom Id of the resource.


2 changes: 0 additions & 2 deletions docs/resources/device_tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ resource "headscale_device_tags" "device_1_tags" {
### Read-Only

- `id` (String) The resolved id of the device.


2 changes: 0 additions & 2 deletions docs/resources/pre_auth_key.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,3 @@ resource "headscale_pre_auth_key" "tags" {
- `id` (String) The id of the pre auth key.
- `key` (String, Sensitive) The pre auth key.
- `used` (Boolean) If the key has been used.


2 changes: 0 additions & 2 deletions docs/resources/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,3 @@ resource "headscale_user" "terraform_user" {

- `created_at` (String) The time the user was created.
- `id` (String) The user's id.


95 changes: 51 additions & 44 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@ module github.com/awlsring/terraform-provider-headscale
go 1.19

require (
github.com/hashicorp/terraform-plugin-docs v0.14.1
github.com/hashicorp/terraform-plugin-framework v1.2.0
github.com/hashicorp/terraform-plugin-docs v0.15.0
github.com/hashicorp/terraform-plugin-framework v1.3.1
)

require (
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/Masterminds/semver/v3 v3.2.1 // indirect
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20230619160724-3fbb1f12458c // indirect
github.com/agext/levenshtein v1.2.2 // indirect
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/cloudflare/circl v1.3.3 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
Expand All @@ -23,77 +25,82 @@ require (
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/hashicorp/hc-install v0.5.0 // indirect
github.com/hashicorp/hc-install v0.5.2 // indirect
github.com/hashicorp/hcl/v2 v2.16.2 // indirect
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform-exec v0.18.1 // indirect
github.com/hashicorp/terraform-json v0.16.0 // indirect
github.com/hashicorp/terraform-json v0.17.0 // indirect
github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1 // indirect
github.com/huandu/xstrings v1.3.2 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/huandu/xstrings v1.4.0 // indirect
github.com/imdario/mergo v0.3.16 // indirect
github.com/mitchellh/cli v1.1.5 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // 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/spf13/cast v1.5.0 // indirect
github.com/spf13/cast v1.5.1 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/zclconf/go-cty v1.13.1 // indirect
golang.org/x/crypto v0.7.0 // indirect
golang.org/x/mod v0.8.0 // indirect
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/zclconf/go-cty v1.13.2 // indirect
go.opentelemetry.io/otel/metric v1.16.0 // indirect
golang.org/x/crypto v0.10.0 // indirect
golang.org/x/mod v0.11.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

require (
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/purell v1.2.0 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/go-logr/logr v1.2.3 // indirect
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/fatih/color v1.15.0 // indirect
github.com/go-logr/logr v1.2.4 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-openapi/analysis v0.21.2 // indirect
github.com/go-openapi/errors v0.20.3
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.19.6 // indirect
github.com/go-openapi/loads v0.21.1 // indirect
github.com/go-openapi/runtime v0.25.0
github.com/go-openapi/spec v0.20.4 // indirect
github.com/go-openapi/strfmt v0.21.2
github.com/go-openapi/swag v0.21.1
github.com/go-openapi/validate v0.21.0
github.com/go-openapi/analysis v0.21.4 // indirect
github.com/go-openapi/errors v0.20.4
github.com/go-openapi/jsonpointer v0.19.6 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/loads v0.21.2 // indirect
github.com/go-openapi/runtime v0.26.0
github.com/go-openapi/spec v0.20.9 // indirect
github.com/go-openapi/strfmt v0.21.7
github.com/go-openapi/swag v0.22.4
github.com/go-openapi/validate v0.22.1
github.com/go-stack/stack v1.8.1 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/hashicorp/go-hclog v1.5.0 // indirect
github.com/hashicorp/go-plugin v1.4.8 // indirect
github.com/hashicorp/go-plugin v1.4.10 // indirect
github.com/hashicorp/go-uuid v1.0.3
github.com/hashicorp/terraform-plugin-framework-validators v0.10.0
github.com/hashicorp/terraform-plugin-go v0.14.3
github.com/hashicorp/terraform-plugin-log v0.8.0
github.com/hashicorp/terraform-plugin-go v0.16.0
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/hashicorp/terraform-plugin-testing v1.2.0
github.com/hashicorp/terraform-registry-address v0.1.0 // indirect
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
github.com/hashicorp/terraform-registry-address v0.2.1 // indirect
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
github.com/hashicorp/yamux v0.1.1 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/oklog/run v1.0.0 // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/oklog/ulid v1.3.1 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect
github.com/vmihailenco/tagparser v0.1.2 // indirect
go.mongodb.org/mongo-driver v1.8.3 // indirect
go.opentelemetry.io/otel v1.11.1 // indirect
go.opentelemetry.io/otel/trace v1.11.1 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/text v0.8.0 // indirect
go.mongodb.org/mongo-driver v1.12.0 // indirect
go.opentelemetry.io/otel v1.16.0 // indirect
go.opentelemetry.io/otel/trace v1.16.0 // indirect
golang.org/x/net v0.11.0 // indirect
golang.org/x/sys v0.9.0 // indirect
golang.org/x/text v0.10.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20200711021454-869866162049 // indirect
google.golang.org/grpc v1.51.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
google.golang.org/genproto v0.0.0-20230525234025-438c736192d0 // indirect
google.golang.org/grpc v1.56.1 // indirect
google.golang.org/protobuf v1.30.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
Loading

0 comments on commit 64a3561

Please sign in to comment.