-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: implemented value_is_known and value_is_fully_known
- Loading branch information
Showing
78 changed files
with
1,514 additions
and
1,581 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "value_temp_dir Data Source - terraform-provider-value" | ||
subcategory: "" | ||
description: |- | ||
Simply returns the OS-dependent temporary directory (e.g. /tmp). | ||
--- | ||
|
||
# value_temp_dir (Data Source) | ||
|
||
Simply returns the OS-dependent temporary directory (e.g. /tmp). | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Read-Only | ||
|
||
- `path` (String) The OS-dependent temporary directory. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "value_unknown_proposer Resource - terraform-provider-value" | ||
subcategory: "" | ||
description: |- | ||
This resource is very obscure and misbehaving and you really should only use it for value_is_known.proposed_unknown or value_is_fully_known.proposed_unknown. | ||
--- | ||
|
||
# value_unknown_proposer (Resource) | ||
|
||
This resource is very obscure and misbehaving and you really should only use it for `value_is_known.proposed_unknown` or `value_is_fully_known.proposed_unknown`. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Read-Only | ||
|
||
- `value` (Boolean) This value will **always** be unknown during the plan phase but always true after apply phase. | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
terraform { | ||
required_providers { | ||
value = { | ||
source = "github.com/pseudo-dynamic/value" | ||
version = "0.1.0" | ||
} | ||
} | ||
|
||
provider_meta "value" { | ||
// {workdir} -> a placeholder (see docs) | ||
seed_prefix = "{workdir}" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// An "(known after apply)" value producer | ||
resource "value_unknown_proposer" "default" {} | ||
|
||
resource "value_promise" "default" { | ||
value = "test" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// This example is incomplete. Please take a look at provider_meta.tf and shared.tf too! | ||
|
||
resource "value_is_fully_known" "known" { | ||
value = "test" | ||
unique_seed = "known" | ||
proposed_unknown = value_unknown_proposer.default.value | ||
} | ||
|
||
output "is_known_value" { | ||
value = { | ||
is_fully_known = value_is_fully_known.known.result | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// This example is incomplete. Please take a look at provider_meta.tf and shared.tf too! | ||
|
||
resource "value_is_fully_known" "known_with_nested_unknown" { | ||
value = { | ||
nested = value_promise.default.result | ||
} | ||
|
||
unique_seed = "nested_known" | ||
proposed_unknown = value_unknown_proposer.default.value | ||
} | ||
|
||
output "is_known_with_nested_unknown_value" { | ||
value = { | ||
fully_known = value_is_fully_known.known_with_nested_unknown.result | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// This example is incomplete. Please take a look at provider_meta.tf and shared.tf too! | ||
|
||
resource "value_is_fully_known" "unknown" { | ||
value = value_promise.default.result | ||
unique_seed = "unknown" | ||
proposed_unknown = value_unknown_proposer.default.value | ||
} | ||
|
||
output "is_unknown_value" { | ||
value = { | ||
is_fully_known = value_is_fully_known.unknown.result | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
terraform { | ||
required_providers { | ||
value = { | ||
source = "github.com/pseudo-dynamic/value" | ||
version = "0.1.0" | ||
} | ||
} | ||
|
||
provider_meta "value" { | ||
// {workdir} -> a placeholder (see docs) | ||
seed_prefix = "{workdir}" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// An "(known after apply)" value producer | ||
resource "value_unknown_proposer" "default" {} | ||
|
||
resource "value_promise" "default" { | ||
value = "test" | ||
} |
Oops, something went wrong.