Documentation
¶
Index ¶
Constants ¶
View Source
const ( ConfigDirName = "/.deepsource/" ConfigFileName = "/config.toml" DefaultHostName = "deepsource.io" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLIConfig ¶
type CLIConfig struct {
Host string `toml:"host"`
User string `toml:"user"`
Token string `toml:"token"`
TokenExpiresIn time.Time `toml:"token_expires_in,omitempty"`
}
var Cfg CLIConfig
func (*CLIConfig) ReadConfigFile ¶
ReadFile reads the CLI config file.
func (*CLIConfig) SetTokenExpiry ¶
Sets the token expiry in the desired format Sets the token expiry in the desired format
func (*CLIConfig) VerifyAuthentication ¶
Click to show internal directories.
Click to hide internal directories.