Versions in this module Expand all Collapse all v1 v1.0.1 Jul 12, 2015 v1.0.0 Jan 24, 2015 Changes in this version + var OidSnmpTrap = MustNewOid("1.3.6.1.6.3.1.1.4.1.0") + var OidSysUpTime = MustNewOid("1.3.6.1.2.1.1.3.0") + var UnsupportedOperation error = errors.New("Unsupported operation") + type ArgumentError struct + Message string + Value interface{} + func (e ArgumentError) Error() string + type AuthProtocol string + const Md5 + const Sha + type Counter32 struct + Value uint32 + func NewCounter32(i uint32) *Counter32 + func (v *Counter32) BigInt() (*big.Int, error) + func (v *Counter32) Marshal() ([]byte, error) + func (v *Counter32) String() string + func (v *Counter32) Type() string + func (v *Counter32) Unmarshal(b []byte) (rest []byte, err error) + type Counter64 struct + Value uint64 + func NewCounter64(i uint64) *Counter64 + func (v *Counter64) BigInt() (*big.Int, error) + func (v *Counter64) Marshal() ([]byte, error) + func (v *Counter64) String() string + func (v *Counter64) Type() string + func (v *Counter64) Unmarshal(b []byte) (rest []byte, err error) + type EndOfMibView struct + func NewEndOfMibView() *EndOfMibView + func (v *EndOfMibView) Marshal() ([]byte, error) + func (v *EndOfMibView) Type() string + func (v *EndOfMibView) Unmarshal(b []byte) (rest []byte, err error) + type ErrorStatus int + const AuthorizationError + const BadValue + const CommitFailed + const GenError + const InconsistentName + const InconsistentValue + const NoAccess + const NoCreation + const NoError + const NoSuchName + const NotWritable + const ReadOnly + const ResourceUnavailable + const TooBig + const UndoFailed + const WrongEncoding + const WrongLength + const WrongType + const WrongValue + func (e ErrorStatus) String() string + type Gauge32 struct + func NewGauge32(i uint32) *Gauge32 + func (v *Gauge32) Marshal() ([]byte, error) + func (v *Gauge32) Type() string + func (v *Gauge32) Unmarshal(b []byte) (rest []byte, err error) + type Integer struct + Value int32 + func NewInteger(i int32) *Integer + func (v *Integer) BigInt() (*big.Int, error) + func (v *Integer) Marshal() ([]byte, error) + func (v *Integer) String() string + func (v *Integer) Type() string + func (v *Integer) Unmarshal(b []byte) (rest []byte, err error) + type Ipaddress struct + func NewIpaddress(a, b, c, d byte) *Ipaddress + func (v *Ipaddress) BigInt() (*big.Int, error) + func (v *Ipaddress) Marshal() ([]byte, error) + func (v *Ipaddress) String() string + func (v *Ipaddress) Type() string + func (v *Ipaddress) Unmarshal(b []byte) (rest []byte, err error) + type NoSucheInstance struct + func NewNoSucheInstance() *NoSucheInstance + func (v *NoSucheInstance) Marshal() ([]byte, error) + func (v *NoSucheInstance) Type() string + func (v *NoSucheInstance) Unmarshal(b []byte) (rest []byte, err error) + type NoSucheObject struct + func NewNoSucheObject() *NoSucheObject + func (v *NoSucheObject) Marshal() ([]byte, error) + func (v *NoSucheObject) Type() string + func (v *NoSucheObject) Unmarshal(b []byte) (rest []byte, err error) + type Null struct + func NewNull() *Null + func (v *Null) BigInt() (*big.Int, error) + func (v *Null) Marshal() ([]byte, error) + func (v *Null) String() string + func (v *Null) Type() string + func (v *Null) Unmarshal(b []byte) (rest []byte, err error) + type OctetString struct + Value []byte + func NewOctetString(b []byte) *OctetString + func (v *OctetString) BigInt() (*big.Int, error) + func (v *OctetString) Marshal() ([]byte, error) + func (v *OctetString) String() string + func (v *OctetString) Type() string + func (v *OctetString) Unmarshal(b []byte) (rest []byte, err error) + type Oid struct + Value asn1.ObjectIdentifier + func MustNewOid(s string) *Oid + func NewOid(s string) (oid *Oid, err error) + func (v *Oid) AppendSubIds(subs []int) (*Oid, error) + func (v *Oid) BigInt() (*big.Int, error) + func (v *Oid) Compare(o *Oid) int + func (v *Oid) Contains(o *Oid) bool + func (v *Oid) Equal(o *Oid) bool + func (v *Oid) Marshal() ([]byte, error) + func (v *Oid) String() string + func (v *Oid) Type() string + func (v *Oid) Unmarshal(b []byte) (rest []byte, err error) + type Oids []*Oid + func NewOids(s []string) (oids Oids, err error) + func (o Oids) Sort() Oids + func (o Oids) Uniq() Oids + func (o Oids) UniqBase() Oids + type Opaque struct + func NewOpaque(b []byte) *Opaque + func (v *Opaque) Marshal() ([]byte, error) + func (v *Opaque) String() string + func (v *Opaque) Type() string + func (v *Opaque) Unmarshal(b []byte) (rest []byte, err error) + type Pdu interface + AppendVarBind func(*Oid, Variable) + ErrorIndex func() int + ErrorStatus func() ErrorStatus + Marshal func() ([]byte, error) + PduType func() PduType + RequestId func() int + SetErrorIndex func(int) + SetErrorStatus func(ErrorStatus) + SetMaxRepetitions func(int) + SetNonrepeaters func(int) + SetRequestId func(int) + String func() string + Unmarshal func([]byte) (rest []byte, err error) + VarBinds func() VarBinds + func NewPdu(ver SNMPVersion, t PduType) (pdu Pdu) + func NewPduWithOids(ver SNMPVersion, t PduType, oids Oids) (pdu Pdu) + func NewPduWithVarBinds(ver SNMPVersion, t PduType, varBinds VarBinds) (pdu Pdu) + type PduType int + const GetBulkRequest + const GetNextRequest + const GetRequest + const GetResponse + const InformRequest + const Report + const SNMPTrapV2 + const SetRequest + const Trap + func (t PduType) String() string + type PduV1 struct + func (pdu *PduV1) AppendVarBind(oid *Oid, variable Variable) + func (pdu *PduV1) ErrorIndex() int + func (pdu *PduV1) ErrorStatus() ErrorStatus + func (pdu *PduV1) Marshal() (b []byte, err error) + func (pdu *PduV1) PduType() PduType + func (pdu *PduV1) RequestId() int + func (pdu *PduV1) SetErrorIndex(i int) + func (pdu *PduV1) SetErrorStatus(i ErrorStatus) + func (pdu *PduV1) SetMaxRepetitions(i int) + func (pdu *PduV1) SetNonrepeaters(i int) + func (pdu *PduV1) SetRequestId(i int) + func (pdu *PduV1) String() string + func (pdu *PduV1) Unmarshal(b []byte) (rest []byte, err error) + func (pdu *PduV1) VarBinds() VarBinds + type PrivProtocol string + const Aes + const Des + type ResponseError struct + Cause error + Detail string + Message string + func (e ResponseError) Error() string + type SNMP struct + func NewSNMP(args SNMPArguments) (*SNMP, error) + func (s *SNMP) Close() + func (s *SNMP) GetBulkRequest(oids Oids, nonRepeaters, maxRepetitions int) (result Pdu, err error) + func (s *SNMP) GetBulkWalk(oids Oids, nonRepeaters, maxRepetitions int) (result Pdu, err error) + func (s *SNMP) GetNextRequest(oids Oids) (result Pdu, err error) + func (s *SNMP) GetRequest(oids Oids) (result Pdu, err error) + func (s *SNMP) InformRequest(varBinds VarBinds) error + func (s *SNMP) Open() (err error) + func (s *SNMP) String() string + func (s *SNMP) V2Trap(varBinds VarBinds) error + type SNMPArguments struct + Address string + AuthPassword string + AuthProtocol AuthProtocol + Community string + ContextEngineId string + ContextName string + MessageMaxSize int + Network string + PrivPassword string + PrivProtocol PrivProtocol + Retries uint + SecurityEngineId string + SecurityLevel SecurityLevel + Timeout time.Duration + UserName string + Version SNMPVersion + func (a *SNMPArguments) String() string + type SNMPVersion int + const V1 + const V2c + const V3 + func (s SNMPVersion) String() string + type ScopedPdu struct + ContextEngineId []byte + ContextName []byte + func (pdu *ScopedPdu) Marshal() (b []byte, err error) + func (pdu *ScopedPdu) String() string + func (pdu *ScopedPdu) Unmarshal(b []byte) (rest []byte, err error) + type SecurityLevel int + const AuthNoPriv + const AuthPriv + const NoAuthNoPriv + func (s SecurityLevel) String() string + type TimeTicks struct + func NewTimeTicks(i uint32) *TimeTicks + func (v *TimeTicks) Marshal() ([]byte, error) + func (v *TimeTicks) Type() string + func (v *TimeTicks) Unmarshal(b []byte) (rest []byte, err error) + type VarBind struct + Oid *Oid + Variable Variable + func NewVarBind(oid *Oid, val Variable) *VarBind + func (v *VarBind) Marshal() (b []byte, err error) + func (v *VarBind) String() string + func (v *VarBind) Unmarshal(b []byte) (rest []byte, err error) + type VarBinds []*VarBind + func (v VarBinds) MatchBaseOids(prefix *Oid) VarBinds + func (v VarBinds) MatchOid(oid *Oid) *VarBind + func (v VarBinds) Sort() VarBinds + func (v VarBinds) String() string + func (v VarBinds) Uniq() VarBinds + type Variable interface + BigInt func() (*big.Int, error) + Marshal func() ([]byte, error) + String func() string + Type func() string + Unmarshal func([]byte) (rest []byte, err error) Incompatible versions in this module v2.0.1+incompatible May 26, 2016 v2.0.0+incompatible Feb 11, 2016