sshchannel

package
v0.3.0-beta1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package sshchannel is a generated GoMock package.

Index

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

type SocksLogger

type SocksLogger struct{}

func (SocksLogger) Println

func (s SocksLogger) Println(v ...interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL