Documentation
¶
Index ¶
- func PopulateModel(source any, target any) error
- func SyncValue(ctx context.Context, source any, target any, valueNode *yaml.Node) (node *yaml.Node, err error)
- func Unmarshal(ctx context.Context, node *yaml.Node, out any) error
- func UnmarshalStruct(ctx context.Context, node *yaml.Node, structPtr any) error
- type ExtensionCoreMap
- type ExtensionMap
- type ExtensionSourceIterator
- type ModelFromCore
- type Node
- func (n Node[V]) GetKeyNodeOrRoot(rootNode *yaml.Node) *yaml.Node
- func (n Node[V]) GetMapKeyNodeOrRoot(key string, rootNode *yaml.Node) *yaml.Node
- func (n Node[V]) GetMapValueNodeOrRoot(key string, rootNode *yaml.Node) *yaml.Node
- func (n Node[V]) GetNavigableNode() any
- func (n Node[V]) GetSliceValueNodeOrRoot(idx int, rootNode *yaml.Node) *yaml.Node
- func (n Node[V]) GetValue() any
- func (n Node[V]) GetValueNodeOrRoot(rootNode *yaml.Node) *yaml.Node
- func (n Node[V]) GetValueType() reflect.Type
- func (n *Node[V]) SetPresent(present bool)
- func (n *Node[V]) SyncValue(ctx context.Context, key string, value any) (*yaml.Node, *yaml.Node, error)
- func (n *Node[V]) Unmarshal(ctx context.Context, keyNode, valueNode *yaml.Node) error
- type NodeAccessor
- type NodeMutator
- type SequencedMap
- type Syncer
- type SyncerWithSyncFunc
- type Unmarshallable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PopulateModel ¶
Types ¶
type ExtensionCoreMap ¶
type ExtensionMap ¶
type ExtensionMap interface { Set(string, extensions.Extension) Init() }
type ExtensionSourceIterator ¶
type ExtensionSourceIterator interface {
All() iter.Seq2[string, extensions.Extension]
}
type ModelFromCore ¶
type Node ¶
func (Node[V]) GetKeyNodeOrRoot ¶
func (n Node[V]) GetKeyNodeOrRoot(rootNode *yaml.Node) *yaml.Node
func (Node[V]) GetMapKeyNodeOrRoot ¶
Will return the key node for the map key, or the map root node or the provided root node if the node is not present
func (Node[V]) GetMapValueNodeOrRoot ¶
Will return the value node for the map key, or the map root node or the provided root node if the node is not present
func (Node[V]) GetNavigableNode ¶
func (Node[V]) GetSliceValueNodeOrRoot ¶
Will return the value node for the slice index, or the slice root node or the provided root node if the node is not present
func (Node[V]) GetValueNodeOrRoot ¶
func (n Node[V]) GetValueNodeOrRoot(rootNode *yaml.Node) *yaml.Node
func (Node[V]) GetValueType ¶
func (*Node[V]) SetPresent ¶
type NodeAccessor ¶
type NodeMutator ¶
type SequencedMap ¶
type SyncerWithSyncFunc ¶
type Unmarshallable ¶
Click to show internal directories.
Click to hide internal directories.