-
Notifications
You must be signed in to change notification settings - Fork 4
/
consts.go
44 lines (32 loc) · 1.74 KB
/
consts.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Package common defines the constants used by the project
package common
const (
// TEXTDOMAIN is the gettext domain for l10n.
TEXTDOMAIN = `ubuntu-pro`
// LocalAppDataDir is the relative path name used to store data private to the Appx.
// ${env:LocalAppData}/{LocalAppDataDir}
LocalAppDataDir = "Ubuntu Pro"
// UserProfileDir is the relative path name used to store data that needs to be shared between components.
// ${env:UserProfile}/{UserProfileDir}
UserProfileDir = ".ubuntupro"
// ListeningPortFileName corresponds to the base name of the file hosting the addressing of our GRPC server.
ListeningPortFileName = ".address"
// MsStoreProductID is the ID of the product in the Microsoft Store
//
// TODO: Replace with real product ID.
MsStoreProductID = "9P25B50XMKXT"
// CertificatesDir is the agent's public subdirectory where the certificates are stored.
CertificatesDir = "certs"
// GRPCServerNameOverride is the name to override the server name in when configuring TLS for local clients.
GRPCServerNameOverride = "UP4W"
// RootCACertFileName is the name of the certificate file that identifies the root certificate authority in the PEM format.
RootCACertFileName = "ca_cert.pem"
// AgentCertFilePrefix is the file name prefix to identify the certificate/key pair of the agent in the PEM format.
AgentCertFilePrefix = "agent"
// ClientsCertFilePrefix is the file name prefix to identify the certificate/key pair of the clients (GUI and all WSL instances) in the PEM format.
ClientsCertFilePrefix = "client"
// CertificateSuffix is the file name suffix to the (public) certificate in the PEM format.
CertificateSuffix = "_cert.pem"
// KeySuffix is the file name suffix to the private key in the PEM format.
KeySuffix = "_key.pem"
)