package
Version:
v0.0.0-...-61caae0
Opens a new window with list of versions in this module.
Published: Mar 25, 2021
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func FileSource(path string, token *oauth2.Token, conf *oauth2.Config) oauth2.TokenSource
-
func NewAccessTokenClient(clientId, clientSecret, accessToken string) *http.Client
-
func NewFileSourceClient(clientId, clientSecret, tokenFile string, authFn authCodeFn) (*http.Client, error)
-
func NewRefreshTokenClient(clientId, clientSecret, refreshToken string) *http.Client
-
func NewServiceAccountClient(serviceAccountFile string) (*http.Client, error)
-
func ReadFile(path string) ([]byte, bool, error)
-
func ReadToken(path string) (*oauth2.Token, bool, error)
-
func SaveToken(path string, token *oauth2.Token) error
func NewAccessTokenClient(clientId, clientSecret, accessToken string) *http.Client
func NewFileSourceClient(clientId, clientSecret, tokenFile string, authFn authCodeFn) (*http.Client, error)
func NewRefreshTokenClient(clientId, clientSecret, refreshToken string) *http.Client
Source Files
¶
Click to show internal directories.
Click to hide internal directories.