Documentation ¶
Overview ¶
Package gnmiclient contains a funcs to create gNMI for the local cache.
Index ¶
- func BatchDelete[T any](sb *ygnmi.SetBatch, q ygnmi.SingletonQuery[T])
- func BatchReplace[T any](sb *ygnmi.SetBatch, q ygnmi.SingletonQuery[T], val T)
- func BatchUpdate[T any](sb *ygnmi.SetBatch, q ygnmi.SingletonQuery[T], val T)
- func Delete[T any](ctx context.Context, c *ygnmi.Client, q ygnmi.SingletonQuery[T]) (*ygnmi.Result, error)
- func Replace[T any](ctx context.Context, c *ygnmi.Client, q ygnmi.SingletonQuery[T], val T) (*ygnmi.Result, error)
- func Update[T any](ctx context.Context, c *ygnmi.Client, q ygnmi.SingletonQuery[T], val T) (*ygnmi.Result, error)
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.