forked from orbitalci/orbital
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.go
34 lines (26 loc) · 1.21 KB
/
constants.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
package common
const BuildFileName = "ocelot.yml"
var BitbucketEvents = []string{"repo:push", "pullrequest:approved", "pullrequest:updated"}
var (
OcyConfigBase = GetPrefix() + "config/ocelot"
StorageType = OcyConfigBase + "/storagetype"
//// For configuring how we get Postgres credentials
//VaultConf = OcyConfigBase + "/vault"
//VaultDBSecretEngine = VaultConf + "/secretbackend"
//VaultRoleName = VaultConf + "/rolename"
PostgresCredLoc = OcyConfigBase + "/postgres"
PostgresDatabaseName = PostgresCredLoc + "/db"
PostgresLocation = PostgresCredLoc + "/location"
PostgresPort = PostgresCredLoc + "/port"
PostgresUsername = PostgresCredLoc + "/username"
// For static DB connection info in vault
PostgresPasswordLoc = "secret/data/" + PostgresCredLoc
PostgresPasswordKey = "clientsecret"
// For dynamic DB connection info in vault
PostgresVaultConf = PostgresCredLoc + "/vault"
PostgresVaultRoleName = PostgresVaultConf + "/rolename"
PostgresVaultSecretsEngine = PostgresVaultConf + "/secretsengine"
FilesystemConfigLoc = OcyConfigBase + "/filesystem"
FilesystemDir = FilesystemConfigLoc + "/savedirec"
ConfigPath = GetPrefix() + "creds"
)