Documentation ¶
Overview ¶
Package merge contains libraries for merging fields from one RNode to another RNode
Index ¶
- func Merge(src, dest *yaml.RNode, mergeOptions yaml.MergeOptions) (*yaml.RNode, error)
- func MergeStrings(srcStr, destStr string, infer bool, mergeOptions yaml.MergeOptions) (string, error)
- type Merger
- func (m Merger) SetComments(sources walk.Sources) error
- func (m Merger) SetStyle(sources walk.Sources) error
- func (m Merger) VisitList(nodes walk.Sources, s *openapi.ResourceSchema, kind walk.ListKind) (*yaml.RNode, error)
- func (m Merger) VisitMap(nodes walk.Sources, s *openapi.ResourceSchema) (*yaml.RNode, error)
- func (m Merger) VisitScalar(nodes walk.Sources, s *openapi.ResourceSchema) (*yaml.RNode, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeStrings ¶
func MergeStrings(srcStr, destStr string, infer bool, mergeOptions yaml.MergeOptions) (string, error)
Merge parses the arguments, and merges fields from srcStr into destStr.
Types ¶
type Merger ¶
type Merger struct { }
func (Merger) SetComments ¶
SetComments copies the dest comments to the source comments if they are present on the source.
func (Merger) VisitScalar ¶
Click to show internal directories.
Click to hide internal directories.