Documentation ¶
Index ¶
- Constants
- func LoadModules(ietfYangLib *node.Browser, resolver ResolveModule) (map[string]*meta.Module, error)
- func LocalDeviceYangLibNode(addresser ModuleAddresser, d Device) node.Node
- func YangLibModuleList(addresser ModuleAddresser, mods map[string]*meta.Module) node.Node
- func YangLibModuleSetList(addresser ModuleAddresser, modsets map[string]*moduleSet) node.Node
- func YangLibModuleSetModuleList(addresser ModuleAddresser, mods map[string]*meta.Module) node.Node
- type DeviationHnd
- type Device
- type Local
- func (self *Local) Add(module string, n node.Node) error
- func (self *Local) AddBrowser(b *node.Browser)
- func (self *Local) AddSource(module string, src func() node.Node) error
- func (self *Local) ApplyStartupConfig(config io.Reader) error
- func (self *Local) ApplyStartupConfigData(config map[string]interface{}) error
- func (self *Local) ApplyStartupConfigFile(fname string) error
- func (self *Local) Browser(module string) (*node.Browser, error)
- func (self *Local) Close()
- func (self *Local) Modules() map[string]*meta.Module
- func (self *Local) SchemaSource() source.Opener
- func (self *Local) UiSource() source.Opener
- type Map
- type ModuleAddresser
- type ModuleHnd
- type ProtocolHandler
- type ResolveModule
Constants ¶
View Source
const ( ConformanceTypeImplement = "implement" ConformanceTypeImport = "import" )
Variables ¶
This section is empty.
Functions ¶
func LoadModules ¶
func LocalDeviceYangLibNode ¶
func LocalDeviceYangLibNode(addresser ModuleAddresser, d Device) node.Node
func YangLibModuleList ¶
func YangLibModuleSetList ¶
func YangLibModuleSetList(addresser ModuleAddresser, modsets map[string]*moduleSet) node.Node
Types ¶
type DeviationHnd ¶
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
func (*Local) AddBrowser ¶
func (*Local) ApplyStartupConfigData ¶
func (*Local) ApplyStartupConfigFile ¶
func (*Local) SchemaSource ¶
type Map ¶
Map is used my server to host multiple devices in a single web server at restconf=[device]/...
type ModuleAddresser ¶
Export device by it's address so protocol server can serve a device often referred to northbound
type ProtocolHandler ¶
Create device from address string associated with protocol often referred to south/east/west bound
Click to show internal directories.
Click to hide internal directories.