Skip to content

Commit d3827c3

Browse files
author
uros.simovic
committed
init commit
1 parent 75eb179 commit d3827c3

26 files changed

+385
-1117
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
.DS_Store
22
vendor
33

4-
terraform-provider-hashicups
4+
terraform-provider-kiwi
55
bin
66

7+
.idea
8+
79
# Local .terraform directories
810
**/.terraform/*
911

docs/data-sources/coffees.md

-48
This file was deleted.

docs/index.md

+4-19
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,16 @@
11
---
22
# generated by https://github.com/hashicorp/terraform-plugin-docs
3-
page_title: "hashicups Provider"
3+
page_title: "kiwi Provider"
44
subcategory: ""
55
description: |-
6-
Interact with HashiCups.
6+
Terraform helpers.
77
---
88

9-
# hashicups Provider
9+
# kiwi Provider
1010

11-
Interact with HashiCups.
11+
Terraform helpers.
1212

13-
## Example Usage
1413

15-
```terraform
16-
# Configuration-based authentication
17-
provider "hashicups" {
18-
username = "education"
19-
password = "test123"
20-
host = "http://localhost:19090"
21-
}
22-
```
2314

2415
<!-- schema generated by tfplugindocs -->
2516
## Schema
26-
27-
### Optional
28-
29-
- `host` (String) URI for HashiCups API. May also be provided via HASHICUPS_HOST environment variable.
30-
- `password` (String, Sensitive) Password for HashiCups API. May also be provided via HASHICUPS_PASSWORD environment variable.
31-
- `username` (String) Username for HashiCups API. May also be provided via HASHICUPS_USERNAME environment variable.

docs/resources/claim_from_pool.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "kiwi_claim_from_pool Resource - kiwi"
4+
subcategory: ""
5+
description: |-
6+
Manages an order.
7+
---
8+
9+
# kiwi_claim_from_pool (Resource)
10+
11+
Manages an order.
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `claimers` (Set of String) List of claimers. Duplicate are removed.
21+
- `pool` (Set of String) Set of items in the pool claimers will claim. Duplicates are removed.
22+
23+
### Optional
24+
25+
- `output` (Map of String) Map of claimed items from the pool (claimer => pool item)
26+
27+
### Read-Only
28+
29+
- `id` (String) Random id.
30+
31+

docs/resources/order.md

-71
This file was deleted.

examples/coffees/main.tf

-19
This file was deleted.

examples/data-sources/hashicups_coffees/data-source.tf

-2
This file was deleted.

examples/main.tf

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
terraform {
2+
required_providers {
3+
kiwi = {
4+
source = "kiwicom/kiwi"
5+
}
6+
}
7+
}
8+
9+
resource "kiwi_claim_from_pool" "server_addresses" {
10+
pool = [
11+
"10.0.0.1",
12+
"10.0.0.2",
13+
"10.0.0.3",
14+
"10.0.0.4",
15+
"10.0.0.5",
16+
"10.0.0.6",
17+
]
18+
claimers = [
19+
"server1",
20+
"server2",
21+
"server3",
22+
"server4",
23+
]
24+
}
25+
26+
output "server_addresses" {
27+
value = kiwi_claim_from_pool.output
28+
}

examples/order/main.tf

-35
This file was deleted.

examples/provider-install-verification/main.tf

-11
This file was deleted.

examples/provider/provider.tf

-6
This file was deleted.

examples/resources/hashicups_order/import.sh

-2
This file was deleted.

examples/resources/hashicups_order/resource.tf

-11
This file was deleted.

examples/terraform-provider-hashicups

18 MB
Binary file not shown.

go.mod

+4-16
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,34 @@
1-
module terraform-provider-hashicups-pf
1+
module terraform-provider-kiwi
22

33
go 1.18
44

55
require (
6-
github.com/hashicorp-demoapp/hashicups-client-go v0.0.0-20210721190446-1df90c457bd4
76
github.com/hashicorp/terraform-plugin-docs v0.13.0
8-
github.com/hashicorp/terraform-plugin-framework v1.0.0
9-
github.com/hashicorp/terraform-plugin-go v0.14.2
7+
github.com/hashicorp/terraform-plugin-framework v1.1.1
108
github.com/hashicorp/terraform-plugin-log v0.7.0
11-
github.com/hashicorp/terraform-plugin-sdk/v2 v2.23.0
129
)
1310

1411
require (
1512
github.com/Masterminds/goutils v1.1.1 // indirect
1613
github.com/Masterminds/semver/v3 v3.1.1 // indirect
1714
github.com/Masterminds/sprig/v3 v3.2.2 // indirect
18-
github.com/agext/levenshtein v1.2.2 // indirect
19-
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
2015
github.com/armon/go-radix v1.0.0 // indirect
2116
github.com/bgentry/speakeasy v0.1.0 // indirect
22-
github.com/davecgh/go-spew v1.1.1 // indirect
2317
github.com/fatih/color v1.13.0 // indirect
2418
github.com/golang/protobuf v1.5.2 // indirect
25-
github.com/google/go-cmp v0.5.9 // indirect
2619
github.com/google/uuid v1.3.0 // indirect
2720
github.com/hashicorp/errwrap v1.1.0 // indirect
2821
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
2922
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
30-
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
3123
github.com/hashicorp/go-hclog v1.2.1 // indirect
3224
github.com/hashicorp/go-multierror v1.1.1 // indirect
33-
github.com/hashicorp/go-plugin v1.4.6 // indirect
25+
github.com/hashicorp/go-plugin v1.4.8 // indirect
3426
github.com/hashicorp/go-uuid v1.0.3 // indirect
3527
github.com/hashicorp/go-version v1.6.0 // indirect
3628
github.com/hashicorp/hc-install v0.4.0 // indirect
37-
github.com/hashicorp/hcl/v2 v2.14.0 // indirect
38-
github.com/hashicorp/logutils v1.0.0 // indirect
3929
github.com/hashicorp/terraform-exec v0.17.3 // indirect
4030
github.com/hashicorp/terraform-json v0.14.0 // indirect
31+
github.com/hashicorp/terraform-plugin-go v0.14.3 // indirect
4132
github.com/hashicorp/terraform-registry-address v0.1.0 // indirect
4233
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
4334
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
@@ -48,15 +39,12 @@ require (
4839
github.com/mitchellh/cli v1.1.4 // indirect
4940
github.com/mitchellh/copystructure v1.2.0 // indirect
5041
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
51-
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
52-
github.com/mitchellh/mapstructure v1.5.0 // indirect
5342
github.com/mitchellh/reflectwalk v1.0.2 // indirect
5443
github.com/oklog/run v1.0.0 // indirect
5544
github.com/posener/complete v1.2.3 // indirect
5645
github.com/russross/blackfriday v1.6.0 // indirect
5746
github.com/shopspring/decimal v1.3.1 // indirect
5847
github.com/spf13/cast v1.5.0 // indirect
59-
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
6048
github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect
6149
github.com/vmihailenco/tagparser v0.1.1 // indirect
6250
github.com/zclconf/go-cty v1.11.0 // indirect

0 commit comments

Comments
 (0)