mirror of
https://github.com/qdm12/gluetun.git
synced 2025-12-10 20:07:32 -06:00
28 lines
540 B
Go
28 lines
540 B
Go
package openvpn
|
|
|
|
import (
|
|
"github.com/qdm12/gluetun/internal/constants/openvpn"
|
|
)
|
|
|
|
type Configurator struct {
|
|
logger Infoer
|
|
cmder CmdRunStarter
|
|
configPath string
|
|
authFilePath string
|
|
askPassPath string
|
|
puid, pgid int
|
|
}
|
|
|
|
func New(logger Infoer, cmder CmdRunStarter,
|
|
puid, pgid int) *Configurator {
|
|
return &Configurator{
|
|
logger: logger,
|
|
cmder: cmder,
|
|
configPath: configPath,
|
|
authFilePath: openvpn.AuthConf,
|
|
askPassPath: openvpn.AskPassPath,
|
|
puid: puid,
|
|
pgid: pgid,
|
|
}
|
|
}
|