sshchannel

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: MIT Imports: 8 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 Certificate

type Certificate struct {
	Username   string
	Password   string
	PrivateKey string
}

Certificate certificate

type Channel

type Channel interface {
	StartSocks5Proxy(certificate *Certificate, sshAddress, socks5Address string) error
	ForwardRemoteToLocal(certificate *Certificate, sshAddress, remoteEndpoint, 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, remoteEndpoint, localEndpoint string) (err error)

ForwardRemoteToLocal forward remote request to local

func (*SSHChannel) StartSocks5Proxy

func (c *SSHChannel) StartSocks5Proxy(certificate *Certificate, sshAddress, socks5Address string) (err error)

StartSocks5Proxy start socks5 proxy

Jump to

Keyboard shortcuts

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