Documentation ¶
Index ¶
- Constants
- func GetValueByLongKey(m map[string]interface{}, longKey string) (interface{}, error)
- func SplitCommaSeparatedKeys(key string) []string
- type DiffResult
- type Difference
- type Node
- func (n *Node) Copy() *Node
- func (n *Node) DeepCopyInto(n2 *Node)
- func (t *Node) Diff(t2 *Node) *DiffResult
- func (t *Node) DiffSpecificType(t2 *Node, findTypeList []string) *DiffResult
- func (n *Node) Filter(filterKeys []string) *Node
- func (t *Node) FindUpdatedAndCreated(t2 *Node) *DiffResult
- func (t *Node) FindUpdatedAndDeleted(t2 *Node) *DiffResult
- func (t *Node) Get(concatKey string) (interface{}, bool)
- func (t *Node) GetBool(concatKey string, defaultValue bool) bool
- func (n *Node) GetChild(key string) (*Node, bool)
- func (n *Node) GetChildrenMap() map[string]*Node
- func (n *Node) GetChildrenSlice() []*Node
- func (t *Node) GetNode(concatKey string) (*Node, bool)
- func (n *Node) GetNodeByJSONPath(jpathKey string) (*Node, bool)
- func (t *Node) GetString(concatKey string) string
- func (n *Node) Interface() interface{}
- func (n *Node) IsMap() bool
- func (n *Node) IsSlice() bool
- func (n *Node) IsValue() bool
- func (n *Node) KeyExists(concatKey string) bool
- func (t *Node) Mask(keys []string) *Node
- func (n *Node) Merge(n2 *Node) (*Node, error)
- func (t *Node) MultipleSubNode(concatKey string) []*Node
- func (t *Node) Ravel() map[string]interface{}
- func (n *Node) Size() int
- func (n *Node) String() string
- func (t *Node) SubNode(concatKey string) *Node
- func (n *Node) ToJson() string
- func (t *Node) ToMap() map[string]interface{}
- func (n *Node) ToYaml() string
- type NodeValue
Constants ¶
View Source
const MapnodeVersion = "0.0.2"
Variables ¶
This section is empty.
Functions ¶
func GetValueByLongKey ¶
func SplitCommaSeparatedKeys ¶
Types ¶
type DiffResult ¶
type DiffResult struct {
Items []Difference `json:"items"`
}
func FindDiffBetweenNodes ¶
func FindDiffBetweenNodes(t1, t2 *Node, findType map[string]bool) *DiffResult
func (*DiffResult) Filter ¶
func (dr *DiffResult) Filter(maskKeys []string) (*DiffResult, *DiffResult, []string)
func (*DiffResult) Keys ¶
func (d *DiffResult) Keys() []string
func (*DiffResult) Size ¶
func (dr *DiffResult) Size() int
func (*DiffResult) String ¶
func (d *DiffResult) String() string
func (*DiffResult) ToJson ¶
func (d *DiffResult) ToJson() string
func (*DiffResult) Values ¶
func (d *DiffResult) Values() []map[string]interface{}
type Difference ¶
type Node ¶
type Node struct { Value *NodeValue Children interface{} }
func NewFromBytes ¶
func NewFromInterfaceBytes ¶
func NewFromMap ¶
func NewFromYamlBytes ¶
func (*Node) DeepCopyInto ¶
func (*Node) Diff ¶
func (t *Node) Diff(t2 *Node) *DiffResult
func (*Node) DiffSpecificType ¶
func (t *Node) DiffSpecificType(t2 *Node, findTypeList []string) *DiffResult
func (*Node) FindUpdatedAndCreated ¶
func (t *Node) FindUpdatedAndCreated(t2 *Node) *DiffResult
func (*Node) FindUpdatedAndDeleted ¶
func (t *Node) FindUpdatedAndDeleted(t2 *Node) *DiffResult
func (*Node) GetChildrenMap ¶
func (*Node) GetChildrenSlice ¶
func (*Node) MultipleSubNode ¶
Click to show internal directories.
Click to hide internal directories.