-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathcoreconsts.go
More file actions
87 lines (80 loc) · 3.72 KB
/
coreconsts.go
File metadata and controls
87 lines (80 loc) · 3.72 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
75
76
77
78
79
80
81
82
83
84
85
86
87
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"
// Token provided by the OIDC provider, used to exchange for an access token.
//#nosec G101 // False positive: This is not a hardcoded credential.
OidcExchangeTokenId = "JFROG_CLI_OIDC_EXCHANGE_TOKEN_ID"
OidcProviderType = "JFROG_CLI_OIDC_PROVIDER_TYPE"
// 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"
// Custom browser command for web login, useful for WSL2 environments
BrowserCommand = "JFROG_CLI_BROWSER_COMMAND"
// 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"
BuildUrl = "JFROG_CLI_BUILD_URL"
EnvExclude = "JFROG_CLI_ENV_EXCLUDE"
Project = "JFROG_CLI_BUILD_PROJECT"
ApplicationKey = "JFROG_CLI_APPLICATION_KEY"
SourceCodeRepository = "JFROG_CLI_SOURCECODE_REPOSITORY"
SigningKey = "JFROG_CLI_SIGNING_KEY"
KeyAlias = "JFROG_CLI_KEY_ALIAS"
//#nosec G101
EncryptionKey = "JFROG_CLI_ENCRYPTION_KEY"
// For CI runs
CIJobID = "JFROG_CLI_CI_JOB_ID"
CIRunID = "JFROG_CLI_CI_RUN_ID"
CIVcsUrl = "JFROG_CLI_CI_VCS_URL"
CIVcsRevision = "JFROG_CLI_CI_VCS_REVISION"
CIVcsBranch = "JFROG_CLI_CI_BRANCH"
)