Documentation ¶
Overview ¶
Package openvpn provides OpenVPN technology.
Index ¶
- Constants
- Variables
- type OpenVPN
- func (ovpn *OpenVPN) GetConnectionParameters() (vpn.ServerData, bool)
- func (ovpn *OpenVPN) IsActive() bool
- func (ovpn *OpenVPN) NetworkChanged() error
- func (ovpn *OpenVPN) Start(ctx context.Context, creds vpn.Credentials, serverData vpn.ServerData) error
- func (ovpn *OpenVPN) State() vpn.State
- func (ovpn *OpenVPN) Stop() error
- func (ovpn *OpenVPN) Tun() tunnel.T
Constants ¶
View Source
const (
InterfaceName = "nordtun"
)
Variables ¶
View Source
var (
ErrServerVersion = errors.New("invalid openvpn server version")
)
Functions ¶
This section is empty.
Types ¶
type OpenVPN ¶
type OpenVPN struct { // sync.RWMutex is used all over the place due to how OpenVPN // is managed over the management interface. // Simple Lock(); defer Unlock() results in deadlocks, since // substates updates get stuck waiting for Mutex. sync.RWMutex // contains filtered or unexported fields }
func (*OpenVPN) GetConnectionParameters ¶
func (ovpn *OpenVPN) GetConnectionParameters() (vpn.ServerData, bool)
func (*OpenVPN) NetworkChanged ¶
func (*OpenVPN) Start ¶
func (ovpn *OpenVPN) Start( ctx context.Context, creds vpn.Credentials, serverData vpn.ServerData, ) error
Start starts openvpn process
Click to show internal directories.
Click to hide internal directories.