Documentation
¶
Index ¶
- Constants
- Variables
- 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
- type FS
- type File
- type Flags
- type Handle
- type Import
- type ImportMap
- type Index
- type Kind
- type List
- type Macro
- type MacroMap
- type Module
- type ModuleMap
- type NamedFS
- type NamedNumber
- type Node
- type NodeChildMap
- type Object
- type ObjectMap
- type Option
- type Range
- type Refinement
- type Revision
- type Type
- type TypeMap
Constants ¶
View Source
const (
UnknownLabel = "<unknown>"
)
View Source
const WellKnownModuleName types.SmiIdentifier = "<well-known>"
Variables ¶
Functions ¶
func GetModuleFile ¶
func GetModuleFile(name string) (string, io.ReadCloser, error)
func GetValueInt32 ¶
func GetValueInt64 ¶
func GetValueUint32 ¶
func GetValueUint64 ¶
func Initialized ¶
func Initialized() bool
func SetErrorHandler ¶
func SetErrorHandler(smiErrorHandler types.SmiErrorHandler)
func SetErrorLevel ¶
func SetErrorLevel(level int)
func SetSeverity ¶
Types ¶
type Flags ¶
type Flags uint16
const ( FlagRoot Flags = 0x0001 // Mark node tree's root FlagSeqType Flags = 0x0002 // Type is set from SMIv1/2 SEQUENCE FlagRegistered Flags = 0x0004 // On an Object: this is registered FlagIncomplete Flags = 0x0008 // Just defined by a forward referenced type or object FlagCreatable Flags = 0x0040 // On a Row: new rows can be created FlagInGroup Flags = 0x0080 // Node is contained in a group FlagInCompliance Flags = 0x0100 // Group is mentioned in a compliance statement. In case of ImportFlags: the import is done through a compliance MODULE phrase FlagInSyntax Flags = 0x0200 // Type is mentioned in a syntax statement )
type Handle ¶
type Handle struct { Name string Prev *Handle Next *Handle Modules ModuleMap RootNode *Node TypeBits *Type TypeEnum *Type TypeInteger32 *Type TypeInteger64 *Type TypeObjectIdentifier *Type TypeOctetString *Type TypeUnsigned32 *Type TypeUnsigned64 *Type Flags Flags Paths []NamedFS Cache string CacheProg string ErrorLevel int ErrorHandler types.SmiErrorHandler }
type List ¶
type List struct { types.SmiElement Ptr interface{} Next *List }
type Module ¶
type Module struct { types.SmiModule LastUpdated time.Time Identity *Object Objects ObjectMap Types TypeMap Macros MacroMap Imports ImportMap FirstRevision *Revision LastRevision *Revision Flags Flags NumImportedIdentifiers int NumStatements int NumModuleIdentities int Prev *Module Next *Module PrefixNode *Node // contains filtered or unexported fields }
func FindModuleByName ¶
func GetFirstModule ¶
func GetFirstModule() *Module
func LoadModule ¶
func (*Module) AddRevision ¶
func (*Module) IsWellKnown ¶
func (*Module) SetPrefixNode ¶
type NamedNumber ¶
type NamedNumber struct { types.SmiNamedNumber Type *Type List *List }
type Node ¶
type NodeChildMap ¶
type NodeChildMap struct { First *Node // contains filtered or unexported fields }
func (*NodeChildMap) Add ¶
func (x *NodeChildMap) Add(n *Node)
type Object ¶
type Object struct { types.SmiNode Module *Module Flags Flags Type *Type Related *Object List *List OptionList *List RefinementList *List Node *Node Prev *Object Next *Object PrevSameNode *Object NextSameNode *Object UniquenessPtr *List Line int // contains filtered or unexported fields }
func FindObjectByNode ¶
func GetNextChildObject ¶
func (*Object) AddElement ¶
func (*Object) AddElements ¶
func (x *Object) AddElements(ids []types.SmiIdentifier)
func (*Object) AddRefinement ¶
func (x *Object) AddRefinement(refinement *Refinement)
func (*Object) GetSmiNode ¶
type Refinement ¶
type Type ¶
type Type struct { types.SmiType Module *Module Parent *Type List *List Flags Flags Prev *Type Next *Type Line int // contains filtered or unexported fields }
func GetBaseTypeFromSyntax ¶
func GetBaseTypeFromSyntax(syntax parser.SyntaxType) *Type
func (*Type) AddNamedNumber ¶
func (x *Type) AddNamedNumber(name types.SmiIdentifier, value types.SmiValue)
Click to show internal directories.
Click to hide internal directories.