Documentation ¶
Index ¶
- Constants
- func EmbeddedDynaml(root Node, interpol bool) *string
- func Equals(a, b Node, path []string) (bool, string)
- func FindInt(root Node, features features.FeatureFlags, path ...string) (int64, bool)
- func FindIntR(raw bool, root Node, features features.FeatureFlags, path ...string) (int64, bool)
- func FindString(root Node, features features.FeatureFlags, path ...string) (string, bool)
- func FindStringR(raw bool, root Node, features features.FeatureFlags, path ...string) (string, bool)
- func GetSortedKeys(unsortedMap map[string]Node) []string
- func IsListResolved(l []Node, features features.FeatureFlags) bool
- func IsMapResolved(m map[string]Node, features features.FeatureFlags) bool
- func Marshal(node Node) ([]byte, error)
- func MassageType(value interface{}) interface{}
- func Normalize(root Node) (interface{}, error)
- func PathComponent(step string) string
- func StringToExpression(s string) string
- func ToJSON(root Node) ([]byte, error)
- func ValueToJSON(root interface{}) ([]byte, error)
- type AnnotatedNode
- func (n AnnotatedNode) EquivalentToNode(o Node) bool
- func (n AnnotatedNode) GetAnnotation() Annotation
- func (n AnnotatedNode) MarshalYAML() (string, interface{}, error)
- func (n AnnotatedNode) Resolver() RefResolver
- func (n AnnotatedNode) SourceName() string
- func (n AnnotatedNode) Template() interface{}
- func (n AnnotatedNode) Value() interface{}
- type Annotation
- func (n Annotation) AddFlags(flags NodeFlags) Annotation
- func (n Annotation) AddIssue(error bool, failed bool, issue Issue) Annotation
- func (n Annotation) AddKeyName(keyName string) Annotation
- func (n Annotation) Failed() bool
- func (n Annotation) Flags() NodeFlags
- func (n Annotation) HasError() bool
- func (n Annotation) Issue() Issue
- func (n Annotation) KeyName() string
- func (n Annotation) Merged() bool
- func (n Annotation) Preferred() bool
- func (n Annotation) RedirectPath() []string
- func (n Annotation) ReplaceFlag() bool
- func (n Annotation) SetDefault() Annotation
- func (n Annotation) SetDynamic() Annotation
- func (n Annotation) SetInject() Annotation
- func (n Annotation) SetInjected() Annotation
- func (n Annotation) SetLocal() Annotation
- func (n Annotation) SetMerged() Annotation
- func (n Annotation) SetPreferred() Annotation
- func (n Annotation) SetRedirectPath(redirect []string) Annotation
- func (n Annotation) SetReplaceFlag() Annotation
- func (n Annotation) SetState() Annotation
- func (n Annotation) SetTag(tag string) Annotation
- func (n Annotation) SetTemporary() Annotation
- func (n Annotation) SetUndefined() Annotation
- func (n Annotation) StandardOverride() bool
- func (n Annotation) Tag() string
- func (n Annotation) Undefined() bool
- type ComparableValue
- type Issue
- type Node
- func AddFlags(node Node, flags NodeFlags) Node
- func DefaultedNode(node Node) Node
- func Find(root Node, features features.FeatureFlags, path ...string) (Node, bool)
- func FindR(raw bool, root Node, features features.FeatureFlags, path ...string) (Node, bool)
- func InjectedNode(node Node) Node
- func IssueNode(node Node, error bool, failed bool, issue Issue) Node
- func KeyNameNode(node Node, keyName string) Node
- func LocalNode(node Node) Node
- func MergedNode(node Node) Node
- func NewDynamicNode(value, template interface{}, sourcePath string) Node
- func NewNode(value interface{}, sourcePath string) Node
- func Parse(sourceName string, source []byte) (Node, error)
- func ParseMulti(sourceName string, source []byte) ([]Node, error)
- func PreferredNode(node Node) Node
- func RedirectNode(value interface{}, node Node, redirect []string) Node
- func ReferencedNode(node Node) Node
- func ReplaceNode(value interface{}, node Node, redirect []string) Node
- func ReplaceValue(value interface{}, node Node) Node
- func ResolverNode(node Node, resolver RefResolver) Node
- func Sanitize(sourceName string, root interface{}) (Node, error)
- func SetTag(node Node, tag string) Node
- func StateNode(node Node) Node
- func SubstituteNode(value interface{}, node Node) Node
- func TemporaryNode(node Node) Node
- func UndefinedNode(node Node) Node
- func UnescapeDynaml(root Node, interpol bool) Node
- func Unmarshal(sourceName string, source []byte) (Node, error)
- func UnmarshalMulti(sourceName string, source []byte) ([]Node, error)
- func UnresolvedListEntryMerge(node Node) (Node, string, bool)
- type NodeFlags
- func (f *NodeFlags) AddFlags(flags NodeFlags) *NodeFlags
- func (f NodeFlags) Default() bool
- func (f NodeFlags) Dynamic() bool
- func (f NodeFlags) Implied() bool
- func (f NodeFlags) Inject() bool
- func (f NodeFlags) Injected() bool
- func (f NodeFlags) Local() bool
- func (f *NodeFlags) Overridden() NodeFlags
- func (f NodeFlags) PropagateImplied() bool
- func (f *NodeFlags) SetDefault() *NodeFlags
- func (f *NodeFlags) SetDynamic() *NodeFlags
- func (f *NodeFlags) SetImplied() *NodeFlags
- func (f *NodeFlags) SetInject() *NodeFlags
- func (f *NodeFlags) SetInjected() *NodeFlags
- func (f *NodeFlags) SetLocal() *NodeFlags
- func (f *NodeFlags) SetState() *NodeFlags
- func (f *NodeFlags) SetTemporary() *NodeFlags
- func (f NodeFlags) State() bool
- func (f NodeFlags) Temporary() bool
- type NonStringKeyError
- type RefResolver
Constants ¶
View Source
const ( FLAG_TEMPORARY = 0x001 FLAG_LOCAL = 0x002 FLAG_INJECT = 0x004 FLAG_STATE = 0x008 FLAG_DEFAULT = 0x010 FLAG_DYNAMIC = 0x020 FLAG_INJECTED = 0x040 FLAG_IMPLIED = 0x080 )
View Source
const DOCNODE = "__"
View Source
const MERGEKEY = "<<<"
View Source
const ROOT = "___"
View Source
const SELF = "_"
Variables ¶
This section is empty.
Functions ¶
func EmbeddedDynaml ¶ added in v1.2.0
func FindString ¶
func FindStringR ¶ added in v1.2.0
func GetSortedKeys ¶
func IsListResolved ¶ added in v1.2.0
func IsListResolved(l []Node, features features.FeatureFlags) bool
func IsMapResolved ¶ added in v1.2.0
func IsMapResolved(m map[string]Node, features features.FeatureFlags) bool
func MassageType ¶ added in v1.2.0
func MassageType(value interface{}) interface{}
func PathComponent ¶ added in v1.2.0
func StringToExpression ¶
func ValueToJSON ¶ added in v1.3.0
Types ¶
type AnnotatedNode ¶
type AnnotatedNode struct { Annotation // contains filtered or unexported fields }
func (AnnotatedNode) EquivalentToNode ¶
func (n AnnotatedNode) EquivalentToNode(o Node) bool
func (AnnotatedNode) GetAnnotation ¶ added in v1.2.0
func (n AnnotatedNode) GetAnnotation() Annotation
func (AnnotatedNode) MarshalYAML ¶
func (n AnnotatedNode) MarshalYAML() (string, interface{}, error)
func (AnnotatedNode) Resolver ¶ added in v1.3.0
func (n AnnotatedNode) Resolver() RefResolver
func (AnnotatedNode) SourceName ¶
func (n AnnotatedNode) SourceName() string
func (AnnotatedNode) Template ¶
func (n AnnotatedNode) Template() interface{}
func (AnnotatedNode) Value ¶
func (n AnnotatedNode) Value() interface{}
type Annotation ¶ added in v1.2.0
type Annotation struct { NodeFlags // contains filtered or unexported fields }
func EmptyAnnotation ¶ added in v1.2.0
func EmptyAnnotation() Annotation
func NewReferencedAnnotation ¶ added in v1.2.0
func NewReferencedAnnotation(node Node) Annotation
func (Annotation) AddFlags ¶ added in v1.2.0
func (n Annotation) AddFlags(flags NodeFlags) Annotation
func (Annotation) AddIssue ¶ added in v1.2.0
func (n Annotation) AddIssue(error bool, failed bool, issue Issue) Annotation
func (Annotation) AddKeyName ¶ added in v1.2.0
func (n Annotation) AddKeyName(keyName string) Annotation
func (Annotation) Failed ¶ added in v1.2.0
func (n Annotation) Failed() bool
func (Annotation) Flags ¶ added in v1.2.0
func (n Annotation) Flags() NodeFlags
func (Annotation) HasError ¶ added in v1.2.0
func (n Annotation) HasError() bool
func (Annotation) Issue ¶ added in v1.2.0
func (n Annotation) Issue() Issue
func (Annotation) KeyName ¶ added in v1.2.0
func (n Annotation) KeyName() string
func (Annotation) Merged ¶ added in v1.2.0
func (n Annotation) Merged() bool
func (Annotation) Preferred ¶ added in v1.2.0
func (n Annotation) Preferred() bool
func (Annotation) RedirectPath ¶ added in v1.2.0
func (n Annotation) RedirectPath() []string
func (Annotation) ReplaceFlag ¶ added in v1.2.0
func (n Annotation) ReplaceFlag() bool
func (Annotation) SetDefault ¶
func (n Annotation) SetDefault() Annotation
func (Annotation) SetDynamic ¶
func (n Annotation) SetDynamic() Annotation
func (Annotation) SetInject ¶
func (n Annotation) SetInject() Annotation
func (Annotation) SetInjected ¶
func (n Annotation) SetInjected() Annotation
func (Annotation) SetLocal ¶ added in v1.2.0
func (n Annotation) SetLocal() Annotation
func (Annotation) SetMerged ¶ added in v1.2.0
func (n Annotation) SetMerged() Annotation
func (Annotation) SetPreferred ¶ added in v1.2.0
func (n Annotation) SetPreferred() Annotation
func (Annotation) SetRedirectPath ¶ added in v1.2.0
func (n Annotation) SetRedirectPath(redirect []string) Annotation
func (Annotation) SetReplaceFlag ¶ added in v1.2.0
func (n Annotation) SetReplaceFlag() Annotation
func (Annotation) SetState ¶ added in v1.3.0
func (n Annotation) SetState() Annotation
func (Annotation) SetTag ¶
func (n Annotation) SetTag(tag string) Annotation
func (Annotation) SetTemporary ¶ added in v1.2.0
func (n Annotation) SetTemporary() Annotation
func (Annotation) SetUndefined ¶ added in v1.2.0
func (n Annotation) SetUndefined() Annotation
func (Annotation) StandardOverride ¶ added in v1.2.0
func (n Annotation) StandardOverride() bool
func (Annotation) Tag ¶
func (n Annotation) Tag() string
func (Annotation) Undefined ¶ added in v1.2.0
func (n Annotation) Undefined() bool
type ComparableValue ¶ added in v1.3.0
type ComparableValue interface {
EquivalentTo(interface{}) bool
}
type Issue ¶ added in v1.2.0
func NewPathIssue ¶
type Node ¶
type Node interface { candiedyaml.Marshaler Value() interface{} Template() interface{} SourceName() string RedirectPath() []string Flags() NodeFlags Temporary() bool Local() bool State() bool ReplaceFlag() bool Preferred() bool Merged() bool StandardOverride() bool KeyName() string HasError() bool Failed() bool Undefined() bool Issue() Issue Resolver() RefResolver GetAnnotation() Annotation EquivalentToNode(Node) bool }
func DefaultedNode ¶
func InjectedNode ¶
func KeyNameNode ¶ added in v1.2.0
func MergedNode ¶ added in v1.2.0
func NewDynamicNode ¶
func PreferredNode ¶ added in v1.2.0
func RedirectNode ¶ added in v1.2.0
func ReferencedNode ¶ added in v1.2.0
func ReplaceNode ¶ added in v1.2.0
func ReplaceValue ¶ added in v1.2.0
func ResolverNode ¶ added in v1.3.0
func ResolverNode(node Node, resolver RefResolver) Node
func SubstituteNode ¶ added in v1.2.0
func TemporaryNode ¶ added in v1.2.0
func UndefinedNode ¶ added in v1.2.0
func UnescapeDynaml ¶ added in v1.5.0
func UnmarshalMulti ¶ added in v1.6.0
type NodeFlags ¶ added in v1.2.0
type NodeFlags int
func (*NodeFlags) Overridden ¶ added in v1.4.0
func (NodeFlags) PropagateImplied ¶ added in v1.4.0
func (*NodeFlags) SetDefault ¶ added in v1.4.0
func (*NodeFlags) SetDynamic ¶
func (*NodeFlags) SetImplied ¶ added in v1.4.0
func (*NodeFlags) SetInjected ¶
func (*NodeFlags) SetTemporary ¶ added in v1.2.0
type NonStringKeyError ¶
type NonStringKeyError struct {
Key interface{}
}
func (NonStringKeyError) Error ¶
func (e NonStringKeyError) Error() string
type RefResolver ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.