Documentation ¶
Index ¶
- type ClientCredentialsTokenProvider
- type MocktokenProvider
- type MocktokenProvider_Expecter
- type MocktokenProvider_GetToken_Call
- func (_c *MocktokenProvider_GetToken_Call) Return(_a0 *auth_client.AuthTokenResponse, _a1 error) *MocktokenProvider_GetToken_Call
- func (_c *MocktokenProvider_GetToken_Call) Run(run func(_a0 context.Context)) *MocktokenProvider_GetToken_Call
- func (_c *MocktokenProvider_GetToken_Call) RunAndReturn(run func(context.Context) (*auth_client.AuthTokenResponse, error)) *MocktokenProvider_GetToken_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientCredentialsTokenProvider ¶
type ClientCredentialsTokenProvider struct {
// contains filtered or unexported fields
}
Caches the access token on the struct. Retrieves a new one once it has expired, within the token exp buffer limit
type MocktokenProvider ¶
MocktokenProvider is an autogenerated mock type for the tokenProvider type
func NewMocktokenProvider ¶
func NewMocktokenProvider(t interface { mock.TestingT Cleanup(func()) }) *MocktokenProvider
NewMocktokenProvider creates a new instance of MocktokenProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MocktokenProvider) EXPECT ¶
func (_m *MocktokenProvider) EXPECT() *MocktokenProvider_Expecter
func (*MocktokenProvider) GetToken ¶
func (_m *MocktokenProvider) GetToken(_a0 context.Context) (*auth_client.AuthTokenResponse, error)
GetToken provides a mock function with given fields: _a0
type MocktokenProvider_Expecter ¶
type MocktokenProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*MocktokenProvider_Expecter) GetToken ¶
func (_e *MocktokenProvider_Expecter) GetToken(_a0 interface{}) *MocktokenProvider_GetToken_Call
GetToken is a helper method to define mock.On call
- _a0 context.Context
type MocktokenProvider_GetToken_Call ¶
MocktokenProvider_GetToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetToken'
func (*MocktokenProvider_GetToken_Call) Return ¶
func (_c *MocktokenProvider_GetToken_Call) Return(_a0 *auth_client.AuthTokenResponse, _a1 error) *MocktokenProvider_GetToken_Call
func (*MocktokenProvider_GetToken_Call) Run ¶
func (_c *MocktokenProvider_GetToken_Call) Run(run func(_a0 context.Context)) *MocktokenProvider_GetToken_Call
func (*MocktokenProvider_GetToken_Call) RunAndReturn ¶
func (_c *MocktokenProvider_GetToken_Call) RunAndReturn(run func(context.Context) (*auth_client.AuthTokenResponse, error)) *MocktokenProvider_GetToken_Call