Skip to content

Commit 80dbdb9

Browse files
committed
chore: initial terraform-provider-pwpush
1 parent f5b47ed commit 80dbdb9

File tree

16 files changed

+222
-18
lines changed

16 files changed

+222
-18
lines changed

e2e-tests/push-qr/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!-- BEGIN_TF_DOCS -->
2+
3+
4+
## Providers
5+
6+
| Name | Version |
7+
|------|---------|
8+
| <a name="provider_pwpush"></a> [pwpush](#provider\_pwpush) | n/a |
9+
10+
## Resources
11+
12+
| Name | Type |
13+
|------|------|
14+
| [pwpush_push.example](https://registry.terraform.io/providers/grulicht/pwpush/latest/docs/resources/push) | resource |
15+
16+
## Inputs
17+
18+
| Name | Description | Type | Default | Required |
19+
|------|-------------|------|---------|:--------:|
20+
| <a name="input_qr_note"></a> [qr\_note](#input\_qr\_note) | Optional note for the QR push | `string` | `"QR-based push example"` | no |
21+
| <a name="input_qr_payload"></a> [qr\_payload](#input\_qr\_payload) | The content to be encoded in the QR push | `string` | n/a | yes |
22+
23+
## Outputs
24+
25+
| Name | Description |
26+
|------|-------------|
27+
| <a name="output_push_url"></a> [push\_url](#output\_push\_url) | n/a |
28+
<!-- END_TF_DOCS -->

e2e-tests/push-qr/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
terraform {
22
required_providers {
33
pwpush = {
4-
source = "grulicht/pwpush"
4+
source = "grulicht/pwpush"
55
}
66
}
77
}
88

99
provider "pwpush" {
10-
endpoint = "http://localhost:5100"
10+
endpoint = "http://localhost:5100"
1111
# email = "your-e-mail@some-domain.com"
1212
# token = "your-token"
1313
# skip_ssl_verify = "true"

e2e-tests/push-secret/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!-- BEGIN_TF_DOCS -->
2+
3+
4+
## Providers
5+
6+
| Name | Version |
7+
|------|---------|
8+
| <a name="provider_pwpush"></a> [pwpush](#provider\_pwpush) | n/a |
9+
10+
## Resources
11+
12+
| Name | Type |
13+
|------|------|
14+
| [pwpush_push.example](https://registry.terraform.io/providers/grulicht/pwpush/latest/docs/resources/push) | resource |
15+
16+
## Inputs
17+
18+
| Name | Description | Type | Default | Required |
19+
|------|-------------|------|---------|:--------:|
20+
| <a name="input_expire_after_days"></a> [expire\_after\_days](#input\_expire\_after\_days) | Number of days after which the push expires | `number` | `2` | no |
21+
| <a name="input_expire_after_views"></a> [expire\_after\_views](#input\_expire\_after\_views) | Number of views after which the push expires | `number` | `3` | no |
22+
| <a name="input_note"></a> [note](#input\_note) | Optional note associated with the push | `string` | `""` | no |
23+
| <a name="input_payload"></a> [payload](#input\_payload) | The secret payload to be pushed | `string` | n/a | yes |
24+
25+
## Outputs
26+
27+
| Name | Description |
28+
|------|-------------|
29+
| <a name="output_push_url"></a> [push\_url](#output\_push\_url) | n/a |
30+
<!-- END_TF_DOCS -->

e2e-tests/push-secret/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
terraform {
22
required_providers {
33
pwpush = {
4-
source = "grulicht/pwpush"
4+
source = "grulicht/pwpush"
55
}
66
}
77
}
88

99
provider "pwpush" {
10-
endpoint = "http://localhost:5100"
10+
endpoint = "http://localhost:5100"
1111
# email = "your-e-mail@some-domain.com"
1212
# token = "your-token"
1313
# skip_ssl_verify = "true"

e2e-tests/push-url/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!-- BEGIN_TF_DOCS -->
2+
3+
4+
## Providers
5+
6+
| Name | Version |
7+
|------|---------|
8+
| <a name="provider_pwpush"></a> [pwpush](#provider\_pwpush) | n/a |
9+
10+
## Resources
11+
12+
| Name | Type |
13+
|------|------|
14+
| [pwpush_push.example](https://registry.terraform.io/providers/grulicht/pwpush/latest/docs/resources/push) | resource |
15+
16+
## Inputs
17+
18+
| Name | Description | Type | Default | Required |
19+
|------|-------------|------|---------|:--------:|
20+
| <a name="input_url_note"></a> [url\_note](#input\_url\_note) | Optional note for the URL push | `string` | `"URL-based push example"` | no |
21+
| <a name="input_url_payload"></a> [url\_payload](#input\_url\_payload) | The URL to be pushed | `string` | n/a | yes |
22+
23+
## Outputs
24+
25+
| Name | Description |
26+
|------|-------------|
27+
| <a name="output_push_url"></a> [push\_url](#output\_push\_url) | n/a |
28+
<!-- END_TF_DOCS -->

e2e-tests/push-url/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
terraform {
22
required_providers {
33
pwpush = {
4-
source = "grulicht/pwpush"
4+
source = "grulicht/pwpush"
55
}
66
}
77
}
88

99
provider "pwpush" {
10-
endpoint = "http://localhost:5100"
10+
endpoint = "http://localhost:5100"
1111
# email = "your-e-mail@some-domain.com"
1212
# token = "your-token"
1313
# skip_ssl_verify = "true"

examples/push-file/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!-- BEGIN_TF_DOCS -->
2+
3+
4+
## Providers
5+
6+
| Name | Version |
7+
|------|---------|
8+
| <a name="provider_pwpush"></a> [pwpush](#provider\_pwpush) | n/a |
9+
10+
## Resources
11+
12+
| Name | Type |
13+
|------|------|
14+
| [pwpush_push.example](https://registry.terraform.io/providers/grulicht/pwpush/latest/docs/resources/push) | resource |
15+
16+
## Inputs
17+
18+
| Name | Description | Type | Default | Required |
19+
|------|-------------|------|---------|:--------:|
20+
| <a name="input_file_expire_after_days"></a> [file\_expire\_after\_days](#input\_file\_expire\_after\_days) | Days until expiration | `number` | `3` | no |
21+
| <a name="input_file_expire_after_views"></a> [file\_expire\_after\_views](#input\_file\_expire\_after\_views) | Views until expiration | `number` | `2` | no |
22+
| <a name="input_file_note"></a> [file\_note](#input\_file\_note) | Optional note for the file push | `string` | `"File-based push example"` | no |
23+
| <a name="input_file_passphrase"></a> [file\_passphrase](#input\_file\_passphrase) | Optional passphrase required to retrieve the push | `string` | `""` | no |
24+
| <a name="input_file_paths"></a> [file\_paths](#input\_file\_paths) | List of file paths to attach | `list(string)` | n/a | yes |
25+
| <a name="input_file_payload"></a> [file\_payload](#input\_file\_payload) | The payload string for the file-based push | `string` | n/a | yes |
26+
27+
## Outputs
28+
29+
| Name | Description |
30+
|------|-------------|
31+
| <a name="output_push_url"></a> [push\_url](#output\_push\_url) | n/a |
32+
<!-- END_TF_DOCS -->

examples/push-file/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
22
required_providers {
33
pwpush = {
4-
source = "grulicht/pwpush"
4+
source = "grulicht/pwpush"
55
}
66
}
77
}

examples/push-qr/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!-- BEGIN_TF_DOCS -->
2+
3+
4+
## Providers
5+
6+
| Name | Version |
7+
|------|---------|
8+
| <a name="provider_pwpush"></a> [pwpush](#provider\_pwpush) | n/a |
9+
10+
## Resources
11+
12+
| Name | Type |
13+
|------|------|
14+
| [pwpush_push.example](https://registry.terraform.io/providers/grulicht/pwpush/latest/docs/resources/push) | resource |
15+
16+
## Inputs
17+
18+
| Name | Description | Type | Default | Required |
19+
|------|-------------|------|---------|:--------:|
20+
| <a name="input_qr_note"></a> [qr\_note](#input\_qr\_note) | Optional note for the QR push | `string` | `"QR-based push example"` | no |
21+
| <a name="input_qr_payload"></a> [qr\_payload](#input\_qr\_payload) | The content to be encoded in the QR push | `string` | n/a | yes |
22+
23+
## Outputs
24+
25+
| Name | Description |
26+
|------|-------------|
27+
| <a name="output_push_url"></a> [push\_url](#output\_push\_url) | n/a |
28+
<!-- END_TF_DOCS -->

examples/push-qr/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
22
required_providers {
33
pwpush = {
4-
source = "grulicht/pwpush"
4+
source = "grulicht/pwpush"
55
}
66
}
77
}

0 commit comments

Comments
 (0)