util

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 Atoi

func Atoi(s string) int

func CheckVersion

func CheckVersion(version string) (bool, string)

func GetCFHomeDir

func GetCFHomeDir() (string, error)

func GetCurrentVersion

func GetCurrentVersion() string

func GetUpdateTime

func GetUpdateTime() string

func HandleErr

func HandleErr(e error)

func HandleErrNoExit added in v0.2.0

func HandleErrNoExit(e error)

func Init

func Init(level string)

func IsFlushCache added in v0.2.2

func IsFlushCache(oldTimeStamp int64) bool

func ReadTimeStamp

func ReadTimeStamp(timeStampFile string) int64

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL