Versions in this module Expand all Collapse all v0 v0.4.5 Oct 18, 2023 Changes in this version + const UnknownLabel + const WellKnownModuleName + var WellKnownIdCcitt types.SmiSubId = 0 + var WellKnownIdIso types.SmiSubId = 1 + var WellKnownIdJointIsoCcitt types.SmiSubId = 2 + func AppendFS(fs ...NamedFS) + func Exit() + func GetFlags() int + func GetModuleFile(name string) (string, io.ReadCloser, error) + func GetPath() string + func GetValue(value string, baseType types.BaseType) types.SmiValue + func GetValueInt32(value string) int32 + func GetValueInt64(value string) int64 + func GetValueUint32(value string) uint32 + func GetValueUint64(value string) uint64 + func Init(handleName string) bool + func Initialized() bool + func PrependFS(fs ...NamedFS) + 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 DirEntry = fs.DirEntry + type FS = fs.ReadDirFS + type File = fs.File + type Flags uint16 + const FlagCreatable + const FlagInCompliance + const FlagInGroup + const FlagInSyntax + const FlagIncomplete + const FlagRegistered + const FlagRoot + const FlagSeqType + func (x Flags) Has(flag Flags) bool + type Handle struct + Cache string + CacheProg string + ErrorHandler types.SmiErrorHandler + ErrorLevel int + Flags Flags + Modules ModuleMap + Name string + Next *Handle + Paths []NamedFS + Prev *Handle + RootNode *Node + TypeBits *Type + TypeEnum *Type + TypeInteger32 *Type + TypeInteger64 *Type + TypeObjectIdentifier *Type + TypeOctetString *Type + TypeUnsigned32 *Type + TypeUnsigned64 *Type + type Import struct + Flags Flags + Kind Kind + Line int + ModulePtr *Module + Next *Import + Prev *Import + Used bool + type ImportMap struct + First *Import + func (x *ImportMap) Add(i *Import) + func (x *ImportMap) Get(name types.SmiIdentifier) *Import + func (x *ImportMap) GetName(name string) *Import + type Index struct + Implied int + IndexKind types.IndexKind + List *List + Row *Object + type Kind int + const KindImport + const KindImported + const KindMacro + const KindModule + const KindNotFound + const KindObject + const KindType + const KindUnknown + type List struct + Next *List + Ptr interface{} + type Macro struct + Flags Flags + Line int + Module *Module + Next *Macro + Prev *Macro + type MacroMap struct + First *Macro + func (x *MacroMap) Add(m *Macro) + func (x *MacroMap) Get(name types.SmiIdentifier) *Macro + func (x *MacroMap) GetName(name string) *Macro + type Module struct + FirstRevision *Revision + Flags Flags + Identity *Object + Imports ImportMap + LastRevision *Revision + LastUpdated time.Time + Macros MacroMap + Next *Module + NumImportedIdentifiers int + NumModuleIdentities int + NumStatements int + Objects ObjectMap + PrefixNode *Node + Prev *Module + Types TypeMap + func BuildModule(path string, in *parser.Module) (*Module, error) + func FindModuleByName(modulename string) *Module + func GetFirstModule() *Module + func GetModule(name string) (*Module, error) + func LoadModule(name string) (*Module, error) + func (x *Module) AddRevision(revision *Revision) + func (x *Module) GetObject(name types.SmiIdentifier) *Object + func (x *Module) GetType(name types.SmiIdentifier) *Type + func (x *Module) IsWellKnown() bool + func (x *Module) SetPrefixNode(n *Node) + type ModuleMap struct + First *Module + func (x *ModuleMap) Add(m *Module) + func (x *ModuleMap) Get(name types.SmiIdentifier) *Module + func (x *ModuleMap) GetName(name string) *Module + type NamedFS struct + FS FS + Name string + type NamedNumber struct + List *List + Type *Type + type Node struct + Children NodeChildMap + FirstObject *Object + Flags Flags + LastObject *Object + Next *Node + Oid types.Oid + OidLen int + Parent *Node + Prev *Node + SubId types.SmiSubId + func FindNodeByOid(oidlen int, oid types.Oid) *Node + func Root() *Node + func (x *Node) AddObject(obj *Object) + func (x *Node) IsRoot() bool + type NodeChildMap struct + First *Node + func (x *NodeChildMap) Add(n *Node) + func (x *NodeChildMap) Get(id types.SmiSubId) *Node + type Object struct + Flags Flags + Line int + List *List + Module *Module + Next *Object + NextSameNode *Object + Node *Node + OptionList *List + Prev *Object + PrevSameNode *Object + RefinementList *List + Related *Object + Type *Type + UniquenessPtr *List + func FindObjectByModuleAndNode(modulePtr *Module, nodePtr *Node) *Object + func FindObjectByModuleNameAndNode(module string, nodePtr *Node) *Object + func FindObjectByNode(nodePtr *Node) *Object + func GetNextChildObject(startNodePtr *Node, modulePtr *Module, nodekind types.NodeKind) *Object + func (x *Object) AddElement(obj *Object) + func (x *Object) AddElements(ids []types.SmiIdentifier) + func (x *Object) AddOption(option *Option) + func (x *Object) AddRefinement(refinement *Refinement) + func (x *Object) GetSmiNode() *types.SmiNode + type ObjectMap struct + First *Object + func (x *ObjectMap) Add(o *Object) + func (x *ObjectMap) AddWithOid(o *Object, oid parser.Oid) + func (x *ObjectMap) Get(name types.SmiIdentifier) *Object + func (x *ObjectMap) GetName(name string) *Object + type Option struct + Compliance *Object + Line int + List *List + Object *Object + type Range struct + List *List + Type *Type + type Refinement struct + Compliance *Object + Line int + List *List + Object *Object + Type *Type + WriteType *Type + type Revision struct + Line int + Module *Module + Next *Revision + Prev *Revision + type Type struct + Flags Flags + Line int + List *List + Module *Module + Next *Type + Parent *Type + Prev *Type + func GetBaseTypeFromSyntax(syntax parser.SyntaxType) *Type + func (x *Type) AddList(list *List) + func (x *Type) AddNamedNumber(name types.SmiIdentifier, value types.SmiValue) + func (x *Type) AddRange(min types.SmiValue, max types.SmiValue) + type TypeMap struct + First *Type + func (x *TypeMap) Add(t *Type) + func (x *TypeMap) Get(name types.SmiIdentifier) *Type + func (x *TypeMap) GetName(name string) *Type