package
0.0.25
Repository: https://github.com/roaldi/go-openvpn.git
Documentation: pkg.go.dev

# Functions

NewConfig creates new openvpn configuration structure and takes configuration directory as parameter for file param serialization.
OptionFile creates File option parameter for given param name, content for file, and file path where content will be stored.
OptionFlag creates flag style option.
OptionParam creates --name value1 value2 style config parameter.
QuotedPath function constructs quoted script path from given name.
SimplePath function constructs unquoted script path from given name.

# Structs

GenericConfig represents openvpn configuration structure common for both client and server modes.

# Interfaces

Script interface provides single method - for given script dir, provide full script path.