github.com/openshift/installer@v1.4.17/pkg/destroy/vsphere/mock/vsphereclient_generated.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: ./client.go
     3  
     4  // Package mock is a generated GoMock package.
     5  package mock
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	mo "github.com/vmware/govmomi/vim25/mo"
    13  )
    14  
    15  // MockAPI is a mock of API interface.
    16  type MockAPI struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockAPIMockRecorder
    19  }
    20  
    21  // MockAPIMockRecorder is the mock recorder for MockAPI.
    22  type MockAPIMockRecorder struct {
    23  	mock *MockAPI
    24  }
    25  
    26  // NewMockAPI creates a new mock instance.
    27  func NewMockAPI(ctrl *gomock.Controller) *MockAPI {
    28  	mock := &MockAPI{ctrl: ctrl}
    29  	mock.recorder = &MockAPIMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockAPI) EXPECT() *MockAPIMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // DeleteFolder mocks base method.
    39  func (m *MockAPI) DeleteFolder(ctx context.Context, f mo.Folder) error {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "DeleteFolder", ctx, f)
    42  	ret0, _ := ret[0].(error)
    43  	return ret0
    44  }
    45  
    46  // DeleteFolder indicates an expected call of DeleteFolder.
    47  func (mr *MockAPIMockRecorder) DeleteFolder(ctx, f interface{}) *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFolder", reflect.TypeOf((*MockAPI)(nil).DeleteFolder), ctx, f)
    50  }
    51  
    52  // DeleteStoragePolicy mocks base method.
    53  func (m *MockAPI) DeleteStoragePolicy(ctx context.Context, policyName string) error {
    54  	m.ctrl.T.Helper()
    55  	ret := m.ctrl.Call(m, "DeleteStoragePolicy", ctx, policyName)
    56  	ret0, _ := ret[0].(error)
    57  	return ret0
    58  }
    59  
    60  // DeleteStoragePolicy indicates an expected call of DeleteStoragePolicy.
    61  func (mr *MockAPIMockRecorder) DeleteStoragePolicy(ctx, policyName interface{}) *gomock.Call {
    62  	mr.mock.ctrl.T.Helper()
    63  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStoragePolicy", reflect.TypeOf((*MockAPI)(nil).DeleteStoragePolicy), ctx, policyName)
    64  }
    65  
    66  // DeleteTag mocks base method.
    67  func (m *MockAPI) DeleteTag(ctx context.Context, id string) error {
    68  	m.ctrl.T.Helper()
    69  	ret := m.ctrl.Call(m, "DeleteTag", ctx, id)
    70  	ret0, _ := ret[0].(error)
    71  	return ret0
    72  }
    73  
    74  // DeleteTag indicates an expected call of DeleteTag.
    75  func (mr *MockAPIMockRecorder) DeleteTag(ctx, id interface{}) *gomock.Call {
    76  	mr.mock.ctrl.T.Helper()
    77  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTag", reflect.TypeOf((*MockAPI)(nil).DeleteTag), ctx, id)
    78  }
    79  
    80  // DeleteTagCategory mocks base method.
    81  func (m *MockAPI) DeleteTagCategory(ctx context.Context, id string) error {
    82  	m.ctrl.T.Helper()
    83  	ret := m.ctrl.Call(m, "DeleteTagCategory", ctx, id)
    84  	ret0, _ := ret[0].(error)
    85  	return ret0
    86  }
    87  
    88  // DeleteTagCategory indicates an expected call of DeleteTagCategory.
    89  func (mr *MockAPIMockRecorder) DeleteTagCategory(ctx, id interface{}) *gomock.Call {
    90  	mr.mock.ctrl.T.Helper()
    91  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTagCategory", reflect.TypeOf((*MockAPI)(nil).DeleteTagCategory), ctx, id)
    92  }
    93  
    94  // DeleteVirtualMachine mocks base method.
    95  func (m *MockAPI) DeleteVirtualMachine(ctx context.Context, vmMO mo.VirtualMachine) error {
    96  	m.ctrl.T.Helper()
    97  	ret := m.ctrl.Call(m, "DeleteVirtualMachine", ctx, vmMO)
    98  	ret0, _ := ret[0].(error)
    99  	return ret0
   100  }
   101  
   102  // DeleteVirtualMachine indicates an expected call of DeleteVirtualMachine.
   103  func (mr *MockAPIMockRecorder) DeleteVirtualMachine(ctx, vmMO interface{}) *gomock.Call {
   104  	mr.mock.ctrl.T.Helper()
   105  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVirtualMachine", reflect.TypeOf((*MockAPI)(nil).DeleteVirtualMachine), ctx, vmMO)
   106  }
   107  
   108  // ListFolders mocks base method.
   109  func (m *MockAPI) ListFolders(ctx context.Context, tagID string) ([]mo.Folder, error) {
   110  	m.ctrl.T.Helper()
   111  	ret := m.ctrl.Call(m, "ListFolders", ctx, tagID)
   112  	ret0, _ := ret[0].([]mo.Folder)
   113  	ret1, _ := ret[1].(error)
   114  	return ret0, ret1
   115  }
   116  
   117  // ListFolders indicates an expected call of ListFolders.
   118  func (mr *MockAPIMockRecorder) ListFolders(ctx, tagID interface{}) *gomock.Call {
   119  	mr.mock.ctrl.T.Helper()
   120  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFolders", reflect.TypeOf((*MockAPI)(nil).ListFolders), ctx, tagID)
   121  }
   122  
   123  // ListVirtualMachines mocks base method.
   124  func (m *MockAPI) ListVirtualMachines(ctx context.Context, tagID string) ([]mo.VirtualMachine, error) {
   125  	m.ctrl.T.Helper()
   126  	ret := m.ctrl.Call(m, "ListVirtualMachines", ctx, tagID)
   127  	ret0, _ := ret[0].([]mo.VirtualMachine)
   128  	ret1, _ := ret[1].(error)
   129  	return ret0, ret1
   130  }
   131  
   132  // ListVirtualMachines indicates an expected call of ListVirtualMachines.
   133  func (mr *MockAPIMockRecorder) ListVirtualMachines(ctx, tagID interface{}) *gomock.Call {
   134  	mr.mock.ctrl.T.Helper()
   135  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualMachines", reflect.TypeOf((*MockAPI)(nil).ListVirtualMachines), ctx, tagID)
   136  }
   137  
   138  // Logout mocks base method.
   139  func (m *MockAPI) Logout() {
   140  	m.ctrl.T.Helper()
   141  	m.ctrl.Call(m, "Logout")
   142  }
   143  
   144  // Logout indicates an expected call of Logout.
   145  func (mr *MockAPIMockRecorder) Logout() *gomock.Call {
   146  	mr.mock.ctrl.T.Helper()
   147  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Logout", reflect.TypeOf((*MockAPI)(nil).Logout))
   148  }
   149  
   150  // StopVirtualMachine mocks base method.
   151  func (m *MockAPI) StopVirtualMachine(ctx context.Context, vmMO mo.VirtualMachine) error {
   152  	m.ctrl.T.Helper()
   153  	ret := m.ctrl.Call(m, "StopVirtualMachine", ctx, vmMO)
   154  	ret0, _ := ret[0].(error)
   155  	return ret0
   156  }
   157  
   158  // StopVirtualMachine indicates an expected call of StopVirtualMachine.
   159  func (mr *MockAPIMockRecorder) StopVirtualMachine(ctx, vmMO interface{}) *gomock.Call {
   160  	mr.mock.ctrl.T.Helper()
   161  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopVirtualMachine", reflect.TypeOf((*MockAPI)(nil).StopVirtualMachine), ctx, vmMO)
   162  }