eval

package
v0.1.97 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package eval evaluates the CEL expressions and Go templates carried by the types package. It is separate from types so that importing the type definitions does not link the gomplate template engine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cel

func Cel(env map[string]any, expr types.CelExpression) (string, error)

Cel evaluates a CEL expression against env.

func ResourceSelector

func ResourceSelector(env map[string]any, selector types.EnvVarResourceSelector) (*types.ResourceSelector, error)

ResourceSelector hydrates an EnvVarResourceSelector into a ResourceSelector, evaluating every non-empty field against env.

func Template

func Template(env map[string]any, tmpl types.GoTemplate) (string, error)

Template renders a Go template against env.

func Value

func Value(env map[string]any, value types.ValueExpression) (string, error)

Value returns the static value when set, otherwise the evaluated expression.

Types

This section is empty.

Jump to

Keyboard shortcuts

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