Documentation ¶
Index ¶
- Constants
- Variables
- func AppendFS(fs ...NamedFS)
- func Exit()
- func GetElementNode(smiElementPtr *types.SmiElement) *types.SmiNode
- func GetFirstChildNode(smiNodePtr *types.SmiNode) *types.SmiNode
- func GetFirstElement(smiNodePtr *types.SmiNode) *types.SmiElement
- func GetFirstImport(smiModulePtr *types.SmiModule) *types.SmiImport
- func GetFirstMacro(smiModulePtr *types.SmiModule) *types.SmiMacro
- func GetFirstModule() *types.SmiModule
- func GetFirstNamedNumber(smiTypePtr *types.SmiType) *types.SmiNamedNumber
- func GetFirstNode(smiModulePtr *types.SmiModule, nodekind types.NodeKind) *types.SmiNode
- func GetFirstOption(smiComplianceNodePtr *types.SmiNode) *types.SmiOption
- func GetFirstRange(smiTypePtr *types.SmiType) *types.SmiRange
- func GetFirstRefinement(smiComplianceNodePtr *types.SmiNode) *types.SmiRefinement
- func GetFirstRevision(smiModulePtr *types.SmiModule) *types.SmiRevision
- func GetFirstType(smiModulePtr *types.SmiModule) *types.SmiType
- func GetFlags() int
- func GetMacro(smiModulePtr *types.SmiModule, macro string) *types.SmiMacro
- func GetMacroLine(smiMacroPtr *types.SmiMacro) int
- func GetMacroModule(smiMacroPtr *types.SmiMacro) *types.SmiModule
- func GetMinMaxRange(smiType *types.SmiType) *types.SmiRange
- func GetModule(module string) *types.SmiModule
- func GetModuleIdentityNode(smiModulePtr *types.SmiModule) *types.SmiNode
- func GetNextChildNode(smiNodePtr *types.SmiNode) *types.SmiNode
- func GetNextElement(smiElementPtr *types.SmiElement) *types.SmiElement
- func GetNextImport(smiImportPtr *types.SmiImport) *types.SmiImport
- func GetNextMacro(smiMacroPtr *types.SmiMacro) *types.SmiMacro
- func GetNextModule(smiModulePtr *types.SmiModule) *types.SmiModule
- func GetNextNamedNumber(smiNamedNumberPtr *types.SmiNamedNumber) *types.SmiNamedNumber
- func GetNextNode(smiNodePtr *types.SmiNode, nodekind types.NodeKind) *types.SmiNode
- func GetNextOption(smiOptionPtr *types.SmiOption) *types.SmiOption
- func GetNextRange(smiRangePtr *types.SmiRange) *types.SmiRange
- func GetNextRefinement(smiRefinementPtr *types.SmiRefinement) *types.SmiRefinement
- func GetNextRevision(smiRevisionPtr *types.SmiRevision) *types.SmiRevision
- func GetNextType(smiTypePtr *types.SmiType) *types.SmiType
- func GetNode(smiModulePtr *types.SmiModule, name string) *types.SmiNode
- func GetNodeByOID(oid types.Oid) *types.SmiNode
- func GetNodeLine(smiNodePtr *types.SmiNode) int
- func GetNodeModule(smiNodePtr *types.SmiNode) *types.SmiModule
- func GetNodeType(smiNodePtr *types.SmiNode) *types.SmiType
- func GetOptionLine(smiOptionPtr *types.SmiOption) int
- func GetOptionNode(smiOptionPtr *types.SmiOption) *types.SmiNode
- func GetParentNode(smiNodePtr *types.SmiNode) *types.SmiNode
- func GetParentType(smiTypePtr *types.SmiType) *types.SmiType
- func GetPath() string
- func GetRefinementLine(smiRefinementPtr *types.SmiRefinement) int
- func GetRefinementNode(smiRefinementPtr *types.SmiRefinement) *types.SmiNode
- func GetRefinementType(smiRefinementPtr *types.SmiRefinement) *types.SmiType
- func GetRefinementWriteType(smiRefinementPtr *types.SmiRefinement) *types.SmiType
- func GetRelatedNode(smiNodePtr *types.SmiNode) *types.SmiNode
- func GetRevisionLine(smiRevisionPtr *types.SmiRevision) int
- func GetType(smiModulePtr *types.SmiModule, typeName string) *types.SmiType
- func GetTypeLine(smiTypePtr *types.SmiType) int
- func GetTypeModule(smiTypePtr *types.SmiType) *types.SmiModule
- func Init(tag ...string) bool
- func IsImported(smiModulePtr *types.SmiModule, importedModulePtr *types.SmiModule, ...) bool
- func IsLoaded(module string) bool
- func LoadModule(module string) (string, error)
- func PrependFS(fs ...NamedFS)
- func ReadConfig(filename string, tag ...string) error
- func RenderNode(smiNodePtr *types.SmiNode, flags types.Render) string
- func RenderOID(oid types.Oid, flags types.Render) string
- func SetErrorHandler(smiErrorHandler types.SmiErrorHandler)
- func SetErrorLevel(level int)
- func SetFS(fs ...NamedFS)
- func SetFlags(userflags int)
- func SetPath(path string)
- func SetSeverity(pattern string, severity int)
- type FS
- type NamedFS
Constants ¶
const ( DefaultErrorLevel = 3 DefaultGlobalConfig = "/etc/smi.conf" DefaultUserConfig = ".smirc" )
Variables ¶
var DefaultSmiPaths []string = []string{
"/usr/local/share/mibs/ietf",
"/usr/local/share/mibs/iana",
"/usr/local/share/mibs/irtf",
"/usr/local/share/mibs/site",
"/usr/local/share/mibs/jacobs",
"/usr/local/share/mibs/tubs",
}
Functions ¶
func GetElementNode ¶
func GetElementNode(smiElementPtr *types.SmiElement) *types.SmiNode
SmiNode *smiGetElementNode(SmiElement *smiElementPtr)
func GetFirstChildNode ¶
SmiNode *smiGetFirstChildNode(SmiNode *smiNodePtr)
func GetFirstElement ¶
func GetFirstElement(smiNodePtr *types.SmiNode) *types.SmiElement
SmiElement *smiGetFirstElement(SmiNode *smiNodePtr)
func GetFirstImport ¶
SmiImport *smiGetFirstImport(SmiModule *smiModulePtr)
func GetFirstMacro ¶
SmiMacro *smiGetFirstMacro(SmiModule *smiModulePtr)
func GetFirstNamedNumber ¶
func GetFirstNamedNumber(smiTypePtr *types.SmiType) *types.SmiNamedNumber
SmiNamedNumber *smiGetFirstNamedNumber(SmiType *smiTypePtr)
func GetFirstNode ¶
SmiNode *smiGetFirstNode(SmiModule *smiModulePtr, SmiNodekind nodekind)
func GetFirstOption ¶
SmiOption *smiGetFirstOption(SmiNode *smiComplianceNodePtr)
func GetFirstRange ¶
SmiRange *smiGetFirstRange(SmiType *smiTypePtr)
func GetFirstRefinement ¶
func GetFirstRefinement(smiComplianceNodePtr *types.SmiNode) *types.SmiRefinement
SmiRefinement *smiGetFirstRefinement(SmiNode *smiComplianceNodePtr)
func GetFirstRevision ¶
func GetFirstRevision(smiModulePtr *types.SmiModule) *types.SmiRevision
SmiRevision *smiGetFirstRevision(SmiModule *smiModulePtr)
func GetFirstType ¶
SmiType *smiGetFirstType(SmiModule *smiModulePtr)
func GetMacroLine ¶
int smiGetMacroLine(SmiMacro *smiMacroPtr)
func GetMacroModule ¶
SmiModule *smiGetMacroModule(SmiMacro *smiMacroPtr)
func GetMinMaxRange ¶
int smiGetMinMaxRange(SmiType *smiType, SmiValue *min, SmiValue *max)
func GetModuleIdentityNode ¶
SmiNode *smiGetModuleIdentityNode(SmiModule *smiModulePtr)
func GetNextChildNode ¶
SmiNode *smiGetNextChildNode(SmiNode *smiNodePtr)
func GetNextElement ¶
func GetNextElement(smiElementPtr *types.SmiElement) *types.SmiElement
SmiElement *smiGetNextElement(SmiElement *smiElementPtr)
func GetNextImport ¶
SmiImport *smiGetNextImport(SmiImport *smiImportPtr)
func GetNextMacro ¶
SmiMacro *smiGetNextMacro(SmiMacro *smiMacroPtr)
func GetNextModule ¶
SmiModule *smiGetNextModule(SmiModule *smiModulePtr)
func GetNextNamedNumber ¶
func GetNextNamedNumber(smiNamedNumberPtr *types.SmiNamedNumber) *types.SmiNamedNumber
SmiNamedNumber *smiGetNextNamedNumber(SmiNamedNumber *smiNamedNumberPtr)
func GetNextNode ¶
SmiNode *smiGetNextNode(SmiNode *smiNodePtr, SmiNodekind nodekind)
func GetNextOption ¶
SmiOption *smiGetNextOption(SmiOption *smiOptionPtr)
func GetNextRange ¶
SmiRange *smiGetNextRange(SmiRange *smiRangePtr)
func GetNextRefinement ¶
func GetNextRefinement(smiRefinementPtr *types.SmiRefinement) *types.SmiRefinement
SmiRefinement *smiGetNextRefinement(SmiRefinement *smiRefinementPtr)
func GetNextRevision ¶
func GetNextRevision(smiRevisionPtr *types.SmiRevision) *types.SmiRevision
SmiRevision *smiGetNextRevision(SmiRevision *smiRevisionPtr)
func GetNextType ¶
SmiType *smiGetNextType(SmiType *smiTypePtr)
func GetNodeByOID ¶
SmiNode *smiGetNodeByOID(unsigned int oidlen, SmiSubid oid[])
func GetNodeLine ¶
int smiGetNodeLine(SmiNode *smiNodePtr)
func GetNodeModule ¶
SmiModule *smiGetNodeModule(SmiNode *smiNodePtr)
func GetNodeType ¶
SmiType *smiGetNodeType(SmiNode *smiNodePtr)
func GetOptionLine ¶
int smiGetOptionLine(SmiOption *smiOptionPtr)
func GetOptionNode ¶
SmiNode *smiGetOptionNode(SmiOption *smiOptionPtr)
func GetParentNode ¶
SmiNode *smiGetParentNode(SmiNode *smiNodePtr)
func GetParentType ¶
SmiType *smiGetParentType(SmiType *smiTypePtr)
func GetRefinementLine ¶
func GetRefinementLine(smiRefinementPtr *types.SmiRefinement) int
int smiGetRefinementLine(SmiRefinement *smiRefinementPtr)
func GetRefinementNode ¶
func GetRefinementNode(smiRefinementPtr *types.SmiRefinement) *types.SmiNode
SmiNode *smiGetRefinementNode(SmiRefinement *smiRefinementPtr)
func GetRefinementType ¶
func GetRefinementType(smiRefinementPtr *types.SmiRefinement) *types.SmiType
SmiType *smiGetRefinementType(SmiRefinement *smiRefinementPtr)
func GetRefinementWriteType ¶
func GetRefinementWriteType(smiRefinementPtr *types.SmiRefinement) *types.SmiType
SmiType *smiGetRefinementWriteType(SmiRefinement *smiRefinementPtr)
func GetRelatedNode ¶
SmiNode *smiGetRelatedNode(SmiNode *smiNodePtr)
func GetRevisionLine ¶
func GetRevisionLine(smiRevisionPtr *types.SmiRevision) int
int smiGetRevisionLine(SmiRevision *smiRevisionPtr)
func GetTypeLine ¶
int smiGetTypeLine(SmiType *smiTypePtr)
func GetTypeModule ¶
SmiModule *smiGetTypeModule(SmiType *smiTypePtr)
func IsImported ¶
func IsImported(smiModulePtr *types.SmiModule, importedModulePtr *types.SmiModule, importedName string) bool
int smiIsImported(SmiModule *smiModulePtr, SmiModule *importedModulePtr, char *importedName)
func LoadModule ¶
char *smiLoadModule(const char *module)
func ReadConfig ¶
int smiReadConfig(const char *filename, const char *tag)
func SetErrorHandler ¶
func SetErrorHandler(smiErrorHandler types.SmiErrorHandler)
void smiSetErrorHandler(SmiErrorHandler smiErrorHandler)
func SetSeverity ¶
void smiSetSeverity(char *pattern, int severity)