conf

package
v1.17.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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 APIToken

func APIToken() string

APIToken returns API token

func ReadTokenFile

func ReadTokenFile() (t string, e error)

func RemoveToken

func RemoveToken() error

RemoveToken will delete local token file, return TokenFileNotFound if there is no token.

func StoreToken

func StoreToken(token string) error

StoreToken store specified token to user local config

Types

This section is empty.

Jump to

Keyboard shortcuts

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