Documentation
¶
Index ¶
- Constants
- Variables
- 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
- type Assignment
- type AutoExpr
- type Binding
- type BooleanExpr
- type Bytes
- type CallExpr
- type CatchExpr
- type Cleanup
- type ComparisonExpr
- type ConcatenationExpr
- type CondExpr
- type CreateMapExpr
- type DefaultExpr
- type DivisionExpr
- type DynamicExpr
- type DynamlGrammar
- type EvaluationError
- type EvaluationInfo
- 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 (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) Join(o EvaluationInfo) EvaluationInfo
- func (i *EvaluationInfo) PropagateError(value interface{}, state Status, msgfmt string, args ...interface{}) (interface{}, EvaluationInfo, bool)
- func (i *EvaluationInfo) SetError(msgfmt interface{}, args ...interface{})
- func (e EvaluationInfo) SourceName() string
- type Expander
- type Expression
- type ExpressionParseError
- type FileEntry
- type Finder
- type Function
- type GroupedExpr
- type IPRange
- type IntegerExpr
- type LambdaExpr
- type LambdaRefExpr
- type LambdaValue
- 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
- type ListExpansion
- type ListExpansionExpr
- type ListExpr
- type LogAndExpr
- type LogOrExpr
- type MappingAggregation
- type MappingContext
- type MappingExpr
- type MarkerExpr
- 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
- type MergeExpr
- type ModuloExpr
- type MultiplicationExpr
- type NameArgument
- type NilExpr
- type NotExpr
- type OrExpr
- type Parameter
- type PreferExpr
- type ProjectionExpr
- type ProjectionValue
- type ProjectionValueExpr
- type QualifiedExpr
- type RangeExpr
- type ReferenceExpr
- type ScopeExpr
- type SliceExpr
- type SourceProvider
- type State
- type StaticallyScopedValue
- type Status
- type StringExpr
- type SubstitutionExpr
- type SubtractionExpr
- type SumExpr
- type SyncExpr
- type 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
- type UnresolvedNode
- type UnresolvedNodes
- type ValidOrExpr
- type Validator
- type ValueExpr
Constants ¶
View Source
const ( TEMPORARY = "&temporary" TEMPLATE = "&template" LOCAL = "&local" INJECT = "&inject" DEFAULT = "&default" STATE = "&state" )
View Source
const CATCH_ERROR = "error"
View Source
const CATCH_VALID = "valid"
View Source
const CATCH_VALUE = "value"
View Source
const DNS1035LabelMaxLength int = 63
View Source
const DNS1123LabelMaxLength int = 63
View Source
const DNS1123SubdomainMaxLength int = 253
View Source
const MaxInt = int64(MaxUint >> 1)
View Source
const MaxUint = ^uint64(0)
View Source
const (
OpAnd = "-and"
)
View Source
const (
OpOr = "-or"
)
Variables ¶
View Source
var MapToListContext = &mapToListContext{defaultContext{brackets: "[]", keyword: "map", list: true}}
View Source
var MapToMapContext = &mapToMapContext{defaultContext{brackets: "{}", keyword: "map", list: false}}
View Source
var SelectToListContext = &selectToListContext{defaultContext{brackets: "[]", keyword: "select", list: true}}
View Source
var SelectToMapContext = &selectToMapContext{defaultContext{brackets: "{}", keyword: "select", list: false}}
Functions ¶
func Base64Encode ¶
func CatchEvaluationError ¶
func CatchEvaluationError(result *interface{}, info *EvaluationInfo, ok *bool, msgfmt string, args ...interface{})
func EmptyError ¶
func EmptyError() string
EmptyError returns a string explanation of a "must not be empty" validation failure.
func ExpressionType ¶
func ExpressionType(elem interface{}) string
func IsDNS1035Label ¶
IsDNS1035Label tests for a string that conforms to the definition of a label in DNS (RFC 1035).
func IsDNS1123Label ¶
IsDNS1123Label tests for a string that conforms to the definition of a label in DNS (RFC 1123).
func IsDNS1123Subdomain ¶
IsDNS1123Subdomain tests for a string that conforms to the definition of a subdomain in DNS (RFC 1123).
func IsListExpansion ¶
func IsListExpansion(e Expression) bool
func IsWildcardDNS1123Subdomain ¶
IsWildcardDNS1123Subdomain tests for a string that conforms to the definition of a wildcard subdomain in DNS (RFC 1034 section 4.3.3).
func MakeStringList ¶
func MakeStringList(list []string, info EvaluationInfo) []yaml.Node
func MaxLenError ¶
MaxLenError returns a string explanation of a "string too long" validation failure.
func NewNode ¶
func NewNode(val interface{}, src SourceProvider) yaml.Node
func PathComponents ¶
func RaiseEvaluationError ¶
func RaiseEvaluationError(resolved bool, info EvaluationInfo, ok bool)
func RaiseEvaluationErrorf ¶
func RaiseEvaluationErrorf(format string, args ...interface{})
func RegexError ¶
RegexError returns a string explanation of a regex validation failure.
func RegisterFunction ¶
func RegisterValidator ¶
func ReplaceRegExp ¶
func ReplaceString ¶
func SimpleValidatorResult ¶
func StringValue ¶
func ValidatorErrorf ¶
func ValidatorResult ¶
func ValueAsString ¶
Types ¶
type AdditionExpr ¶
type AdditionExpr struct { A Expression B Expression }
func (AdditionExpr) Evaluate ¶
func (e AdditionExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (AdditionExpr) String ¶
func (e AdditionExpr) String() string
type Assignment ¶
type Assignment struct { Key Expression Value Expression }
func (Assignment) String ¶
func (e Assignment) String() string
type AutoExpr ¶
type AutoExpr struct {
Path []string
}
type Binding ¶
type Binding interface { SourceProvider GetStaticBinding() map[string]yaml.Node GetRootBinding() map[string]yaml.Node FindFromRoot([]string) (yaml.Node, bool) FindReference([]string) (yaml.Node, bool) FindInStubs([]string) (yaml.Node, bool) WithScope(step map[string]yaml.Node) Binding WithLocalScope(step map[string]yaml.Node) Binding WithPath(step string) Binding WithSource(source string) Binding WithNewRoot() Binding RedirectOverwrite(path []string) Binding Outer() Binding Path() []string StubPath() []string NoMerge() bool GetState() State GetTempName(data []byte) (string, error) GetFileContent(file string, cached bool) ([]byte, error) Flow(source yaml.Node, shouldOverride bool) (yaml.Node, Status) Cascade(outer Binding, template yaml.Node, partial bool, templates ...yaml.Node) (yaml.Node, error) }
type BooleanExpr ¶
type BooleanExpr struct {
Value bool
}
func (BooleanExpr) Evaluate ¶
func (e BooleanExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (BooleanExpr) String ¶
func (e BooleanExpr) String() string
type CallExpr ¶
type CallExpr struct { Function Expression Arguments []Expression Curry bool }
type CatchExpr ¶
type CatchExpr struct { A Expression Lambda Expression }
type ComparisonExpr ¶
type ComparisonExpr struct { A Expression Op string B Expression }
func (ComparisonExpr) Evaluate ¶
func (e ComparisonExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (ComparisonExpr) String ¶
func (e ComparisonExpr) String() string
type ConcatenationExpr ¶
type ConcatenationExpr struct { A Expression B Expression }
func (ConcatenationExpr) Evaluate ¶
func (e ConcatenationExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (ConcatenationExpr) String ¶
func (e ConcatenationExpr) String() string
type CondExpr ¶
type CondExpr struct { C Expression T Expression F Expression }
type CreateMapExpr ¶
type CreateMapExpr struct {
Assignments []Assignment
}
func (CreateMapExpr) Evaluate ¶
func (e CreateMapExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (CreateMapExpr) String ¶
func (e CreateMapExpr) String() string
type DefaultExpr ¶
type DefaultExpr struct { }
func (DefaultExpr) Evaluate ¶
func (e DefaultExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (DefaultExpr) String ¶
func (e DefaultExpr) String() string
type DivisionExpr ¶
type DivisionExpr struct { A Expression B Expression }
func (DivisionExpr) Evaluate ¶
func (e DivisionExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (DivisionExpr) String ¶
func (e DivisionExpr) String() string
type DynamicExpr ¶
type DynamicExpr struct { Expression Expression Reference Expression }
func (DynamicExpr) Evaluate ¶
func (e DynamicExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (DynamicExpr) String ¶
func (e DynamicExpr) String() string
type DynamlGrammar ¶
type DynamlGrammar struct { Buffer string Parse func(rule ...int) error Reset func() Pretty bool // contains filtered or unexported fields }
func (*DynamlGrammar) Execute ¶
func (p *DynamlGrammar) Execute()
func (*DynamlGrammar) Highlighter ¶
func (p *DynamlGrammar) Highlighter()
func (*DynamlGrammar) Init ¶
func (p *DynamlGrammar) Init()
func (*DynamlGrammar) PrintSyntaxTree ¶
func (p *DynamlGrammar) PrintSyntaxTree()
type EvaluationError ¶
type EvaluationError struct { EvaluationInfo // contains filtered or unexported fields }
func (EvaluationError) Error ¶
func (e EvaluationError) Error() string
type EvaluationInfo ¶
type EvaluationInfo struct { RedirectPath []string Replace bool Merged bool Preferred bool KeyName string Source string LocalError bool Failed bool Undefined bool Raw bool Issue yaml.Issue Cleanups []Cleanup yaml.NodeFlags }
func DefaultInfo ¶
func DefaultInfo() EvaluationInfo
func ResolveExpressionListOrPushEvaluation ¶
func ResolveExpressionListOrPushEvaluation(list *[]Expression, resolved *bool, info *EvaluationInfo, binding Binding, locally bool) ([]interface{}, EvaluationInfo, bool)
func ResolveExpressionOrPushEvaluation ¶
func ResolveExpressionOrPushEvaluation(e *Expression, resolved *bool, info *EvaluationInfo, binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func ResolveIntegerExpressionOrPushEvaluation ¶
func ResolveIntegerExpressionOrPushEvaluation(e *Expression, resolved *bool, info *EvaluationInfo, binding Binding, locally bool) (int64, EvaluationInfo, bool)
func (*EvaluationInfo) AnnotateError ¶
func (i *EvaluationInfo) AnnotateError(err EvaluationInfo, msgfmt interface{}, args ...interface{}) (interface{}, EvaluationInfo, bool)
func (*EvaluationInfo) Cleanup ¶
func (i *EvaluationInfo) Cleanup() error
func (*EvaluationInfo) Error ¶
func (i *EvaluationInfo) Error(msgfmt interface{}, args ...interface{}) (interface{}, EvaluationInfo, bool)
func (EvaluationInfo) Join ¶
func (i EvaluationInfo) Join(o EvaluationInfo) EvaluationInfo
func (*EvaluationInfo) PropagateError ¶
func (i *EvaluationInfo) PropagateError(value interface{}, state Status, msgfmt string, args ...interface{}) (interface{}, EvaluationInfo, bool)
func (*EvaluationInfo) SetError ¶
func (i *EvaluationInfo) SetError(msgfmt interface{}, args ...interface{})
func (EvaluationInfo) SourceName ¶
func (e EvaluationInfo) SourceName() string
type Expander ¶
func LambdaExpander ¶
func LambdaExpander(lambda LambdaValue, binding Binding) Expander
type Expression ¶
type Expression interface {
Evaluate(Binding, bool) (interface{}, EvaluationInfo, bool)
}
func KeepArgWrapper ¶
func KeepArgWrapper(e Expression, orig Expression) Expression
type ExpressionParseError ¶
type ExpressionParseError struct {
// contains filtered or unexported fields
}
func NewParseError ¶
func NewParseError(grammar *DynamlGrammar, token token32, msg error) *ExpressionParseError
func (ExpressionParseError) Error ¶
func (e ExpressionParseError) Error() string
type Function ¶
type Function func(arguments []interface{}, binding Binding) (interface{}, EvaluationInfo, bool)
type GroupedExpr ¶
type GroupedExpr struct {
Expr Expression
}
func (GroupedExpr) Evaluate ¶
func (e GroupedExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (GroupedExpr) String ¶
func (e GroupedExpr) String() string
type IntegerExpr ¶
type IntegerExpr struct {
Value int64
}
func (IntegerExpr) Evaluate ¶
func (e IntegerExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (IntegerExpr) String ¶
func (e IntegerExpr) String() string
type LambdaExpr ¶
type LambdaExpr struct { Parameters []Parameter VarArgs bool E Expression }
func (LambdaExpr) Evaluate ¶
func (e LambdaExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (LambdaExpr) String ¶
func (e LambdaExpr) String() string
type LambdaRefExpr ¶
type LambdaRefExpr struct { Source Expression Path []string StubPath []string }
func (LambdaRefExpr) Evaluate ¶
func (e LambdaRefExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (LambdaRefExpr) String ¶
func (e LambdaRefExpr) String() string
type LambdaValue ¶
type LambdaValue struct { Parameters []Parameter // contains filtered or unexported fields }
func (LambdaValue) EquivalentTo ¶
func (e LambdaValue) EquivalentTo(val interface{}) bool
func (LambdaValue) MarshalYAML ¶
func (e LambdaValue) MarshalYAML() (tag string, value interface{}, err error)
func (LambdaValue) NumOptional ¶
func (e LambdaValue) NumOptional() int
func (LambdaValue) ParameterIndex ¶
func (e LambdaValue) ParameterIndex(name string) int
func (LambdaValue) SetStaticResolver ¶
func (e LambdaValue) SetStaticResolver(binding Binding) StaticallyScopedValue
func (LambdaValue) StaticResolver ¶
func (e LambdaValue) StaticResolver() Binding
func (LambdaValue) String ¶
func (e LambdaValue) String() string
type Less ¶
func LambdaLess ¶
func LambdaLess(lambda LambdaValue, list []yaml.Node, binding Binding) Less
type ListExpansion ¶
type ListExpansion interface { Expression IsListExpansion() bool }
type ListExpansionExpr ¶
type ListExpansionExpr struct {
Expression
}
func (ListExpansionExpr) Evaluate ¶
func (e ListExpansionExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (ListExpansionExpr) IsListExpansion ¶
func (e ListExpansionExpr) IsListExpansion() bool
func (ListExpansionExpr) String ¶
func (e ListExpansionExpr) String() string
type ListExpr ¶
type ListExpr struct {
Contents []Expression
}
type LogAndExpr ¶
type LogAndExpr struct { A Expression B Expression }
func (LogAndExpr) Evaluate ¶
func (e LogAndExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (LogAndExpr) String ¶
func (e LogAndExpr) String() string
type LogOrExpr ¶
type LogOrExpr struct { A Expression B Expression }
type MappingAggregation ¶
type MappingAggregation interface { Map(key interface{}, value interface{}, n yaml.Node, info EvaluationInfo) Result() interface{} }
type MappingContext ¶
type MappingContext interface { CreateMappingAggregation() MappingAggregation Keyword() string Brackets() string Supports(source interface{}) bool }
type MappingExpr ¶
type MappingExpr struct { A Expression Lambda Expression Context MappingContext }
func (MappingExpr) Evaluate ¶
func (e MappingExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (MappingExpr) String ¶
func (e MappingExpr) String() string
type MarkerExpr ¶
type MarkerExpr struct {
// contains filtered or unexported fields
}
func (MarkerExpr) Evaluate ¶
func (e MarkerExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (MarkerExpr) GetFlags ¶
func (e MarkerExpr) GetFlags() yaml.NodeFlags
func (MarkerExpr) Has ¶
func (e MarkerExpr) Has(t string) bool
func (MarkerExpr) MarshalYAML ¶
func (e MarkerExpr) MarshalYAML() (tag string, value interface{}, err error)
func (MarkerExpr) String ¶
func (e MarkerExpr) String() string
func (MarkerExpr) TemplateExpression ¶
func (e MarkerExpr) TemplateExpression(orig yaml.Node) yaml.Node
type MarkerExpressionExpr ¶
type MarkerExpressionExpr struct {
// contains filtered or unexported fields
}
func (MarkerExpressionExpr) Evaluate ¶
func (e MarkerExpressionExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (MarkerExpressionExpr) String ¶
func (e MarkerExpressionExpr) String() string
type MergeExpr ¶
type ModuloExpr ¶
type ModuloExpr struct { A Expression B Expression }
func (ModuloExpr) Evaluate ¶
func (e ModuloExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (ModuloExpr) String ¶
func (e ModuloExpr) String() string
type MultiplicationExpr ¶
type MultiplicationExpr struct { A Expression B Expression }
func (MultiplicationExpr) Evaluate ¶
func (e MultiplicationExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (MultiplicationExpr) String ¶
func (e MultiplicationExpr) String() string
type NameArgument ¶
type NameArgument struct { Name string Expression }
func (NameArgument) String ¶
func (a NameArgument) String() string
type NilExpr ¶
type NilExpr struct{}
type NotExpr ¶
type NotExpr struct {
Expr Expression
}
type OrExpr ¶
type OrExpr struct { A Expression B Expression }
type Parameter ¶
type Parameter struct { Name string Default Expression }
type PreferExpr ¶
type PreferExpr struct {
// contains filtered or unexported fields
}
func (PreferExpr) Evaluate ¶
func (e PreferExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (PreferExpr) String ¶
func (e PreferExpr) String() string
type ProjectionExpr ¶
type ProjectionExpr struct { Expression Expression Value *ProjectionValue Projection Expression }
func (ProjectionExpr) Evaluate ¶
func (e ProjectionExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (ProjectionExpr) String ¶
func (e ProjectionExpr) String() string
type ProjectionValue ¶
type ProjectionValue struct {
Value interface{}
}
type ProjectionValueExpr ¶
type ProjectionValueExpr struct {
Value *ProjectionValue
}
func (ProjectionValueExpr) Evaluate ¶
func (e ProjectionValueExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (ProjectionValueExpr) String ¶
func (e ProjectionValueExpr) String() string
type QualifiedExpr ¶
type QualifiedExpr struct { Expression Expression Reference ReferenceExpr }
func (QualifiedExpr) Evaluate ¶
func (e QualifiedExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (QualifiedExpr) String ¶
func (e QualifiedExpr) String() string
type RangeExpr ¶
type RangeExpr struct { Start Expression End Expression }
type ReferenceExpr ¶
type ReferenceExpr struct {
Path []string
}
func (ReferenceExpr) Evaluate ¶
func (e ReferenceExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (ReferenceExpr) String ¶
func (e ReferenceExpr) String() string
type ScopeExpr ¶
type ScopeExpr struct { CreateMapExpr E Expression }
type SliceExpr ¶
type SliceExpr struct { Expression Expression Range RangeExpr }
type SourceProvider ¶
type SourceProvider interface {
SourceName() string
}
type StaticallyScopedValue ¶
type StaticallyScopedValue interface { StaticResolver() Binding SetStaticResolver(binding Binding) StaticallyScopedValue }
type StringExpr ¶
type StringExpr struct {
Value string
}
func (StringExpr) Evaluate ¶
func (e StringExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (StringExpr) String ¶
func (e StringExpr) String() string
type SubstitutionExpr ¶
type SubstitutionExpr struct {
Template Expression
}
func (SubstitutionExpr) Evaluate ¶
func (e SubstitutionExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (SubstitutionExpr) String ¶
func (e SubstitutionExpr) String() string
type SubtractionExpr ¶
type SubtractionExpr struct { A Expression B Expression }
func (SubtractionExpr) Evaluate ¶
func (e SubtractionExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (SubtractionExpr) String ¶
func (e SubtractionExpr) String() string
type SumExpr ¶
type SumExpr struct { A Expression I Expression Lambda Expression }
type SyncExpr ¶
type SyncExpr struct { A Expression Cond Expression Value Expression Timeout Expression // contains filtered or unexported fields }
type TemplateValue ¶
type TemplateValue struct { Path []string Prepared yaml.Node Orig yaml.Node // contains filtered or unexported fields }
func NewTemplateValue ¶
func (TemplateValue) EquivalentTo ¶
func (e TemplateValue) EquivalentTo(val interface{}) bool
func (TemplateValue) MarshalYAML ¶
func (e TemplateValue) MarshalYAML() (tag string, value interface{}, err error)
func (TemplateValue) SetStaticResolver ¶
func (e TemplateValue) SetStaticResolver(binding Binding) StaticallyScopedValue
func (TemplateValue) StaticResolver ¶
func (e TemplateValue) StaticResolver() Binding
func (TemplateValue) String ¶
func (e TemplateValue) String() string
type UndefinedExpr ¶
type UndefinedExpr struct{}
func (UndefinedExpr) Evaluate ¶
func (e UndefinedExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (UndefinedExpr) String ¶
func (e UndefinedExpr) String() string
type UnresolvedNode ¶
func FindUnresolvedNodes ¶
func FindUnresolvedNodes(root yaml.Node, context ...string) (result []UnresolvedNode)
type UnresolvedNodes ¶
type UnresolvedNodes struct {
Nodes []UnresolvedNode
}
func (UnresolvedNodes) Error ¶
func (e UnresolvedNodes) Error() string
func (UnresolvedNodes) HasError ¶
func (e UnresolvedNodes) HasError() bool
type ValidOrExpr ¶
type ValidOrExpr struct { A Expression B Expression }
func (ValidOrExpr) Evaluate ¶
func (e ValidOrExpr) Evaluate(binding Binding, locally bool) (interface{}, EvaluationInfo, bool)
func (ValidOrExpr) String ¶
func (e ValidOrExpr) String() string
Source Files
¶
- addition.go
- archive.go
- auto.go
- base64.go
- bcrypt.go
- boolean.go
- call.go
- catch.go
- compact.go
- comparison.go
- concatenation.go
- cond.go
- contains.go
- default.go
- defined.go
- division.go
- dns.go
- dynamic_expression.go
- dynaml.peg.go
- element.go
- env.go
- error.go
- eval.go
- exec.go
- expression.go
- files.go
- format.go
- grouped.go
- index.go
- integer.go
- intersect.go
- ip.go
- ipset.go
- join.go
- json.go
- keys.go
- lambda.go
- length.go
- list.go
- list_to_map.go
- listexpansion.go
- log_and.go
- log_or.go
- lookup.go
- lower.go
- makemap.go
- map.go
- mapmerge.go
- mapping.go
- marker.go
- match.go
- md5.go
- md5crypt.go
- merge.go
- modulo.go
- multiplication.go
- nil.go
- node.go
- not.go
- or.go
- parser.go
- pipe.go
- prefer.go
- projection.go
- qualified_expression.go
- rand.go
- range.go
- read.go
- reference.go
- replace.go
- require.go
- reverse.go
- scope.go
- select.go
- slice.go
- sort.go
- split.go
- static_ips.go
- string.go
- stub.go
- substr.go
- subtraction.go
- sum.go
- sync.go
- tempfile.go
- template.go
- trim.go
- type.go
- undefined.go
- uniq.go
- unresolved_check.go
- validate.go
- validor.go
- value.go
- write.go
Click to show internal directories.
Click to hide internal directories.