refs

package
v0.19.765 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFakeRefs

func GetFakeRefs(refs []Ref) map[string]any

Types

type Ref

type Ref struct {
	Type RefType

	Name  string
	Value string
	Input string
}

func NewFromString

func NewFromString(str string) Ref

func Parse

func Parse(obj any) ([]Ref, error)

func ParseFieldRefs

func ParseFieldRefs(inputVar string) []Ref

NOTE(jm): this was the fastest way to build out a list of all references, however long term we would like to switch to use an AST to identify all references in a "smarter" and less-brittle way.

https://pkg.go.dev/text/template/parse

func (Ref) Equal

func (r Ref) Equal(other Ref) bool

func (Ref) String

func (r Ref) String() string

type RefType

type RefType string
const (
	RefTypeSandbox       RefType = "sandbox"
	RefTypeInstallStack  RefType = "install_stack"
	RefTypeComponents    RefType = "component"
	RefTypeInputs        RefType = "inputs"
	RefTypeInstallInputs RefType = "install_inputs"
	RefTypeSecrets       RefType = "secrets"
	RefTypeActions       RefType = "actions"
)

type Walker

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

func (*Walker) Array

func (t *Walker) Array(v reflect.Value) error

func (*Walker) ArrayElem

func (t *Walker) ArrayElem(idx int, v reflect.Value) error

func (*Walker) Map

func (t *Walker) Map(m reflect.Value) error

func (*Walker) MapElem

func (t *Walker) MapElem(m, k, v reflect.Value) error

func (*Walker) Primitive

func (t *Walker) Primitive(v reflect.Value) error

func (*Walker) Struct

func (t *Walker) Struct(v reflect.Value) error

func (*Walker) StructField

func (t *Walker) StructField(sf reflect.StructField, v reflect.Value) error

Jump to

Keyboard shortcuts

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