Documentation ¶
Index ¶
- Variables
- func ConvertToURI(prefix, path *gnmipb.Path, opts ...pathutil.PathValidatorOpt) (string, error)
- func GetModels() []gnmipb.ModelData
- func GnmiTranslFullPath(prefix, path *gnmipb.Path) *gnmipb.Path
- func PopulateClientPaths(prefix *gnmipb.Path, paths []*gnmipb.Path, path2URI *map[*gnmipb.Path]string, ...) error
- func TranslProcessAction(uri string, payload []byte, ctx context.Context) ([]byte, error)
- func TranslProcessBulk(delete []*gnmipb.Path, replace []*gnmipb.Update, update []*gnmipb.Update, ...) error
- func TranslProcessDelete(prefix, delPath *gnmipb.Path, ctx context.Context) error
- func TranslProcessGet(uriPath string, op *string, ctx context.Context) (*gnmipb.TypedValue, error)
- func TranslProcessReplace(prefix *gnmipb.Path, entry *gnmipb.Update, ctx context.Context) error
- func TranslProcessUpdate(prefix *gnmipb.Path, entry *gnmipb.Update, ctx context.Context) error
- type DiffOptions
- type DiffResults
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Writer *syslog.Writer
)
Functions ¶
func ConvertToURI ¶
ConvertToURI returns translib path for a gnmi Path
func PopulateClientPaths ¶
func PopulateClientPaths(prefix *gnmipb.Path, paths []*gnmipb.Path, path2URI *map[*gnmipb.Path]string, addWildcardKeys bool) error
Populate the URI path corresponding GNMI paths.
func TranslProcessAction ¶
Action/rpc request handling.
func TranslProcessBulk ¶
func TranslProcessDelete ¶
Delete request handling.
func TranslProcessGet ¶
Fill the values from TransLib.
func TranslProcessReplace ¶
Replace request handling.
Types ¶
type DiffOptions ¶
type DiffOptions struct { // RecordAll indicates if all attributes of modified GoStruct // should be recorded - even if the values are same. RecordAll bool }
DiffOptions holds the optional parameters foi Diff API.
type DiffResults ¶
DiffResults holds updated {path, value} pairs and deleted paths resolved by the Diff API.
func Diff ¶
func Diff(original, modified ygot.GoStruct, opts DiffOptions) (DiffResults, error)
Diff compares original and modified ygot structs; returns the changes as a DiffResults. Works with translib generated ygot structs only.
Click to show internal directories.
Click to hide internal directories.