Path: blob/main/components/ws-daemon-api/go/mock/mock.go
2500 views
// Copyright (c) 2024 Gitpod GmbH. All rights reserved.1// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34// Code generated by MockGen. DO NOT EDIT.5// Source: github.com/gitpod-io/gitpod/ws-daemon/api (interfaces: WorkspaceContentServiceClient,WorkspaceContentServiceServer,InWorkspaceServiceClient)67// Package mock is a generated GoMock package.8package mock910import (11context "context"12reflect "reflect"1314api "github.com/gitpod-io/gitpod/ws-daemon/api"15gomock "github.com/golang/mock/gomock"16grpc "google.golang.org/grpc"17)1819// MockWorkspaceContentServiceClient is a mock of WorkspaceContentServiceClient interface.20type MockWorkspaceContentServiceClient struct {21ctrl *gomock.Controller22recorder *MockWorkspaceContentServiceClientMockRecorder23}2425// MockWorkspaceContentServiceClientMockRecorder is the mock recorder for MockWorkspaceContentServiceClient.26type MockWorkspaceContentServiceClientMockRecorder struct {27mock *MockWorkspaceContentServiceClient28}2930// NewMockWorkspaceContentServiceClient creates a new mock instance.31func NewMockWorkspaceContentServiceClient(ctrl *gomock.Controller) *MockWorkspaceContentServiceClient {32mock := &MockWorkspaceContentServiceClient{ctrl: ctrl}33mock.recorder = &MockWorkspaceContentServiceClientMockRecorder{mock}34return mock35}3637// EXPECT returns an object that allows the caller to indicate expected use.38func (m *MockWorkspaceContentServiceClient) EXPECT() *MockWorkspaceContentServiceClientMockRecorder {39return m.recorder40}4142// BackupWorkspace mocks base method.43func (m *MockWorkspaceContentServiceClient) BackupWorkspace(arg0 context.Context, arg1 *api.BackupWorkspaceRequest, arg2 ...grpc.CallOption) (*api.BackupWorkspaceResponse, error) {44m.ctrl.T.Helper()45varargs := []interface{}{arg0, arg1}46for _, a := range arg2 {47varargs = append(varargs, a)48}49ret := m.ctrl.Call(m, "BackupWorkspace", varargs...)50ret0, _ := ret[0].(*api.BackupWorkspaceResponse)51ret1, _ := ret[1].(error)52return ret0, ret153}5455// BackupWorkspace indicates an expected call of BackupWorkspace.56func (mr *MockWorkspaceContentServiceClientMockRecorder) BackupWorkspace(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {57mr.mock.ctrl.T.Helper()58varargs := append([]interface{}{arg0, arg1}, arg2...)59return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BackupWorkspace", reflect.TypeOf((*MockWorkspaceContentServiceClient)(nil).BackupWorkspace), varargs...)60}6162// DisposeWorkspace mocks base method.63func (m *MockWorkspaceContentServiceClient) DisposeWorkspace(arg0 context.Context, arg1 *api.DisposeWorkspaceRequest, arg2 ...grpc.CallOption) (*api.DisposeWorkspaceResponse, error) {64m.ctrl.T.Helper()65varargs := []interface{}{arg0, arg1}66for _, a := range arg2 {67varargs = append(varargs, a)68}69ret := m.ctrl.Call(m, "DisposeWorkspace", varargs...)70ret0, _ := ret[0].(*api.DisposeWorkspaceResponse)71ret1, _ := ret[1].(error)72return ret0, ret173}7475// DisposeWorkspace indicates an expected call of DisposeWorkspace.76func (mr *MockWorkspaceContentServiceClientMockRecorder) DisposeWorkspace(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {77mr.mock.ctrl.T.Helper()78varargs := append([]interface{}{arg0, arg1}, arg2...)79return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisposeWorkspace", reflect.TypeOf((*MockWorkspaceContentServiceClient)(nil).DisposeWorkspace), varargs...)80}8182// InitWorkspace mocks base method.83func (m *MockWorkspaceContentServiceClient) InitWorkspace(arg0 context.Context, arg1 *api.InitWorkspaceRequest, arg2 ...grpc.CallOption) (*api.InitWorkspaceResponse, error) {84m.ctrl.T.Helper()85varargs := []interface{}{arg0, arg1}86for _, a := range arg2 {87varargs = append(varargs, a)88}89ret := m.ctrl.Call(m, "InitWorkspace", varargs...)90ret0, _ := ret[0].(*api.InitWorkspaceResponse)91ret1, _ := ret[1].(error)92return ret0, ret193}9495// InitWorkspace indicates an expected call of InitWorkspace.96func (mr *MockWorkspaceContentServiceClientMockRecorder) InitWorkspace(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {97mr.mock.ctrl.T.Helper()98varargs := append([]interface{}{arg0, arg1}, arg2...)99return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitWorkspace", reflect.TypeOf((*MockWorkspaceContentServiceClient)(nil).InitWorkspace), varargs...)100}101102// IsWorkspaceExists mocks base method.103func (m *MockWorkspaceContentServiceClient) IsWorkspaceExists(arg0 context.Context, arg1 *api.IsWorkspaceExistsRequest, arg2 ...grpc.CallOption) (*api.IsWorkspaceExistsResponse, error) {104m.ctrl.T.Helper()105varargs := []interface{}{arg0, arg1}106for _, a := range arg2 {107varargs = append(varargs, a)108}109ret := m.ctrl.Call(m, "IsWorkspaceExists", varargs...)110ret0, _ := ret[0].(*api.IsWorkspaceExistsResponse)111ret1, _ := ret[1].(error)112return ret0, ret1113}114115// IsWorkspaceExists indicates an expected call of IsWorkspaceExists.116func (mr *MockWorkspaceContentServiceClientMockRecorder) IsWorkspaceExists(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {117mr.mock.ctrl.T.Helper()118varargs := append([]interface{}{arg0, arg1}, arg2...)119return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsWorkspaceExists", reflect.TypeOf((*MockWorkspaceContentServiceClient)(nil).IsWorkspaceExists), varargs...)120}121122// TakeSnapshot mocks base method.123func (m *MockWorkspaceContentServiceClient) TakeSnapshot(arg0 context.Context, arg1 *api.TakeSnapshotRequest, arg2 ...grpc.CallOption) (*api.TakeSnapshotResponse, error) {124m.ctrl.T.Helper()125varargs := []interface{}{arg0, arg1}126for _, a := range arg2 {127varargs = append(varargs, a)128}129ret := m.ctrl.Call(m, "TakeSnapshot", varargs...)130ret0, _ := ret[0].(*api.TakeSnapshotResponse)131ret1, _ := ret[1].(error)132return ret0, ret1133}134135// TakeSnapshot indicates an expected call of TakeSnapshot.136func (mr *MockWorkspaceContentServiceClientMockRecorder) TakeSnapshot(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {137mr.mock.ctrl.T.Helper()138varargs := append([]interface{}{arg0, arg1}, arg2...)139return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TakeSnapshot", reflect.TypeOf((*MockWorkspaceContentServiceClient)(nil).TakeSnapshot), varargs...)140}141142// WaitForInit mocks base method.143func (m *MockWorkspaceContentServiceClient) WaitForInit(arg0 context.Context, arg1 *api.WaitForInitRequest, arg2 ...grpc.CallOption) (*api.WaitForInitResponse, error) {144m.ctrl.T.Helper()145varargs := []interface{}{arg0, arg1}146for _, a := range arg2 {147varargs = append(varargs, a)148}149ret := m.ctrl.Call(m, "WaitForInit", varargs...)150ret0, _ := ret[0].(*api.WaitForInitResponse)151ret1, _ := ret[1].(error)152return ret0, ret1153}154155// WaitForInit indicates an expected call of WaitForInit.156func (mr *MockWorkspaceContentServiceClientMockRecorder) WaitForInit(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {157mr.mock.ctrl.T.Helper()158varargs := append([]interface{}{arg0, arg1}, arg2...)159return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForInit", reflect.TypeOf((*MockWorkspaceContentServiceClient)(nil).WaitForInit), varargs...)160}161162// MockWorkspaceContentServiceServer is a mock of WorkspaceContentServiceServer interface.163type MockWorkspaceContentServiceServer struct {164ctrl *gomock.Controller165recorder *MockWorkspaceContentServiceServerMockRecorder166api.UnimplementedWorkspaceContentServiceServer167}168169// MockWorkspaceContentServiceServerMockRecorder is the mock recorder for MockWorkspaceContentServiceServer.170type MockWorkspaceContentServiceServerMockRecorder struct {171mock *MockWorkspaceContentServiceServer172}173174// NewMockWorkspaceContentServiceServer creates a new mock instance.175func NewMockWorkspaceContentServiceServer(ctrl *gomock.Controller) *MockWorkspaceContentServiceServer {176mock := &MockWorkspaceContentServiceServer{ctrl: ctrl}177mock.recorder = &MockWorkspaceContentServiceServerMockRecorder{mock}178return mock179}180181// EXPECT returns an object that allows the caller to indicate expected use.182func (m *MockWorkspaceContentServiceServer) EXPECT() *MockWorkspaceContentServiceServerMockRecorder {183return m.recorder184}185186// BackupWorkspace mocks base method.187func (m *MockWorkspaceContentServiceServer) BackupWorkspace(arg0 context.Context, arg1 *api.BackupWorkspaceRequest) (*api.BackupWorkspaceResponse, error) {188m.ctrl.T.Helper()189ret := m.ctrl.Call(m, "BackupWorkspace", arg0, arg1)190ret0, _ := ret[0].(*api.BackupWorkspaceResponse)191ret1, _ := ret[1].(error)192return ret0, ret1193}194195// BackupWorkspace indicates an expected call of BackupWorkspace.196func (mr *MockWorkspaceContentServiceServerMockRecorder) BackupWorkspace(arg0, arg1 interface{}) *gomock.Call {197mr.mock.ctrl.T.Helper()198return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BackupWorkspace", reflect.TypeOf((*MockWorkspaceContentServiceServer)(nil).BackupWorkspace), arg0, arg1)199}200201// DisposeWorkspace mocks base method.202func (m *MockWorkspaceContentServiceServer) DisposeWorkspace(arg0 context.Context, arg1 *api.DisposeWorkspaceRequest) (*api.DisposeWorkspaceResponse, error) {203m.ctrl.T.Helper()204ret := m.ctrl.Call(m, "DisposeWorkspace", arg0, arg1)205ret0, _ := ret[0].(*api.DisposeWorkspaceResponse)206ret1, _ := ret[1].(error)207return ret0, ret1208}209210// DisposeWorkspace indicates an expected call of DisposeWorkspace.211func (mr *MockWorkspaceContentServiceServerMockRecorder) DisposeWorkspace(arg0, arg1 interface{}) *gomock.Call {212mr.mock.ctrl.T.Helper()213return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisposeWorkspace", reflect.TypeOf((*MockWorkspaceContentServiceServer)(nil).DisposeWorkspace), arg0, arg1)214}215216// InitWorkspace mocks base method.217func (m *MockWorkspaceContentServiceServer) InitWorkspace(arg0 context.Context, arg1 *api.InitWorkspaceRequest) (*api.InitWorkspaceResponse, error) {218m.ctrl.T.Helper()219ret := m.ctrl.Call(m, "InitWorkspace", arg0, arg1)220ret0, _ := ret[0].(*api.InitWorkspaceResponse)221ret1, _ := ret[1].(error)222return ret0, ret1223}224225// InitWorkspace indicates an expected call of InitWorkspace.226func (mr *MockWorkspaceContentServiceServerMockRecorder) InitWorkspace(arg0, arg1 interface{}) *gomock.Call {227mr.mock.ctrl.T.Helper()228return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitWorkspace", reflect.TypeOf((*MockWorkspaceContentServiceServer)(nil).InitWorkspace), arg0, arg1)229}230231// IsWorkspaceExists mocks base method.232func (m *MockWorkspaceContentServiceServer) IsWorkspaceExists(arg0 context.Context, arg1 *api.IsWorkspaceExistsRequest) (*api.IsWorkspaceExistsResponse, error) {233m.ctrl.T.Helper()234ret := m.ctrl.Call(m, "IsWorkspaceExists", arg0, arg1)235ret0, _ := ret[0].(*api.IsWorkspaceExistsResponse)236ret1, _ := ret[1].(error)237return ret0, ret1238}239240// IsWorkspaceExists indicates an expected call of IsWorkspaceExists.241func (mr *MockWorkspaceContentServiceServerMockRecorder) IsWorkspaceExists(arg0, arg1 interface{}) *gomock.Call {242mr.mock.ctrl.T.Helper()243return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsWorkspaceExists", reflect.TypeOf((*MockWorkspaceContentServiceServer)(nil).IsWorkspaceExists), arg0, arg1)244}245246// TakeSnapshot mocks base method.247func (m *MockWorkspaceContentServiceServer) TakeSnapshot(arg0 context.Context, arg1 *api.TakeSnapshotRequest) (*api.TakeSnapshotResponse, error) {248m.ctrl.T.Helper()249ret := m.ctrl.Call(m, "TakeSnapshot", arg0, arg1)250ret0, _ := ret[0].(*api.TakeSnapshotResponse)251ret1, _ := ret[1].(error)252return ret0, ret1253}254255// TakeSnapshot indicates an expected call of TakeSnapshot.256func (mr *MockWorkspaceContentServiceServerMockRecorder) TakeSnapshot(arg0, arg1 interface{}) *gomock.Call {257mr.mock.ctrl.T.Helper()258return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TakeSnapshot", reflect.TypeOf((*MockWorkspaceContentServiceServer)(nil).TakeSnapshot), arg0, arg1)259}260261// WaitForInit mocks base method.262func (m *MockWorkspaceContentServiceServer) WaitForInit(arg0 context.Context, arg1 *api.WaitForInitRequest) (*api.WaitForInitResponse, error) {263m.ctrl.T.Helper()264ret := m.ctrl.Call(m, "WaitForInit", arg0, arg1)265ret0, _ := ret[0].(*api.WaitForInitResponse)266ret1, _ := ret[1].(error)267return ret0, ret1268}269270// WaitForInit indicates an expected call of WaitForInit.271func (mr *MockWorkspaceContentServiceServerMockRecorder) WaitForInit(arg0, arg1 interface{}) *gomock.Call {272mr.mock.ctrl.T.Helper()273return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForInit", reflect.TypeOf((*MockWorkspaceContentServiceServer)(nil).WaitForInit), arg0, arg1)274}275276// mustEmbedUnimplementedWorkspaceContentServiceServer mocks base method.277func (m *MockWorkspaceContentServiceServer) mustEmbedUnimplementedWorkspaceContentServiceServer() {278m.ctrl.T.Helper()279m.ctrl.Call(m, "mustEmbedUnimplementedWorkspaceContentServiceServer")280}281282// mustEmbedUnimplementedWorkspaceContentServiceServer indicates an expected call of mustEmbedUnimplementedWorkspaceContentServiceServer.283func (mr *MockWorkspaceContentServiceServerMockRecorder) mustEmbedUnimplementedWorkspaceContentServiceServer() *gomock.Call {284mr.mock.ctrl.T.Helper()285return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "mustEmbedUnimplementedWorkspaceContentServiceServer", reflect.TypeOf((*MockWorkspaceContentServiceServer)(nil).mustEmbedUnimplementedWorkspaceContentServiceServer))286}287288// MockInWorkspaceServiceClient is a mock of InWorkspaceServiceClient interface.289type MockInWorkspaceServiceClient struct {290ctrl *gomock.Controller291recorder *MockInWorkspaceServiceClientMockRecorder292}293294// MockInWorkspaceServiceClientMockRecorder is the mock recorder for MockInWorkspaceServiceClient.295type MockInWorkspaceServiceClientMockRecorder struct {296mock *MockInWorkspaceServiceClient297}298299// NewMockInWorkspaceServiceClient creates a new mock instance.300func NewMockInWorkspaceServiceClient(ctrl *gomock.Controller) *MockInWorkspaceServiceClient {301mock := &MockInWorkspaceServiceClient{ctrl: ctrl}302mock.recorder = &MockInWorkspaceServiceClientMockRecorder{mock}303return mock304}305306// EXPECT returns an object that allows the caller to indicate expected use.307func (m *MockInWorkspaceServiceClient) EXPECT() *MockInWorkspaceServiceClientMockRecorder {308return m.recorder309}310311// EvacuateCGroup mocks base method.312func (m *MockInWorkspaceServiceClient) EvacuateCGroup(arg0 context.Context, arg1 *api.EvacuateCGroupRequest, arg2 ...grpc.CallOption) (*api.EvacuateCGroupResponse, error) {313m.ctrl.T.Helper()314varargs := []interface{}{arg0, arg1}315for _, a := range arg2 {316varargs = append(varargs, a)317}318ret := m.ctrl.Call(m, "EvacuateCGroup", varargs...)319ret0, _ := ret[0].(*api.EvacuateCGroupResponse)320ret1, _ := ret[1].(error)321return ret0, ret1322}323324// EvacuateCGroup indicates an expected call of EvacuateCGroup.325func (mr *MockInWorkspaceServiceClientMockRecorder) EvacuateCGroup(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {326mr.mock.ctrl.T.Helper()327varargs := append([]interface{}{arg0, arg1}, arg2...)328return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EvacuateCGroup", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).EvacuateCGroup), varargs...)329}330331// MountNfs mocks base method.332func (m *MockInWorkspaceServiceClient) MountNfs(arg0 context.Context, arg1 *api.MountNfsRequest, arg2 ...grpc.CallOption) (*api.MountNfsResponse, error) {333m.ctrl.T.Helper()334varargs := []interface{}{arg0, arg1}335for _, a := range arg2 {336varargs = append(varargs, a)337}338ret := m.ctrl.Call(m, "MountNfs", varargs...)339ret0, _ := ret[0].(*api.MountNfsResponse)340ret1, _ := ret[1].(error)341return ret0, ret1342}343344// MountNfs indicates an expected call of MountNfs.345func (mr *MockInWorkspaceServiceClientMockRecorder) MountNfs(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {346mr.mock.ctrl.T.Helper()347varargs := append([]interface{}{arg0, arg1}, arg2...)348return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MountNfs", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).MountNfs), varargs...)349}350351// MountProc mocks base method.352func (m *MockInWorkspaceServiceClient) MountProc(arg0 context.Context, arg1 *api.MountProcRequest, arg2 ...grpc.CallOption) (*api.MountProcResponse, error) {353m.ctrl.T.Helper()354varargs := []interface{}{arg0, arg1}355for _, a := range arg2 {356varargs = append(varargs, a)357}358ret := m.ctrl.Call(m, "MountProc", varargs...)359ret0, _ := ret[0].(*api.MountProcResponse)360ret1, _ := ret[1].(error)361return ret0, ret1362}363364// MountProc indicates an expected call of MountProc.365func (mr *MockInWorkspaceServiceClientMockRecorder) MountProc(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {366mr.mock.ctrl.T.Helper()367varargs := append([]interface{}{arg0, arg1}, arg2...)368return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MountProc", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).MountProc), varargs...)369}370371// MountSysfs mocks base method.372func (m *MockInWorkspaceServiceClient) MountSysfs(arg0 context.Context, arg1 *api.MountProcRequest, arg2 ...grpc.CallOption) (*api.MountProcResponse, error) {373m.ctrl.T.Helper()374varargs := []interface{}{arg0, arg1}375for _, a := range arg2 {376varargs = append(varargs, a)377}378ret := m.ctrl.Call(m, "MountSysfs", varargs...)379ret0, _ := ret[0].(*api.MountProcResponse)380ret1, _ := ret[1].(error)381return ret0, ret1382}383384// MountSysfs indicates an expected call of MountSysfs.385func (mr *MockInWorkspaceServiceClientMockRecorder) MountSysfs(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {386mr.mock.ctrl.T.Helper()387varargs := append([]interface{}{arg0, arg1}, arg2...)388return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MountSysfs", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).MountSysfs), varargs...)389}390391// PrepareForUserNS mocks base method.392func (m *MockInWorkspaceServiceClient) PrepareForUserNS(arg0 context.Context, arg1 *api.PrepareForUserNSRequest, arg2 ...grpc.CallOption) (*api.PrepareForUserNSResponse, error) {393m.ctrl.T.Helper()394varargs := []interface{}{arg0, arg1}395for _, a := range arg2 {396varargs = append(varargs, a)397}398ret := m.ctrl.Call(m, "PrepareForUserNS", varargs...)399ret0, _ := ret[0].(*api.PrepareForUserNSResponse)400ret1, _ := ret[1].(error)401return ret0, ret1402}403404// PrepareForUserNS indicates an expected call of PrepareForUserNS.405func (mr *MockInWorkspaceServiceClientMockRecorder) PrepareForUserNS(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {406mr.mock.ctrl.T.Helper()407varargs := append([]interface{}{arg0, arg1}, arg2...)408return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrepareForUserNS", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).PrepareForUserNS), varargs...)409}410411// SetupPairVeths mocks base method.412func (m *MockInWorkspaceServiceClient) SetupPairVeths(arg0 context.Context, arg1 *api.SetupPairVethsRequest, arg2 ...grpc.CallOption) (*api.SetupPairVethsResponse, error) {413m.ctrl.T.Helper()414varargs := []interface{}{arg0, arg1}415for _, a := range arg2 {416varargs = append(varargs, a)417}418ret := m.ctrl.Call(m, "SetupPairVeths", varargs...)419ret0, _ := ret[0].(*api.SetupPairVethsResponse)420ret1, _ := ret[1].(error)421return ret0, ret1422}423424// SetupPairVeths indicates an expected call of SetupPairVeths.425func (mr *MockInWorkspaceServiceClientMockRecorder) SetupPairVeths(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {426mr.mock.ctrl.T.Helper()427varargs := append([]interface{}{arg0, arg1}, arg2...)428return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetupPairVeths", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).SetupPairVeths), varargs...)429}430431// Teardown mocks base method.432func (m *MockInWorkspaceServiceClient) Teardown(arg0 context.Context, arg1 *api.TeardownRequest, arg2 ...grpc.CallOption) (*api.TeardownResponse, error) {433m.ctrl.T.Helper()434varargs := []interface{}{arg0, arg1}435for _, a := range arg2 {436varargs = append(varargs, a)437}438ret := m.ctrl.Call(m, "Teardown", varargs...)439ret0, _ := ret[0].(*api.TeardownResponse)440ret1, _ := ret[1].(error)441return ret0, ret1442}443444// Teardown indicates an expected call of Teardown.445func (mr *MockInWorkspaceServiceClientMockRecorder) Teardown(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {446mr.mock.ctrl.T.Helper()447varargs := append([]interface{}{arg0, arg1}, arg2...)448return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Teardown", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).Teardown), varargs...)449}450451// UmountNfs mocks base method.452func (m *MockInWorkspaceServiceClient) UmountNfs(arg0 context.Context, arg1 *api.UmountNfsRequest, arg2 ...grpc.CallOption) (*api.UmountNfsResponse, error) {453m.ctrl.T.Helper()454varargs := []interface{}{arg0, arg1}455for _, a := range arg2 {456varargs = append(varargs, a)457}458ret := m.ctrl.Call(m, "UmountNfs", varargs...)459ret0, _ := ret[0].(*api.UmountNfsResponse)460ret1, _ := ret[1].(error)461return ret0, ret1462}463464// UmountNfs indicates an expected call of UmountNfs.465func (mr *MockInWorkspaceServiceClientMockRecorder) UmountNfs(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {466mr.mock.ctrl.T.Helper()467varargs := append([]interface{}{arg0, arg1}, arg2...)468return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UmountNfs", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).UmountNfs), varargs...)469}470471// UmountProc mocks base method.472func (m *MockInWorkspaceServiceClient) UmountProc(arg0 context.Context, arg1 *api.UmountProcRequest, arg2 ...grpc.CallOption) (*api.UmountProcResponse, error) {473m.ctrl.T.Helper()474varargs := []interface{}{arg0, arg1}475for _, a := range arg2 {476varargs = append(varargs, a)477}478ret := m.ctrl.Call(m, "UmountProc", varargs...)479ret0, _ := ret[0].(*api.UmountProcResponse)480ret1, _ := ret[1].(error)481return ret0, ret1482}483484// UmountProc indicates an expected call of UmountProc.485func (mr *MockInWorkspaceServiceClientMockRecorder) UmountProc(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {486mr.mock.ctrl.T.Helper()487varargs := append([]interface{}{arg0, arg1}, arg2...)488return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UmountProc", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).UmountProc), varargs...)489}490491// UmountSysfs mocks base method.492func (m *MockInWorkspaceServiceClient) UmountSysfs(arg0 context.Context, arg1 *api.UmountProcRequest, arg2 ...grpc.CallOption) (*api.UmountProcResponse, error) {493m.ctrl.T.Helper()494varargs := []interface{}{arg0, arg1}495for _, a := range arg2 {496varargs = append(varargs, a)497}498ret := m.ctrl.Call(m, "UmountSysfs", varargs...)499ret0, _ := ret[0].(*api.UmountProcResponse)500ret1, _ := ret[1].(error)501return ret0, ret1502}503504// UmountSysfs indicates an expected call of UmountSysfs.505func (mr *MockInWorkspaceServiceClientMockRecorder) UmountSysfs(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {506mr.mock.ctrl.T.Helper()507varargs := append([]interface{}{arg0, arg1}, arg2...)508return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UmountSysfs", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).UmountSysfs), varargs...)509}510511// WipingTeardown mocks base method.512func (m *MockInWorkspaceServiceClient) WipingTeardown(arg0 context.Context, arg1 *api.WipingTeardownRequest, arg2 ...grpc.CallOption) (*api.WipingTeardownResponse, error) {513m.ctrl.T.Helper()514varargs := []interface{}{arg0, arg1}515for _, a := range arg2 {516varargs = append(varargs, a)517}518ret := m.ctrl.Call(m, "WipingTeardown", varargs...)519ret0, _ := ret[0].(*api.WipingTeardownResponse)520ret1, _ := ret[1].(error)521return ret0, ret1522}523524// WipingTeardown indicates an expected call of WipingTeardown.525func (mr *MockInWorkspaceServiceClientMockRecorder) WipingTeardown(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {526mr.mock.ctrl.T.Helper()527varargs := append([]interface{}{arg0, arg1}, arg2...)528return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WipingTeardown", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).WipingTeardown), varargs...)529}530531// WorkspaceInfo mocks base method.532func (m *MockInWorkspaceServiceClient) WorkspaceInfo(arg0 context.Context, arg1 *api.WorkspaceInfoRequest, arg2 ...grpc.CallOption) (*api.WorkspaceInfoResponse, error) {533m.ctrl.T.Helper()534varargs := []interface{}{arg0, arg1}535for _, a := range arg2 {536varargs = append(varargs, a)537}538ret := m.ctrl.Call(m, "WorkspaceInfo", varargs...)539ret0, _ := ret[0].(*api.WorkspaceInfoResponse)540ret1, _ := ret[1].(error)541return ret0, ret1542}543544// WorkspaceInfo indicates an expected call of WorkspaceInfo.545func (mr *MockInWorkspaceServiceClientMockRecorder) WorkspaceInfo(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {546mr.mock.ctrl.T.Helper()547varargs := append([]interface{}{arg0, arg1}, arg2...)548return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkspaceInfo", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).WorkspaceInfo), varargs...)549}550551// WriteIDMapping mocks base method.552func (m *MockInWorkspaceServiceClient) WriteIDMapping(arg0 context.Context, arg1 *api.WriteIDMappingRequest, arg2 ...grpc.CallOption) (*api.WriteIDMappingResponse, error) {553m.ctrl.T.Helper()554varargs := []interface{}{arg0, arg1}555for _, a := range arg2 {556varargs = append(varargs, a)557}558ret := m.ctrl.Call(m, "WriteIDMapping", varargs...)559ret0, _ := ret[0].(*api.WriteIDMappingResponse)560ret1, _ := ret[1].(error)561return ret0, ret1562}563564// WriteIDMapping indicates an expected call of WriteIDMapping.565func (mr *MockInWorkspaceServiceClientMockRecorder) WriteIDMapping(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {566mr.mock.ctrl.T.Helper()567varargs := append([]interface{}{arg0, arg1}, arg2...)568return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteIDMapping", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).WriteIDMapping), varargs...)569}570571572