Documentation ¶
Overview ¶
Copyright 2016-2019 DutchSec (https://dutchsec.com/)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016-2019 DutchSec (https://dutchsec.com/)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func Asn1Context() *asn1.Context
- func SNMP(options ...services.ServicerFunc) services.Servicer
- type BulkPdu
- type Counter32
- type Counter64
- type EndOfMibView
- type GetBulkRequestPdu
- type GetNextRequestPdu
- type GetRequestPdu
- type GetResponsePdu
- type IPAddress
- type InformRequestPdu
- type Message
- type NoSuchInstance
- type NoSuchObject
- type Opaque
- type Pdu
- type SetRequestPdu
- type TimeTicks
- type Unsigned32
- type V1TrapPdu
- type V2TrapPdu
- type Variable
Constants ¶
const ( NoError = 0 TooBig = 1 NoSuchName = 2 BadValue = 3 ReadOnly = 4 GenErr = 5 NoAccess = 6 WrongType = 7 WrongLength = 8 WrongEncoding = 9 WrongValue = 10 NoCreation = 11 InconsistentValue = 12 CommitFailed = 14 UndoFailed = 15 AuthorizationError = 16 NotWritable = 17 InconsistentName = 18 )
SNMP error codes.
Variables ¶
This section is empty.
Functions ¶
func Asn1Context ¶
Asn1Context returns a new allocated asn1.Context and registers all the choice types necessary for SNMPv1 and SNMPv2.
Types ¶
type EndOfMibView ¶
EndOfMibView exception.
func (EndOfMibView) String ¶
func (e EndOfMibView) String() string
type GetBulkRequestPdu ¶
type GetBulkRequestPdu BulkPdu
GetBulkRequestPdu is used for bulk requests.
type GetNextRequestPdu ¶
type GetNextRequestPdu Pdu
GetNextRequestPdu works similarly to GetRequestPdu, but it's returned the value for the next valid Oid.
type NoSuchInstance ¶
NoSuchInstance exception.
func (NoSuchInstance) String ¶
func (e NoSuchInstance) String() string
type NoSuchObject ¶
NoSuchObject exception.
func (NoSuchObject) String ¶
func (e NoSuchObject) String() string