Documentation ¶
Index ¶
- Constants
- func AlertUpdateInfo()
- func Atoi(s string) int
- func CheckVersion(version string) (bool, string)
- func CreateFolder(folder string)
- func GenerateRandomPasswords() 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 RemoveDuplicatesAndEmpty(a []string) (ret []string)
- 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 AppDirName = ".cf"
View Source
const (
CFHomeEnvVar = "CF_HOME"
)
Variables ¶
This section is empty.
Functions ¶
func AlertUpdateInfo ¶
func AlertUpdateInfo()
func CheckVersion ¶
func GenerateRandomPasswords ¶ added in v0.3.1
func GenerateRandomPasswords() string
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 RemoveDuplicatesAndEmpty ¶ added in v0.3.1
去除重复字符串和空格
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.