configurable

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config

func (*Config) Get

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

func (*Config) InitConfig

func (c *Config) InitConfig(config *store.ConfigStore)

func (*Config) Set

func (c *Config) Set(req SetRequest) (SetResponse, error)

type Configurable

type Configurable interface {
	Get(GetRequest) (GetResponse, error)
	Set(SetRequest) (SetResponse, error)
}

Configurable interface between gnmi agent and app

type GetRequest

type GetRequest struct {
	Paths        []*gnmi.Path
	Prefix       *gnmi.Path
	EncodingType gnmi.Encoding
	DataType     string
}

GetRequest

type GetResponse

type GetResponse struct {
	Notifications []*pb.Notification
}

GetResponse

type SetRequest

type SetRequest struct {
	DeletePaths  []*gnmi.Path
	ReplacePaths []*gnmi.Update
	UpdatePaths  []*gnmi.Update
	Prefix       *gnmi.Path
}

SetRequest

type SetResponse

type SetResponse struct {
	Results []*pb.UpdateResult
}

SetResponse

Jump to

Keyboard shortcuts

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