Documentation ¶
Index ¶
- func GeneralizeData(source interface{}) (interface{}, error)
- func NewScopeFilter(vars types.Variables) types.Variables
- func NewVariables(parentScope types.Variables) types.Variables
- type ScopeFilter
- func (v *ScopeFilter) ConsumeVars(config interface{}, consumeMap map[string]string) error
- func (v *ScopeFilter) CopyVars(source types.Variables, copyMap map[string]string) error
- func (v *ScopeFilter) GetSubScope(name string) types.Variables
- func (v *ScopeFilter) GetVar(name string) interface{}
- func (v *ScopeFilter) GetVarsMap(varsMap map[string]any, _ bool) map[string]any
- func (v *ScopeFilter) LookupVar(name string) (interface{}, bool)
- func (v *ScopeFilter) NewScope() types.Variables
- func (v *ScopeFilter) ResolvePlaceholders(str string) string
- func (v *ScopeFilter) ResolveQuery(queryStr string) (value interface{}, found bool, err error)
- func (v *ScopeFilter) SetDefaultVar(name string, value interface{})
- func (v *ScopeFilter) SetSubScope(name string, subScope types.Variables)
- func (v *ScopeFilter) SetVar(name string, value interface{})
- type Variables
- func (v *Variables) ConsumeVars(config interface{}, consumeMap map[string]string) error
- func (v *Variables) CopyVars(source types.Variables, copyMap map[string]string) error
- func (v *Variables) GetSubScope(name string) types.Variables
- func (v *Variables) GetVar(name string) interface{}
- func (v *Variables) GetVarsMap(varsMap map[string]any, skipParent bool) map[string]any
- func (v *Variables) LookupVar(name string) (interface{}, bool)
- func (v *Variables) NewScope() types.Variables
- func (v *Variables) NewSubScope(name string) types.Variables
- func (v *Variables) ResolvePlaceholders(str string) string
- func (v *Variables) ResolveQuery(queryStr string) (interface{}, bool, error)
- func (v *Variables) SetDefaultVar(name string, value interface{})
- func (v *Variables) SetSubScope(name string, subScope types.Variables)
- func (v *Variables) SetVar(name string, value interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneralizeData ¶ added in v0.0.10
func GeneralizeData(source interface{}) (interface{}, error)
Types ¶
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) 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 (*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 (*Variables) GetSubScope ¶ added in v0.0.10
func (*Variables) GetVarsMap ¶ added in v0.0.2
func (*Variables) NewSubScope ¶ added in v0.0.10
func (*Variables) ResolvePlaceholders ¶
func (*Variables) ResolveQuery ¶ added in v0.0.2
func (*Variables) SetDefaultVar ¶ added in v0.0.10
func (*Variables) SetSubScope ¶ added in v0.0.10
Click to show internal directories.
Click to hide internal directories.