Documentation ¶
Index ¶
- 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
- type 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)
- func (m *SmiModule) SetRaw(smiModule *C.struct_SmiModule)
- type SmiNode
- func (n SmiNode) AsNotification() Notification
- 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 (n SmiNode) GetModule() (module SmiModule)
- func (n SmiNode) GetNotificationObjects() (objects []SmiNode)
- func (n SmiNode) GetRaw() (node *C.struct_SmiNode)
- func (t SmiNode) GetRow() (row 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 (n *SmiNode) SetRaw(smiNode *C.struct_SmiNode)
- type SmiType
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendPath ¶
func AppendPath(path string)
func LoadModule ¶
func PrependPath ¶
func PrependPath(path string)
func ReadConfig ¶
Types ¶
type Notification ¶
type SmiModule ¶
func CreateModule ¶
func CreateModule(smiModule *C.struct_SmiModule) (module SmiModule)
func GetLoadedModules ¶
func GetLoadedModules() (modules []SmiModule)
func (SmiModule) GetIdentityNode ¶
func (SmiModule) GetImports ¶
func (SmiModule) GetRaw ¶
func (m SmiModule) GetRaw() (module *C.struct_SmiModule)
func (SmiModule) GetRevisions ¶
func (*SmiModule) SetRaw ¶
func (m *SmiModule) SetRaw(smiModule *C.struct_SmiModule)
type SmiNode ¶
func CreateNode ¶
func CreateNode(smiNode *C.struct_SmiNode) (node SmiNode)
func (SmiNode) AsNotification ¶
func (n SmiNode) AsNotification() Notification
func (SmiNode) GetAugment ¶
func (SmiNode) GetColumns ¶
func (SmiNode) GetImplied ¶
func (SmiNode) GetNotificationObjects ¶
func (SmiNode) GetRaw ¶
func (n SmiNode) GetRaw() (node *C.struct_SmiNode)
func (SmiNode) GetSubtree ¶
func (SmiNode) RenderNumeric ¶
func (SmiNode) RenderQualified ¶
func (*SmiNode) SetRaw ¶
func (n *SmiNode) SetRaw(smiNode *C.struct_SmiNode)
type SmiType ¶
func CreateType ¶
func CreateType(smiType *C.struct_SmiType) (outType SmiType)
func CreateTypeFromNode ¶
func CreateTypeFromNode(smiNode *C.struct_SmiNode) (outType *SmiType)
func (SmiType) GetRaw ¶
func (t SmiType) GetRaw() (outType *C.struct_SmiType)
func (*SmiType) SetRaw ¶
func (t *SmiType) SetRaw(smiType *C.struct_SmiType)
Click to show internal directories.
Click to hide internal directories.