expansion

package
v0.43.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRefRegexp = regexp.MustCompile(`((secret)?ref)\+([^\+:]*:\/\/[^\+\n ]+[^\+\n ",])\+?`)

Functions

func ModifyStringValues

func ModifyStringValues(v interface{}, f func(path string) (interface{}, error)) (interface{}, error)

Types

type ExpandRegexMatch

type ExpandRegexMatch struct {
	Target *regexp.Regexp
	Lookup func(string) (interface{}, error)
	Only   []string
}

func (*ExpandRegexMatch) InMap

func (e *ExpandRegexMatch) InMap(target map[string]interface{}) (map[string]interface{}, error)

func (*ExpandRegexMatch) InString

func (e *ExpandRegexMatch) InString(s string) (string, error)

func (*ExpandRegexMatch) InValue added in v0.43.2

func (e *ExpandRegexMatch) InValue(s string) (interface{}, error)

InValue expands matches in the given string value. If the entire string matches the regex, it expands and preserves the type. If only part of the string matches, it expands as a string.

Jump to

Keyboard shortcuts

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