github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/worker/caasoperator/mocks/exec_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/caas/kubernetes/provider/exec (interfaces: Executor) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package mocks -destination mocks/exec_mock.go github.com/juju/juju/caas/kubernetes/provider/exec Executor 7 // 8 9 // Package mocks is a generated GoMock package. 10 package mocks 11 12 import ( 13 reflect "reflect" 14 15 exec "github.com/juju/juju/caas/kubernetes/provider/exec" 16 gomock "go.uber.org/mock/gomock" 17 kubernetes "k8s.io/client-go/kubernetes" 18 ) 19 20 // MockExecutor is a mock of Executor interface. 21 type MockExecutor struct { 22 ctrl *gomock.Controller 23 recorder *MockExecutorMockRecorder 24 } 25 26 // MockExecutorMockRecorder is the mock recorder for MockExecutor. 27 type MockExecutorMockRecorder struct { 28 mock *MockExecutor 29 } 30 31 // NewMockExecutor creates a new mock instance. 32 func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor { 33 mock := &MockExecutor{ctrl: ctrl} 34 mock.recorder = &MockExecutorMockRecorder{mock} 35 return mock 36 } 37 38 // EXPECT returns an object that allows the caller to indicate expected use. 39 func (m *MockExecutor) EXPECT() *MockExecutorMockRecorder { 40 return m.recorder 41 } 42 43 // Copy mocks base method. 44 func (m *MockExecutor) Copy(arg0 exec.CopyParams, arg1 <-chan struct{}) error { 45 m.ctrl.T.Helper() 46 ret := m.ctrl.Call(m, "Copy", arg0, arg1) 47 ret0, _ := ret[0].(error) 48 return ret0 49 } 50 51 // Copy indicates an expected call of Copy. 52 func (mr *MockExecutorMockRecorder) Copy(arg0, arg1 any) *gomock.Call { 53 mr.mock.ctrl.T.Helper() 54 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Copy", reflect.TypeOf((*MockExecutor)(nil).Copy), arg0, arg1) 55 } 56 57 // Exec mocks base method. 58 func (m *MockExecutor) Exec(arg0 exec.ExecParams, arg1 <-chan struct{}) error { 59 m.ctrl.T.Helper() 60 ret := m.ctrl.Call(m, "Exec", arg0, arg1) 61 ret0, _ := ret[0].(error) 62 return ret0 63 } 64 65 // Exec indicates an expected call of Exec. 66 func (mr *MockExecutorMockRecorder) Exec(arg0, arg1 any) *gomock.Call { 67 mr.mock.ctrl.T.Helper() 68 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exec", reflect.TypeOf((*MockExecutor)(nil).Exec), arg0, arg1) 69 } 70 71 // NameSpace mocks base method. 72 func (m *MockExecutor) NameSpace() string { 73 m.ctrl.T.Helper() 74 ret := m.ctrl.Call(m, "NameSpace") 75 ret0, _ := ret[0].(string) 76 return ret0 77 } 78 79 // NameSpace indicates an expected call of NameSpace. 80 func (mr *MockExecutorMockRecorder) NameSpace() *gomock.Call { 81 mr.mock.ctrl.T.Helper() 82 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NameSpace", reflect.TypeOf((*MockExecutor)(nil).NameSpace)) 83 } 84 85 // RawClient mocks base method. 86 func (m *MockExecutor) RawClient() kubernetes.Interface { 87 m.ctrl.T.Helper() 88 ret := m.ctrl.Call(m, "RawClient") 89 ret0, _ := ret[0].(kubernetes.Interface) 90 return ret0 91 } 92 93 // RawClient indicates an expected call of RawClient. 94 func (mr *MockExecutorMockRecorder) RawClient() *gomock.Call { 95 mr.mock.ctrl.T.Helper() 96 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RawClient", reflect.TypeOf((*MockExecutor)(nil).RawClient)) 97 } 98 99 // Status mocks base method. 100 func (m *MockExecutor) Status(arg0 exec.StatusParams) (*exec.Status, error) { 101 m.ctrl.T.Helper() 102 ret := m.ctrl.Call(m, "Status", arg0) 103 ret0, _ := ret[0].(*exec.Status) 104 ret1, _ := ret[1].(error) 105 return ret0, ret1 106 } 107 108 // Status indicates an expected call of Status. 109 func (mr *MockExecutorMockRecorder) Status(arg0 any) *gomock.Call { 110 mr.mock.ctrl.T.Helper() 111 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Status", reflect.TypeOf((*MockExecutor)(nil).Status), arg0) 112 }