Documentation
¶
Index ¶
- Variables
- type Provider
- func (p *Provider) GetConnection(selection settings.ServerSelection, ipv6Supported bool) (connection models.Connection, err error)
- func (p *Provider) KeepPortForward(ctx context.Context, _ utils.PortForwardObjects) (err error)
- func (p *Provider) Name() string
- func (p *Provider) OpenVPNConfig(connection models.Connection, settings settings.OpenVPN, ipv6Supported bool) (lines []string)
- func (p *Provider) PortForward(ctx context.Context, objects utils.PortForwardObjects) (ports []uint16, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPortForwardedNotFound = errors.New("port forwarded not found")
Functions ¶
This section is empty.
Types ¶
type Provider ¶
func (*Provider) GetConnection ¶
func (p *Provider) GetConnection(selection settings.ServerSelection, ipv6Supported bool) ( connection models.Connection, err error, )
func (*Provider) KeepPortForward ¶
func (*Provider) OpenVPNConfig ¶
func (*Provider) PortForward ¶
func (p *Provider) PortForward(ctx context.Context, objects utils.PortForwardObjects) ( ports []uint16, err error, )
PortForward obtains a VPN server side port forwarded from the PrivateVPN API. It returns 0 if all ports are to forwarded on a dedicated server IP.
Click to show internal directories.
Click to hide internal directories.