packer/hcl2template
Lucas Bajolet accbe97e1e
hcl2template: add text(encode|decode)base64 funcs (#12997)
Compared to Terraform, Packer was lacking a capability to encode/decode
strings to/from base64-encoded text encoded with another encoding.

This could be problematic in some cases, mainly when working with
Windows, as most of the OS uses UTF-16LE as its standard encoding for
many operations.

Therefore, we take a page from Terraform here, and add those functions
to what Packer supports in an HCL2 context.
2024-05-30 14:24:46 +02:00
..
addrs addrs: require at least 3 parts to source URIs 2024-05-15 14:12:41 -04:00
fixtures hcl2: fix crash on malformed overrides (#11881) 2022-07-20 14:30:49 -04:00
function hcl2template/functions: Add Non-null refinements for various functions 2023-11-29 12:28:16 -05:00
internal [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
repl [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
shim [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
testdata hcl2template: check bucket name at parse-time 2024-01-31 09:56:57 -05:00
common_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
components.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
decode.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
docs.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
formatter.go fmt: print parse errors on error 2024-03-07 14:41:19 -05:00
formatter_test.go chore: remove refs to deprecated io/ioutil 2023-09-26 11:13:31 -04:00
functions.go hcl2template: add text(encode|decode)base64 funcs (#12997) 2024-05-30 14:24:46 +02:00
parser.go version: embed version/VERSION as version string 2024-04-16 10:19:17 -04:00
plugin.go packer: register plugin components only once 2024-05-14 11:41:18 -04:00
types.build.from.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.build.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.build.hcp_packer_registry.go hcl2template: check bucket name at parse-time 2024-01-31 09:56:57 -05:00
types.build.hcp_packer_registry_test.go Packer tracks Version and Plugins Metadata (#12860) 2024-04-11 12:55:04 -04:00
types.build.post-processor.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.build.provisioners.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.build.provisioners_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.build_test.go Packer tracks Version and Plugins Metadata (#12860) 2024-04-11 12:55:04 -04:00
types.datasource.go hcl2template: simplify startDatasource function 2023-10-05 10:31:04 -04:00
types.datasource_test.go Packer tracks Version and Plugins Metadata (#12860) 2024-04-11 12:55:04 -04:00
types.hcl_post-processor.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.hcl_provisioner.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.hcl_ref.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.packer_config.go Packer tracks Version and Plugins Metadata (#12860) 2024-04-11 12:55:04 -04:00
types.packer_config_test.go addrs: require at least 3 parts to source URIs 2024-05-15 14:12:41 -04:00
types.required_plugins.go addrs: return error on ParsePluginSource 2024-05-14 14:47:06 -04:00
types.required_plugins_test.go packer: relax constraints on sources 2024-04-29 14:28:24 -04:00
types.source.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.source_test.go Packer tracks Version and Plugins Metadata (#12860) 2024-04-11 12:55:04 -04:00
types.variables.go hcl2: don't show an empty source on var errors 2023-11-28 12:53:23 -05:00
types.variables_test.go Packer tracks Version and Plugins Metadata (#12860) 2024-04-11 12:55:04 -04:00
utils.go hcl2template: fix func to get vars from a config 2023-10-05 10:31:04 -04:00
version.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
version_required.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00