mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
91100c003c
* lang/funcs: Add `trim*` functions
487 lines
14 KiB
Plaintext
487 lines
14 KiB
Plaintext
<% wrap_layout :inner do %>
|
|
<% content_for :sidebar do %>
|
|
<h4><a href="/docs/cli-index.html">Terraform CLI</a></h4>
|
|
|
|
<a href="#" class="subnav-toggle">(Expand/collapse all)</a>
|
|
|
|
<ul class="nav docs-sidenav">
|
|
<li>
|
|
<a class="back" href="/docs/configuration/index.html">Configuration Language</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions.html">Functions</a>
|
|
<ul class="nav nav-visible">
|
|
<li id="docs-funcs-numeric">
|
|
<a href="#docs-funcs-numeric">Numeric Functions</a>
|
|
<ul class="nav">
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/abs.html">abs</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/ceil.html">ceil</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/floor.html">floor</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/log.html">log</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/max.html">max</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/min.html">min</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/parseint.html">parseint</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/pow.html">pow</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/signum.html">signum</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li id="docs-funcs-string">
|
|
<a href="#docs-funcs-string">String Functions</a>
|
|
<ul class="nav">
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/chomp.html">chomp</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/format.html">format</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/formatlist.html">formatlist</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/indent.html">indent</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/join.html">join</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/lower.html">lower</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/regex.html">regex</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/regexall.html">regexall</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/replace.html">replace</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/split.html">split</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/strrev.html">strrev</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/substr.html">substr</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/title.html">title</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/trim.html">trim</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/trimprefix.html">trimprefix</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/trimsuffix.html">trimsuffix</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/trimspace.html">trimspace</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/upper.html">upper</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li id="docs-funcs-collection">
|
|
<a href="#docs-funcs-collection">Collection Functions</a>
|
|
<ul class="nav">
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/chunklist.html">chunklist</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/coalesce.html">coalesce</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/coalescelist.html">coalescelist</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/compact.html">compact</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/concat.html">concat</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/contains.html">contains</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/distinct.html">distinct</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/element.html">element</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/flatten.html">flatten</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/index.html">index</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/keys.html">keys</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/length.html">length</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/list.html">list</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/lookup.html">lookup</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/map.html">map</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/matchkeys.html">matchkeys</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/merge.html">merge</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/range.html">range</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/reverse.html">reverse</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/setintersection.html">setintersection</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/setproduct.html">setproduct</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/setunion.html">setunion</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/slice.html">slice</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/sort.html">sort</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/transpose.html">transpose</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/values.html">values</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/zipmap.html">zipmap</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li id="docs-funcs-encoding">
|
|
<a href="#docs-funcs-encoding">Encoding Functions</a>
|
|
<ul class="nav">
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/base64decode.html">base64decode</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/base64encode.html">base64encode</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/base64gzip.html">base64gzip</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/csvdecode.html">csvdecode</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/jsondecode.html">jsondecode</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/jsonencode.html">jsonencode</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/urlencode.html">urlencode</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/yamldecode.html">yamldecode</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/yamlencode.html">yamlencode</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li id="docs-funcs-file">
|
|
<a href="#docs-funcs-file">Filesystem Functions</a>
|
|
<ul class="nav">
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/abspath.html">abspath</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/dirname.html">dirname</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/pathexpand.html">pathexpand</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/basename.html">basename</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/file.html">file</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/fileexists.html">fileexists</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/fileset.html">fileset</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/filebase64.html">filebase64</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/templatefile.html">templatefile</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li id="docs-funcs-datetime">
|
|
<a href="#docs-funcs-datetime">Date and Time Functions</a>
|
|
<ul class="nav">
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/formatdate.html">formatdate</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/timeadd.html">timeadd</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/timestamp.html">timestamp</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li id="docs-funcs-crypto">
|
|
<a href="#docs-funcs-crypto">Hash and Crypto Functions</a>
|
|
<ul class="nav">
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/base64sha256.html">base64sha256</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/base64sha512.html">base64sha512</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/bcrypt.html">bcrypt</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/filebase64sha256.html">filebase64sha256</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/filebase64sha512.html">filebase64sha512</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/filemd5.html">filemd5</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/filesha1.html">filesha1</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/filesha256.html">filesha256</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/filesha512.html">filesha512</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/md5.html">md5</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/rsadecrypt.html">rsadecrypt</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/sha1.html">sha1</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/sha256.html">sha256</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/sha512.html">sha512</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/uuid.html">uuid</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/uuidv5.html">uuidv5</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li id="docs-funcs-ipnet">
|
|
<a href="#docs-funcs-ipnet">IP Network Functions</a>
|
|
<ul class="nav">
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/cidrhost.html">cidrhost</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/cidrnetmask.html">cidrnetmask</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/cidrsubnet.html">cidrsubnet</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#docs-funcs-conversion">Type Conversion Functions</a>
|
|
<ul class="nav" id="docs-funcs-conversion">
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/tobool.html">tobool</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/tolist.html">tolist</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/tomap.html">tomap</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/tonumber.html">tonumber</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/toset.html">toset</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/docs/configuration/functions/tostring.html">tostring</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
<%= partial("layouts/otherdocs", :locals => { :skip => "Terraform CLI" }) %>
|
|
<% end %>
|
|
|
|
<%= yield %>
|
|
<% end %>
|