smi

package
v0.0.0-...-2151b9b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ACCESS = 57346
View Source
const AGENT_CAPABILITIES = 57347
View Source
const APPLICATION = 57348
View Source
const AUGMENTS = 57349
View Source
const BEGIN = 57350
View Source
const BIN_STRING = 57351
View Source
const BITS = 57352
View Source
const CHOICE = 57353
View Source
const COLON_COLON_EQUAL = 57354
View Source
const COMMENT = 57355
View Source
const CONTACT_INFO = 57356
View Source
const COUNTER = 57358
View Source
const COUNTER32 = 57359
View Source
const COUNTER64 = 57360
View Source
const CREATION_REQUIRES = 57357
View Source
const DEFINITIONS = 57361
View Source
const DEFVAL = 57362
View Source
const DESCRIPTION = 57363
View Source
const DISPLAY_HINT = 57364
View Source
const DOT_DOT = 57365
View Source
const END = 57366
View Source
const ENTERPRISE = 57367
View Source
const EXPORTS = 57368
View Source
const EXTENDS = 57369
View Source
const FROM = 57370
View Source
const GAUGE = 57372
View Source
const GAUGE32 = 57373
View Source
const GROUP = 57371
View Source
const HEX_STRING = 57374
View Source
const IDENTIFIER = 57375
View Source
const IMPLICIT = 57376
View Source
const IMPLIED = 57377
View Source
const IMPORTS = 57378
View Source
const INCLUDES = 57379
View Source
const INDEX = 57380
View Source
const INSTALL_ERRORS = 57381
View Source
const INTEGER = 57382
View Source
const INTEGER32 = 57383
View Source
const INTEGER64 = 57384
View Source
const IPADDRESS = 57385
View Source
const LAST_UPDATED = 57386
View Source
const LOWERCASE_IDENTIFIER = 57387
View Source
const MACRO = 57388
View Source
const MANDATORY_GROUPS = 57389
View Source
const MAX_ACCESS = 57390
View Source
const MIN_ACCESS = 57391
View Source
const MODULE = 57392
View Source
const MODULE_COMPLIANCE = 57393
View Source
const MODULE_IDENTITY = 57394
View Source
const NEGATIVE_NUMBER = 57395
View Source
const NEGATIVE_NUMBER64 = 57396
View Source
const NOTIFICATIONS = 57399
View Source
const NOTIFICATION_GROUP = 57397
View Source
const NOTIFICATION_TYPE = 57398
View Source
const NUMBER = 57400
View Source
const NUMBER64 = 57401
View Source
const OBJECT = 57402
View Source
const OBJECTS = 57406
View Source
const OBJECT_GROUP = 57403
View Source
const OBJECT_IDENTITY = 57404
View Source
const OBJECT_TYPE = 57405
View Source
const OCTET = 57407
View Source
const OF = 57408
View Source
const OPAQUE = 57410
View Source
const ORGANIZATION = 57409
View Source
const PIB_ACCESS = 57411
View Source
const PIB_DEFINITIONS = 57412
View Source
const PIB_INDEX = 57413
View Source
const PIB_MIN_ACCESS = 57414
View Source
const PIB_REFERENCES = 57415
View Source
const PIB_TAG = 57416
View Source
const POLICY_ACCESS = 57417
View Source
const PRODUCT_RELEASE = 57418
View Source
const QUOTED_STRING = 57419
View Source
const REFERENCE = 57420
View Source
const REVISION = 57421
View Source
const SEQUENCE = 57422
View Source
const SIZE = 57423
View Source
const SPECIAL_CHAR = 57424
View Source
const STATUS = 57425
View Source
const STRING = 57426
View Source
const SUBJECT_CATEGORIES = 57427
View Source
const SUPPORTS = 57428
View Source
const SYNTAX = 57429
View Source
const TEXTUAL_CONVENTION = 57430
View Source
const TIMETICKS = 57431
View Source
const TRAP_TYPE = 57432
View Source
const UNIQUENESS = 57433
View Source
const UNITS = 57434
View Source
const UNIVERSAL = 57435
View Source
const UNSIGNED32 = 57436
View Source
const UNSIGNED64 = 57437
View Source
const UPPERCASE_IDENTIFIER = 57438
View Source
const VALUE = 57439
View Source
const VARIABLES = 57440
View Source
const VARIATION = 57441
View Source
const WRITE_SYNTAX = 57442

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

type Access int

Access describes an SMI object's access value.

const (
	AccessUnknown Access = iota
	AccessNotAccessible
	AccessNotify
	AccessReadOnly
	AccessReadWrite
	AccessReadCreate
)

Access types for SMI objects

func (Access) String

func (a Access) String() string

type Import

type Import struct {
	Object string
	Module string
}

Import describes an imported object and the module it's imported from.

func (Import) String

func (i Import) String() string

type Kind

type Kind int

Kind describes whether an SMI object is a table, row, column, scalar, or something else.

const (
	KindUnknown Kind = iota
	KindObject  Kind = 1 << (iota - 1)
	KindScalar
	KindTable
	KindRow
	KindColumn
	KindNotification
	KindGroup
	KindCompliance
	KindCapabilities
	KindAny Kind = 0xffff
)

Kind of SMI object

func (Kind) String

func (k Kind) String() string

type Module

type Module struct {
	Name       string
	ObjectTree []*Object
	Imports    []Import
}

Module describes an SMI module. It contains an Object tree and a set of imports.

type Object

type Object struct {
	Access      Access
	Description string
	Indexes     []string
	Kind        Kind
	Module      string
	Name        string
	Oid         string
	Status      Status
	Parent      *Object
	Children    []*Object
}

Object describes an SMI object.

func (*Object) String

func (o *Object) String() string

type Status

type Status int

Status describes an SMI object's status value.

const (
	StatusUnknown Status = iota
	StatusCurrent
	StatusDeprecated
	StatusMandatory
	StatusObsolete
	StatusOptional
)

Status of SMI object

func (Status) String

func (s Status) String() string

type Store

type Store interface {
	GetObject(oid string) *Object
}

A Store contains the SMI parse tree and allows users to query for objects.

func NewStore

func NewStore(files ...string) (Store, error)

NewStore returns a Store.

type Token

type Token struct {
	// contains filtered or unexported fields
}

func (*Token) String

func (t *Token) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL