ref

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 License: BSD-3-Clause Imports: 7 Imported by: 4

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