Slide 19
Slide 19 text
22
©2021 VMware, Inc.
Rego 組み込み関数
https://www.openpolicyagent.org/docs/latest/policy-reference/#built-in-functions
⽐較
• ==, !=, <, <=, >, >=
数
• +, -, *, /, %, round(), abs(), etc.
集約
• count(), sum(), max(), min(), product(), sort(), etc.
配列
• concat(), slice()
集合
• get(), remove(), union(), filter(), etc.
⽂字列
• concat(), contains(), startwith(), endswith(), etc.
正規表現
• match(), is_valid(), split(), find_n(), etc.
グロブ
• match(), quote_meta()
ビット処理
• or(), and(), negate(), xor(), lsh(), rsh()
変換
• to_number()
型
• is_number(), is_string(), is_boolean(), etc.
エンコード
• encode(), decode(), marshal(), unmarshal(), etc.