Documentation ¶
Index ¶
- type TokenCache
- func (_m *TokenCache) CondBroadcast()
- func (_m *TokenCache) CondWait()
- func (_m *TokenCache) GetToken() (*oauth2.Token, error)
- func (_m *TokenCache) Lock()
- func (_m *TokenCache) OnGetToken() *TokenCache_GetToken
- func (_m *TokenCache) OnGetTokenMatch(matchers ...interface{}) *TokenCache_GetToken
- func (_m *TokenCache) OnPurgeIfEquals(t *oauth2.Token) *TokenCache_PurgeIfEquals
- func (_m *TokenCache) OnPurgeIfEqualsMatch(matchers ...interface{}) *TokenCache_PurgeIfEquals
- func (_m *TokenCache) OnSaveToken(token *oauth2.Token) *TokenCache_SaveToken
- func (_m *TokenCache) OnSaveTokenMatch(matchers ...interface{}) *TokenCache_SaveToken
- func (_m *TokenCache) OnTryLock() *TokenCache_TryLock
- func (_m *TokenCache) OnTryLockMatch(matchers ...interface{}) *TokenCache_TryLock
- func (_m *TokenCache) PurgeIfEquals(t *oauth2.Token) (bool, error)
- func (_m *TokenCache) SaveToken(token *oauth2.Token) error
- func (_m *TokenCache) TryLock() bool
- func (_m *TokenCache) Unlock()
- type TokenCache_GetToken
- type TokenCache_PurgeIfEquals
- type TokenCache_SaveToken
- type TokenCache_TryLock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenCache ¶
TokenCache is an autogenerated mock type for the TokenCache type
func (*TokenCache) CondBroadcast ¶ added in v1.13.0
func (_m *TokenCache) CondBroadcast()
CondBroadcast provides a mock function with given fields:
func (*TokenCache) CondWait ¶ added in v1.13.0
func (_m *TokenCache) CondWait()
CondWait provides a mock function with given fields:
func (*TokenCache) GetToken ¶
func (_m *TokenCache) GetToken() (*oauth2.Token, error)
GetToken provides a mock function with given fields:
func (*TokenCache) Lock ¶ added in v1.13.0
func (_m *TokenCache) Lock()
Lock provides a mock function with given fields:
func (*TokenCache) OnGetToken ¶
func (_m *TokenCache) OnGetToken() *TokenCache_GetToken
func (*TokenCache) OnGetTokenMatch ¶
func (_m *TokenCache) OnGetTokenMatch(matchers ...interface{}) *TokenCache_GetToken
func (*TokenCache) OnPurgeIfEquals ¶ added in v1.13.0
func (_m *TokenCache) OnPurgeIfEquals(t *oauth2.Token) *TokenCache_PurgeIfEquals
func (*TokenCache) OnPurgeIfEqualsMatch ¶ added in v1.13.0
func (_m *TokenCache) OnPurgeIfEqualsMatch(matchers ...interface{}) *TokenCache_PurgeIfEquals
func (*TokenCache) OnSaveToken ¶
func (_m *TokenCache) OnSaveToken(token *oauth2.Token) *TokenCache_SaveToken
func (*TokenCache) OnSaveTokenMatch ¶
func (_m *TokenCache) OnSaveTokenMatch(matchers ...interface{}) *TokenCache_SaveToken
func (*TokenCache) OnTryLock ¶ added in v1.13.0
func (_m *TokenCache) OnTryLock() *TokenCache_TryLock
func (*TokenCache) OnTryLockMatch ¶ added in v1.13.0
func (_m *TokenCache) OnTryLockMatch(matchers ...interface{}) *TokenCache_TryLock
func (*TokenCache) PurgeIfEquals ¶ added in v1.13.0
func (_m *TokenCache) PurgeIfEquals(t *oauth2.Token) (bool, error)
PurgeIfEquals provides a mock function with given fields: t
func (*TokenCache) SaveToken ¶
func (_m *TokenCache) SaveToken(token *oauth2.Token) error
SaveToken provides a mock function with given fields: token
func (*TokenCache) TryLock ¶ added in v1.13.0
func (_m *TokenCache) TryLock() bool
TryLock provides a mock function with given fields:
func (*TokenCache) Unlock ¶ added in v1.13.0
func (_m *TokenCache) Unlock()
Unlock provides a mock function with given fields:
type TokenCache_GetToken ¶
func (TokenCache_GetToken) Return ¶
func (_m TokenCache_GetToken) Return(_a0 *oauth2.Token, _a1 error) *TokenCache_GetToken
type TokenCache_PurgeIfEquals ¶ added in v1.13.0
func (TokenCache_PurgeIfEquals) Return ¶ added in v1.13.0
func (_m TokenCache_PurgeIfEquals) Return(_a0 bool, _a1 error) *TokenCache_PurgeIfEquals
type TokenCache_SaveToken ¶
func (TokenCache_SaveToken) Return ¶
func (_m TokenCache_SaveToken) Return(_a0 error) *TokenCache_SaveToken
type TokenCache_TryLock ¶ added in v1.13.0
func (TokenCache_TryLock) Return ¶ added in v1.13.0
func (_m TokenCache_TryLock) Return(_a0 bool) *TokenCache_TryLock
Click to show internal directories.
Click to hide internal directories.