refs

package
v0.19.855 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: AGPL-3.0 Imports: 7 Imported by: 1 module, 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

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