diff

package
v0.0.0-...-fc2a63e Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: BSD-3-Clause, MPL-2.0 Imports: 10 Imported by: 4

README

Placeholder

Documentation

Overview

Copyright (c) 2018-2019, AT&T Intellectual Property. All rights reserved.

Copyright (c) 2015-2016 by Brocade Communications Systems, Inc. All rights reserved.

SPDX-License-Identifier: MPL-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateChangedNSMap

func CreateChangedNSMap(
	new, old *data.Node,
	sch schema.Node,
	parent *Node,
) *map[string]bool

Types

type BySystem

type BySystem []*Node

func (BySystem) Len

func (b BySystem) Len() int

func (BySystem) Less

func (b BySystem) Less(i, j int) bool

func (BySystem) Swap

func (b BySystem) Swap(i, j int)

type ByUser

type ByUser []*Node

func (ByUser) Len

func (b ByUser) Len() int

func (ByUser) Less

func (b ByUser) Less(i, j int) bool

func (ByUser) Swap

func (b ByUser) Swap(i, j int)

type Node

type Node struct {
	// contains filtered or unexported fields
}

func NewNode

func NewNode(new, old *data.Node, sch schema.Node, parent *Node) *Node

func (*Node) Added

func (n *Node) Added() bool

func (*Node) Changed

func (n *Node) Changed() bool

func (*Node) Child

func (n *Node) Child(name string) *Node

func (*Node) Children

func (n *Node) Children() []*Node

func (*Node) Data

func (n *Node) Data() *data.Node

func (*Node) Deleted

func (n *Node) Deleted() bool

func (*Node) Descendant

func (n *Node) Descendant(path []string) *Node

func (*Node) Empty

func (n *Node) Empty() bool

func (*Node) EmptyNonDefault

func (n *Node) EmptyNonDefault() bool

func (*Node) Index

func (n *Node) Index() uint64

func (*Node) IsDefault

func (n *Node) IsDefault() bool

func (*Node) Name

func (n *Node) Name() string

func (*Node) Parent

func (n *Node) Parent() *Node

func (*Node) QualifiedNamespace

func (n *Node) QualifiedNamespace() string

func (*Node) Schema

func (n *Node) Schema() schema.Node

func (*Node) Serialize

func (n *Node) Serialize(ctxdiff bool, options ...Option) string

If there's nothing to serialize (node is nil) this isn't an error, and we just return the empty string.

func (*Node) UnsortedChildren

func (n *Node) UnsortedChildren() []*Node

func (*Node) Updated

func (n *Node) Updated() bool

func (*Node) YangDataChildren

func (n *Node) YangDataChildren() []datanode.DataNode

func (*Node) YangDataChildrenNoSorting

func (n *Node) YangDataChildrenNoSorting() []datanode.DataNode

func (*Node) YangDataName

func (n *Node) YangDataName() string

func (*Node) YangDataValues

func (n *Node) YangDataValues() []string

func (*Node) YangDataValuesNoSorting

func (n *Node) YangDataValuesNoSorting() []string

type Option

type Option func(*options)

func HideSecrets

func HideSecrets(hide bool) Option

Jump to

Keyboard shortcuts

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