...
1
2
3
4
5 package exec
6
7 import (
8 context "context"
9 io "io"
10 reflect "reflect"
11
12 gomock "github.com/golang/mock/gomock"
13 )
14
15
16 type MockClient struct {
17 ctrl *gomock.Controller
18 recorder *MockClientMockRecorder
19 }
20
21
22 type MockClientMockRecorder struct {
23 mock *MockClient
24 }
25
26
27 func NewMockClient(ctrl *gomock.Controller) *MockClient {
28 mock := &MockClient{ctrl: ctrl}
29 mock.recorder = &MockClientMockRecorder{mock}
30 return mock
31 }
32
33
34 func (m *MockClient) EXPECT() *MockClientMockRecorder {
35 return m.recorder
36 }
37
38
39 func (m *MockClient) ExecuteCommand(ctx context.Context, command []string, podName, containerName string, show bool, stdoutWriter, stderrWriter *io.PipeWriter) ([]string, []string, error) {
40 m.ctrl.T.Helper()
41 ret := m.ctrl.Call(m, "ExecuteCommand", ctx, command, podName, containerName, show, stdoutWriter, stderrWriter)
42 ret0, _ := ret[0].([]string)
43 ret1, _ := ret[1].([]string)
44 ret2, _ := ret[2].(error)
45 return ret0, ret1, ret2
46 }
47
48
49 func (mr *MockClientMockRecorder) ExecuteCommand(ctx, command, podName, containerName, show, stdoutWriter, stderrWriter interface{}) *gomock.Call {
50 mr.mock.ctrl.T.Helper()
51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteCommand", reflect.TypeOf((*MockClient)(nil).ExecuteCommand), ctx, command, podName, containerName, show, stdoutWriter, stderrWriter)
52 }
53
View as plain text