From 73be866d1dac864f1b9e610fbc0176c6c7d51036 Mon Sep 17 00:00:00 2001 From: Ryan Parman Date: Mon, 11 Nov 2024 09:48:38 -0700 Subject: [PATCH] docs: Improved the documentation for the new functionality added in v1.5.0. --- corefunc/base64gunzip.go | 6 +++ corefunc/cidr.go | 7 ++- corefunc/url.go | 4 ++ .../net_cidr_contains_data_source.go | 7 ++- .../net_cidr_contains_function.go | 7 ++- .../str_base64_gunzip_data_source.go | 6 +++ .../str_base64_gunzip_function.go | 6 +++ corefuncprovider/url_decode_data_source.go | 4 ++ corefuncprovider/url_decode_function.go | 4 ++ docs/data-sources/net_cidr_contains.md | 13 ++++-- docs/data-sources/str_base64_gunzip.md | 14 +++++- docs/data-sources/url_decode.md | 7 +++ docs/functions/net_cidr_contains.md | 13 ++++-- docs/functions/str_base64_gunzip.md | 12 ++++- docs/functions/url_decode.md | 7 +++ go.mod | 21 +++++++++ go.sum | 45 +++++++++++++++++++ 17 files changed, 165 insertions(+), 18 deletions(-) diff --git a/corefunc/base64gunzip.go b/corefunc/base64gunzip.go index eefaac8f..442f7c80 100644 --- a/corefunc/base64gunzip.go +++ b/corefunc/base64gunzip.go @@ -29,6 +29,12 @@ Base64Gunzip is a function that decodes a Base64-encoded string, then decompresses the result with gzip. Supports both padded and non-padded Base64 strings. +Uses the "standard" Base64 alphabet as defined in RFC 4648 §4. + + +There is a data limit of 10 MiB (10485760 bytes) for the decompressed data. This +is to avoid "decompression bomb" vulnerabilities. + This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other Go code. diff --git a/corefunc/cidr.go b/corefunc/cidr.go index ca264464..088d3347 100644 --- a/corefunc/cidr.go +++ b/corefunc/cidr.go @@ -23,8 +23,11 @@ import ( ) /* -CIDRContains checks to see if an IP address or CIDR block is contained within -another CIDR block. +CIDRContains determines whether or not a given IP address, or an address prefix +given in CIDR notation, is within a given IP network address prefix. + +Both arguments must belong to the same address family, either IPv4 or IPv6. A +family mismatch will result in an error. This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other diff --git a/corefunc/url.go b/corefunc/url.go index fe178892..6412eaa6 100644 --- a/corefunc/url.go +++ b/corefunc/url.go @@ -64,6 +64,10 @@ func URLParse(rawURL string, canon ...types.URLCanonicalizer) (*url.Url, error) /* URLDecode decodes a URL-encoded string. +It can decode a wide range of characters, including those beyond the ASCII set. +Non-ASCII characters are first interpreted as UTF-8 bytes, then percent-decoded +byte-by-byte, ensuring correct decoding of multibyte characters. + This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other Go code. diff --git a/corefuncprovider/net_cidr_contains_data_source.go b/corefuncprovider/net_cidr_contains_data_source.go index 22bc7838..03bbf906 100644 --- a/corefuncprovider/net_cidr_contains_data_source.go +++ b/corefuncprovider/net_cidr_contains_data_source.go @@ -80,8 +80,11 @@ func (d *netCidrContainsDataSource) Schema( // lint:no_dupe resp.Schema = schema.Schema{ MarkdownDescription: strings.TrimSpace(dedent.Dedent(` - CIDRContains checks to see if an IP address or CIDR block is contained - within another CIDR block. + CIDRContains determines whether or not a given IP address, or an address prefix + given in CIDR notation, is within a given IP network address prefix. + + Both arguments must belong to the same address family, either IPv4 or IPv6. A + family mismatch will result in an error. -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other diff --git a/corefuncprovider/net_cidr_contains_function.go b/corefuncprovider/net_cidr_contains_function.go index 652ed2dd..f397c05a 100644 --- a/corefuncprovider/net_cidr_contains_function.go +++ b/corefuncprovider/net_cidr_contains_function.go @@ -67,8 +67,11 @@ func (f *netCidrContainsFunction) Definition( // lint:no_dupe resp.Definition = function.Definition{ Summary: "CIDRContains checks to see if an IP address or CIDR block is contained within another CIDR block.", MarkdownDescription: strings.TrimSpace(dedent.Dedent(` - CIDRContains checks to see if an IP address or CIDR block is contained - within another CIDR block. + CIDRContains determines whether or not a given IP address, or an address prefix + given in CIDR notation, is within a given IP network address prefix. + + Both arguments must belong to the same address family, either IPv4 or IPv6. A + family mismatch will result in an error. -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other diff --git a/corefuncprovider/str_base64_gunzip_data_source.go b/corefuncprovider/str_base64_gunzip_data_source.go index 70d9e5a7..20dcfea7 100644 --- a/corefuncprovider/str_base64_gunzip_data_source.go +++ b/corefuncprovider/str_base64_gunzip_data_source.go @@ -83,6 +83,12 @@ func (d *strBase64GunzipDataSource) Schema( decompresses the result with gzip. Supports both padded and non-padded Base64 strings. + Uses the "standard" Base64 alphabet as defined in + [RFC 4648 §4](https://datatracker.ietf.org/doc/html/rfc4648#section-4). + + ~> There is a data limit of 10 MiB (10485760 bytes) for the decompressed data. This + is to avoid "decompression bomb" vulnerabilities. + -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other Go code. diff --git a/corefuncprovider/str_base64_gunzip_function.go b/corefuncprovider/str_base64_gunzip_function.go index 6e026103..cce3b317 100644 --- a/corefuncprovider/str_base64_gunzip_function.go +++ b/corefuncprovider/str_base64_gunzip_function.go @@ -71,6 +71,12 @@ func (f *strBase64GunzipFunction) Definition( decompresses the result with gzip. Supports both padded and non-padded Base64 strings. + Uses the "standard" Base64 alphabet as defined in + [RFC 4648 §4](https://datatracker.ietf.org/doc/html/rfc4648#section-4). + + ~> There is a data limit of 10 MiB (10485760 bytes) for the decompressed data. This + is to avoid "decompression bomb" vulnerabilities. + -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other Go code. diff --git a/corefuncprovider/url_decode_data_source.go b/corefuncprovider/url_decode_data_source.go index 032d7a85..bf0556e1 100644 --- a/corefuncprovider/url_decode_data_source.go +++ b/corefuncprovider/url_decode_data_source.go @@ -81,6 +81,10 @@ func (d *urlDecodeDataSource) Schema( MarkdownDescription: strings.TrimSpace(dedent.Dedent(` URLDecode decodes a URL-encoded string. + It can decode a wide range of characters, including those beyond the ASCII set. + Non-ASCII characters are first interpreted as UTF-8 bytes, then percent-decoded + byte-by-byte, ensuring correct decoding of multibyte characters. + -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other Go code. diff --git a/corefuncprovider/url_decode_function.go b/corefuncprovider/url_decode_function.go index 19f4d75d..d740c461 100644 --- a/corefuncprovider/url_decode_function.go +++ b/corefuncprovider/url_decode_function.go @@ -69,6 +69,10 @@ func (f *urlDecodeFunction) Definition( MarkdownDescription: strings.TrimSpace(dedent.Dedent(` URLDecode decodes a URL-encoded string. + It can decode a wide range of characters, including those beyond the ASCII set. + Non-ASCII characters are first interpreted as UTF-8 bytes, then percent-decoded + byte-by-byte, ensuring correct decoding of multibyte characters. + -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other Go code. diff --git a/docs/data-sources/net_cidr_contains.md b/docs/data-sources/net_cidr_contains.md index 9ba51b90..da2b2d0c 100644 --- a/docs/data-sources/net_cidr_contains.md +++ b/docs/data-sources/net_cidr_contains.md @@ -2,8 +2,10 @@ page_title: "corefunc_net_cidr_contains Data Source - corefunc" subcategory: "" description: |- - CIDRContains checks to see if an IP address or CIDR block is contained - within another CIDR block. + CIDRContains determines whether or not a given IP address, or an address prefix + given in CIDR notation, is within a given IP network address prefix. + Both arguments must belong to the same address family, either IPv4 or IPv6. A + family mismatch will result in an error. -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other Go code. @@ -12,8 +14,11 @@ description: |- # corefunc_net_cidr_contains (Data Source) -CIDRContains checks to see if an IP address or CIDR block is contained -within another CIDR block. +CIDRContains determines whether or not a given IP address, or an address prefix +given in CIDR notation, is within a given IP network address prefix. + +Both arguments must belong to the same address family, either IPv4 or IPv6. A +family mismatch will result in an error. -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other diff --git a/docs/data-sources/str_base64_gunzip.md b/docs/data-sources/str_base64_gunzip.md index c3d20390..fe482a86 100644 --- a/docs/data-sources/str_base64_gunzip.md +++ b/docs/data-sources/str_base64_gunzip.md @@ -5,6 +5,10 @@ description: |- Base64Gunzip is a function that decodes a Base64-encoded string, then decompresses the result with gzip. Supports both padded and non-padded Base64 strings. + Uses the "standard" Base64 alphabet as defined in + RFC 4648 §4 https://datatracker.ietf.org/doc/html/rfc4648#section-4. + ~> There is a data limit of 10 MiB (10485760 bytes) for the decompressed data. This + is to avoid "decompression bomb" vulnerabilities. -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other Go code. @@ -17,6 +21,12 @@ Base64Gunzip is a function that decodes a Base64-encoded string, then decompresses the result with gzip. Supports both padded and non-padded Base64 strings. +Uses the "standard" Base64 alphabet as defined in +[RFC 4648 §4](https://datatracker.ietf.org/doc/html/rfc4648#section-4). + +~> There is a data limit of 10 MiB (10485760 bytes) for the decompressed data. This +is to avoid "decompression bomb" vulnerabilities. + -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other Go code. @@ -38,10 +48,10 @@ data "corefunc_str_base64_gunzip" "str" { ### Required -- `gzipped_base64` (String) A string of gzipped then Base64-encoded data. +* `gzipped_base64` (String) A string of gzipped then Base64-encoded data. ### Read-Only -- `value` (String) The Base64-decoded, then un-gzipped data. +* `value` (String) The Base64-decoded, then un-gzipped data. diff --git a/docs/data-sources/url_decode.md b/docs/data-sources/url_decode.md index 64bfd8f4..43c6103b 100644 --- a/docs/data-sources/url_decode.md +++ b/docs/data-sources/url_decode.md @@ -3,6 +3,9 @@ page_title: "corefunc_url_decode Data Source - corefunc" subcategory: "" description: |- URLDecode decodes a URL-encoded string. + It can decode a wide range of characters, including those beyond the ASCII set. + Non-ASCII characters are first interpreted as UTF-8 bytes, then percent-decoded + byte-by-byte, ensuring correct decoding of multibyte characters. -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other Go code. @@ -13,6 +16,10 @@ description: |- URLDecode decodes a URL-encoded string. +It can decode a wide range of characters, including those beyond the ASCII set. +Non-ASCII characters are first interpreted as UTF-8 bytes, then percent-decoded +byte-by-byte, ensuring correct decoding of multibyte characters. + -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other Go code. diff --git a/docs/functions/net_cidr_contains.md b/docs/functions/net_cidr_contains.md index 8e652f32..5b7fa63c 100644 --- a/docs/functions/net_cidr_contains.md +++ b/docs/functions/net_cidr_contains.md @@ -2,8 +2,10 @@ page_title: "net_cidr_contains function - corefunc" subcategory: "" description: |- - CIDRContains checks to see if an IP address or CIDR block is contained - within another CIDR block. + CIDRContains determines whether or not a given IP address, or an address prefix + given in CIDR notation, is within a given IP network address prefix. + Both arguments must belong to the same address family, either IPv4 or IPv6. A + family mismatch will result in an error. -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other Go code. @@ -12,8 +14,11 @@ description: |- # net_cidr_contains (function) -CIDRContains checks to see if an IP address or CIDR block is contained -within another CIDR block. +CIDRContains determines whether or not a given IP address, or an address prefix +given in CIDR notation, is within a given IP network address prefix. + +Both arguments must belong to the same address family, either IPv4 or IPv6. A +family mismatch will result in an error. -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other diff --git a/docs/functions/str_base64_gunzip.md b/docs/functions/str_base64_gunzip.md index 3533813e..770a4711 100644 --- a/docs/functions/str_base64_gunzip.md +++ b/docs/functions/str_base64_gunzip.md @@ -5,6 +5,10 @@ description: |- Base64Gunzip is a function that decodes a Base64-encoded string, then decompresses the result with gzip. Supports both padded and non-padded Base64 strings. + Uses the "standard" Base64 alphabet as defined in + RFC 4648 §4 https://datatracker.ietf.org/doc/html/rfc4648#section-4. + ~> There is a data limit of 10 MiB (10485760 bytes) for the decompressed data. This + is to avoid "decompression bomb" vulnerabilities. -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other Go code. @@ -17,6 +21,12 @@ Base64Gunzip is a function that decodes a Base64-encoded string, then decompresses the result with gzip. Supports both padded and non-padded Base64 strings. +Uses the "standard" Base64 alphabet as defined in +[RFC 4648 §4](https://datatracker.ietf.org/doc/html/rfc4648#section-4). + +~> There is a data limit of 10 MiB (10485760 bytes) for the decompressed data. This +is to avoid "decompression bomb" vulnerabilities. + -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other Go code. @@ -44,8 +54,6 @@ output "str" { ## Arguments - 1. `gzipped_base64` (String) A string of gzipped then Base64-encoded data. - diff --git a/docs/functions/url_decode.md b/docs/functions/url_decode.md index 8292785b..0826e96c 100644 --- a/docs/functions/url_decode.md +++ b/docs/functions/url_decode.md @@ -3,6 +3,9 @@ page_title: "url_decode function - corefunc" subcategory: "" description: |- URLDecode decodes a URL-encoded string. + It can decode a wide range of characters, including those beyond the ASCII set. + Non-ASCII characters are first interpreted as UTF-8 bytes, then percent-decoded + byte-by-byte, ensuring correct decoding of multibyte characters. -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other Go code. @@ -13,6 +16,10 @@ description: |- URLDecode decodes a URL-encoded string. +It can decode a wide range of characters, including those beyond the ASCII set. +Non-ASCII characters are first interpreted as UTF-8 bytes, then percent-decoded +byte-by-byte, ensuring correct decoding of multibyte characters. + -> This functionality is built into OpenTofu 1.8, but is missing in Terraform 1.9. This also provides a 1:1 implementation that can be used with Terratest or other Go code. diff --git a/go.mod b/go.mod index 872e4511..2b95370a 100644 --- a/go.mod +++ b/go.mod @@ -25,11 +25,19 @@ require ( require ( dario.cat/mergo v1.0.1 // indirect + github.com/BurntSushi/toml v1.4.0 // indirect + github.com/Kunde21/markdownfmt/v3 v3.1.0 // indirect + github.com/Masterminds/goutils v1.1.1 // indirect + github.com/Masterminds/semver/v3 v3.3.0 // indirect + github.com/Masterminds/sprig/v3 v3.3.0 // indirect github.com/ProtonMail/go-crypto v1.1.2 // indirect github.com/agext/levenshtein v1.2.3 // indirect github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect + github.com/armon/go-radix v1.0.0 // indirect github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect + github.com/bgentry/speakeasy v0.2.0 // indirect github.com/bits-and-blooms/bitset v1.15.0 // indirect + github.com/bmatcuk/doublestar/v4 v4.7.1 // indirect github.com/charmbracelet/bubbles v0.20.0 // indirect github.com/charmbracelet/bubbletea v1.2.1 // indirect github.com/charmbracelet/lipgloss v1.0.0 // indirect @@ -41,6 +49,8 @@ require ( github.com/fatih/color v1.18.0 // indirect github.com/go-test/deep v1.0.7 // indirect github.com/golang/protobuf v1.5.4 // indirect + github.com/google/uuid v1.6.0 // indirect + github.com/hashicorp/cli v1.1.6 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-checkpoint v0.5.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect @@ -55,11 +65,14 @@ require ( github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/terraform-exec v0.21.0 // indirect github.com/hashicorp/terraform-json v0.23.0 // indirect + github.com/hashicorp/terraform-plugin-docs v0.20.0 // indirect github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0 // indirect github.com/hashicorp/terraform-registry-address v0.2.3 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect github.com/hashicorp/yamux v0.1.2 // indirect github.com/hexops/gotextdiff v1.0.3 // indirect + github.com/huandu/xstrings v1.5.0 // indirect + github.com/imdario/mergo v0.3.15 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect @@ -78,14 +91,21 @@ require ( github.com/northwood-labs/archstring v0.0.0-20240514202917-e9357b4b91c8 // indirect github.com/oklog/run v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/posener/complete v1.2.3 // indirect github.com/rivo/uniseg v0.4.7 // indirect github.com/rogpeppe/go-internal v1.13.1 // indirect + github.com/shopspring/decimal v1.4.0 // indirect + github.com/spf13/cast v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect + github.com/yuin/goldmark v1.7.8 // indirect + github.com/yuin/goldmark-meta v1.1.0 // indirect github.com/zclconf/go-cty v1.15.0 // indirect + go.abhg.dev/goldmark/frontmatter v0.2.0 // indirect golang.org/x/crypto v0.29.0 // indirect + golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f // indirect golang.org/x/mod v0.22.0 // indirect golang.org/x/net v0.31.0 // indirect golang.org/x/sync v0.9.0 // indirect @@ -96,5 +116,6 @@ require ( google.golang.org/genproto/googleapis/rpc v0.0.0-20241104194629-dd2ea8efbc28 // indirect google.golang.org/grpc v1.68.0 // indirect google.golang.org/protobuf v1.35.1 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 41c2cbe0..3794c5f0 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,15 @@ dario.cat/mergo v1.0.1 h1:Ra4+bf83h2ztPIQYNP99R6m+Y7KfnARDfID+a+vLl4s= dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= +github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0= +github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= +github.com/Kunde21/markdownfmt/v3 v3.1.0 h1:KiZu9LKs+wFFBQKhrZJrFZwtLnCCWJahL+S+E/3VnM0= +github.com/Kunde21/markdownfmt/v3 v3.1.0/go.mod h1:tPXN1RTyOzJwhfHoon9wUr4HGYmWgVxSQN6VBJDkrVc= +github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= +github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= +github.com/Masterminds/semver/v3 v3.3.0 h1:B8LGeaivUe71a5qox1ICM/JLl0NqZSW5CHyL+hmvYS0= +github.com/Masterminds/semver/v3 v3.3.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= +github.com/Masterminds/sprig/v3 v3.3.0 h1:mQh0Yrg1XPo6vjYXgtf5OtijNAKJRNcTdOOGZe3tPhs= +github.com/Masterminds/sprig/v3 v3.3.0/go.mod h1:Zy1iXRYNqNLUolqCpL4uhk6SHUMAOSCzdgBfDb35Lz0= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= github.com/ProtonMail/go-crypto v1.1.2 h1:A7JbD57ThNqh7XjmHE+PXpQ3Dqt3BrSAC0AL0Go3KS0= @@ -11,13 +21,19 @@ github.com/apparentlymart/go-cidr v1.1.0/go.mod h1:EBcsNrHc3zQeuaeCeCtQruQm+n9/Y github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY= github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4= +github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= +github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k= github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8= github.com/aymanbagabas/go-udiff v0.2.0 h1:TK0fH4MteXUDspT88n8CKzvK0X9O2xu9yQjWpi6yML8= github.com/aymanbagabas/go-udiff v0.2.0/go.mod h1:RE4Ex0qsGkTAJoQdQQCA0uG+nAzJO/pI/QwceO5fgrA= +github.com/bgentry/speakeasy v0.2.0 h1:tgObeVOf8WAvtuAX6DhJ4xks4CFNwPDZiqzGqIHE51E= +github.com/bgentry/speakeasy v0.2.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bits-and-blooms/bitset v1.13.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= github.com/bits-and-blooms/bitset v1.15.0 h1:DiCRMscZsGyYePE9AR3sVhKqUXCt5IZvkX5AfAc5xLQ= github.com/bits-and-blooms/bitset v1.15.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= +github.com/bmatcuk/doublestar/v4 v4.7.1 h1:fdDeAqgT47acgwd9bd9HxJRDmc9UAmPpc+2m0CXv75Q= +github.com/bmatcuk/doublestar/v4 v4.7.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8= github.com/chanced/caps v1.0.2 h1:RELvNN4lZajqSXJGzPaU7z8B4LK2+o2Oc/upeWdgMOA= @@ -69,8 +85,12 @@ github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMyw github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gtramontina/ooze v0.2.0 h1:QDW1zeq1TQgTLbIWuk76GCgNV3adkamYxY1aJNYp/Bc= github.com/gtramontina/ooze v0.2.0/go.mod h1:e0dltGb+Ws7SQKfoj4XkKf9C/UaIAK2YGWbLKLPwL6k= +github.com/hashicorp/cli v1.1.6 h1:CMOV+/LJfL1tXCOKrgAX0uRKnzjj/mpmqNXloRSy2K8= +github.com/hashicorp/cli v1.1.6/go.mod h1:MPon5QYlgjjo0BSoAiN0ESeT5fRzDjVRp+uioJ0piz4= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -83,6 +103,7 @@ github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUK github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs= github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-plugin v1.6.2 h1:zdGAEd0V1lCaU0u+MxWQhtSDQmahpkwOun8U8EiRVog= @@ -104,6 +125,8 @@ github.com/hashicorp/terraform-exec v0.21.0 h1:uNkLAe95ey5Uux6KJdua6+cv8asgILFVW github.com/hashicorp/terraform-exec v0.21.0/go.mod h1:1PPeMYou+KDUSSeRE9szMZ/oHf4fYUmB923Wzbq1ICg= github.com/hashicorp/terraform-json v0.23.0 h1:sniCkExU4iKtTADReHzACkk8fnpQXrdD2xoR+lppBkI= github.com/hashicorp/terraform-json v0.23.0/go.mod h1:MHdXbBAbSg0GvzuWazEGKAn/cyNfIB7mN6y7KJN6y2c= +github.com/hashicorp/terraform-plugin-docs v0.20.0 h1:ox7rm1FN0dVZaJBUzkVVh10R1r3+FeMQWL0QopQ9d7o= +github.com/hashicorp/terraform-plugin-docs v0.20.0/go.mod h1:A/+4SVMdAkQYtIBtaxV0H7AU862TxVZk/hhKaMDQB6Y= github.com/hashicorp/terraform-plugin-framework v1.13.0 h1:8OTG4+oZUfKgnfTdPTJwZ532Bh2BobF4H+yBiYJ/scw= github.com/hashicorp/terraform-plugin-framework v1.13.0/go.mod h1:j64rwMGpgM3NYXTKuxrCnyubQb/4VKldEKlcG8cvmjU= github.com/hashicorp/terraform-plugin-framework-validators v0.15.0 h1:RXMmu7JgpFjnI1a5QjMCBb11usrW2OtAG+iOTIj5c9Y= @@ -124,6 +147,10 @@ github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8 github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= +github.com/huandu/xstrings v1.5.0 h1:2ag3IFq9ZDANvthTwTiqSSZLjDc+BedvHPAp5tJy2TI= +github.com/huandu/xstrings v1.5.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4= +github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= @@ -187,6 +214,8 @@ github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFz github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo= +github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= @@ -196,13 +225,18 @@ github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWN github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8= github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= +github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k= +github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME= github.com/skeema/knownhosts v1.2.2 h1:Iug2P4fLmDw9f41PB6thxUkNUkJzB5i+1/exaj40L3A= github.com/skeema/knownhosts v1.2.2/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= +github.com/spf13/cast v1.7.0 h1:ntdiHjuueXFgm5nzDRdOS4yfT43P5Fnud6DH50rz/7w= +github.com/spf13/cast v1.7.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= @@ -216,16 +250,24 @@ github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/yuin/goldmark v1.7.8 h1:iERMLn0/QJeHFhxSt3p6PeN9mGnvIKSpG9YYorDMnic= +github.com/yuin/goldmark v1.7.8/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= +github.com/yuin/goldmark-meta v1.1.0 h1:pWw+JLHGZe8Rk0EGsMVssiNb/AaPMHfSRszZeUeiOUc= +github.com/yuin/goldmark-meta v1.1.0/go.mod h1:U4spWENafuA7Zyg+Lj5RqK/MF+ovMYtBvXi1lBb2VP0= github.com/zclconf/go-cty v1.15.0 h1:tTCRWxsexYUmtt/wVxgDClUe+uQusuI443uL6e+5sXQ= github.com/zclconf/go-cty v1.15.0/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940 h1:4r45xpDWB6ZMSMNJFMOjqrGHynW3DIBuR2H9j0ug+Mo= github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940/go.mod h1:CmBdvvj3nqzfzJ6nTCIwDTPZ56aVGvDrmztiO5g3qrM= +go.abhg.dev/goldmark/frontmatter v0.2.0 h1:P8kPG0YkL12+aYk2yU3xHv4tcXzeVnN+gU0tJ5JnxRw= +go.abhg.dev/goldmark/frontmatter v0.2.0/go.mod h1:XqrEkZuM57djk7zrlRUB02x8I5J0px76YjkOzhB4YlU= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= golang.org/x/crypto v0.29.0 h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ= golang.org/x/crypto v0.29.0/go.mod h1:+F4F4N5hv6v38hfeYwTdx20oUvLLc+QfrE9Ax9HtgRg= +golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f h1:XdNn9LlyWAhLVp6P/i8QYBW+hlyhrhei9uErw2B5GJo= +golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f/go.mod h1:D5SMRVC3C2/4+F/DB1wZsLRnSNimn2Sp/NPsCrsv8ak= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4= @@ -306,5 +348,8 @@ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=