forked from jfrog/jfrog-cli-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcoreconsts.go
More file actions
74 lines (66 loc) · 3 KB
/
coreconsts.go
File metadata and controls
74 lines (66 loc) · 3 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package coreutils
const (
// General core constants
OnErrorPanic OnError = "panic"
// Common
TokenRefreshDisabled = 0
TokenRefreshDefaultInterval = 60
// Home Dir
JfrogBackupDirName = "backup"
JfrogCertsDirName = "certs"
JfrogConfigFile = "jfrog-cli.conf"
JfrogDependenciesDirName = "dependencies"
JfrogLocksDirName = "locks"
JfrogLogsDirName = "logs"
JfrogPluginsDirName = "plugins"
JfrogPluginsFileName = "plugins.yml"
JfrogSecurityConfFile = "security.yaml"
JfrogSecurityDirName = "security"
JfrogTransferDelaysDirName = "delays"
JfrogTransferDirName = "transfer"
JfrogTransferErrorsDirName = "errors"
JfrogTransferRepoSnapshotFileName = "repo-snapshot.json"
JfrogTransferRepoStateFileName = "repo-state.json"
JfrogTransferRepositoriesDirName = "repositories"
JfrogTransferTempDirName = "tmp"
JfrogTransferRetryableErrorsDirName = "retryable"
JfrogTransferRunStatusFileName = "run-status.json"
JfrogTransferSkippedErrorsDirName = "skipped"
JfrogTransferSnapshotDirName = "snapshot"
JfrogTransferStateFileName = "state.json"
PluginsExecDirName = "bin"
PluginsResourcesDirName = "resources"
//#nosec G101
CurationPassThroughApi = "api/curation/audit/"
//#nosec G101
ErrorHandling = "JFROG_CLI_ERROR_HANDLING"
TempDir = "JFROG_CLI_TEMP_DIR"
LogLevel = "JFROG_CLI_LOG_LEVEL"
LogTimestamp = "JFROG_CLI_LOG_TIMESTAMP"
ReportUsage = "JFROG_CLI_REPORT_USAGE"
DependenciesDir = "JFROG_CLI_DEPENDENCIES_DIR"
FailNoOp = "JFROG_CLI_FAIL_NO_OP"
SummaryOutputDirPathEnv = "JFROG_CLI_COMMAND_SUMMARY_OUTPUT_DIR"
CI = "CI"
ServerID = "JFROG_CLI_SERVER_ID"
TransitiveDownload = "JFROG_CLI_TRANSITIVE_DOWNLOAD"
// These environment variables are used to adjust command names for more detailed tracking in the usage report.
// Set by the setup-jfrog-cli GitHub Action to identify specific command usage scenarios.
// True if an automatic build publication was triggered.
UsageAutoPublishedBuild = "JFROG_CLI_USAGE_AUTO_BUILD_PUBLISHED"
// True if the JFrog platform was configured using OIDC integration.
UsageOidcConfigured = "JFROG_CLI_USAGE_CONFIG_OIDC"
// Deprecated and replaced with TransitiveDownload
TransitiveDownloadExperimental = "JFROG_CLI_TRANSITIVE_DOWNLOAD_EXPERIMENTAL"
)
// Although these vars are constant, they are defined inside a vars section and not a constants section because the tests modify these values.
var (
HomeDir = "JFROG_CLI_HOME_DIR"
BuildName = "JFROG_CLI_BUILD_NAME"
BuildNumber = "JFROG_CLI_BUILD_NUMBER"
Project = "JFROG_CLI_BUILD_PROJECT"
SigningKey = "JFROG_CLI_SIGNING_KEY"
KeyAlias = "JFROG_CLI_KEY_ALIAS"
//#nosec G101
EncryptionKey = "JFROG_CLI_ENCRYPTION_KEY"
)