gnmi

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterConfigurable added in v0.6.8

func RegisterConfigurable(c *Config) target.GnmiService

Types

type Config added in v0.6.8

type Config struct {
	ModelInfo target.ModelInfo
	// contains filtered or unexported fields
}

func (*Config) Get added in v0.6.8

func (c *Config) Get(req GetRequest) (GetResponse, error)

Get returns configuration values based on a given a set of paths

type Configurable added in v0.6.8

type Configurable interface {
	// Get gets a configuration value based on a given path
	Get(req GetRequest) (GetResponse, error)
}

Configurable

type Event added in v0.6.8

type Event struct {
}

type GetRequest added in v0.6.8

type GetRequest struct {
	Paths []path.Path
}

type GetResponse added in v0.6.8

type GetResponse struct {
	Response map[path.Path]interface{}
}

type WatchRequest added in v0.6.8

type WatchRequest struct {
	Paths []path.Path
}

Directories

Path Synopsis
Package gnmi implements a gnmi server to mock a device with YANG models.
Package gnmi implements a gnmi server to mock a device with YANG models.

Jump to

Keyboard shortcuts

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