Documentation ¶
Overview ¶
Package mock_snet is a generated GoMock package.
Index ¶
- type MockConn
- func (m *MockConn) BindAddr() net.Addr
- func (m *MockConn) Close() error
- func (m *MockConn) EXPECT() *MockConnMockRecorder
- func (m *MockConn) LocalAddr() net.Addr
- func (m *MockConn) Read(arg0 []byte) (int, error)
- func (m *MockConn) ReadFrom(arg0 []byte) (int, net.Addr, error)
- func (m *MockConn) ReadFromSCION(arg0 []byte) (int, *snet.Addr, error)
- func (m *MockConn) RemoteAddr() net.Addr
- func (m *MockConn) SVC() addr.HostSVC
- func (m *MockConn) SetDeadline(arg0 time.Time) error
- func (m *MockConn) SetReadDeadline(arg0 time.Time) error
- func (m *MockConn) SetWriteDeadline(arg0 time.Time) error
- func (m *MockConn) Write(arg0 []byte) (int, error)
- func (m *MockConn) WriteTo(arg0 []byte, arg1 net.Addr) (int, error)
- func (m *MockConn) WriteToSCION(arg0 []byte, arg1 *snet.Addr) (int, error)
- type MockConnMockRecorder
- func (mr *MockConnMockRecorder) BindAddr() *gomock.Call
- func (mr *MockConnMockRecorder) Close() *gomock.Call
- func (mr *MockConnMockRecorder) LocalAddr() *gomock.Call
- func (mr *MockConnMockRecorder) Read(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) ReadFrom(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) ReadFromSCION(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) RemoteAddr() *gomock.Call
- func (mr *MockConnMockRecorder) SVC() *gomock.Call
- func (mr *MockConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) Write(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) WriteTo(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) WriteToSCION(arg0, arg1 interface{}) *gomock.Call
- type MockNetwork
- func (m *MockNetwork) DialSCIONWithBindSVC(arg0 string, arg1, arg2, arg3 *snet.Addr, arg4 addr.HostSVC, ...) (snet.Conn, error)
- func (m *MockNetwork) EXPECT() *MockNetworkMockRecorder
- func (m *MockNetwork) ListenSCIONWithBindSVC(arg0 string, arg1, arg2 *snet.Addr, arg3 addr.HostSVC, arg4 time.Duration) (snet.Conn, error)
- type MockNetworkMockRecorder
- type MockPacketConn
- func (m *MockPacketConn) Close() error
- func (m *MockPacketConn) EXPECT() *MockPacketConnMockRecorder
- func (m *MockPacketConn) ReadFrom(arg0 *snet.SCIONPacket, arg1 *overlay.OverlayAddr) error
- func (m *MockPacketConn) SetDeadline(arg0 time.Time) error
- func (m *MockPacketConn) SetReadDeadline(arg0 time.Time) error
- func (m *MockPacketConn) SetWriteDeadline(arg0 time.Time) error
- func (m *MockPacketConn) WriteTo(arg0 *snet.SCIONPacket, arg1 *overlay.OverlayAddr) error
- type MockPacketConnMockRecorder
- func (mr *MockPacketConnMockRecorder) Close() *gomock.Call
- func (mr *MockPacketConnMockRecorder) ReadFrom(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockPacketConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockPacketConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockPacketConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockPacketConnMockRecorder) WriteTo(arg0, arg1 interface{}) *gomock.Call
- type MockPacketDispatcherService
- type MockPacketDispatcherServiceMockRecorder
- type MockPath
- func (m *MockPath) Copy() snet.Path
- func (m *MockPath) Destination() addr.IA
- func (m *MockPath) EXPECT() *MockPathMockRecorder
- func (m *MockPath) Expiry() time.Time
- func (m *MockPath) Fingerprint() string
- func (m *MockPath) Interfaces() []sciond.PathInterface
- func (m *MockPath) MTU() uint16
- func (m *MockPath) OverlayNextHop() *overlay.OverlayAddr
- func (m *MockPath) Path() *spath.Path
- type MockPathMockRecorder
- func (mr *MockPathMockRecorder) Copy() *gomock.Call
- func (mr *MockPathMockRecorder) Destination() *gomock.Call
- func (mr *MockPathMockRecorder) Expiry() *gomock.Call
- func (mr *MockPathMockRecorder) Fingerprint() *gomock.Call
- func (mr *MockPathMockRecorder) Interfaces() *gomock.Call
- func (mr *MockPathMockRecorder) MTU() *gomock.Call
- func (mr *MockPathMockRecorder) OverlayNextHop() *gomock.Call
- func (mr *MockPathMockRecorder) Path() *gomock.Call
- type MockRouter
- type MockRouterMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConn ¶
type MockConn struct {
// contains filtered or unexported fields
}
MockConn is a mock of Conn interface
func NewMockConn ¶
func NewMockConn(ctrl *gomock.Controller) *MockConn
NewMockConn creates a new mock instance
func (*MockConn) EXPECT ¶
func (m *MockConn) EXPECT() *MockConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockConn) ReadFromSCION ¶
ReadFromSCION mocks base method
func (*MockConn) SetDeadline ¶
SetDeadline mocks base method
func (*MockConn) SetReadDeadline ¶
SetReadDeadline mocks base method
func (*MockConn) SetWriteDeadline ¶
SetWriteDeadline mocks base method
type MockConnMockRecorder ¶
type MockConnMockRecorder struct {
// contains filtered or unexported fields
}
MockConnMockRecorder is the mock recorder for MockConn
func (*MockConnMockRecorder) BindAddr ¶
func (mr *MockConnMockRecorder) BindAddr() *gomock.Call
BindAddr indicates an expected call of BindAddr
func (*MockConnMockRecorder) Close ¶
func (mr *MockConnMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockConnMockRecorder) LocalAddr ¶
func (mr *MockConnMockRecorder) LocalAddr() *gomock.Call
LocalAddr indicates an expected call of LocalAddr
func (*MockConnMockRecorder) Read ¶
func (mr *MockConnMockRecorder) Read(arg0 interface{}) *gomock.Call
Read indicates an expected call of Read
func (*MockConnMockRecorder) ReadFrom ¶
func (mr *MockConnMockRecorder) ReadFrom(arg0 interface{}) *gomock.Call
ReadFrom indicates an expected call of ReadFrom
func (*MockConnMockRecorder) ReadFromSCION ¶
func (mr *MockConnMockRecorder) ReadFromSCION(arg0 interface{}) *gomock.Call
ReadFromSCION indicates an expected call of ReadFromSCION
func (*MockConnMockRecorder) RemoteAddr ¶
func (mr *MockConnMockRecorder) RemoteAddr() *gomock.Call
RemoteAddr indicates an expected call of RemoteAddr
func (*MockConnMockRecorder) SVC ¶
func (mr *MockConnMockRecorder) SVC() *gomock.Call
SVC indicates an expected call of SVC
func (*MockConnMockRecorder) SetDeadline ¶
func (mr *MockConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call
SetDeadline indicates an expected call of SetDeadline
func (*MockConnMockRecorder) SetReadDeadline ¶
func (mr *MockConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call
SetReadDeadline indicates an expected call of SetReadDeadline
func (*MockConnMockRecorder) SetWriteDeadline ¶
func (mr *MockConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call
SetWriteDeadline indicates an expected call of SetWriteDeadline
func (*MockConnMockRecorder) Write ¶
func (mr *MockConnMockRecorder) Write(arg0 interface{}) *gomock.Call
Write indicates an expected call of Write
func (*MockConnMockRecorder) WriteTo ¶
func (mr *MockConnMockRecorder) WriteTo(arg0, arg1 interface{}) *gomock.Call
WriteTo indicates an expected call of WriteTo
func (*MockConnMockRecorder) WriteToSCION ¶
func (mr *MockConnMockRecorder) WriteToSCION(arg0, arg1 interface{}) *gomock.Call
WriteToSCION indicates an expected call of WriteToSCION
type MockNetwork ¶
type MockNetwork struct {
// contains filtered or unexported fields
}
MockNetwork is a mock of Network interface
func NewMockNetwork ¶
func NewMockNetwork(ctrl *gomock.Controller) *MockNetwork
NewMockNetwork creates a new mock instance
func (*MockNetwork) DialSCIONWithBindSVC ¶
func (m *MockNetwork) DialSCIONWithBindSVC(arg0 string, arg1, arg2, arg3 *snet.Addr, arg4 addr.HostSVC, arg5 time.Duration) (snet.Conn, error)
DialSCIONWithBindSVC mocks base method
func (*MockNetwork) EXPECT ¶
func (m *MockNetwork) EXPECT() *MockNetworkMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockNetworkMockRecorder ¶
type MockNetworkMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkMockRecorder is the mock recorder for MockNetwork
func (*MockNetworkMockRecorder) DialSCIONWithBindSVC ¶
func (mr *MockNetworkMockRecorder) DialSCIONWithBindSVC(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
DialSCIONWithBindSVC indicates an expected call of DialSCIONWithBindSVC
func (*MockNetworkMockRecorder) ListenSCIONWithBindSVC ¶
func (mr *MockNetworkMockRecorder) ListenSCIONWithBindSVC(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
ListenSCIONWithBindSVC indicates an expected call of ListenSCIONWithBindSVC
type MockPacketConn ¶
type MockPacketConn struct {
// contains filtered or unexported fields
}
MockPacketConn is a mock of PacketConn interface
func NewMockPacketConn ¶
func NewMockPacketConn(ctrl *gomock.Controller) *MockPacketConn
NewMockPacketConn creates a new mock instance
func (*MockPacketConn) EXPECT ¶
func (m *MockPacketConn) EXPECT() *MockPacketConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPacketConn) ReadFrom ¶
func (m *MockPacketConn) ReadFrom(arg0 *snet.SCIONPacket, arg1 *overlay.OverlayAddr) error
ReadFrom mocks base method
func (*MockPacketConn) SetDeadline ¶
func (m *MockPacketConn) SetDeadline(arg0 time.Time) error
SetDeadline mocks base method
func (*MockPacketConn) SetReadDeadline ¶
func (m *MockPacketConn) SetReadDeadline(arg0 time.Time) error
SetReadDeadline mocks base method
func (*MockPacketConn) SetWriteDeadline ¶
func (m *MockPacketConn) SetWriteDeadline(arg0 time.Time) error
SetWriteDeadline mocks base method
func (*MockPacketConn) WriteTo ¶
func (m *MockPacketConn) WriteTo(arg0 *snet.SCIONPacket, arg1 *overlay.OverlayAddr) error
WriteTo mocks base method
type MockPacketConnMockRecorder ¶
type MockPacketConnMockRecorder struct {
// contains filtered or unexported fields
}
MockPacketConnMockRecorder is the mock recorder for MockPacketConn
func (*MockPacketConnMockRecorder) Close ¶
func (mr *MockPacketConnMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockPacketConnMockRecorder) ReadFrom ¶
func (mr *MockPacketConnMockRecorder) ReadFrom(arg0, arg1 interface{}) *gomock.Call
ReadFrom indicates an expected call of ReadFrom
func (*MockPacketConnMockRecorder) SetDeadline ¶
func (mr *MockPacketConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call
SetDeadline indicates an expected call of SetDeadline
func (*MockPacketConnMockRecorder) SetReadDeadline ¶
func (mr *MockPacketConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call
SetReadDeadline indicates an expected call of SetReadDeadline
func (*MockPacketConnMockRecorder) SetWriteDeadline ¶
func (mr *MockPacketConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call
SetWriteDeadline indicates an expected call of SetWriteDeadline
func (*MockPacketConnMockRecorder) WriteTo ¶
func (mr *MockPacketConnMockRecorder) WriteTo(arg0, arg1 interface{}) *gomock.Call
WriteTo indicates an expected call of WriteTo
type MockPacketDispatcherService ¶
type MockPacketDispatcherService struct {
// contains filtered or unexported fields
}
MockPacketDispatcherService is a mock of PacketDispatcherService interface
func NewMockPacketDispatcherService ¶
func NewMockPacketDispatcherService(ctrl *gomock.Controller) *MockPacketDispatcherService
NewMockPacketDispatcherService creates a new mock instance
func (*MockPacketDispatcherService) EXPECT ¶
func (m *MockPacketDispatcherService) EXPECT() *MockPacketDispatcherServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPacketDispatcherService) RegisterTimeout ¶
func (m *MockPacketDispatcherService) RegisterTimeout(arg0 addr.IA, arg1 *addr.AppAddr, arg2 *overlay.OverlayAddr, arg3 addr.HostSVC, arg4 time.Duration) (snet.PacketConn, uint16, error)
RegisterTimeout mocks base method
type MockPacketDispatcherServiceMockRecorder ¶
type MockPacketDispatcherServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockPacketDispatcherServiceMockRecorder is the mock recorder for MockPacketDispatcherService
func (*MockPacketDispatcherServiceMockRecorder) RegisterTimeout ¶
func (mr *MockPacketDispatcherServiceMockRecorder) RegisterTimeout(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
RegisterTimeout indicates an expected call of RegisterTimeout
type MockPath ¶
type MockPath struct {
// contains filtered or unexported fields
}
MockPath is a mock of Path interface
func NewMockPath ¶
func NewMockPath(ctrl *gomock.Controller) *MockPath
NewMockPath creates a new mock instance
func (*MockPath) Destination ¶
Destination mocks base method
func (*MockPath) EXPECT ¶
func (m *MockPath) EXPECT() *MockPathMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPath) Fingerprint ¶
Fingerprint mocks base method
func (*MockPath) Interfaces ¶
func (m *MockPath) Interfaces() []sciond.PathInterface
Interfaces mocks base method
func (*MockPath) OverlayNextHop ¶
func (m *MockPath) OverlayNextHop() *overlay.OverlayAddr
OverlayNextHop mocks base method
type MockPathMockRecorder ¶
type MockPathMockRecorder struct {
// contains filtered or unexported fields
}
MockPathMockRecorder is the mock recorder for MockPath
func (*MockPathMockRecorder) Copy ¶
func (mr *MockPathMockRecorder) Copy() *gomock.Call
Copy indicates an expected call of Copy
func (*MockPathMockRecorder) Destination ¶
func (mr *MockPathMockRecorder) Destination() *gomock.Call
Destination indicates an expected call of Destination
func (*MockPathMockRecorder) Expiry ¶
func (mr *MockPathMockRecorder) Expiry() *gomock.Call
Expiry indicates an expected call of Expiry
func (*MockPathMockRecorder) Fingerprint ¶
func (mr *MockPathMockRecorder) Fingerprint() *gomock.Call
Fingerprint indicates an expected call of Fingerprint
func (*MockPathMockRecorder) Interfaces ¶
func (mr *MockPathMockRecorder) Interfaces() *gomock.Call
Interfaces indicates an expected call of Interfaces
func (*MockPathMockRecorder) MTU ¶
func (mr *MockPathMockRecorder) MTU() *gomock.Call
MTU indicates an expected call of MTU
func (*MockPathMockRecorder) OverlayNextHop ¶
func (mr *MockPathMockRecorder) OverlayNextHop() *gomock.Call
OverlayNextHop indicates an expected call of OverlayNextHop
func (*MockPathMockRecorder) Path ¶
func (mr *MockPathMockRecorder) Path() *gomock.Call
Path indicates an expected call of Path
type MockRouter ¶
type MockRouter struct {
// contains filtered or unexported fields
}
MockRouter is a mock of Router interface
func NewMockRouter ¶
func NewMockRouter(ctrl *gomock.Controller) *MockRouter
NewMockRouter creates a new mock instance
func (*MockRouter) EXPECT ¶
func (m *MockRouter) EXPECT() *MockRouterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockRouterMockRecorder ¶
type MockRouterMockRecorder struct {
// contains filtered or unexported fields
}
MockRouterMockRecorder is the mock recorder for MockRouter
func (*MockRouterMockRecorder) AllRoutes ¶
func (mr *MockRouterMockRecorder) AllRoutes(arg0, arg1 interface{}) *gomock.Call
AllRoutes indicates an expected call of AllRoutes
func (*MockRouterMockRecorder) LocalIA ¶
func (mr *MockRouterMockRecorder) LocalIA() *gomock.Call
LocalIA indicates an expected call of LocalIA
func (*MockRouterMockRecorder) Route ¶
func (mr *MockRouterMockRecorder) Route(arg0, arg1 interface{}) *gomock.Call
Route indicates an expected call of Route