openvpn

package
v0.0.0-...-55bacb3 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: GPL-3.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DappVPN

type DappVPN struct {
	Service string
}

DappVPN has a dappvpn configuration.

func NewDappVPN

func NewDappVPN() *DappVPN

NewDappVPN creates a default dappVPN configuration.

func (*DappVPN) Configurate

func (d *DappVPN) Configurate(o *OpenVPN) error

Configurate configurates dappvpn config files.

func (*DappVPN) InstallService

func (d *DappVPN) InstallService(role, dir string) (string, error)

InstallService installs a dappvpn service.

func (*DappVPN) RemoveService

func (d *DappVPN) RemoveService() (string, error)

RemoveService removes the dappvpn service.

func (*DappVPN) RunService

func (d *DappVPN) RunService(role, dir string) (string, error)

RunService executes dappvpn service.

func (*DappVPN) StartService

func (d *DappVPN) StartService() (string, error)

StartService starts dappvpn service.

func (*DappVPN) StopService

func (d *DappVPN) StopService() (string, error)

StopService stops dappvpn service.

type OpenVPN

type OpenVPN struct {
	Path            string
	Role            string
	Tap             *tapInterface
	Proto           string
	Host            *host
	Managment       *host
	Server          *host
	Service         string
	Adapter         *DappVPN
	Validity        *validity
	IsWindows       bool
	User            string
	Group           string
	Import          bool
	Install         bool
	ForwardingState string
}

OpenVPN has a openvpn configuration.

func NewOpenVPN

func NewOpenVPN() *OpenVPN

NewOpenVPN creates a default OpenVPN configuration.

func (*OpenVPN) CheckServiceStatus

func (o *OpenVPN) CheckServiceStatus(status string) error

CheckServiceStatus checks service status.

func (*OpenVPN) Configurate

func (o *OpenVPN) Configurate() error

Configurate configurates openvpn config files.

func (*OpenVPN) CreateForwardingDaemon

func (o *OpenVPN) CreateForwardingDaemon() error

CreateForwardingDaemon creates daemon on unix-system.

func (*OpenVPN) InstallService

func (o *OpenVPN) InstallService() (string, error)

InstallService installs a openvpn service.

func (*OpenVPN) InstallTap

func (o *OpenVPN) InstallTap() (err error)

InstallTap installs a new tap interface.

func (*OpenVPN) RemoveConfig

func (o *OpenVPN) RemoveConfig() error

RemoveConfig removes openvpn configuration.

func (*OpenVPN) RemoveService

func (o *OpenVPN) RemoveService() (string, error)

RemoveService removes the openvpn service.

func (*OpenVPN) RemoveTap

func (o *OpenVPN) RemoveTap() error

RemoveTap removes the tap interface.

func (*OpenVPN) RunService

func (o *OpenVPN) RunService() (string, error)

RunService executes openvpn service.

func (*OpenVPN) StartService

func (o *OpenVPN) StartService() (string, error)

StartService starts openvpn service.

func (*OpenVPN) StopService

func (o *OpenVPN) StopService() (string, error)

StopService stops openvpn service.

func (*OpenVPN) Update

func (o *OpenVPN) Update() error

Update updates the product.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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