library

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Random

func Random() cel.EnvOption

Random returns a CEL library that provides functions to generate random text

Library functions:

random.seededString() returns a CEL function that generates deterministic random strings based on a seed.

The function takes two arguments: - length: an integer specifying the length of the random string to generate - seed: a string used as the seed for the random string generation

Example usage:

random.seededString(10, schema.metadata.uid)

This will generate a random string of length 10 using the seed schema.metadata.uid. The same length and seed will always produce the same random string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL