Documentation ¶
Index ¶
- Constants
- Variables
- func AskYesNo(promptPrefix string, defaultValue bool) bool
- func CreateDirInJfrogHome(dirName string) (string, error)
- func ExitOnErr(err error)
- func GetCliPersistentTempDirPath() string
- func GetCliUserAgent() string
- func GetClientAgent() string
- func GetConfigVersion() int
- func GetJfrogBackupDir() (string, error)
- func GetJfrogCertsDir() (string, error)
- func GetJfrogHomeDir() (string, error)
- func GetJfrogPluginsDir() (string, error)
- func GetJfrogSecurityConfFilePath() (string, error)
- func GetJfrogSecurityDir() (string, error)
- func GetUserAgent() string
- func GetVersion() string
- func IsLinux() bool
- func IsWindows() bool
- func PanicOnError(err error) error
- func ReplaceVars(content []byte, specVars map[string]string) []byte
- func SetCliUserAgent(cliUserAgentToSet string)
- func SetClientAgent(clientAgentToSet string)
- func SetVersion(versionToSet string)
- func SpecVarsStringToMap(rawVars string) map[string]string
- func SumTrueValues(boolArr []bool) int
- type CliError
- type Credentials
- type ExitCode
- type OnError
Constants ¶
View Source
const ( // General core constants OnErrorPanic OnError = "panic" // Common TokenRefreshDisabled = 0 TokenRefreshDefaultInterval = 60 // Home Dir JfrogCertsDirName = "certs" JfrogConfigFile = "jfrog-cli.conf" JfrogDependenciesDirName = "dependencies" JfrogSecurityDirName = "security" JfrogSecurityConfFile = "security.yaml" JfrogBackupDirName = "backup" JfrogLogsDirName = "logs" JfrogLockDirName = "lock" JfrogPluginsDirName = "plugins" // Env ErrorHandling = "JFROG_CLI_ERROR_HANDLING" TempDir = "JFROG_CLI_TEMP_DIR" LogLevel = "JFROG_CLI_LOG_LEVEL" ReportUsage = "JFROG_CLI_REPORT_USAGE" HomeDir = "JFROG_CLI_HOME_DIR" DependenciesDir = "JFROG_CLI_DEPENDENCIES_DIR" BuildName = "JFROG_CLI_BUILD_NAME" BuildNumber = "JFROG_CLI_BUILD_NUMBER" Project = "JFROG_CLI_BUILD_PROJECT" CI = "CI" // Deprecated: JfrogHomeEnv = "JFROG_CLI_HOME" )
Variables ¶
View Source
var ExitCodeError = ExitCode{1}
View Source
var ExitCodeFailNoOp = ExitCode{2}
View Source
var ExitCodeNoError = ExitCode{0}
View Source
var ExitCodeVulnerableBuild = ExitCode{3}
Functions ¶
func CreateDirInJfrogHome ¶
func GetCliPersistentTempDirPath ¶
func GetCliPersistentTempDirPath() string
Return the path of CLI temp dir. This path should be persistent, meaning - should not be cleared at the end of a CLI run.
func GetCliUserAgent ¶
func GetCliUserAgent() string
func GetClientAgent ¶
func GetClientAgent() string
func GetConfigVersion ¶
func GetConfigVersion() int
func GetJfrogBackupDir ¶
func GetJfrogCertsDir ¶
func GetJfrogHomeDir ¶
func GetJfrogPluginsDir ¶
func GetJfrogSecurityDir ¶
func GetUserAgent ¶
func GetUserAgent() string
func GetVersion ¶
func GetVersion() string
func PanicOnError ¶
func SetCliUserAgent ¶
func SetCliUserAgent(cliUserAgentToSet string)
func SetClientAgent ¶
func SetClientAgent(clientAgentToSet string)
func SetVersion ¶
func SetVersion(versionToSet string)
func SpecVarsStringToMap ¶
func SumTrueValues ¶
Types ¶
type Credentials ¶
Click to show internal directories.
Click to hide internal directories.