Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockHandler
- func (m *MockHandler) BulkWalk(rootOid string, walkFn gosnmp.WalkFunc) error
- func (m *MockHandler) BulkWalkAll(rootOid string) ([]gosnmp.SnmpPDU, error)
- func (m *MockHandler) Check(err error)
- func (m *MockHandler) Close() error
- func (m *MockHandler) Community() string
- func (m *MockHandler) Connect() error
- func (m *MockHandler) ConnectIPv4() error
- func (m *MockHandler) ConnectIPv6() error
- func (m *MockHandler) ContextEngineID() string
- func (m *MockHandler) ContextName() string
- func (m *MockHandler) EXPECT() *MockHandlerMockRecorder
- func (m *MockHandler) Get(oids []string) (*gosnmp.SnmpPacket, error)
- func (m *MockHandler) GetBulk(oids []string, nonRepeaters, maxRepetitions uint8) (*gosnmp.SnmpPacket, error)
- func (m *MockHandler) GetExponentialTimeout() bool
- func (m *MockHandler) GetNext(oids []string) (*gosnmp.SnmpPacket, error)
- func (m *MockHandler) Logger() gosnmp.Logger
- func (m *MockHandler) MaxOids() int
- func (m *MockHandler) MaxRepetitions() uint8
- func (m *MockHandler) MsgFlags() gosnmp.SnmpV3MsgFlags
- func (m *MockHandler) NonRepeaters() int
- func (m *MockHandler) Port() uint16
- func (m *MockHandler) Retries() int
- func (m *MockHandler) SecurityModel() gosnmp.SnmpV3SecurityModel
- func (m *MockHandler) SecurityParameters() gosnmp.SnmpV3SecurityParameters
- func (m *MockHandler) SendTrap(trap gosnmp.SnmpTrap) (*gosnmp.SnmpPacket, error)
- func (m *MockHandler) Set(pdus []gosnmp.SnmpPDU) (*gosnmp.SnmpPacket, error)
- func (m *MockHandler) SetCommunity(community string)
- func (m *MockHandler) SetContextEngineID(contextEngineID string)
- func (m *MockHandler) SetContextName(contextName string)
- func (m *MockHandler) SetExponentialTimeout(value bool)
- func (m *MockHandler) SetLogger(logger gosnmp.Logger)
- func (m *MockHandler) SetMaxOids(maxOids int)
- func (m *MockHandler) SetMaxRepetitions(maxRepetitions uint8)
- func (m *MockHandler) SetMsgFlags(msgFlags gosnmp.SnmpV3MsgFlags)
- func (m *MockHandler) SetNonRepeaters(nonRepeaters int)
- func (m *MockHandler) SetPort(port uint16)
- func (m *MockHandler) SetRetries(retries int)
- func (m *MockHandler) SetSecurityModel(securityModel gosnmp.SnmpV3SecurityModel)
- func (m *MockHandler) SetSecurityParameters(securityParameters gosnmp.SnmpV3SecurityParameters)
- func (m *MockHandler) SetTarget(target string)
- func (m *MockHandler) SetTimeout(timeout time.Duration)
- func (m *MockHandler) SetVersion(version gosnmp.SnmpVersion)
- func (m *MockHandler) Target() string
- func (m *MockHandler) Timeout() time.Duration
- func (m *MockHandler) UnmarshalTrap(trap []byte) *gosnmp.SnmpPacket
- func (m *MockHandler) Version() gosnmp.SnmpVersion
- func (m *MockHandler) Walk(rootOid string, walkFn gosnmp.WalkFunc) error
- func (m *MockHandler) WalkAll(rootOid string) ([]gosnmp.SnmpPDU, error)
- type MockHandlerMockRecorder
- func (mr *MockHandlerMockRecorder) BulkWalk(rootOid, walkFn interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) BulkWalkAll(rootOid interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) Check(err interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) Close() *gomock.Call
- func (mr *MockHandlerMockRecorder) Community() *gomock.Call
- func (mr *MockHandlerMockRecorder) Connect() *gomock.Call
- func (mr *MockHandlerMockRecorder) ConnectIPv4() *gomock.Call
- func (mr *MockHandlerMockRecorder) ConnectIPv6() *gomock.Call
- func (mr *MockHandlerMockRecorder) ContextEngineID() *gomock.Call
- func (mr *MockHandlerMockRecorder) ContextName() *gomock.Call
- func (mr *MockHandlerMockRecorder) Get(oids interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) GetBulk(oids, nonRepeaters, maxRepetitions interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) GetExponentialTimeout() *gomock.Call
- func (mr *MockHandlerMockRecorder) GetNext(oids interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) Logger() *gomock.Call
- func (mr *MockHandlerMockRecorder) MaxOids() *gomock.Call
- func (mr *MockHandlerMockRecorder) MaxRepetitions() *gomock.Call
- func (mr *MockHandlerMockRecorder) MsgFlags() *gomock.Call
- func (mr *MockHandlerMockRecorder) NonRepeaters() *gomock.Call
- func (mr *MockHandlerMockRecorder) Port() *gomock.Call
- func (mr *MockHandlerMockRecorder) Retries() *gomock.Call
- func (mr *MockHandlerMockRecorder) SecurityModel() *gomock.Call
- func (mr *MockHandlerMockRecorder) SecurityParameters() *gomock.Call
- func (mr *MockHandlerMockRecorder) SendTrap(trap interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) Set(pdus interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) SetCommunity(community interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) SetContextEngineID(contextEngineID interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) SetContextName(contextName interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) SetExponentialTimeout(value interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) SetLogger(logger interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) SetMaxOids(maxOids interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) SetMaxRepetitions(maxRepetitions interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) SetMsgFlags(msgFlags interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) SetNonRepeaters(nonRepeaters interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) SetPort(port interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) SetRetries(retries interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) SetSecurityModel(securityModel interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) SetSecurityParameters(securityParameters interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) SetTarget(target interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) SetTimeout(timeout interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) SetVersion(version interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) Target() *gomock.Call
- func (mr *MockHandlerMockRecorder) Timeout() *gomock.Call
- func (mr *MockHandlerMockRecorder) UnmarshalTrap(trap interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) Version() *gomock.Call
- func (mr *MockHandlerMockRecorder) Walk(rootOid, walkFn interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) WalkAll(rootOid interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHandler ¶
type MockHandler struct {
// contains filtered or unexported fields
}
MockHandler is a mock of Handler interface
func NewMockHandler ¶
func NewMockHandler(ctrl *gomock.Controller) *MockHandler
NewMockHandler creates a new mock instance
func (*MockHandler) BulkWalk ¶
func (m *MockHandler) BulkWalk(rootOid string, walkFn gosnmp.WalkFunc) error
BulkWalk mocks base method
func (*MockHandler) BulkWalkAll ¶
func (m *MockHandler) BulkWalkAll(rootOid string) ([]gosnmp.SnmpPDU, error)
BulkWalkAll mocks base method
func (*MockHandler) Community ¶
func (m *MockHandler) Community() string
Community mocks base method
func (*MockHandler) ConnectIPv4 ¶
func (m *MockHandler) ConnectIPv4() error
ConnectIPv4 mocks base method
func (*MockHandler) ConnectIPv6 ¶
func (m *MockHandler) ConnectIPv6() error
ConnectIPv6 mocks base method
func (*MockHandler) ContextEngineID ¶
func (m *MockHandler) ContextEngineID() string
ContextEngineID mocks base method
func (*MockHandler) ContextName ¶
func (m *MockHandler) ContextName() string
ContextName mocks base method
func (*MockHandler) EXPECT ¶
func (m *MockHandler) EXPECT() *MockHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockHandler) Get ¶
func (m *MockHandler) Get(oids []string) (*gosnmp.SnmpPacket, error)
Get mocks base method
func (*MockHandler) GetBulk ¶
func (m *MockHandler) GetBulk(oids []string, nonRepeaters, maxRepetitions uint8) (*gosnmp.SnmpPacket, error)
GetBulk mocks base method
func (*MockHandler) GetExponentialTimeout ¶
func (m *MockHandler) GetExponentialTimeout() bool
GetExponentialTimeout mocks base method
func (*MockHandler) GetNext ¶
func (m *MockHandler) GetNext(oids []string) (*gosnmp.SnmpPacket, error)
GetNext mocks base method
func (*MockHandler) MaxRepetitions ¶
func (m *MockHandler) MaxRepetitions() uint8
MaxRepetitions mocks base method
func (*MockHandler) MsgFlags ¶
func (m *MockHandler) MsgFlags() gosnmp.SnmpV3MsgFlags
MsgFlags mocks base method
func (*MockHandler) NonRepeaters ¶
func (m *MockHandler) NonRepeaters() int
NonRepeaters mocks base method
func (*MockHandler) SecurityModel ¶
func (m *MockHandler) SecurityModel() gosnmp.SnmpV3SecurityModel
SecurityModel mocks base method
func (*MockHandler) SecurityParameters ¶
func (m *MockHandler) SecurityParameters() gosnmp.SnmpV3SecurityParameters
SecurityParameters mocks base method
func (*MockHandler) SendTrap ¶
func (m *MockHandler) SendTrap(trap gosnmp.SnmpTrap) (*gosnmp.SnmpPacket, error)
SendTrap mocks base method
func (*MockHandler) Set ¶
func (m *MockHandler) Set(pdus []gosnmp.SnmpPDU) (*gosnmp.SnmpPacket, error)
Set mocks base method
func (*MockHandler) SetCommunity ¶
func (m *MockHandler) SetCommunity(community string)
SetCommunity mocks base method
func (*MockHandler) SetContextEngineID ¶
func (m *MockHandler) SetContextEngineID(contextEngineID string)
SetContextEngineID mocks base method
func (*MockHandler) SetContextName ¶
func (m *MockHandler) SetContextName(contextName string)
SetContextName mocks base method
func (*MockHandler) SetExponentialTimeout ¶
func (m *MockHandler) SetExponentialTimeout(value bool)
SetExponentialTimeout mocks base method
func (*MockHandler) SetLogger ¶
func (m *MockHandler) SetLogger(logger gosnmp.Logger)
SetLogger mocks base method
func (*MockHandler) SetMaxOids ¶
func (m *MockHandler) SetMaxOids(maxOids int)
SetMaxOids mocks base method
func (*MockHandler) SetMaxRepetitions ¶
func (m *MockHandler) SetMaxRepetitions(maxRepetitions uint8)
SetMaxRepetitions mocks base method
func (*MockHandler) SetMsgFlags ¶
func (m *MockHandler) SetMsgFlags(msgFlags gosnmp.SnmpV3MsgFlags)
SetMsgFlags mocks base method
func (*MockHandler) SetNonRepeaters ¶
func (m *MockHandler) SetNonRepeaters(nonRepeaters int)
SetNonRepeaters mocks base method
func (*MockHandler) SetRetries ¶
func (m *MockHandler) SetRetries(retries int)
SetRetries mocks base method
func (*MockHandler) SetSecurityModel ¶
func (m *MockHandler) SetSecurityModel(securityModel gosnmp.SnmpV3SecurityModel)
SetSecurityModel mocks base method
func (*MockHandler) SetSecurityParameters ¶
func (m *MockHandler) SetSecurityParameters(securityParameters gosnmp.SnmpV3SecurityParameters)
SetSecurityParameters mocks base method
func (*MockHandler) SetTarget ¶
func (m *MockHandler) SetTarget(target string)
SetTarget mocks base method
func (*MockHandler) SetTimeout ¶
func (m *MockHandler) SetTimeout(timeout time.Duration)
SetTimeout mocks base method
func (*MockHandler) SetVersion ¶
func (m *MockHandler) SetVersion(version gosnmp.SnmpVersion)
SetVersion mocks base method
func (*MockHandler) Timeout ¶
func (m *MockHandler) Timeout() time.Duration
Timeout mocks base method
func (*MockHandler) UnmarshalTrap ¶
func (m *MockHandler) UnmarshalTrap(trap []byte) *gosnmp.SnmpPacket
UnmarshalTrap mocks base method
func (*MockHandler) Version ¶
func (m *MockHandler) Version() gosnmp.SnmpVersion
Version mocks base method
type MockHandlerMockRecorder ¶
type MockHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockHandlerMockRecorder is the mock recorder for MockHandler
func (*MockHandlerMockRecorder) BulkWalk ¶
func (mr *MockHandlerMockRecorder) BulkWalk(rootOid, walkFn interface{}) *gomock.Call
BulkWalk indicates an expected call of BulkWalk
func (*MockHandlerMockRecorder) BulkWalkAll ¶
func (mr *MockHandlerMockRecorder) BulkWalkAll(rootOid interface{}) *gomock.Call
BulkWalkAll indicates an expected call of BulkWalkAll
func (*MockHandlerMockRecorder) Check ¶
func (mr *MockHandlerMockRecorder) Check(err interface{}) *gomock.Call
Check indicates an expected call of Check
func (*MockHandlerMockRecorder) Close ¶
func (mr *MockHandlerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockHandlerMockRecorder) Community ¶
func (mr *MockHandlerMockRecorder) Community() *gomock.Call
Community indicates an expected call of Community
func (*MockHandlerMockRecorder) Connect ¶
func (mr *MockHandlerMockRecorder) Connect() *gomock.Call
Connect indicates an expected call of Connect
func (*MockHandlerMockRecorder) ConnectIPv4 ¶
func (mr *MockHandlerMockRecorder) ConnectIPv4() *gomock.Call
ConnectIPv4 indicates an expected call of ConnectIPv4
func (*MockHandlerMockRecorder) ConnectIPv6 ¶
func (mr *MockHandlerMockRecorder) ConnectIPv6() *gomock.Call
ConnectIPv6 indicates an expected call of ConnectIPv6
func (*MockHandlerMockRecorder) ContextEngineID ¶
func (mr *MockHandlerMockRecorder) ContextEngineID() *gomock.Call
ContextEngineID indicates an expected call of ContextEngineID
func (*MockHandlerMockRecorder) ContextName ¶
func (mr *MockHandlerMockRecorder) ContextName() *gomock.Call
ContextName indicates an expected call of ContextName
func (*MockHandlerMockRecorder) Get ¶
func (mr *MockHandlerMockRecorder) Get(oids interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockHandlerMockRecorder) GetBulk ¶
func (mr *MockHandlerMockRecorder) GetBulk(oids, nonRepeaters, maxRepetitions interface{}) *gomock.Call
GetBulk indicates an expected call of GetBulk
func (*MockHandlerMockRecorder) GetExponentialTimeout ¶
func (mr *MockHandlerMockRecorder) GetExponentialTimeout() *gomock.Call
GetExponentialTimeout indicates an expected call of GetExponentialTimeout
func (*MockHandlerMockRecorder) GetNext ¶
func (mr *MockHandlerMockRecorder) GetNext(oids interface{}) *gomock.Call
GetNext indicates an expected call of GetNext
func (*MockHandlerMockRecorder) Logger ¶
func (mr *MockHandlerMockRecorder) Logger() *gomock.Call
Logger indicates an expected call of Logger
func (*MockHandlerMockRecorder) MaxOids ¶
func (mr *MockHandlerMockRecorder) MaxOids() *gomock.Call
MaxOids indicates an expected call of MaxOids
func (*MockHandlerMockRecorder) MaxRepetitions ¶
func (mr *MockHandlerMockRecorder) MaxRepetitions() *gomock.Call
MaxRepetitions indicates an expected call of MaxRepetitions
func (*MockHandlerMockRecorder) MsgFlags ¶
func (mr *MockHandlerMockRecorder) MsgFlags() *gomock.Call
MsgFlags indicates an expected call of MsgFlags
func (*MockHandlerMockRecorder) NonRepeaters ¶
func (mr *MockHandlerMockRecorder) NonRepeaters() *gomock.Call
NonRepeaters indicates an expected call of NonRepeaters
func (*MockHandlerMockRecorder) Port ¶
func (mr *MockHandlerMockRecorder) Port() *gomock.Call
Port indicates an expected call of Port
func (*MockHandlerMockRecorder) Retries ¶
func (mr *MockHandlerMockRecorder) Retries() *gomock.Call
Retries indicates an expected call of Retries
func (*MockHandlerMockRecorder) SecurityModel ¶
func (mr *MockHandlerMockRecorder) SecurityModel() *gomock.Call
SecurityModel indicates an expected call of SecurityModel
func (*MockHandlerMockRecorder) SecurityParameters ¶
func (mr *MockHandlerMockRecorder) SecurityParameters() *gomock.Call
SecurityParameters indicates an expected call of SecurityParameters
func (*MockHandlerMockRecorder) SendTrap ¶
func (mr *MockHandlerMockRecorder) SendTrap(trap interface{}) *gomock.Call
SendTrap indicates an expected call of SendTrap
func (*MockHandlerMockRecorder) Set ¶
func (mr *MockHandlerMockRecorder) Set(pdus interface{}) *gomock.Call
Set indicates an expected call of Set
func (*MockHandlerMockRecorder) SetCommunity ¶
func (mr *MockHandlerMockRecorder) SetCommunity(community interface{}) *gomock.Call
SetCommunity indicates an expected call of SetCommunity
func (*MockHandlerMockRecorder) SetContextEngineID ¶
func (mr *MockHandlerMockRecorder) SetContextEngineID(contextEngineID interface{}) *gomock.Call
SetContextEngineID indicates an expected call of SetContextEngineID
func (*MockHandlerMockRecorder) SetContextName ¶
func (mr *MockHandlerMockRecorder) SetContextName(contextName interface{}) *gomock.Call
SetContextName indicates an expected call of SetContextName
func (*MockHandlerMockRecorder) SetExponentialTimeout ¶
func (mr *MockHandlerMockRecorder) SetExponentialTimeout(value interface{}) *gomock.Call
SetExponentialTimeout indicates an expected call of SetExponentialTimeout
func (*MockHandlerMockRecorder) SetLogger ¶
func (mr *MockHandlerMockRecorder) SetLogger(logger interface{}) *gomock.Call
SetLogger indicates an expected call of SetLogger
func (*MockHandlerMockRecorder) SetMaxOids ¶
func (mr *MockHandlerMockRecorder) SetMaxOids(maxOids interface{}) *gomock.Call
SetMaxOids indicates an expected call of SetMaxOids
func (*MockHandlerMockRecorder) SetMaxRepetitions ¶
func (mr *MockHandlerMockRecorder) SetMaxRepetitions(maxRepetitions interface{}) *gomock.Call
SetMaxRepetitions indicates an expected call of SetMaxRepetitions
func (*MockHandlerMockRecorder) SetMsgFlags ¶
func (mr *MockHandlerMockRecorder) SetMsgFlags(msgFlags interface{}) *gomock.Call
SetMsgFlags indicates an expected call of SetMsgFlags
func (*MockHandlerMockRecorder) SetNonRepeaters ¶
func (mr *MockHandlerMockRecorder) SetNonRepeaters(nonRepeaters interface{}) *gomock.Call
SetNonRepeaters indicates an expected call of SetNonRepeaters
func (*MockHandlerMockRecorder) SetPort ¶
func (mr *MockHandlerMockRecorder) SetPort(port interface{}) *gomock.Call
SetPort indicates an expected call of SetPort
func (*MockHandlerMockRecorder) SetRetries ¶
func (mr *MockHandlerMockRecorder) SetRetries(retries interface{}) *gomock.Call
SetRetries indicates an expected call of SetRetries
func (*MockHandlerMockRecorder) SetSecurityModel ¶
func (mr *MockHandlerMockRecorder) SetSecurityModel(securityModel interface{}) *gomock.Call
SetSecurityModel indicates an expected call of SetSecurityModel
func (*MockHandlerMockRecorder) SetSecurityParameters ¶
func (mr *MockHandlerMockRecorder) SetSecurityParameters(securityParameters interface{}) *gomock.Call
SetSecurityParameters indicates an expected call of SetSecurityParameters
func (*MockHandlerMockRecorder) SetTarget ¶
func (mr *MockHandlerMockRecorder) SetTarget(target interface{}) *gomock.Call
SetTarget indicates an expected call of SetTarget
func (*MockHandlerMockRecorder) SetTimeout ¶
func (mr *MockHandlerMockRecorder) SetTimeout(timeout interface{}) *gomock.Call
SetTimeout indicates an expected call of SetTimeout
func (*MockHandlerMockRecorder) SetVersion ¶
func (mr *MockHandlerMockRecorder) SetVersion(version interface{}) *gomock.Call
SetVersion indicates an expected call of SetVersion
func (*MockHandlerMockRecorder) Target ¶
func (mr *MockHandlerMockRecorder) Target() *gomock.Call
Target indicates an expected call of Target
func (*MockHandlerMockRecorder) Timeout ¶
func (mr *MockHandlerMockRecorder) Timeout() *gomock.Call
Timeout indicates an expected call of Timeout
func (*MockHandlerMockRecorder) UnmarshalTrap ¶
func (mr *MockHandlerMockRecorder) UnmarshalTrap(trap interface{}) *gomock.Call
UnmarshalTrap indicates an expected call of UnmarshalTrap
func (*MockHandlerMockRecorder) Version ¶
func (mr *MockHandlerMockRecorder) Version() *gomock.Call
Version indicates an expected call of Version
func (*MockHandlerMockRecorder) Walk ¶
func (mr *MockHandlerMockRecorder) Walk(rootOid, walkFn interface{}) *gomock.Call
Walk indicates an expected call of Walk
func (*MockHandlerMockRecorder) WalkAll ¶
func (mr *MockHandlerMockRecorder) WalkAll(rootOid interface{}) *gomock.Call
WalkAll indicates an expected call of WalkAll