Versions in this module Expand all Collapse all v0 v0.6.0 Apr 27, 2019 Changes in this version + func Diff(original, modified GoStruct, opts ...DiffOpt) (*gnmipb.Notification, error) + func EncodeTypedValue(val interface{}, enc gnmipb.Encoding) (*gnmipb.TypedValue, error) + func EnumName(e GoEnum) (string, error) + func KeyValueAsString(v interface{}) (string, error) + func PathKeyFromStruct(v reflect.Value) (map[string]string, error) + func PathToSchemaPath(path *gnmipb.Path) (string, error) + func PruneEmptyBranches(s GoStruct) + type Annotation interface + MarshalJSON func() ([]byte, error) + UnmarshalJSON func([]byte) error + type DiffOpt interface + IsDiffOpt func() + type DiffPathOpt struct + MapToSinglePath bool + func (*DiffPathOpt) IsDiffOpt() type EmitJSONConfig + SkipValidation bool v0.5.0 Dec 25, 2017 Changes in this version + const BinaryTypeName + const EmptyTypeName + func Bool(b bool) *bool + func BuildEmptyTree(s GoStruct) + func ConstructIETFJSON(s GoStruct, args *RFC7951JSONConfig) (map[string]interface{}, error) + func ConstructInternalJSON(s GoStruct) (map[string]interface{}, error) + func EmitJSON(s ValidatedGoStruct, opts *EmitJSONConfig) (string, error) + func Float32(f float32) *float32 + func Float64(f float64) *float64 + func GzipToSchema(gzj []byte) (map[string]*yang.Entry, error) + func InitContainer(s GoStruct, cname string) error + func Int16(i int16) *int16 + func Int32(i int32) *int32 + func Int64(i int64) *int64 + func Int8(i int8) *int8 + func MergeJSON(a, b map[string]interface{}) (map[string]interface{}, error) + func MergeStructJSON(ns GoStruct, ej map[string]interface{}, opts *EmitJSONConfig) (map[string]interface{}, error) + func PathToString(path *gnmipb.Path) (string, error) + func PathToStrings(path *gnmipb.Path) ([]string, error) + func String(s string) *string + func StringToPath(path string, pathTypes ...PathType) (*gnmipb.Path, error) + func StringToStringSlicePath(path string) (*gnmipb.Path, error) + func StringToStructuredPath(path string) (*gnmipb.Path, error) + func ToPtr(v interface{}) interface + func TogNMINotifications(s GoStruct, ts int64, cfg GNMINotificationsConfig) ([]*gnmipb.Notification, error) + func Uint16(u uint16) *uint16 + func Uint32(u uint32) *uint32 + func Uint64(u uint64) *uint64 + func Uint8(u uint8) *uint8 + type EmitJSONConfig struct + Format JSONFormat + Indent string + RFC7951Config *RFC7951JSONConfig + ValidationOpts []ValidationOption + type EnumDefinition struct + DefiningModule string + Name string + type GNMINotificationsConfig struct + PathElemPrefix []*gnmipb.PathElem + StringSlicePrefix []string + UsePathElem bool + type GoEnum interface + IsYANGGoEnum func() + ΛMap func() map[string]map[int64]EnumDefinition + type GoStruct interface + IsYANGGoStruct func() + func DeepCopy(s GoStruct) (GoStruct, error) + type JSONFormat int + const Internal + const RFC7951 + type KeyHelperGoStruct interface + ΛListKeyMap func() (map[string]interface{}, error) + type PathType int64 + const StringSlicePath + const StructuredPath + type RFC7951JSONConfig struct + AppendModuleName bool + type ValidatedGoStruct interface + Validate func(...ValidationOption) error + ΛEnumTypeMap func() map[string][]reflect.Type + func MergeStructs(a, b ValidatedGoStruct) (ValidatedGoStruct, error) + type ValidationOption interface + IsValidationOption func()