yangmodel

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInsufficientData = errors.New("insufficient data")
	ErrNotFound         = errors.New("no such node")
)

Functions

func DecodeLeafValue

func DecodeLeafValue(leaf *yang.Leaf, value interface{}) (interface{}, error)

Types

type Decoder

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

func NewDecoder

func NewDecoder(paths ...string) (*Decoder, error)

func (*Decoder) DecodeLeafElement

func (d *Decoder) DecodeLeafElement(namespace, identifier string, value interface{}) (interface{}, error)

func (*Decoder) DecodePathElement

func (d *Decoder) DecodePathElement(origin, path string, value interface{}) (interface{}, error)

func (*Decoder) FindLeaf

func (d *Decoder) FindLeaf(name, identifier string) (*yang.Leaf, error)

Jump to

Keyboard shortcuts

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