-
Notifications
You must be signed in to change notification settings - Fork 407
/
OAuthClient.go
42 lines (33 loc) · 1.38 KB
/
OAuthClient.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import (
apperrors "github.com/kyma-project/kyma/components/application-gateway/pkg/apperrors"
mock "github.com/stretchr/testify/mock"
)
// OAuthClient is an autogenerated mock type for the OAuthClient type
type OAuthClient struct {
mock.Mock
}
// GetToken provides a mock function with given fields: clientID, clientSecret, authURL, headers, queryParameters
func (_m *OAuthClient) GetToken(clientID string, clientSecret string, authURL string, headers *map[string][]string, queryParameters *map[string][]string) (string, apperrors.AppError) {
ret := _m.Called(clientID, clientSecret, authURL, headers, queryParameters)
var r0 string
if rf, ok := ret.Get(0).(func(string, string, string, *map[string][]string, *map[string][]string) string); ok {
r0 = rf(clientID, clientSecret, authURL, headers, queryParameters)
} else {
r0 = ret.Get(0).(string)
}
var r1 apperrors.AppError
if rf, ok := ret.Get(1).(func(string, string, string, *map[string][]string, *map[string][]string) apperrors.AppError); ok {
r1 = rf(clientID, clientSecret, authURL, headers, queryParameters)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).(apperrors.AppError)
}
}
return r0, r1
}
// InvalidateTokenCache provides a mock function with given fields: clientID
func (_m *OAuthClient) InvalidateTokenCache(clientID string) {
_m.Called(clientID)
}