Documentation ¶
Index ¶
- func AppendFS(fs ...smi.NamedFS)
- func AppendPath(path string)
- func Exit()
- func GetPath() string
- func Init()
- func IsLoaded(moduleName string) bool
- func LoadModule(modulePath string) (string, error)
- func NamedFS(name string, fs smi.FS) smi.NamedFS
- func PrependFS(fs ...smi.NamedFS)
- func PrependPath(path string)
- func ReadConfig(filename string, tag ...string) error
- func SetFS(fs ...smi.NamedFS)
- 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 *types.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 *types.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() bool
- func (t SmiNode) GetIndex() (index []SmiNode)
- func (n SmiNode) GetModule() (module SmiModule)
- func (n SmiNode) GetNotificationObjects() (objects []SmiNode)
- func (n SmiNode) GetRaw() (node *types.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 *types.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 GetLoadedModules ¶
func GetLoadedModules() (modules []SmiModule)
func (SmiModule) GetIdentityNode ¶
func (SmiModule) GetImports ¶
func (SmiModule) GetRevisions ¶
type SmiNode ¶
func CreateNode ¶
func (SmiNode) AsNotification ¶
func (n SmiNode) AsNotification() Notification
func (SmiNode) GetAugment ¶
func (SmiNode) GetColumns ¶
func (SmiNode) GetImplied ¶
func (SmiNode) GetNotificationObjects ¶
func (SmiNode) GetSubtree ¶
func (SmiNode) RenderNumeric ¶
func (SmiNode) RenderQualified ¶
Click to show internal directories.
Click to hide internal directories.