gnmiclient

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package gnmiclient contains a funcs to create gNMI for the local cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchDelete

func BatchDelete[T any](sb *ygnmi.SetBatch, q ygnmi.SingletonQuery[T])

BatchDelete stores an delete operation in the SetBatch.

func BatchReplace

func BatchReplace[T any](sb *ygnmi.SetBatch, q ygnmi.SingletonQuery[T], val T)

BatchReplace stores an replace operation in the SetBatch.

func BatchUpdate

func BatchUpdate[T any](sb *ygnmi.SetBatch, q ygnmi.SingletonQuery[T], val T)

BatchUpdate stores an update operation in the SetBatch.

func Delete

func Delete[T any](ctx context.Context, c *ygnmi.Client, q ygnmi.SingletonQuery[T]) (*ygnmi.Result, error)

Delete deletes the configuration at the given query path.

func Replace

func Replace[T any](ctx context.Context, c *ygnmi.Client, q ygnmi.SingletonQuery[T], val T) (*ygnmi.Result, error)

Replace replaces the configuration at the given query path with the val.

func Update

func Update[T any](ctx context.Context, c *ygnmi.Client, q ygnmi.SingletonQuery[T], val T) (*ygnmi.Result, error)

Update updates the configuration at the given query path with the val.

Types

This section is empty.

Jump to

Keyboard shortcuts

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