Documentation ¶
Index ¶
- func AssembleClientCredentials(clientId, clientSecret string) *oauth2.Config
- func FileSource(path string, token *oauth2.Token, conf *oauth2.Config) oauth2.TokenSource
- func NewAccessTokenClient(conf *oauth2.Config, accessToken string) *http.Client
- func NewFileSourceClient(conf *oauth2.Config, tokenFile string, authFn authCodeFn) (*http.Client, error)
- func NewRefreshTokenClient(conf *oauth2.Config, refreshToken string) *http.Client
- func NewServiceAccountClient(serviceAccountFile string) (*http.Client, error)
- func ReadClientCredentials(path string) (*oauth2.Config, bool, error)
- func ReadFile(path string) ([]byte, bool, error)
- func ReadToken(path string) (*oauth2.Token, bool, error)
- func SaveToken(path string, token *oauth2.Token) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileSource ¶
func NewAccessTokenClient ¶
func NewFileSourceClient ¶
func NewRefreshTokenClient ¶
func NewServiceAccountClient ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.