Documentation ¶
Index ¶
- type DappVPN
- func (d *DappVPN) Configurate(o *OpenVPN) error
- func (d *DappVPN) InstallService(role, dir string) (string, error)
- func (d *DappVPN) RemoveService() (string, error)
- func (d *DappVPN) RunService(role, dir string) (string, error)
- func (d *DappVPN) StartService() (string, error)
- func (d *DappVPN) StopService() (string, error)
- type OpenVPN
- func (o *OpenVPN) CheckServiceStatus(status string) error
- func (o *OpenVPN) Configurate() error
- func (o *OpenVPN) CreateForwardingDaemon() error
- func (o *OpenVPN) InstallService() (string, error)
- func (o *OpenVPN) InstallTap() (err error)
- func (o *OpenVPN) RemoveConfig() error
- func (o *OpenVPN) RemoveService() (string, error)
- func (o *OpenVPN) RemoveTap() error
- func (o *OpenVPN) RunService() (string, error)
- func (o *OpenVPN) StartService() (string, error)
- func (o *OpenVPN) StopService() (string, error)
- func (o *OpenVPN) Update() error
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 (*DappVPN) Configurate ¶
Configurate configurates dappvpn config files.
func (*DappVPN) InstallService ¶
InstallService installs a dappvpn service.
func (*DappVPN) RemoveService ¶
RemoveService removes the dappvpn service.
func (*DappVPN) RunService ¶
RunService executes dappvpn service.
func (*DappVPN) StartService ¶
StartService starts dappvpn service.
func (*DappVPN) StopService ¶
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 (*OpenVPN) CheckServiceStatus ¶
CheckServiceStatus checks service status.
func (*OpenVPN) Configurate ¶
Configurate configurates openvpn config files.
func (*OpenVPN) CreateForwardingDaemon ¶
CreateForwardingDaemon creates daemon on unix-system.
func (*OpenVPN) InstallService ¶
InstallService installs a openvpn service.
func (*OpenVPN) InstallTap ¶
InstallTap installs a new tap interface.
func (*OpenVPN) RemoveConfig ¶
RemoveConfig removes openvpn configuration.
func (*OpenVPN) RemoveService ¶
RemoveService removes the openvpn service.
func (*OpenVPN) RunService ¶
RunService executes openvpn service.
func (*OpenVPN) StartService ¶
StartService starts openvpn service.
func (*OpenVPN) StopService ¶
StopService stops openvpn service.