Documentation ¶
Index ¶
- Constants
- func EmbeddedDynaml(root Node) *string
- func Equals(a, b Node, path []string) (bool, string)
- func FindInt(root Node, path ...string) (int64, bool)
- func FindIntR(raw bool, root Node, path ...string) (int64, bool)
- func FindString(root Node, path ...string) (string, bool)
- func FindStringR(raw bool, root Node, path ...string) (string, bool)
- func IsListResolved(l []Node) bool
- func IsMapResolved(m map[string]Node) bool
- func Marshal(node Node) ([]byte, error)
- func MassageType(value interface{}) interface{}
- func Normalize(root Node) (interface{}, error)
- func PathComponent(step 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) 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) 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) SetTemporary() Annotation
- func (n Annotation) SetUndefined() Annotation
- func (n Annotation) StandardOverride() bool
- func (n Annotation) Undefined() bool
- type ComparableValue
- type Issue
- type Node
- func AddFlags(node Node, flags NodeFlags) Node
- func Find(root Node, path ...string) (Node, bool)
- func FindR(raw bool, root Node, path ...string) (Node, bool)
- 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 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 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) 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) 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) SetImplied() *NodeFlags
- func (f *NodeFlags) SetInject() *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_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 FindStringR ¶ added in v1.2.0
func IsListResolved ¶ added in v1.2.0
func IsMapResolved ¶ added in v1.2.0
func MassageType ¶ added in v1.2.0
func MassageType(value interface{}) interface{}
func PathComponent ¶ added in v1.2.0
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) 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) 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) 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) 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 Node ¶
type Node interface { candiedyaml.Marshaler Value() 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 KeyNameNode ¶ added in v1.2.0
func MergedNode ¶ added in v1.2.0
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) SetImplied ¶ added in v1.4.0
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.