Documentation ¶
Index ¶
- type Dispatcher
- type HandleConfigEventFunc
- type Handler
- type Operation
- type Option
- func WithConfigCache(c *cache.Cache) Option
- func WithK8sClient(c client.Client) Option
- func WithLogging(log logging.Logger) Option
- func WithPathElem(pe []*gnmi.PathElem) Option
- func WithPrefix(p *gnmi.Path) Option
- func WithRootSchema(rs *yentry.Entry) Option
- func WithStateCache(c *cache.Cache) Option
- func WithTargetCache(c *cache.Cache) Option
- type Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher interface { Init(resources []*gnmi.Path) GetTree() *dtree.Tree GetPathElem(p *gnmi.Path) []*gnmi.PathElem ShowTree() }
func New ¶
func New() Dispatcher
type HandleConfigEventFunc ¶
type Handler ¶
type Handler interface { HandleConfigEvent(o Operation, prefix *gnmi.Path, pe []*gnmi.PathElem, d interface{}) (Handler, error) SetParent(interface{}) error SetRootSchema(rs *yentry.Entry) GetChildren() map[string]string UpdateConfig(interface{}) error UpdateStateCache() error DeleteStateCache() error GetData(string, map[string]string) (interface{}, error) SetData(string, map[string]string, interface{}) error Allocate(pe []*gnmi.PathElem, d interface{}) (interface{}, error) DeAllocate(pe []*gnmi.PathElem, d interface{}) (interface{}, error) Query(pe []*gnmi.PathElem, d interface{}) (interface{}, error) GetTargets() []*types.TargetConfig WithLogging(log logging.Logger) WithStateCache(c *cache.Cache) WithConfigCache(c *cache.Cache) WithTargetCache(c *cache.Cache) WithPrefix(p *gnmi.Path) WithPathElem(pe []*gnmi.PathElem) WithRootSchema(rs *yentry.Entry) WithK8sClient(c client.Client) }
type Operation ¶
type Operation string
A Operation represents a crud operation
type Option ¶ added in v0.1.294
type Option func(Handler)
func WithConfigCache ¶
WithConfigCache initializes the config cache.
func WithK8sClient ¶ added in v0.1.320
func WithLogging ¶
func WithPathElem ¶
func WithPrefix ¶
func WithRootSchema ¶
func WithStateCache ¶
WithStateCache initializes the state cache.
func WithTargetCache ¶ added in v0.1.309
WithTargetCache initializes the target cache.
Click to show internal directories.
Click to hide internal directories.