sshuttle

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli

type Cli struct{}

Cli the singleton type

func (*Cli) Connect

func (s *Cli) Connect(req *SSHVPNRequest) *exec.Cmd

Connect ssh-based vpn connect

func (*Cli) Install

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

Install try to install sshuttle

func (*Cli) Version

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

Version check sshuttle version

type SSHVPNRequest

type SSHVPNRequest struct {
	LocalSshPort           int
	RemoteSSHPKPath        string
	RemoteDNSServerAddress string
	CustomCIDR             []string
}

SSHVPNRequest ...

type Sshuttle

type Sshuttle interface {
	Version() *exec.Cmd
	Install() *exec.Cmd
	Connect(req *SSHVPNRequest) *exec.Cmd
}

Sshuttle ...

func Ins

func Ins() Sshuttle

Ins get singleton instance

Jump to

Keyboard shortcuts

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