ssh

package
v0.0.13-rc11-z5nctl4 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package ssh is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli

type Cli struct{}

Cli ...

func (*Cli) DynamicForwardLocalRequestToRemote

func (s *Cli) DynamicForwardLocalRequestToRemote(remoteHost, privateKeyPath string, remoteSSHPort int, proxyPort int) *exec.Cmd

DynamicForwardLocalRequestToRemote ssh remote port forward

func (*Cli) ForwardRemoteRequestToLocal

func (s *Cli) ForwardRemoteRequestToLocal(localPort, remoteHost, remotePort, privateKeyPath string, remoteSSHPort int) *exec.Cmd

ForwardRemoteRequestToLocal ssh remote port forward

func (*Cli) Version

func (s *Cli) Version() *exec.Cmd

Version check sshuttle version

type CliInterface

type CliInterface interface {
	Version() *exec.Cmd
	ForwardRemoteRequestToLocal(localPort, remoteHost, remotePort, privateKeyPath string, remoteSSHPort int) *exec.Cmd
	DynamicForwardLocalRequestToRemote(remoteHost, privateKeyPath string, remoteSSHPort int, proxyPort int) *exec.Cmd
}

CliInterface ...

type MockCliInterface

type MockCliInterface struct {
	// contains filtered or unexported fields
}

MockCliInterface is a mock of CliInterface interface

func NewMockCliInterface

func NewMockCliInterface(ctrl *gomock.Controller) *MockCliInterface

NewMockCliInterface creates a new mock instance

func (*MockCliInterface) DynamicForwardLocalRequestToRemote

func (m *MockCliInterface) DynamicForwardLocalRequestToRemote(remoteHost, privateKeyPath string, remoteSSHPort, proxyPort int) *exec.Cmd

DynamicForwardLocalRequestToRemote mocks base method

func (*MockCliInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockCliInterface) ForwardRemoteRequestToLocal

func (m *MockCliInterface) ForwardRemoteRequestToLocal(localPort, remoteHost, remotePort, privateKeyPath string, remoteSSHPort int) *exec.Cmd

ForwardRemoteRequestToLocal mocks base method

func (*MockCliInterface) Version

func (m *MockCliInterface) Version() *exec.Cmd

Version mocks base method

type MockCliInterfaceMockRecorder

type MockCliInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockCliInterfaceMockRecorder is the mock recorder for MockCliInterface

func (*MockCliInterfaceMockRecorder) DynamicForwardLocalRequestToRemote

func (mr *MockCliInterfaceMockRecorder) DynamicForwardLocalRequestToRemote(remoteHost, privateKeyPath, remoteSSHPort, proxyPort interface{}) *gomock.Call

DynamicForwardLocalRequestToRemote indicates an expected call of DynamicForwardLocalRequestToRemote

func (*MockCliInterfaceMockRecorder) ForwardRemoteRequestToLocal

func (mr *MockCliInterfaceMockRecorder) ForwardRemoteRequestToLocal(localPort, remoteHost, remotePort, privateKeyPath, remoteSSHPort interface{}) *gomock.Call

ForwardRemoteRequestToLocal indicates an expected call of ForwardRemoteRequestToLocal

func (*MockCliInterfaceMockRecorder) Version

func (mr *MockCliInterfaceMockRecorder) Version() *gomock.Call

Version indicates an expected call of Version

Jump to

Keyboard shortcuts

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