functions

package
v0.0.0-...-fad0b5e Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ToOCIFunctionName = "toOCI"

Variables

This section is empty.

Functions

func BindingToOCI

func BindingToOCI(lhs ref.Val) ref.Val

BindingToOCI is the implementation of the toOCI function. It accepts a CEL value (string or map[string]any) representing an OCI image reference, parses it into host, repository, tag, and digest components, and returns a lazy map of those components as strings. If the input is:

  • string: the entire value is treated as the reference string
  • map[string]any: must contain an "imageReference" key with a string value

The function returns an error if parsing fails or the map is malformed.

func ToOCI

func ToOCI() cel.EnvOption

ToOCI returns a CEL environment option that registers the "toOCI" function. This function can be called on any CEL value (string or map) and converts it into a map containing OCI reference components (host, registry, repository, reference, tag, digest).

Types

This section is empty.

Jump to

Keyboard shortcuts

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