yentry

package
v0.1.254 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Log              logging.Logger
	Name             string
	Key              []string
	Parent           Handler
	Children         map[string]Handler
	ResourceBoundary bool
	LocalLeafRefs    []*leafref.LeafRef
	ExternalLeafRefs []*leafref.LeafRef
}

func (*Entry) GetChildren

func (e *Entry) GetChildren() map[string]Handler

func (*Entry) GetExternalLeafRefs added in v0.1.244

func (e *Entry) GetExternalLeafRefs() []*leafref.LeafRef

func (*Entry) GetKey

func (e *Entry) GetKey() []string

func (*Entry) GetLocalLeafRefs added in v0.1.244

func (e *Entry) GetLocalLeafRefs() []*leafref.LeafRef

func (*Entry) GetName

func (e *Entry) GetName() string

func (*Entry) GetParent

func (e *Entry) GetParent() Handler

func (*Entry) GetResourceBoundary added in v0.1.236

func (e *Entry) GetResourceBoundary() []*leafref.LeafRef

type HandleInitFunc

type HandleInitFunc func(parent Handler, opts ...HandlerOption) Handler

type Handler

type Handler interface {
	WithLogging(log logging.Logger)
	GetName() string
	GetKeys(p *gnmi.Path) []string
	GetResourceBoundary() bool
	GetHierarchicalResources(p *gnmi.Path, cp *gnmi.Path, hierPaths []*gnmi.Path) []*gnmi.Path
}

type HandlerOption added in v0.1.217

type HandlerOption func(Handler)

func WithLogging added in v0.1.217

func WithLogging(log logging.Logger) HandlerOption

Jump to

Keyboard shortcuts

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