Documentation
¶
Overview ¶
Package channel is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
Certificate certificate
type Channel ¶
type Channel interface { StartSocks5Proxy(certificate *Certificate, sshAddress string, socks5Address string) error ForwardRemoteToLocal(certificate *Certificate, sshAddress string, remoteEndpoint string, localEndpoint string) error }
Channel network channel
type MockChannel ¶
type MockChannel struct {
// contains filtered or unexported fields
}
MockChannel is a mock of Channel interface
func NewMockChannel ¶
func NewMockChannel(ctrl *gomock.Controller) *MockChannel
NewMockChannel creates a new mock instance
func (*MockChannel) EXPECT ¶
func (m *MockChannel) EXPECT() *MockChannelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockChannel) ForwardRemoteToLocal ¶
func (m *MockChannel) ForwardRemoteToLocal(certificate *Certificate, sshAddress, remoteEndpoint, localEndpoint string) error
ForwardRemoteToLocal mocks base method
func (*MockChannel) StartSocks5Proxy ¶
func (m *MockChannel) StartSocks5Proxy(certificate *Certificate, sshAddress, socks5Address string) error
StartSocks5Proxy mocks base method
type MockChannelMockRecorder ¶
type MockChannelMockRecorder struct {
// contains filtered or unexported fields
}
MockChannelMockRecorder is the mock recorder for MockChannel
func (*MockChannelMockRecorder) ForwardRemoteToLocal ¶
func (mr *MockChannelMockRecorder) ForwardRemoteToLocal(certificate, sshAddress, remoteEndpoint, localEndpoint interface{}) *gomock.Call
ForwardRemoteToLocal indicates an expected call of ForwardRemoteToLocal
func (*MockChannelMockRecorder) StartSocks5Proxy ¶
func (mr *MockChannelMockRecorder) StartSocks5Proxy(certificate, sshAddress, socks5Address interface{}) *gomock.Call
StartSocks5Proxy indicates an expected call of StartSocks5Proxy
type SSHChannel ¶
type SSHChannel struct{}
SSHChannel ssh channel
func (*SSHChannel) ForwardRemoteToLocal ¶
func (c *SSHChannel) ForwardRemoteToLocal(certificate *Certificate, sshAddress string, remoteEndpoint string, localEndpoint string) (err error)
ForwardRemoteToLocal forward remote request to local
func (*SSHChannel) StartSocks5Proxy ¶
func (c *SSHChannel) StartSocks5Proxy(certificate *Certificate, sshAddress string, socks5Address string) (err error)
StartSocks5Proxy start socks5 proxy