Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var APITokenCliOverride string
APITokenCliOverride 用于覆盖API TOKEN,为空串时无效
View Source
var Logger = zap.NewNop()
View Source
var TokenFileNotFound = errors.New("TokenFileNotFound")
TokenFileNotFound will be returned when the token file not found
Functions ¶
func ReadTokenFile ¶
func RemoveToken ¶
func RemoveToken() error
RemoveToken will delete local token file, return TokenFileNotFound if there is no token.
func StoreToken ¶
StoreToken store specified token to user local config
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.