-
Notifications
You must be signed in to change notification settings - Fork 3.2k
/
Interface.go
63 lines (49 loc) · 1.43 KB
/
Interface.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Code generated by mockery v1.1.1. DO NOT EDIT.
package mocks
import (
http "net/http"
mock "github.com/stretchr/testify/mock"
types "github.com/argoproj/argo-workflows/v3/server/auth/types"
)
// Interface is an autogenerated mock type for the Interface type
type Interface struct {
mock.Mock
}
// Authorize provides a mock function with given fields: authorization
func (_m *Interface) Authorize(authorization string) (*types.Claims, error) {
ret := _m.Called(authorization)
var r0 *types.Claims
if rf, ok := ret.Get(0).(func(string) *types.Claims); ok {
r0 = rf(authorization)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*types.Claims)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string) error); ok {
r1 = rf(authorization)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// HandleCallback provides a mock function with given fields: writer, request
func (_m *Interface) HandleCallback(writer http.ResponseWriter, request *http.Request) {
_m.Called(writer, request)
}
// HandleRedirect provides a mock function with given fields: writer, request
func (_m *Interface) HandleRedirect(writer http.ResponseWriter, request *http.Request) {
_m.Called(writer, request)
}
// IsRBACEnabled provides a mock function with given fields:
func (_m *Interface) IsRBACEnabled() bool {
ret := _m.Called()
var r0 bool
if rf, ok := ret.Get(0).(func() bool); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(bool)
}
return r0
}