schemaless

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package schemaless allows the creation of schema-less queries. Schema-less queries are not associated with a YANG schema, the user is free to choose any serializable type for any particular path, although the selection must be consistent to avoid runtime type mismatch. These queries have limited functionality compared to standard queries: unmarshaling only works if the gNMI server returns the value (or a list entry) in a single gpb.Update, this is the standard behavior for leaves. For non-leaves, this can be resolved by requesting JSON encoding (if supported by the server).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig[T any](path, origin string) (ygnmi.ConfigQuery[T], error)

NewConfig creates a config query for the given path and type. The path must be gNMI path. See package comment for limitations of this query type.

func NewWildcard

func NewWildcard[T any](path, origin string) (ygnmi.WildcardQuery[T], error)

NewWildcard creates a wildcard query for the given path and type. The path must be gNMI path. See package comment for limitations of this query type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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