merge3

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Overview

Package merge contains libraries for merging fields from one RNode to another RNode

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(dest, original, update *yaml.RNode) (*yaml.RNode, error)

func MergeStrings

func MergeStrings(dest, original, update string, infer bool) (string, error)

Types

type ConflictStrategy

type ConflictStrategy uint
const (
	// TODO: Support more strategies
	TakeUpdate ConflictStrategy = 1 + iota
)

type Visitor

type Visitor struct{}

func (Visitor) VisitList

func (m Visitor) VisitList(nodes walk.Sources, s *openapi.ResourceSchema, kind walk.ListKind) (*yaml.RNode, error)

func (Visitor) VisitMap

func (m Visitor) VisitMap(nodes walk.Sources, s *openapi.ResourceSchema) (*yaml.RNode, error)

func (Visitor) VisitScalar

func (m Visitor) VisitScalar(nodes walk.Sources, s *openapi.ResourceSchema) (*yaml.RNode, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL