Documentation ¶
Overview ¶
Package ygotutils implements utility functions for users of github.com/openconfig/ygot.
Index ¶
- func GetNode(schema *yang.Entry, rootStruct ygot.GoStruct, path *gpb.Path) (interface{}, spb.Status)
- func IsTypeMap(t reflect.Type) bool
- func IsTypeSlicePtr(t reflect.Type) bool
- func IsTypeStructPtr(t reflect.Type) bool
- func IsValueMap(v reflect.Value) bool
- func IsValueStruct(v reflect.Value) bool
- func IsValueStructPtr(v reflect.Value) bool
- func NewNode(rootType reflect.Type, path *gpb.Path) (interface{}, spb.Status)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNode ¶
func GetNode(schema *yang.Entry, rootStruct ygot.GoStruct, path *gpb.Path) (interface{}, spb.Status)
GetNode returns the node in the data tree at the indicated path, relative to the supplied root struct. If the root struct is the tree root, the path may be absolute. It returns an error if the path is not found in the tree, or an element along the path is nil.
func IsTypeSlicePtr ¶
IsTypeSlicePtr reports whether v is a slice ptr type.
func IsTypeStructPtr ¶
IsTypeStructPtr reports whether v is a struct ptr type.
func IsValueStruct ¶
IsValueStruct reports whether v is a struct type.
func IsValueStructPtr ¶
IsValueStructPtr reports whether v is a struct ptr type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.