Versions in this module Expand all Collapse all v0 v0.1.0 May 29, 2019 Changes in this version + func AppendPath(path string) + func Exit() + func GetPath() string + func Init() + func IsLoaded(moduleName string) bool + func LoadModule(modulePath string) (moduleName string, err error) + func PrependPath(path string) + func ReadConfig(filename string, tag ...string) bool + func SetPath(path string) + type Notification struct + Objects []SmiNode + type SmiModule struct + func CreateModule(smiModule *C.struct_SmiModule) (module SmiModule) + func GetLoadedModules() (modules []SmiModule) + func GetModule(name string) (module SmiModule, err error) + func (m *SmiModule) SetRaw(smiModule *C.struct_SmiModule) + func (m SmiModule) GetIdentityNode() (node SmiNode, ok bool) + func (m SmiModule) GetImports() (imports []models.Import) + func (m SmiModule) GetNode(name string) (node SmiNode, err error) + func (m SmiModule) GetNodes(kind ...types.NodeKind) (nodes []SmiNode) + func (m SmiModule) GetRaw() (module *C.struct_SmiModule) + func (m SmiModule) GetRevisions() (revisions []models.Revision) + func (m SmiModule) GetType(name string) (outType SmiType, err error) + func (m SmiModule) GetTypes() (types []SmiType) + type SmiNode struct + SmiType *SmiType + func CreateNode(smiNode *C.struct_SmiNode) (node SmiNode) + func GetNode(name string, module ...SmiModule) (node SmiNode, err error) + func (n *SmiNode) SetRaw(smiNode *C.struct_SmiNode) + func (n SmiNode) AsNotification() Notification + func (n SmiNode) GetModule() (module SmiModule) + func (n SmiNode) GetNotificationObjects() (objects []SmiNode) + func (n SmiNode) GetRaw() (node *C.struct_SmiNode) + func (n SmiNode) GetSubtree() (nodes []SmiNode) + func (n SmiNode) Render(flags types.Render) string + func (n SmiNode) RenderNumeric() string + func (n SmiNode) RenderQualified() string + func (t SmiNode) AsTable() Table + func (t SmiNode) GetAugment() (row SmiNode) + func (t SmiNode) GetColumns() (columns map[string]SmiNode, columnOrder []string) + func (t SmiNode) GetImplied() (implied bool) + func (t SmiNode) GetIndex() (index []SmiNode) + func (t SmiNode) GetRow() (row SmiNode) + type SmiType struct + func CreateType(smiType *C.struct_SmiType) (outType SmiType) + func CreateTypeFromNode(smiNode *C.struct_SmiNode) (outType *SmiType) + func GetType(name string, module ...SmiModule) (outType SmiType, err error) + func (t *SmiType) SetRaw(smiType *C.struct_SmiType) + func (t SmiType) GetModule() (module SmiModule) + func (t SmiType) GetRaw() (outType *C.struct_SmiType) + func (t SmiType) String() string + type Table struct + ColumnOrder []string + Columns map[string]SmiNode + Implied bool + Index []SmiNode