Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoUpdateIfNeeded ¶
func AutoUpdateIfNeeded()
AutoUpdateIfNeeded checks for updates and if available, downloads the new version and re-execs into it with the same arguments. Only returns if no update is needed or if update fails.
func NotifyIfUpdateAvailable ¶
func NotifyIfUpdateAvailable()
NotifyIfUpdateAvailable checks for updates and prints a notice if available. Does not install - just informs the user.
func SetVersionInfo ¶
func SetVersionInfo(v, c, d string)
SetVersionInfo is called from main to set version info from ldflags
Types ¶
type APIKeyLimitError ¶
type APIKeyLimitError struct {
BackendURL string
}
APIKeyLimitError is returned when the user has too many API keys
func (*APIKeyLimitError) Error ¶
func (e *APIKeyLimitError) Error() string
type DeviceCodeResponse ¶
type DeviceCodeResponse struct {
DeviceCode string `json:"device_code"`
UserCode string `json:"user_code"`
VerificationURI string `json:"verification_uri"`
ExpiresIn int `json:"expires_in"`
Interval int `json:"interval"`
}
DeviceCodeResponse is the response from /auth/device/code
type DeviceTokenResponse ¶
type DeviceTokenResponse struct {
AccessToken string `json:"access_token,omitempty"`
TokenType string `json:"token_type,omitempty"`
Error string `json:"error,omitempty"`
}
DeviceTokenResponse is the response from /auth/device/token
Click to show internal directories.
Click to hide internal directories.