Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Armed ¶
Armed checks if the configuration contains either credentials or tokens that haven't expired, so that it can be used to perform authenticated requests.
Types ¶
type Config ¶
type Config struct {
AccessToken string `json:"access_token,omitempty"`
ClientID string `json:"client_id,omitempty"`
ClientSecret string `json:"client_secret,omitempty"`
Insecure bool `json:"insecure,omitempty"`
Password string `json:"password,omitempty"`
RefreshToken string `json:"refresh_token,omitempty"`
Scopes []string `json:"scopes,omitempty"`
Token string `json:"token,omitempty"`
TokenURL string `json:"token_url,omitempty"`
URL string `json:"url,omitempty"`
User string `json:"user,omitempty"`
}
Config is the type used to store the configuration of the client.
Click to show internal directories.
Click to hide internal directories.