Documentation
¶
Overview ¶
Package extensions shows how a downstream service ships its own CEL variables and functions on top of Celsius' DefaultEnv. The same Env() is consumed by the server (examples/customenv/server) and the CLI wrapper (examples/customenv/cli), so production behavior and pipeline validation stay in sync.
This is the canonical pattern — see docs/custom-env.md for the full walkthrough.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Env ¶
func Env() *celsius.EnvBuilder
Env returns the EnvBuilder this service uses everywhere: built-in helpers plus our custom variables and functions. The server feeds it to celsius.New; the CLI wrapper feeds it to clikit.Run.
func IsInternal ¶
func IsInternal() cel.FunctionOpt
IsInternal is a CEL function: is_internal(uid int) -> bool. It returns true when uid is in the hardcoded allow-list.
func Tier ¶
func Tier() cel.FunctionOpt
Tier is a CEL function: tier(uid int) -> string. It returns "vip" for uids above 100, otherwise "regular".
Types ¶
This section is empty.