-
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.
- Loading branch information
1 parent
7ff557a
commit f7dbce3
Showing
13 changed files
with
245 additions
and
12 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
### 2.0.0 (Next) | ||
### 2.0.0 | ||
- Implement `string` and `number` type custom functions. | ||
|
||
### 1.6.0 | ||
|
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,37 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "cut function - stdlib" | ||
subcategory: "" | ||
description: |- | ||
Cut a string in two | ||
--- | ||
|
||
# function: cut | ||
|
||
Returns the strings before and after the first instance of the separator in the input string. Also returns whether or not the separator was found in the input string. The return is a tuple: `before`, `after`, `found`. If the separator is not found in the input string, then `found` will be false, `before` will be equal to `param`, and `after` will be an empty string. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
# Return the separated strings: | ||
provider::stdlib::cut("foobarbaz", "bar") | ||
# result: ("foo", "bar", true) | ||
# Return the separated strings with absent separator: | ||
provider::stdlib::cut("foobarbaz", "pizza") | ||
# result: ("foobarbaz", "", false) | ||
``` | ||
|
||
## Signature | ||
|
||
<!-- signature generated by tfplugindocs --> | ||
```text | ||
cut(string string, separator string) dynamic | ||
``` | ||
|
||
## Arguments | ||
|
||
<!-- arguments generated by tfplugindocs --> | ||
1. `string` (String) Input string parameter for cutting around a separator. | ||
1. `separator` (String) The separator for cutting the input string. | ||
|
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,36 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "exp function - stdlib" | ||
subcategory: "" | ||
description: |- | ||
Determine exponential of a number | ||
--- | ||
|
||
# function: exp | ||
|
||
Return the base-e exponential of an input number parameter. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
# Return the base e exponential of 0: | ||
provider::stdlib::exp(0) | ||
# result: 1 | ||
# Return the base e exponential of 1.0986122: | ||
provider::stdlib::exp(1.0986122) | ||
# result: 2.9999997339956828 | ||
``` | ||
|
||
## Signature | ||
|
||
<!-- signature generated by tfplugindocs --> | ||
```text | ||
exp(number number) number | ||
``` | ||
|
||
## Arguments | ||
|
||
<!-- arguments generated by tfplugindocs --> | ||
1. `number` (Number) Input number parameter for determining the base-e exponential. | ||
|
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,37 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "last_char function - stdlib" | ||
subcategory: "" | ||
description: |- | ||
Determine last character(s) of a string | ||
--- | ||
|
||
# function: last_char | ||
|
||
Return the last character(s) of an input string parameter. Only the terminating character is returned by default unless a value for `num_chars` is defined. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
# Return the last character of a string: | ||
provider::stdlib::last_char("hello") | ||
# result: "o" | ||
# Return the last three characters of a string: | ||
provider::stdlib::last_char("hello", 3) | ||
# result: "llo" | ||
``` | ||
|
||
## Signature | ||
|
||
<!-- signature generated by tfplugindocs --> | ||
```text | ||
last_char(string string, number_of_characters number...) string | ||
``` | ||
|
||
## Arguments | ||
|
||
<!-- arguments generated by tfplugindocs --> | ||
1. `string` (String) Input string parameter for determining the last character. | ||
<!-- variadic argument generated by tfplugindocs --> | ||
1. `number_of_characters` (Variadic, Number) Optional: The number of terminating characters at the end of the string to return (default: 1). This must be fewer than the number of characters in the input string. |
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,41 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "mod function - stdlib" | ||
subcategory: "" | ||
description: |- | ||
Determine modulus of a number | ||
--- | ||
|
||
# function: mod | ||
|
||
Return the remainder of the dividend number divided by the divisor number. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
# Return the remainder of 4 / 2: | ||
provider::stdlib::mod(4, 2) | ||
# result: 0 | ||
# Return the remainder of 5 / 3: | ||
provider::stdlib::mod(5, 3) | ||
# result: 2 | ||
# Return the remainder of 10 / 4.75: | ||
provider::stdlib::mod(10, 4.75) | ||
# result: 0.5 | ||
``` | ||
|
||
## Signature | ||
|
||
<!-- signature generated by tfplugindocs --> | ||
```text | ||
mod(dividend number, divisor number) number | ||
``` | ||
|
||
## Arguments | ||
|
||
<!-- arguments generated by tfplugindocs --> | ||
1. `dividend` (Number) The dividend number from which to divide. | ||
1. `divisor` (Number) The divisor number by which to divide. | ||
|
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,40 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "round function - stdlib" | ||
subcategory: "" | ||
description: |- | ||
Determine rounding of a number | ||
--- | ||
|
||
# function: round | ||
|
||
Return the nearest integer of an input parameter; rounding half away from zero. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
# Return the rounding of of 1.2: | ||
provider::stdlib::round(1.2) | ||
# result: 1 | ||
# Return the rounding of of 1.8: | ||
provider::stdlib::round(1.8) | ||
# result: 2 | ||
# Return the rounding of of 1.5: | ||
provider::stdlib::round(1.5) | ||
# result: 2 | ||
``` | ||
|
||
## Signature | ||
|
||
<!-- signature generated by tfplugindocs --> | ||
```text | ||
round(number number) number | ||
``` | ||
|
||
## Arguments | ||
|
||
<!-- arguments generated by tfplugindocs --> | ||
1. `number` (Number) Input number parameter for determining the rounding. | ||
|
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,40 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "sqrt function - stdlib" | ||
subcategory: "" | ||
description: |- | ||
Determine square root of a number | ||
--- | ||
|
||
# function: sqrt | ||
|
||
Return the square root of an input parameter. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
# Return the square root of 4: | ||
provider::stdlib::exp(4) | ||
# result: 2 | ||
# Return the square root of 0: | ||
provider::stdlib::exp(0) | ||
# result: 0 | ||
# Return the square root of 2: | ||
provider::stdlib::exp(2) | ||
# result: 1.4142135623730951 | ||
``` | ||
|
||
## Signature | ||
|
||
<!-- signature generated by tfplugindocs --> | ||
```text | ||
sqrt(number number) number | ||
``` | ||
|
||
## Arguments | ||
|
||
<!-- arguments generated by tfplugindocs --> | ||
1. `number` (Number) Input number parameter for determining the square root. This number cannot be negative, infinite (positive or negative), or NaN. | ||
|
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