Versions in this module Expand all Collapse all v0 v0.1.1 Jan 29, 2018 Changes in this version + const ClaimAUD + const ClaimScope + const JWTGrantType + const TokenRequestURL + func New(serviceAccountFilePath string) (*http.Client, error) + type GCPServiceAccountTokenSource struct + func NewGCPServiceAccountTokenSource(serviceAccountFilePath string) *GCPServiceAccountTokenSource + func (ts *GCPServiceAccountTokenSource) Token() (*oauth2.Token, error) + type HTTPClientInterface interface + Do func(*http.Request) (*http.Response, error) + type HTTPRequestBuilder struct + func (rb *HTTPRequestBuilder) NewRequest(method, url string, body string) (*http.Request, error) + type HTTPRequestBuilderInterface interface + NewRequest func(string, string, string) (*http.Request, error) + type JWSEncoder struct + func (je *JWSEncoder) Encode(header *jws.Header, c *jws.ClaimSet, key *rsa.PrivateKey) (string, error) + type JWSEncoderInterface interface + Encode func(*jws.Header, *jws.ClaimSet, *rsa.PrivateKey) (string, error) + type JWTConfigReader struct + func NewJWTConfigReader(serviceAccountFilePath string) *JWTConfigReader + func (jcr *JWTConfigReader) JWTConfig() *jwt.Config + func (jcr *JWTConfigReader) Read() error + type JWTConfigReaderInterface interface + JWTConfig func() *jwt.Config + Read func() error + type KeyParser struct + func NewKeyParser(encodedKey []byte) *KeyParser + func (kp *KeyParser) ParseKey() error + func (kp *KeyParser) PrivateKey() *rsa.PrivateKey + type KeyParserInterface interface + ParseKey func() error + PrivateKey func() *rsa.PrivateKey + type MockHTTPClientInterface struct + func (_m *MockHTTPClientInterface) Do(_a0 *http.Request) (*http.Response, error) + type MockHTTPRequestBuilderInterface struct + func (_m *MockHTTPRequestBuilderInterface) NewRequest(_a0 string, _a1 string, _a2 string) (*http.Request, error) + type MockJWSEncoderInterface struct + func (_m *MockJWSEncoderInterface) Encode(_a0 *jws.Header, _a1 *jws.ClaimSet, _a2 *rsa.PrivateKey) (string, error) + type MockJWTConfigReaderInterface struct + func (_m *MockJWTConfigReaderInterface) JWTConfig() *jwt.Config + func (_m *MockJWTConfigReaderInterface) Read() error + type MockKeyParserInterface struct + func (_m *MockKeyParserInterface) ParseKey() error + func (_m *MockKeyParserInterface) PrivateKey() *rsa.PrivateKey + type MockTokenRequesterInterface struct + func (_m *MockTokenRequesterInterface) RequestToken() error + func (_m *MockTokenRequesterInterface) Token() *oauth2.Token + type TokenRequester struct + func NewTokenRequester(config *jwt.Config, privateKey *rsa.PrivateKey) *TokenRequester + func (tr *TokenRequester) RequestToken() error + func (tr *TokenRequester) Token() *oauth2.Token + type TokenRequesterInterface interface + RequestToken func() error + Token func() *oauth2.Token