Documentation ¶
Index ¶
- Constants
- func AlertUpdateInfo()
- func Atoi(s string) int
- func CheckVersion(version string) (bool, string)
- func GetCFHomeDir() (string, error)
- func GetCurrentVersion() string
- func GetUpdateTime() string
- func HandleErr(e error)
- func HandleErrNoExit(e error)
- func Init(level string)
- func IsFlushCache(oldTimeStamp int64) bool
- func ReadTimeStamp(timeStampFile string) int64
- func ReturnCacheDict() string
- func ReturnECSTimeStampFile() string
- func ReturnOSSTimeStampFile() string
- func ReturnRDSTimeStampFile() string
- func ReturnVersionTimeStampFile() string
- func TimeDifference(oldTimeStamp int64)
- func WriteTimeStamp(file string)
Constants ¶
View Source
const ( LogLevelTrace = "trace" LogLevelDebug = "debug" LogLevelInfo = "info" LogLevelWarn = "warn" LogLevelError = "error" LogLevelFatal = "fatal" LogLevelPanic = "panic" )
View Source
const ( CFCredentialPathEnvVar = "CF_CREDENTIAL_PATH" CFHomeEnvVar = "CF_HOME" CFCloudTokenEnvVar = "CF_CLOUD_TOKEN" )
View Source
const AppDirName = ".cf"
Variables ¶
This section is empty.
Functions ¶
func AlertUpdateInfo ¶
func AlertUpdateInfo()
func CheckVersion ¶
func GetCFHomeDir ¶
func GetCFHomeDir() (string, error)
func GetCurrentVersion ¶
func GetCurrentVersion() string
func GetUpdateTime ¶
func GetUpdateTime() string
func HandleErrNoExit ¶ added in v0.2.0
func HandleErrNoExit(e error)
func IsFlushCache ¶ added in v0.2.2
func ReadTimeStamp ¶
func ReturnCacheDict ¶
func ReturnCacheDict() string
func ReturnECSTimeStampFile ¶ added in v0.2.2
func ReturnECSTimeStampFile() string
func ReturnOSSTimeStampFile ¶ added in v0.2.2
func ReturnOSSTimeStampFile() string
func ReturnRDSTimeStampFile ¶ added in v0.2.2
func ReturnRDSTimeStampFile() string
func ReturnVersionTimeStampFile ¶ added in v0.2.2
func ReturnVersionTimeStampFile() string
func TimeDifference ¶ added in v0.2.2
func TimeDifference(oldTimeStamp int64)
func WriteTimeStamp ¶
func WriteTimeStamp(file string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.