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 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 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 SELF = "_"
Variables ¶
This section is empty.
Functions ¶
func EmbeddedDynaml ¶
func IsListResolved ¶
func IsMapResolved ¶
func MassageType ¶
func MassageType(value interface{}) interface{}
func PathComponent ¶
func ValueToJSON ¶
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 ¶
func (n AnnotatedNode) GetAnnotation() Annotation
func (AnnotatedNode) MarshalYAML ¶
func (n AnnotatedNode) MarshalYAML() (string, interface{}, error)
func (AnnotatedNode) Resolver ¶
func (n AnnotatedNode) Resolver() RefResolver
func (AnnotatedNode) SourceName ¶
func (n AnnotatedNode) SourceName() string
func (AnnotatedNode) Value ¶
func (n AnnotatedNode) Value() interface{}
type Annotation ¶
type Annotation struct { NodeFlags // contains filtered or unexported fields }
func EmptyAnnotation ¶
func EmptyAnnotation() Annotation
func NewReferencedAnnotation ¶
func NewReferencedAnnotation(node Node) Annotation
func (Annotation) AddFlags ¶
func (n Annotation) AddFlags(flags NodeFlags) Annotation
func (Annotation) AddIssue ¶
func (n Annotation) AddIssue(error bool, failed bool, issue Issue) Annotation
func (Annotation) AddKeyName ¶
func (n Annotation) AddKeyName(keyName string) Annotation
func (Annotation) Failed ¶
func (n Annotation) Failed() bool
func (Annotation) Flags ¶
func (n Annotation) Flags() NodeFlags
func (Annotation) HasError ¶
func (n Annotation) HasError() bool
func (Annotation) Issue ¶
func (n Annotation) Issue() Issue
func (Annotation) KeyName ¶
func (n Annotation) KeyName() string
func (Annotation) Merged ¶
func (n Annotation) Merged() bool
func (Annotation) Preferred ¶
func (n Annotation) Preferred() bool
func (Annotation) RedirectPath ¶
func (n Annotation) RedirectPath() []string
func (Annotation) ReplaceFlag ¶
func (n Annotation) ReplaceFlag() bool
func (Annotation) SetLocal ¶
func (n Annotation) SetLocal() Annotation
func (Annotation) SetMerged ¶
func (n Annotation) SetMerged() Annotation
func (Annotation) SetPreferred ¶
func (n Annotation) SetPreferred() Annotation
func (Annotation) SetRedirectPath ¶
func (n Annotation) SetRedirectPath(redirect []string) Annotation
func (Annotation) SetReplaceFlag ¶
func (n Annotation) SetReplaceFlag() Annotation
func (Annotation) SetState ¶
func (n Annotation) SetState() Annotation
func (Annotation) SetTemporary ¶
func (n Annotation) SetTemporary() Annotation
func (Annotation) SetUndefined ¶
func (n Annotation) SetUndefined() Annotation
func (Annotation) StandardOverride ¶
func (n Annotation) StandardOverride() bool
func (Annotation) Undefined ¶
func (n Annotation) Undefined() bool
type ComparableValue ¶
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 ¶
func MergedNode ¶
func PreferredNode ¶
func RedirectNode ¶
func ReferencedNode ¶
func ReplaceNode ¶
func ReplaceValue ¶
func ResolverNode ¶
func ResolverNode(node Node, resolver RefResolver) Node
func SubstituteNode ¶
func TemporaryNode ¶
func UndefinedNode ¶
type NodeFlags ¶
type NodeFlags int
func (*NodeFlags) Overridden ¶
func (NodeFlags) PropagateImplied ¶
func (*NodeFlags) SetDefault ¶
func (*NodeFlags) SetImplied ¶
func (*NodeFlags) SetTemporary ¶
type NonStringKeyError ¶
type NonStringKeyError struct {
Key interface{}
}
func (NonStringKeyError) Error ¶
func (e NonStringKeyError) Error() string
type RefResolver ¶
Click to show internal directories.
Click to hide internal directories.