Versions in this module Expand all Collapse all v1 v1.4.0 Dec 6, 2019 Changes in this version + const CATCH_ERROR + const CATCH_VALID + const CATCH_VALUE + const DEFAULT + const DNS1035LabelMaxLength + const DNS1123LabelMaxLength + const DNS1123SubdomainMaxLength + const INJECT + const LOCAL + const MaxInt + const MaxUint + const OpAnd + const OpOr + const STATE + const TEMPLATE + const TEMPORARY + var MapToListContext = &mapToListContext + var MapToMapContext = &mapToMapContext + var SelectToListContext = &selectToListContext + var SelectToMapContext = &selectToMapContext + func Base64Encode(data []byte, max int) string + func CatchEvaluationError(result *interface{}, info *EvaluationInfo, ok *bool, msgfmt string, ...) + func DiffIP(a, b net.IP) int64 + func EmptyError() string + func ExpressionType(elem interface{}) string + func IPAdd(ip net.IP, offset int64) net.IP + func IsDNS1035Label(value string) []string + func IsDNS1123Label(value string) []string + func IsDNS1123Subdomain(value string) []string + func IsListExpansion(e Expression) bool + func IsWildcardDNS1123Subdomain(value string) []string + func MakeStringList(list []string, info EvaluationInfo) []yaml.Node + func MaxIP(cidr *net.IPNet) net.IP + func MaxLenError(length int) string + func NewNode(val interface{}, src SourceProvider) yaml.Node + func PathComponents(ref string, leading bool) []string + func RaiseEvaluationError(resolved bool, info EvaluationInfo, ok bool) + func RaiseEvaluationErrorf(format string, args ...interface{}) + func RegexError(msg string, fmt string, examples ...string) string + func RegisterFunction(name string, f Function) + func RegisterValidator(name string, f Validator) + func ReloadEnv() + func ReplaceRegExp(str string, src string, dst interface{}, cnt int, binding Binding) (bool, string, error) + func ReplaceString(str string, src string, dst interface{}, cnt int, binding Binding) (bool, string, error) + func ResetUnresolvedNodes(root yaml.Node) yaml.Node + func SimpleValidatorResult(r bool, t, f string, args ...interface{}) (bool, string, error, bool) + func StringValue(msg string, v interface{}) (string, error) + func SubIP(ip net.IP, mask net.IPMask) net.IP + func ValidatorErrorf(msgfmt string, args ...interface{}) (bool, string, error, bool) + func ValidatorResult(r bool, msgfmt string, args ...interface{}) (bool, string, error, bool) + func ValueAsString(val interface{}, all bool) string + type AdditionExpr struct + A Expression + B Expression + func (e AdditionExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e AdditionExpr) String() string + type Assignment struct + Key Expression + Value Expression + func (e Assignment) String() string + type AutoExpr struct + Path []string + func (e AutoExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e AutoExpr) String() string + type Binding interface + Cascade func(outer Binding, template yaml.Node, partial bool, templates ...yaml.Node) (yaml.Node, error) + FindFromRoot func([]string) (yaml.Node, bool) + FindInStubs func([]string) (yaml.Node, bool) + FindReference func([]string) (yaml.Node, bool) + Flow func(source yaml.Node, shouldOverride bool) (yaml.Node, Status) + GetFileContent func(file string, cached bool) ([]byte, error) + GetRootBinding func() map[string]yaml.Node + GetState func() State + GetStaticBinding func() map[string]yaml.Node + GetTempName func(data []byte) (string, error) + NoMerge func() bool + Outer func() Binding + Path func() []string + RedirectOverwrite func(path []string) Binding + StubPath func() []string + WithLocalScope func(step map[string]yaml.Node) Binding + WithNewRoot func() Binding + WithPath func(step string) Binding + WithScope func(step map[string]yaml.Node) Binding + WithSource func(source string) Binding + type BooleanExpr struct + Value bool + func (e BooleanExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e BooleanExpr) String() string + type Bytes interface + Bytes func() []byte + type CallExpr struct + Arguments []Expression + Curry bool + Function Expression + func (e CallExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e CallExpr) String() string + type CatchExpr struct + A Expression + Lambda Expression + func (e CatchExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e CatchExpr) String() string + type Cleanup interface + Cleanup func() error + type ComparisonExpr struct + A Expression + B Expression + Op string + func (e ComparisonExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e ComparisonExpr) String() string + type ConcatenationExpr struct + A Expression + B Expression + func (e ConcatenationExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e ConcatenationExpr) String() string + type CondExpr struct + C Expression + F Expression + T Expression + func (e CondExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e CondExpr) String() string + type CreateMapExpr struct + Assignments []Assignment + func (e CreateMapExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e CreateMapExpr) String() string + type DefaultExpr struct + func (e DefaultExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e DefaultExpr) String() string + type DivisionExpr struct + A Expression + B Expression + func (e DivisionExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e DivisionExpr) String() string + type DynamicExpr struct + Expression Expression + Reference Expression + func (e DynamicExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e DynamicExpr) String() string + type DynamlGrammar struct + Buffer string + Parse func(rule ...int) error + Pretty bool + Reset func() + func (p *DynamlGrammar) Execute() + func (p *DynamlGrammar) Highlighter() + func (p *DynamlGrammar) Init() + func (p *DynamlGrammar) PrintSyntaxTree() + type EvaluationError struct + func (e EvaluationError) Error() string + type EvaluationInfo struct + Cleanups []Cleanup + Failed bool + Issue yaml.Issue + KeyName string + LocalError bool + Merged bool + Preferred bool + Raw bool + RedirectPath []string + Replace bool + Source string + Undefined bool + func DefaultInfo() EvaluationInfo + func ParseData(file string, data []byte, mode string, binding Binding) (interface{}, EvaluationInfo, bool) + func ResolveExpressionListOrPushEvaluation(list *[]Expression, resolved *bool, info *EvaluationInfo, binding Binding, ...) ([]interface{}, EvaluationInfo, bool) + func ResolveExpressionOrPushEvaluation(e *Expression, resolved *bool, info *EvaluationInfo, binding Binding, ...) (interface{}, EvaluationInfo, bool) + func ResolveIntegerExpressionOrPushEvaluation(e *Expression, resolved *bool, info *EvaluationInfo, binding Binding, ...) (int64, EvaluationInfo, bool) + func (e EvaluationInfo) SourceName() string + func (i *EvaluationInfo) AnnotateError(err EvaluationInfo, msgfmt interface{}, args ...interface{}) (interface{}, EvaluationInfo, bool) + func (i *EvaluationInfo) Cleanup() error + func (i *EvaluationInfo) Error(msgfmt interface{}, args ...interface{}) (interface{}, EvaluationInfo, bool) + func (i *EvaluationInfo) PropagateError(value interface{}, state Status, msgfmt string, args ...interface{}) (interface{}, EvaluationInfo, bool) + func (i *EvaluationInfo) SetError(msgfmt interface{}, args ...interface{}) + func (i EvaluationInfo) Join(o EvaluationInfo) EvaluationInfo + type Expander func(dst []byte, src []byte, match []int) (bool, []byte, error) + func LambdaExpander(lambda LambdaValue, binding Binding) Expander + func RegExpExpander(exp *regexp.Regexp, templ []byte) Expander + type Expression interface + Evaluate func(Binding, bool) (interface{}, EvaluationInfo, bool) + func KeepArgWrapper(e Expression, orig Expression) Expression + func Parse(source string, path []string, stubPath []string) (Expression, error) + type ExpressionParseError struct + func NewParseError(grammar *DynamlGrammar, token token32, msg error) *ExpressionParseError + func (e ExpressionParseError) Error() string + func (e ExpressionParseError) String() string + type FileEntry struct + type Finder func(src []byte) []int + func RegExpFinder(exp *regexp.Regexp) Finder + func StringFinder(str string) Finder + type Function func(arguments []interface{}, binding Binding) (interface{}, EvaluationInfo, bool) + type GroupedExpr struct + Expr Expression + func (e GroupedExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e GroupedExpr) String() string + type IPRange interface + GetIP func(int64) net.IP + GetSize func() int64 + type IntegerExpr struct + Value int64 + func (e IntegerExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e IntegerExpr) String() string + type LambdaExpr struct + E Expression + Parameters []Parameter + VarArgs bool + func (e LambdaExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e LambdaExpr) String() string + type LambdaRefExpr struct + Path []string + Source Expression + StubPath []string + func (e LambdaRefExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e LambdaRefExpr) String() string + type LambdaValue struct + Parameters []Parameter + func (e LambdaValue) EquivalentTo(val interface{}) bool + func (e LambdaValue) Evaluate(inline bool, curry, autocurry bool, nargs map[string]yaml.Node, ...) (bool, interface{}, EvaluationInfo, bool) + func (e LambdaValue) MarshalYAML() (tag string, value interface{}, err error) + func (e LambdaValue) NumOptional() int + func (e LambdaValue) ParameterIndex(name string) int + func (e LambdaValue) SetStaticResolver(binding Binding) StaticallyScopedValue + func (e LambdaValue) StaticResolver() Binding + func (e LambdaValue) String() string + type Less func(i, j int) bool + func LambdaLess(lambda LambdaValue, list []yaml.Node, binding Binding) Less + func ValueLess(list []yaml.Node) Less + type ListExpansion interface + IsListExpansion func() bool + type ListExpansionExpr struct + func (e ListExpansionExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e ListExpansionExpr) IsListExpansion() bool + func (e ListExpansionExpr) String() string + type ListExpr struct + Contents []Expression + func (e ListExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e ListExpr) String() string + type LogAndExpr struct + A Expression + B Expression + func (e LogAndExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e LogAndExpr) String() string + type LogOrExpr struct + A Expression + B Expression + func (e LogOrExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e LogOrExpr) String() string + type MappingAggregation interface + Map func(key interface{}, value interface{}, n yaml.Node, info EvaluationInfo) + Result func() interface{} + type MappingContext interface + Brackets func() string + CreateMappingAggregation func() MappingAggregation + Keyword func() string + Supports func(source interface{}) bool + type MappingExpr struct + A Expression + Context MappingContext + Lambda Expression + func (e MappingExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e MappingExpr) String() string + type MarkerExpr struct + func (e MarkerExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e MarkerExpr) GetFlags() yaml.NodeFlags + func (e MarkerExpr) Has(t string) bool + func (e MarkerExpr) MarshalYAML() (tag string, value interface{}, err error) + func (e MarkerExpr) String() string + func (e MarkerExpr) TemplateExpression(orig yaml.Node) yaml.Node + type MarkerExpressionExpr struct + func (e MarkerExpressionExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e MarkerExpressionExpr) String() string + type MergeExpr struct + KeyName string + Path []string + Redirect bool + Replace bool + Required bool + func (e MergeExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e MergeExpr) String() string + type ModuloExpr struct + A Expression + B Expression + func (e ModuloExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e ModuloExpr) String() string + type MultiplicationExpr struct + A Expression + B Expression + func (e MultiplicationExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e MultiplicationExpr) String() string + type NameArgument struct + Name string + func (a NameArgument) String() string + type NilExpr struct + func (e NilExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e NilExpr) String() string + type NotExpr struct + Expr Expression + func (e NotExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e NotExpr) String() string + type OrExpr struct + A Expression + B Expression + func (e OrExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e OrExpr) String() string + type Parameter struct + Default Expression + Name string + func (p Parameter) String() string + type PreferExpr struct + func (e PreferExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e PreferExpr) String() string + type ProjectionExpr struct + Expression Expression + Projection Expression + Value *ProjectionValue + func (e ProjectionExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e ProjectionExpr) String() string + type ProjectionValue struct + Value interface{} + type ProjectionValueExpr struct + Value *ProjectionValue + func (e ProjectionValueExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e ProjectionValueExpr) String() string + type QualifiedExpr struct + Expression Expression + Reference ReferenceExpr + func (e QualifiedExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e QualifiedExpr) String() string + type RangeExpr struct + End Expression + Start Expression + func (e RangeExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e RangeExpr) String() string + type ReferenceExpr struct + Path []string + func (e ReferenceExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e ReferenceExpr) String() string + type ScopeExpr struct + E Expression + func (e ScopeExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e ScopeExpr) String() string + type SliceExpr struct + Expression Expression + Range RangeExpr + func (e SliceExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e SliceExpr) String() string + type SourceProvider interface + SourceName func() string + type State interface + GetEncryptionKey func() string + GetFileContent func(file string, cached bool) ([]byte, error) + GetTempName func(data []byte) (string, error) + type StaticallyScopedValue interface + SetStaticResolver func(binding Binding) StaticallyScopedValue + StaticResolver func() Binding + type Status interface + HasError func() bool + Issue func(fmt string, args ...interface{}) (issue yaml.Issue, localError bool, failed bool) + type StringExpr struct + Value string + func (e StringExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e StringExpr) String() string + type SubstitutionExpr struct + Template Expression + func (e SubstitutionExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e SubstitutionExpr) String() string + type SubtractionExpr struct + A Expression + B Expression + func (e SubtractionExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e SubtractionExpr) String() string + type SumExpr struct + A Expression + I Expression + Lambda Expression + func (e SumExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e SumExpr) String() string + type SyncExpr struct + A Expression + Cond Expression + Timeout Expression + Value Expression + func (e SyncExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e SyncExpr) String() string + type TemplateValue struct + Orig yaml.Node + Path []string + Prepared yaml.Node + func NewTemplateValue(path []string, prepared yaml.Node, orig yaml.Node, binding Binding) TemplateValue + func (e TemplateValue) EquivalentTo(val interface{}) bool + func (e TemplateValue) MarshalYAML() (tag string, value interface{}, err error) + func (e TemplateValue) SetStaticResolver(binding Binding) StaticallyScopedValue + func (e TemplateValue) StaticResolver() Binding + func (e TemplateValue) String() string + type UndefinedExpr struct + func (e UndefinedExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e UndefinedExpr) String() string + type UnresolvedNode struct + Context []string + Path []string + func FindUnresolvedNodes(root yaml.Node, context ...string) (result []UnresolvedNode) + type UnresolvedNodes struct + Nodes []UnresolvedNode + func (e UnresolvedNodes) Error() string + func (e UnresolvedNodes) HasError() bool + func (e UnresolvedNodes) Issue(msgfmt string, args ...interface{}) (result yaml.Issue, localError bool, failed bool) + type ValidOrExpr struct + A Expression + B Expression + func (e ValidOrExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e ValidOrExpr) String() string + type Validator func(value interface{}, binding Binding, args ...interface{}) (bool, string, error, bool) + type ValueExpr struct + Value interface{} + func (e ValueExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool) + func (e ValueExpr) String() string