Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetInteractiveFlowRunner ¶
SetInteractiveFlowRunner sets a wrapper used to execute interactive OAuth flows. Passing nil resets to direct execution.
Types ¶
type AccessToken ¶
type AccessToken struct {
api.AccessToken
Expiry time.Time
}
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶
func (Authenticator) Authenticate ¶
func (a Authenticator) Authenticate() (*AccessToken, error)
type OauthService ¶
type OauthService interface {
// Authenticate starts the oauth authentication flow and returns the access token
Authenticate() (token *AccessToken, err error)
}
Click to show internal directories.
Click to hide internal directories.