Documentation ¶
Overview ¶
Package sshchannel is a generated GoMock package.
Index ¶
- type Channel
- type MockChannel
- func (m *MockChannel) EXPECT() *MockChannelMockRecorder
- func (m *MockChannel) ForwardRemoteToLocal(privateKey, sshAddress, remoteEndpoint, localEndpoint string) error
- func (m *MockChannel) RunScript(privateKey, sshAddress, script string) (string, error)
- func (m *MockChannel) StartSocks5Proxy(privateKey, sshAddress, socks5Address string) error
- type MockChannelMockRecorder
- func (mr *MockChannelMockRecorder) ForwardRemoteToLocal(privateKey, sshAddress, remoteEndpoint, localEndpoint interface{}) *gomock.Call
- func (mr *MockChannelMockRecorder) RunScript(privateKey, sshAddress, script interface{}) *gomock.Call
- func (mr *MockChannelMockRecorder) StartSocks5Proxy(privateKey, sshAddress, socks5Address interface{}) *gomock.Call
- type SSHChannel
- func (c *SSHChannel) ForwardRemoteToLocal(privateKey string, sshAddress, remoteEndpoint, localEndpoint string) (err error)
- func (c *SSHChannel) RunScript(privateKey string, sshAddress, script string) (result string, err error)
- func (c *SSHChannel) StartSocks5Proxy(privateKey string, sshAddress, socks5Address string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel interface { StartSocks5Proxy(privateKey string, sshAddress, socks5Address string) error ForwardRemoteToLocal(privateKey string, sshAddress, remoteEndpoint, localEndpoint string) error RunScript(privateKey string, sshAddress, script string) (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(privateKey, sshAddress, remoteEndpoint, localEndpoint string) error
ForwardRemoteToLocal mocks base method.
func (*MockChannel) RunScript ¶ added in v0.2.0
func (m *MockChannel) RunScript(privateKey, sshAddress, script string) (string, error)
RunScript mocks base method.
func (*MockChannel) StartSocks5Proxy ¶
func (m *MockChannel) StartSocks5Proxy(privateKey, 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(privateKey, sshAddress, remoteEndpoint, localEndpoint interface{}) *gomock.Call
ForwardRemoteToLocal indicates an expected call of ForwardRemoteToLocal.
func (*MockChannelMockRecorder) RunScript ¶ added in v0.2.0
func (mr *MockChannelMockRecorder) RunScript(privateKey, sshAddress, script interface{}) *gomock.Call
RunScript indicates an expected call of RunScript.
func (*MockChannelMockRecorder) StartSocks5Proxy ¶
func (mr *MockChannelMockRecorder) StartSocks5Proxy(privateKey, 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(privateKey string, sshAddress, remoteEndpoint, localEndpoint string) (err error)
ForwardRemoteToLocal forward remote request to local
func (*SSHChannel) RunScript ¶ added in v0.2.0
func (c *SSHChannel) RunScript(privateKey string, sshAddress, script string) (result string, err error)
RunScript run the script on remote host.
func (*SSHChannel) StartSocks5Proxy ¶
func (c *SSHChannel) StartSocks5Proxy(privateKey string, sshAddress, socks5Address string) (err error)
StartSocks5Proxy start socks5 proxy