chore(constants): add internal/constants/openvpn package

This commit is contained in:
Quentin McGaw
2022-05-07 19:17:10 +00:00
parent 1b2bcf901a
commit 4bcd8ee9f5
32 changed files with 104 additions and 94 deletions

View File

@@ -1,16 +0,0 @@
package constants
const (
AES128cbc = "aes-128-cbc"
AES256cbc = "aes-256-cbc"
AES128gcm = "aes-128-gcm"
AES256gcm = "aes-256-gcm"
SHA1 = "sha1"
SHA256 = "sha256"
SHA512 = "sha512"
)
const (
Openvpn24 = "2.4"
Openvpn25 = "2.5"
)

View File

@@ -0,0 +1,7 @@
package openvpn
const (
SHA1 = "sha1"
SHA256 = "sha256"
SHA512 = "sha512"
)

View File

@@ -0,0 +1,8 @@
package openvpn
const (
AES128cbc = "aes-128-cbc"
AES256cbc = "aes-256-cbc"
AES128gcm = "aes-128-gcm"
AES256gcm = "aes-256-gcm"
)

View File

@@ -0,0 +1,6 @@
package openvpn
const (
// AuthConf is the file path to the OpenVPN auth file.
AuthConf = "/etc/openvpn/auth.conf"
)

View File

@@ -0,0 +1,6 @@
package openvpn
const (
Openvpn24 = "2.4"
Openvpn25 = "2.5"
)

View File

@@ -1,8 +1,6 @@
package constants
const (
// OpenVPNAuthConf is the file path to the OpenVPN auth file.
OpenVPNAuthConf = "/etc/openvpn/auth.conf"
// ServersData is the server information filepath.
ServersData = "/gluetun/servers.json"
)