mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-09 00:32:09 -04:00
Apply suggestions from code review
Co-authored-by: rita <8647768+ritsok@users.noreply.github.com>
This commit is contained in:
parent
8e6c32ce19
commit
06af5e646d
14 changed files with 15 additions and 18 deletions
|
|
@ -1,8 +1,7 @@
|
|||
---
|
||||
page_title: can function reference
|
||||
description: |-
|
||||
The `can` function evaluates an expression as an argument and
|
||||
indicates whether the evaluation succeeded. Learn how to us the `can` function in Packer templates.
|
||||
The `can` function evaluates an expression and indicates whether it succeeds.
|
||||
---
|
||||
|
||||
# `can` Function
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
page_title: convert function reference
|
||||
description: The `convert` function converts a value or an expression to a given type. Learn how to use the `convert` function in Packer templates.
|
||||
description: The `convert` function converts a value or an expression to a given type.
|
||||
---
|
||||
|
||||
# `convert` Function
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
page_title: try function reference
|
||||
description: |-
|
||||
The `try` function evaluate a sequence of expressions and returns the result of the first expression that does not produce any errors. Learn how to use the `try` function in Packer templates.
|
||||
The `try` function evaluates a sequence of expressions and returns the result of the first expression that does not produce any errors.
|
||||
---
|
||||
|
||||
# `try` Function
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
page_title: base64encode function reference
|
||||
description: The `base64encode` function applies base64 encoding to a string. Learn how to use the `base64encode` function in Packer templates.
|
||||
description: The `base64encode` function encodes a string in base64 format.
|
||||
---
|
||||
|
||||
# `base64encode` Function
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
page_title: base64gzip function reference
|
||||
description: The `base64gzip` function compresses the given string using gzip and then encodes the result in base64. Learn how to use the `base64gzip` in Packer templates.
|
||||
description: The `base64gzip` function compresses the given string using gzip and then encodes the result in base64.
|
||||
---
|
||||
|
||||
# `base64gzip` Function
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
page_title: csvdecode function reference
|
||||
description: The `csvdecode` function decodes CSV data into a list of maps. Learn how to use the `csvdecode` function in Packer templates.
|
||||
description: The `csvdecode` function decodes CSV data into a list of maps.
|
||||
---
|
||||
|
||||
# `csvdecode` Function
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
---
|
||||
page_title: jsondecode function reference
|
||||
description: |-
|
||||
The `jsondecode` function decodes a JSON string into a representation of its
|
||||
value. Learn how to use the `jsondecode` function in Packer templates.
|
||||
The `jsondecode` function decodes a JSON string into its corresponding Packer value.
|
||||
---
|
||||
|
||||
# `jsondecode` Function
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
page_title: jsonencode function reference
|
||||
description: The `jsonencode` function encodes a given value as a JSON string. Learn how to use the `jsonencode` function in Packer templates.
|
||||
description: The `jsonencode` function encodes a given value as a JSON string.
|
||||
---
|
||||
|
||||
# `jsonencode` Function
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
page_title: testdecodebase64 function reference
|
||||
description: The `testdecodebase64` function converts a base64-encoded string into a UTF-8 string. Learn how to use the `testdecodebase64` function in Packer templates.
|
||||
description: The `testdecodebase64` function converts a base64-encoded string into a UTF-8 string.
|
||||
---
|
||||
|
||||
# `textdecodebase64` Function
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
page_title: testencodebase64 function reference
|
||||
description: The `testencodebase64` function converts a UTF-8 NFC string into a base64 blob to match the destination encoding. Learn how to use the `testencodebase64` function in Packer templates.
|
||||
description: The `testencodebase64` function converts a UTF-8 NFC string into a base64 blob to match the destination encoding.
|
||||
---
|
||||
|
||||
# `textencodebase64` Function
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
page_title: urlencode function reference
|
||||
description: The `urlencode` function applies URL encoding to a given string. Learn how to use the `urlencode` function in Packer templates.
|
||||
description: The `urlencode` function applies URL encoding to a given string.
|
||||
---
|
||||
|
||||
# `urlencode` Function
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
---
|
||||
page_title: yamldecode function reference
|
||||
description: |-
|
||||
The `yamldecode` function decodes a YAML string into a representation of its
|
||||
value. Learn how to use the `yamldecode` function in Packer templates.
|
||||
The `yamldecode` function decodes a YAML string into its corresponding Packer value.
|
||||
---
|
||||
|
||||
# `yamldecode` Function
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
page_title: yamlencode function reference
|
||||
description: The `yamlencode` function encodes a given value as a YAML string. Learn how to use the `yamlencode` function in Packer templates.
|
||||
description: The `yamlencode` function encodes a given value as a YAML string.
|
||||
---
|
||||
|
||||
# `yamlencode` Function
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@ description: |-
|
|||
|
||||
# Built-in functions overview
|
||||
|
||||
This topic provides an overview of the built-in HashiCorp configuration language (HCL) functions you can use to create Packer templates.
|
||||
This topic provides an overview of the built-in HashiCorp configuration language (HCL) functions you can use in your Packer templates.
|
||||
|
||||
## Functions syntax
|
||||
|
||||
You can use functions in Packer templates to transform and combine values. The general
|
||||
You can use functions in Packer templates to transform and combine values. The
|
||||
syntax for function calls is a function name followed by comma-separated
|
||||
arguments in parentheses:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue