vars

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneralizeData added in v0.0.10

func GeneralizeData(source interface{}) (interface{}, error)

func NewScopeFilter added in v0.0.10

func NewScopeFilter(vars types.Variables) types.Variables

func NewVariables

func NewVariables(parentScope types.Variables) types.Variables

Types

type NoScientificFloat64 added in v0.0.13

type NoScientificFloat64 float64

func (NoScientificFloat64) MarshalJSON added in v0.0.13

func (n NoScientificFloat64) MarshalJSON() ([]byte, error)

func (NoScientificFloat64) MarshalYAML added in v0.0.13

func (n NoScientificFloat64) MarshalYAML() (interface{}, error)

type ScopeFilter added in v0.0.10

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

func (*ScopeFilter) ConsumeVars added in v0.0.10

func (v *ScopeFilter) ConsumeVars(config interface{}, consumeMap map[string]string) error

func (*ScopeFilter) CopyVars added in v0.0.10

func (v *ScopeFilter) CopyVars(source types.Variables, copyMap map[string]string) error

func (*ScopeFilter) GetSubScope added in v0.0.10

func (v *ScopeFilter) GetSubScope(name string) types.Variables

func (*ScopeFilter) GetVar added in v0.0.10

func (v *ScopeFilter) GetVar(name string) interface{}

func (*ScopeFilter) GetVarsMap added in v0.0.10

func (v *ScopeFilter) GetVarsMap(varsMap map[string]any, _ bool) map[string]any

func (*ScopeFilter) LookupVar added in v0.0.10

func (v *ScopeFilter) LookupVar(name string) (interface{}, bool)

func (*ScopeFilter) NewScope added in v0.0.10

func (v *ScopeFilter) NewScope() types.Variables

func (*ScopeFilter) ResolvePlaceholders added in v0.0.10

func (v *ScopeFilter) ResolvePlaceholders(str string) string

func (*ScopeFilter) ResolveQuery added in v0.0.10

func (v *ScopeFilter) ResolveQuery(queryStr string) (value interface{}, found bool, err error)

func (*ScopeFilter) SetDefaultVar added in v0.0.10

func (v *ScopeFilter) SetDefaultVar(name string, value interface{})

func (*ScopeFilter) SetSubScope added in v0.0.10

func (v *ScopeFilter) SetSubScope(name string, subScope types.Variables)

func (*ScopeFilter) SetVar added in v0.0.10

func (v *ScopeFilter) SetVar(name string, value interface{})

type Variables

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

func (*Variables) ConsumeVars

func (v *Variables) ConsumeVars(config interface{}, consumeMap map[string]string) error

func (*Variables) CopyVars

func (v *Variables) CopyVars(source types.Variables, copyMap map[string]string) error

func (*Variables) GetSubScope added in v0.0.10

func (v *Variables) GetSubScope(name string) types.Variables

func (*Variables) GetVar

func (v *Variables) GetVar(name string) interface{}

func (*Variables) GetVarsMap added in v0.0.2

func (v *Variables) GetVarsMap(varsMap map[string]any, skipParent bool) map[string]any

func (*Variables) LookupVar

func (v *Variables) LookupVar(name string) (interface{}, bool)

func (*Variables) NewScope

func (v *Variables) NewScope() types.Variables

func (*Variables) NewSubScope added in v0.0.10

func (v *Variables) NewSubScope(name string) types.Variables

func (*Variables) ResolvePlaceholders

func (v *Variables) ResolvePlaceholders(str string) string

func (*Variables) ResolveQuery added in v0.0.2

func (v *Variables) ResolveQuery(queryStr string) (val interface{}, ok bool, err error)

func (*Variables) SetDefaultVar added in v0.0.10

func (v *Variables) SetDefaultVar(name string, value interface{})

func (*Variables) SetSubScope added in v0.0.10

func (v *Variables) SetSubScope(name string, subScope types.Variables)

func (*Variables) SetVar

func (v *Variables) SetVar(name string, value interface{})

Jump to

Keyboard shortcuts

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