Documentation
¶
Index ¶
- func GetConfigPath() (string, error)
- func Login(options LoginOptions) error
- func Logout() error
- func NewClient() (*endgame.Client, error)
- func NewHTTPClient() (*http.Client, error)
- func Save(config Config) error
- func SupportsDeviceLogin() (bool, error)
- func SyncToolsCache() (int, error)
- type Config
- type LoginOptions
- type OAuthConfig
- type OAuthToken
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigPath ¶
func Login ¶
func Login(options LoginOptions) error
func NewHTTPClient ¶
func SupportsDeviceLogin ¶
func SyncToolsCache ¶
Types ¶
type Config ¶
type Config struct {
OAuth *OAuthConfig `json:"oauth,omitempty"`
}
type LoginOptions ¶
type OAuthConfig ¶
type OAuthConfig struct {
ClientID string `json:"client_id,omitempty"`
RedirectURI string `json:"redirect_uri,omitempty"`
TokenURL string `json:"token_url,omitempty"`
Token OAuthToken `json:"token"`
}
type OAuthToken ¶
Click to show internal directories.
Click to hide internal directories.