-
Notifications
You must be signed in to change notification settings - Fork 550
/
client.go
100 lines (78 loc) · 3.34 KB
/
client.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
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
context "context"
admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin"
core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core"
mock "github.com/stretchr/testify/mock"
)
// Client is an autogenerated mock type for the Client type
type Client struct {
mock.Mock
}
type Client_RecoverNodeExecution struct {
*mock.Call
}
func (_m Client_RecoverNodeExecution) Return(_a0 *admin.NodeExecution, _a1 error) *Client_RecoverNodeExecution {
return &Client_RecoverNodeExecution{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *Client) OnRecoverNodeExecution(ctx context.Context, execID *core.WorkflowExecutionIdentifier, nodeID string) *Client_RecoverNodeExecution {
c_call := _m.On("RecoverNodeExecution", ctx, execID, nodeID)
return &Client_RecoverNodeExecution{Call: c_call}
}
func (_m *Client) OnRecoverNodeExecutionMatch(matchers ...interface{}) *Client_RecoverNodeExecution {
c_call := _m.On("RecoverNodeExecution", matchers...)
return &Client_RecoverNodeExecution{Call: c_call}
}
// RecoverNodeExecution provides a mock function with given fields: ctx, execID, nodeID
func (_m *Client) RecoverNodeExecution(ctx context.Context, execID *core.WorkflowExecutionIdentifier, nodeID string) (*admin.NodeExecution, error) {
ret := _m.Called(ctx, execID, nodeID)
var r0 *admin.NodeExecution
if rf, ok := ret.Get(0).(func(context.Context, *core.WorkflowExecutionIdentifier, string) *admin.NodeExecution); ok {
r0 = rf(ctx, execID, nodeID)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*admin.NodeExecution)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, *core.WorkflowExecutionIdentifier, string) error); ok {
r1 = rf(ctx, execID, nodeID)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
type Client_RecoverNodeExecutionData struct {
*mock.Call
}
func (_m Client_RecoverNodeExecutionData) Return(_a0 *admin.NodeExecutionGetDataResponse, _a1 error) *Client_RecoverNodeExecutionData {
return &Client_RecoverNodeExecutionData{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *Client) OnRecoverNodeExecutionData(ctx context.Context, execID *core.WorkflowExecutionIdentifier, nodeID string) *Client_RecoverNodeExecutionData {
c_call := _m.On("RecoverNodeExecutionData", ctx, execID, nodeID)
return &Client_RecoverNodeExecutionData{Call: c_call}
}
func (_m *Client) OnRecoverNodeExecutionDataMatch(matchers ...interface{}) *Client_RecoverNodeExecutionData {
c_call := _m.On("RecoverNodeExecutionData", matchers...)
return &Client_RecoverNodeExecutionData{Call: c_call}
}
// RecoverNodeExecutionData provides a mock function with given fields: ctx, execID, nodeID
func (_m *Client) RecoverNodeExecutionData(ctx context.Context, execID *core.WorkflowExecutionIdentifier, nodeID string) (*admin.NodeExecutionGetDataResponse, error) {
ret := _m.Called(ctx, execID, nodeID)
var r0 *admin.NodeExecutionGetDataResponse
if rf, ok := ret.Get(0).(func(context.Context, *core.WorkflowExecutionIdentifier, string) *admin.NodeExecutionGetDataResponse); ok {
r0 = rf(ctx, execID, nodeID)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*admin.NodeExecutionGetDataResponse)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, *core.WorkflowExecutionIdentifier, string) error); ok {
r1 = rf(ctx, execID, nodeID)
} else {
r1 = ret.Error(1)
}
return r0, r1
}