ref

package
v0.5.7-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: BSD-3-Clause Imports: 7 Imported by: 3 modules, 1 package

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 GetFieldNameFromArrayRef

func GetFieldNameFromArrayRef(arrayRef string) string

func GetMapToAttrName added in v0.5.7

func GetMapToAttrName(field *field.MappingField) (string, error)

func GetMapToPathFields added in v0.5.7

func GetMapToPathFields(mapField *field.MappingField) (*field.MappingField, error)

func GetValueFromOutputScope added in v0.5.7

func GetValueFromOutputScope(mapfield *field.MappingField, outputtscope data.Scope) (interface{}, error)

func HasArray added in v0.5.7

func HasArray(fieldname string) bool

func IsArrayMapping

func IsArrayMapping(ref string) bool

Types

type ArrayRef

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

func NewArrayRef

func NewArrayRef(ref string) *ArrayRef

func (*ArrayRef) Eval

func (m *ArrayRef) Eval(inputScope, outputScope data.Scope) (interface{}, error)

func (*ArrayRef) EvalFromData

func (m *ArrayRef) EvalFromData(data interface{}) (interface{}, error)

func (*ArrayRef) GetRef

func (m *ArrayRef) GetRef() string

type MappingRef

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

func NewMappingRef

func NewMappingRef(ref string) *MappingRef

func (*MappingRef) Eval

func (m *MappingRef) Eval(inputScope data.Scope, resovler data.Resolver) (interface{}, error)

func (*MappingRef) GetRef

func (m *MappingRef) GetRef() string

func (*MappingRef) GetValue

func (m *MappingRef) GetValue(inputScope data.Scope, resovler data.Resolver) (interface{}, error)

Jump to

Keyboard shortcuts

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