sshuttle

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package sshuttle is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli added in v0.1.0

type Cli struct{}

Cli ...

func (*Cli) Connect added in v0.1.0

func (s *Cli) Connect(opt *options.ConnectOptions, req *SSHVPNRequest) *exec.Cmd

Connect ssh-based vpn connect

func (*Cli) Install added in v0.1.2

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

Install try to install sshuttle

func (*Cli) Version added in v0.1.0

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

Version check sshuttle version

type CliInterface added in v0.1.0

type CliInterface interface {
	Version() *exec.Cmd
	Install() *exec.Cmd
	Connect(opt *options.ConnectOptions, req *SSHVPNRequest) *exec.Cmd
}

CliInterface ...

type MockCliInterface added in v0.1.0

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

MockCliInterface is a mock of CliInterface interface.

func NewMockCliInterface added in v0.1.0

func NewMockCliInterface(ctrl *gomock.Controller) *MockCliInterface

NewMockCliInterface creates a new mock instance.

func (*MockCliInterface) Connect added in v0.1.0

func (m *MockCliInterface) Connect(opt *options.ConnectOptions, req *SSHVPNRequest) *exec.Cmd

Connect mocks base method.

func (*MockCliInterface) EXPECT added in v0.1.0

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

func (*MockCliInterface) Install added in v0.2.0

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

Install mocks base method.

func (*MockCliInterface) Version added in v0.1.0

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

Version mocks base method.

type MockCliInterfaceMockRecorder added in v0.1.0

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

MockCliInterfaceMockRecorder is the mock recorder for MockCliInterface.

func (*MockCliInterfaceMockRecorder) Connect added in v0.1.0

func (mr *MockCliInterfaceMockRecorder) Connect(opt, req interface{}) *gomock.Call

Connect indicates an expected call of Connect.

func (*MockCliInterfaceMockRecorder) Install added in v0.2.0

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

Install indicates an expected call of Install.

func (*MockCliInterfaceMockRecorder) Version added in v0.1.0

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

Version indicates an expected call of Version.

type SSHVPNRequest added in v0.2.0

type SSHVPNRequest struct {
	RemoteSSHHost          string
	RemoteSSHPKPath        string
	RemoteDNSServerAddress string
	CustomCIDR             []string
	Stop                   chan struct{}
	Debug                  bool
}

SSHVPNRequest ...

Jump to

Keyboard shortcuts

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