This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathsignal_interface.go
139 lines (110 loc) · 4.21 KB
/
signal_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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
context "context"
admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"
mock "github.com/stretchr/testify/mock"
)
// SignalInterface is an autogenerated mock type for the SignalInterface type
type SignalInterface struct {
mock.Mock
}
type SignalInterface_GetOrCreateSignal struct {
*mock.Call
}
func (_m SignalInterface_GetOrCreateSignal) Return(_a0 *admin.Signal, _a1 error) *SignalInterface_GetOrCreateSignal {
return &SignalInterface_GetOrCreateSignal{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *SignalInterface) OnGetOrCreateSignal(ctx context.Context, request admin.SignalGetOrCreateRequest) *SignalInterface_GetOrCreateSignal {
c_call := _m.On("GetOrCreateSignal", ctx, request)
return &SignalInterface_GetOrCreateSignal{Call: c_call}
}
func (_m *SignalInterface) OnGetOrCreateSignalMatch(matchers ...interface{}) *SignalInterface_GetOrCreateSignal {
c_call := _m.On("GetOrCreateSignal", matchers...)
return &SignalInterface_GetOrCreateSignal{Call: c_call}
}
// GetOrCreateSignal provides a mock function with given fields: ctx, request
func (_m *SignalInterface) GetOrCreateSignal(ctx context.Context, request admin.SignalGetOrCreateRequest) (*admin.Signal, error) {
ret := _m.Called(ctx, request)
var r0 *admin.Signal
if rf, ok := ret.Get(0).(func(context.Context, admin.SignalGetOrCreateRequest) *admin.Signal); ok {
r0 = rf(ctx, request)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*admin.Signal)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, admin.SignalGetOrCreateRequest) error); ok {
r1 = rf(ctx, request)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
type SignalInterface_ListSignals struct {
*mock.Call
}
func (_m SignalInterface_ListSignals) Return(_a0 *admin.SignalList, _a1 error) *SignalInterface_ListSignals {
return &SignalInterface_ListSignals{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *SignalInterface) OnListSignals(ctx context.Context, request admin.SignalListRequest) *SignalInterface_ListSignals {
c_call := _m.On("ListSignals", ctx, request)
return &SignalInterface_ListSignals{Call: c_call}
}
func (_m *SignalInterface) OnListSignalsMatch(matchers ...interface{}) *SignalInterface_ListSignals {
c_call := _m.On("ListSignals", matchers...)
return &SignalInterface_ListSignals{Call: c_call}
}
// ListSignals provides a mock function with given fields: ctx, request
func (_m *SignalInterface) ListSignals(ctx context.Context, request admin.SignalListRequest) (*admin.SignalList, error) {
ret := _m.Called(ctx, request)
var r0 *admin.SignalList
if rf, ok := ret.Get(0).(func(context.Context, admin.SignalListRequest) *admin.SignalList); ok {
r0 = rf(ctx, request)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*admin.SignalList)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, admin.SignalListRequest) error); ok {
r1 = rf(ctx, request)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
type SignalInterface_SetSignal struct {
*mock.Call
}
func (_m SignalInterface_SetSignal) Return(_a0 *admin.SignalSetResponse, _a1 error) *SignalInterface_SetSignal {
return &SignalInterface_SetSignal{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *SignalInterface) OnSetSignal(ctx context.Context, request admin.SignalSetRequest) *SignalInterface_SetSignal {
c_call := _m.On("SetSignal", ctx, request)
return &SignalInterface_SetSignal{Call: c_call}
}
func (_m *SignalInterface) OnSetSignalMatch(matchers ...interface{}) *SignalInterface_SetSignal {
c_call := _m.On("SetSignal", matchers...)
return &SignalInterface_SetSignal{Call: c_call}
}
// SetSignal provides a mock function with given fields: ctx, request
func (_m *SignalInterface) SetSignal(ctx context.Context, request admin.SignalSetRequest) (*admin.SignalSetResponse, error) {
ret := _m.Called(ctx, request)
var r0 *admin.SignalSetResponse
if rf, ok := ret.Get(0).(func(context.Context, admin.SignalSetRequest) *admin.SignalSetResponse); ok {
r0 = rf(ctx, request)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*admin.SignalSetResponse)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, admin.SignalSetRequest) error); ok {
r1 = rf(ctx, request)
} else {
r1 = ret.Error(1)
}
return r0, r1
}