Documentation
¶
Index ¶
- func CreateContainerEntry(e *yang.Entry, next, prev *container.Container) *container.Entry
- func GetTypeKind(e *yang.Entry) string
- func GetTypeName(e *yang.Entry) string
- func GnmiPathToName(path *config.Path) string
- func GnmiPathToXPath(path *config.Path, keys bool) *string
- func InitializePathElem(e *yang.Entry) *config.PathElem
- func InsertElemInPath(path *config.Path, name, key string) *config.Path
- func ProcessLeafRef(e *yang.Entry, resfullPath string, activeResPath *config.Path) (*config.Path, *config.Path, bool)
- func RemoveFirstEntry(s string) string
- func RemoveHierarchicalKeys(d []byte, hids []string) ([]byte, error)
- func TransformPathAsRelative2Resource(localPath, activeResPath *config.Path) *config.Path
- func TransformPathToLeafRefPath(path *config.Path) *config.Path
- func XpathToGnmiPath(p string, offset int) (path *config.Path)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateContainerEntry ¶
func GetTypeKind ¶
func GetTypeName ¶
func GnmiPathToName ¶
func ProcessLeafRef ¶
func ProcessLeafRef(e *yang.Entry, resfullPath string, activeResPath *config.Path) (*config.Path, *config.Path, bool)
ProcessLeafRef processes the leafref and returns if a leafref localPath, remotePath and if the leafRef is local or external to the resource
func RemoveFirstEntry ¶
RemoveFirstEntry removes the first entry of the xpath, so it trims the first element of the /
func RemoveHierarchicalKeys ¶
RemoveHierarchicalKeys removes the hierarchical keys from the data
func TransformPathToLeafRefPath ¶
for a leafRef path the last entry of the name should be a key in the previous element
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.