Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrExtractData = errors.New("failed extracting information from custom configuration file")
View Source
var ErrVPNTypeNotSupported = errors.New("VPN type not supported for custom provider")
Functions ¶
This section is empty.
Types ¶
type Extractor ¶
type Extractor interface { Data(filepath string) (lines []string, connection models.Connection, err error) }
type Provider ¶
func (*Provider) GetConnection ¶
func (p *Provider) GetConnection(selection settings.ServerSelection, _ bool) ( connection models.Connection, err error, )
GetConnection gets the connection from the OpenVPN configuration file.
func (*Provider) OpenVPNConfig ¶
Click to show internal directories.
Click to hide internal directories.