Documentation
¶
Index ¶
- func ClientKeyring() (keyring gokeyring.Keyring, err error)
- func InteractiveAuthorizer(oauthAuthorizeURL string) (code string, err error)
- func Login(user string, allowHTTP bool, keyring gokeyring.Keyring, authorizer Authorizer) error
- func LoginKeyring(useCleartextFileKeyring bool) (keyring gokeyring.Keyring, err error)
- func Logout(user string) error
- func Switch(user string) error
- func Whoami() (string, error)
- type Authorizer
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientKeyring ¶
ClientKeyring returns the appropriate keyring (system or file) but does not change the keyring pref.
func InteractiveAuthorizer ¶
InteractiveAuthorizer prompts the user to log in with their browser and then enter their auth code.
func LoginKeyring ¶
LoginKeyring sets the keyring pref and returns the appropriate keyring (system or file).
Types ¶
type Authorizer ¶
Authorizer is a function that can exchange an OAuth authorization URL for an authorization code.
type Client ¶
type Client struct {
Client *apiclient.GoToSocialSwaggerDocumentation
Auth runtime.ClientAuthInfoWriter
// contains filtered or unexported fields
}
Client is a GtS API client with attached authentication credentials and rate limiter. Credentials may be no-op.
Click to show internal directories.
Click to hide internal directories.