vpngate

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: MIT Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

vpngate-cli


vpngate client for command line

  1. Fetch VPN list from https://www.vpngate.net/
  2. Select it in list then show details
  3. Connect use the OpenVPN command

Build Status



Installation


  1. Install OpenVPN
    $ sudo apt install openvpn easy-rsa

  1. Downloading from releases page and then expand and copy to the appropriate directory such as /usr/local/bin
    $ vpngate-cli


Documentation

Index

Constants

View Source
const (
	OPENVPN = "openvpn"
	BINSH   = "/bin/sh"
)
View Source
const (
	QUIT      = pager.KEY_Q
	CONNECT   = pager.KEY_ENTER
	EDIT      = pager.KEY_E
	SELECTION = pager.KEY_B
)
View Source
const (
	// Index number delimiter
	Delim = ": "
)
View Source
const VERSION = "v0.0.7"

Variables

This section is empty.

Functions

func Clean

func Clean(m *pathmap.Map) error

Clean clean cache and ovpn files

Types

type Container

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

func NewContainer

func NewContainer() *Container

NewContainer

func (*Container) Append

func (c *Container) Append(row []string) error

Append

func (Container) Each

func (c Container) Each(f func(int, *record.Record) bool)

Each

func (Container) Get

func (c Container) Get(index int) *record.Record

Get

func (Container) Keys

func (c Container) Keys() []string

Keys

func (*Container) Len

func (c *Container) Len() int

Len records length

func (*Container) Parse

func (c *Container) Parse(b []byte) error

Parse

type Flags

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

type VPNGate

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

func New

func New(rawurl, directory string) (*VPNGate, error)

New

func (*VPNGate) Run

func (v *VPNGate) Run() error

Directories

Path Synopsis
cmd
vpngate-cli command

Jump to

Keyboard shortcuts

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