github.com/jfrog/jfrog-cli-core/v2@v2.51.0/utils/coreutils/coreconsts.go (about)

     1  package coreutils
     2  
     3  const (
     4  
     5  	// General core constants
     6  	OnErrorPanic OnError = "panic"
     7  
     8  	// Common
     9  	TokenRefreshDisabled        = 0
    10  	TokenRefreshDefaultInterval = 60
    11  
    12  	// Home Dir
    13  	JfrogBackupDirName                  = "backup"
    14  	JfrogCertsDirName                   = "certs"
    15  	JfrogConfigFile                     = "jfrog-cli.conf"
    16  	JfrogDependenciesDirName            = "dependencies"
    17  	JfrogLocksDirName                   = "locks"
    18  	JfrogLogsDirName                    = "logs"
    19  	JfrogPluginsDirName                 = "plugins"
    20  	JfrogPluginsFileName                = "plugins.yml"
    21  	JfrogSecurityConfFile               = "security.yaml"
    22  	JfrogSecurityDirName                = "security"
    23  	JfrogTransferDelaysDirName          = "delays"
    24  	JfrogTransferDirName                = "transfer"
    25  	JfrogTransferErrorsDirName          = "errors"
    26  	JfrogTransferRepoSnapshotFileName   = "repo-snapshot.json"
    27  	JfrogTransferRepoStateFileName      = "repo-state.json"
    28  	JfrogTransferRepositoriesDirName    = "repositories"
    29  	JfrogTransferTempDirName            = "tmp"
    30  	JfrogTransferRetryableErrorsDirName = "retryable"
    31  	JfrogTransferRunStatusFileName      = "run-status.json"
    32  	JfrogTransferSkippedErrorsDirName   = "skipped"
    33  	JfrogTransferSnapshotDirName        = "snapshot"
    34  	JfrogTransferStateFileName          = "state.json"
    35  	PluginsExecDirName                  = "bin"
    36  	PluginsResourcesDirName             = "resources"
    37  	//#nosec G101
    38  	CurationPassThroughApi = "api/curation/audit/"
    39  
    40  	//#nosec G101
    41  	ErrorHandling      = "JFROG_CLI_ERROR_HANDLING"
    42  	TempDir            = "JFROG_CLI_TEMP_DIR"
    43  	LogLevel           = "JFROG_CLI_LOG_LEVEL"
    44  	LogTimestamp       = "JFROG_CLI_LOG_TIMESTAMP"
    45  	ReportUsage        = "JFROG_CLI_REPORT_USAGE"
    46  	DependenciesDir    = "JFROG_CLI_DEPENDENCIES_DIR"
    47  	TransitiveDownload = "JFROG_CLI_TRANSITIVE_DOWNLOAD_EXPERIMENTAL"
    48  	FailNoOp           = "JFROG_CLI_FAIL_NO_OP"
    49  	CI                 = "CI"
    50  	ServerID           = "JFROG_CLI_SERVER_ID"
    51  )
    52  
    53  // Although these vars are constant, they are defined inside a vars section and not a constants section because the tests modify these values.
    54  var (
    55  	HomeDir     = "JFROG_CLI_HOME_DIR"
    56  	BuildName   = "JFROG_CLI_BUILD_NAME"
    57  	BuildNumber = "JFROG_CLI_BUILD_NUMBER"
    58  	Project     = "JFROG_CLI_BUILD_PROJECT"
    59  	//#nosec G101
    60  	EncryptionKey = "JFROG_CLI_ENCRYPTION_KEY"
    61  )