Files
truecharts/docs/manual/indepth/validation.md
TrueCharts-Bot 07dd78b2a7 Commit released Helm Chart and docs for TrueCharts
Signed-off-by: TrueCharts-Bot <bot@truecharts.org>
2021-09-09 15:24:34 +00:00

2.6 KiB

Validation

Validation makes sure that your input is in the desired format, so the application can parse it without problems. Below you can find more info about which fields have the mentioned validation and what formats are accepted.

All Apps


Resources and Devices

CPU Accepted formats are:

  • Plain integer (eg. 1) - This means 1 hyperthread
  • Float (eg. 0.5) - This means half hyperthread
  • Milicpu (eg. 500m) This means also half hyperthread

Regex used to match those: ^([0-9]+)(\.[0-9]?|m?)$ You can try live here More detailed info can be found here

Memory RAM Accepted formats are:

  • Suffixed with E, P, T, G, M, K (eg. 5G) - This means 5Gigabyte of RAM
  • Suffixed with Ei, Pi, Ti, Gi, Mi, Ki (eg. 5Gi) - This means 5Gibibyte of RAM
  • Plain integer (eg. 134217728) - This means 128Megabyte of RAM
  • As an exponent format (eg. 134e6) This means ~128Megabyte of RAM

Regex uesd to match those: ^([0-9.]+)([EPTGMK]i?|[EPTGMK]?|e[0-9]+)$ You can try live here More detailed info can be found here

Per app validation


Appdaemon

LATITUDE and LONGITUDE Accepted formats are:

  • Float (eg. 24.2028)

Regex used to match this: ^[0-9]{1,}\.{1}[0-9]{1,}$ You can try live here

Collabora

Domain(s) using collabora Accepted formats are:

  • Single domain (eg. cloud\.mydomain\.com) - Each . has to be escaped with \
  • Multiple domains (eg. cloud\.mydomain\.com|nextcloud\.mydomain\.com) - Each . has to be escaped with \ and each domain is separated with |

Regex used to match those: ^([a-z]{1,}\\{1}\.{1}[a-z]{1,}\\{1}\.{1}[a-z]{1,}\|{0,1})*$ You can try live here

Password for WebUI Accepted formats are:

  • Letters, Numbers, Symbols, Minimum 8 characters (eg. dg523$*a) - It accepts a-z, A-Z, 0-9 and !@#$%^&*?

Regex used to match those: [a-zA-Z0-9!@#$%^&*?]{8,} You can try live here

Fireflyiii

APP_KEY Accepted formats are:

  • Letters, Numbers, Symbols, Exactly 32 characters (eg. !oqVA9o2@br#$6vAyk8LLrDm54X5EtjD) - It accepts a-z, A-Z, 0-9 and !@#$%^&*?

You can try live here Regex used to match this: [a-zA-Z0-9!@#$%^&*?]{32}


If you find a field that you think it needs validation, please open an issue on github