resourcesetinput

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package resourcesetinput owns ResourceSet input composition and template evaluation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Combine

func Combine(groups []Group, strategy *fluxopv1.InputStrategySpec) ([]map[string]any, error)

Combine applies the requested ResourceSet input composition strategy.

func Permute

func Permute(groups []Group, includeEmpty bool) ([]map[string]any, error)

Permute combines provider groups with the Flux Cartesian input semantics.

func Provider

func Provider(kind, name, namespace string) map[string]any

Provider identifies an input provider in the template context.

Types

type Group

type Group struct {
	Name   string
	Inputs []map[string]any
}

Group contains input sets under one provider name.

func Inline

func Inline(name, namespace string, inputs []fluxopv1.ResourceSetInput) Group

Inline decodes the ResourceSet's inline inputs with their provider context.

type Template

type Template struct {
	// contains filtered or unexported fields
}

Template holds one sequential template execution context.

func Parse

func Parse(tmplStr string) (*Template, error)

Parse compiles one ResourceSet template with the Flux function set.

func (*Template) Execute

func (pt *Template) Execute(inputSet map[string]any) ([]byte, error)

Execute evaluates the template with one input set and returns owned bytes.

Jump to

Keyboard shortcuts

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