github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/provider/oci/testing/mocks_compute.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/provider/oci/common (interfaces: OCIComputeClient)
     3  
     4  // Package testing is a generated GoMock package.
     5  package testing
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	core "github.com/oracle/oci-go-sdk/core"
    13  )
    14  
    15  // MockOCIComputeClient is a mock of OCIComputeClient interface
    16  type MockOCIComputeClient struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockOCIComputeClientMockRecorder
    19  }
    20  
    21  // MockOCIComputeClientMockRecorder is the mock recorder for MockOCIComputeClient
    22  type MockOCIComputeClientMockRecorder struct {
    23  	mock *MockOCIComputeClient
    24  }
    25  
    26  // NewMockOCIComputeClient creates a new mock instance
    27  func NewMockOCIComputeClient(ctrl *gomock.Controller) *MockOCIComputeClient {
    28  	mock := &MockOCIComputeClient{ctrl: ctrl}
    29  	mock.recorder = &MockOCIComputeClientMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use
    34  func (m *MockOCIComputeClient) EXPECT() *MockOCIComputeClientMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // AttachVolume mocks base method
    39  func (m *MockOCIComputeClient) AttachVolume(arg0 context.Context, arg1 core.AttachVolumeRequest) (core.AttachVolumeResponse, error) {
    40  	ret := m.ctrl.Call(m, "AttachVolume", arg0, arg1)
    41  	ret0, _ := ret[0].(core.AttachVolumeResponse)
    42  	ret1, _ := ret[1].(error)
    43  	return ret0, ret1
    44  }
    45  
    46  // AttachVolume indicates an expected call of AttachVolume
    47  func (mr *MockOCIComputeClientMockRecorder) AttachVolume(arg0, arg1 interface{}) *gomock.Call {
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachVolume", reflect.TypeOf((*MockOCIComputeClient)(nil).AttachVolume), arg0, arg1)
    49  }
    50  
    51  // DetachVolume mocks base method
    52  func (m *MockOCIComputeClient) DetachVolume(arg0 context.Context, arg1 core.DetachVolumeRequest) (core.DetachVolumeResponse, error) {
    53  	ret := m.ctrl.Call(m, "DetachVolume", arg0, arg1)
    54  	ret0, _ := ret[0].(core.DetachVolumeResponse)
    55  	ret1, _ := ret[1].(error)
    56  	return ret0, ret1
    57  }
    58  
    59  // DetachVolume indicates an expected call of DetachVolume
    60  func (mr *MockOCIComputeClientMockRecorder) DetachVolume(arg0, arg1 interface{}) *gomock.Call {
    61  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachVolume", reflect.TypeOf((*MockOCIComputeClient)(nil).DetachVolume), arg0, arg1)
    62  }
    63  
    64  // GetInstance mocks base method
    65  func (m *MockOCIComputeClient) GetInstance(arg0 context.Context, arg1 core.GetInstanceRequest) (core.GetInstanceResponse, error) {
    66  	ret := m.ctrl.Call(m, "GetInstance", arg0, arg1)
    67  	ret0, _ := ret[0].(core.GetInstanceResponse)
    68  	ret1, _ := ret[1].(error)
    69  	return ret0, ret1
    70  }
    71  
    72  // GetInstance indicates an expected call of GetInstance
    73  func (mr *MockOCIComputeClientMockRecorder) GetInstance(arg0, arg1 interface{}) *gomock.Call {
    74  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstance", reflect.TypeOf((*MockOCIComputeClient)(nil).GetInstance), arg0, arg1)
    75  }
    76  
    77  // GetVolumeAttachment mocks base method
    78  func (m *MockOCIComputeClient) GetVolumeAttachment(arg0 context.Context, arg1 core.GetVolumeAttachmentRequest) (core.GetVolumeAttachmentResponse, error) {
    79  	ret := m.ctrl.Call(m, "GetVolumeAttachment", arg0, arg1)
    80  	ret0, _ := ret[0].(core.GetVolumeAttachmentResponse)
    81  	ret1, _ := ret[1].(error)
    82  	return ret0, ret1
    83  }
    84  
    85  // GetVolumeAttachment indicates an expected call of GetVolumeAttachment
    86  func (mr *MockOCIComputeClientMockRecorder) GetVolumeAttachment(arg0, arg1 interface{}) *gomock.Call {
    87  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVolumeAttachment", reflect.TypeOf((*MockOCIComputeClient)(nil).GetVolumeAttachment), arg0, arg1)
    88  }
    89  
    90  // LaunchInstance mocks base method
    91  func (m *MockOCIComputeClient) LaunchInstance(arg0 context.Context, arg1 core.LaunchInstanceRequest) (core.LaunchInstanceResponse, error) {
    92  	ret := m.ctrl.Call(m, "LaunchInstance", arg0, arg1)
    93  	ret0, _ := ret[0].(core.LaunchInstanceResponse)
    94  	ret1, _ := ret[1].(error)
    95  	return ret0, ret1
    96  }
    97  
    98  // LaunchInstance indicates an expected call of LaunchInstance
    99  func (mr *MockOCIComputeClientMockRecorder) LaunchInstance(arg0, arg1 interface{}) *gomock.Call {
   100  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LaunchInstance", reflect.TypeOf((*MockOCIComputeClient)(nil).LaunchInstance), arg0, arg1)
   101  }
   102  
   103  // ListImages mocks base method
   104  func (m *MockOCIComputeClient) ListImages(arg0 context.Context, arg1 core.ListImagesRequest) (core.ListImagesResponse, error) {
   105  	ret := m.ctrl.Call(m, "ListImages", arg0, arg1)
   106  	ret0, _ := ret[0].(core.ListImagesResponse)
   107  	ret1, _ := ret[1].(error)
   108  	return ret0, ret1
   109  }
   110  
   111  // ListImages indicates an expected call of ListImages
   112  func (mr *MockOCIComputeClientMockRecorder) ListImages(arg0, arg1 interface{}) *gomock.Call {
   113  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImages", reflect.TypeOf((*MockOCIComputeClient)(nil).ListImages), arg0, arg1)
   114  }
   115  
   116  // ListInstances mocks base method
   117  func (m *MockOCIComputeClient) ListInstances(arg0 context.Context, arg1 core.ListInstancesRequest) (core.ListInstancesResponse, error) {
   118  	ret := m.ctrl.Call(m, "ListInstances", arg0, arg1)
   119  	ret0, _ := ret[0].(core.ListInstancesResponse)
   120  	ret1, _ := ret[1].(error)
   121  	return ret0, ret1
   122  }
   123  
   124  // ListInstances indicates an expected call of ListInstances
   125  func (mr *MockOCIComputeClientMockRecorder) ListInstances(arg0, arg1 interface{}) *gomock.Call {
   126  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstances", reflect.TypeOf((*MockOCIComputeClient)(nil).ListInstances), arg0, arg1)
   127  }
   128  
   129  // ListShapes mocks base method
   130  func (m *MockOCIComputeClient) ListShapes(arg0 context.Context, arg1 core.ListShapesRequest) (core.ListShapesResponse, error) {
   131  	ret := m.ctrl.Call(m, "ListShapes", arg0, arg1)
   132  	ret0, _ := ret[0].(core.ListShapesResponse)
   133  	ret1, _ := ret[1].(error)
   134  	return ret0, ret1
   135  }
   136  
   137  // ListShapes indicates an expected call of ListShapes
   138  func (mr *MockOCIComputeClientMockRecorder) ListShapes(arg0, arg1 interface{}) *gomock.Call {
   139  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListShapes", reflect.TypeOf((*MockOCIComputeClient)(nil).ListShapes), arg0, arg1)
   140  }
   141  
   142  // ListVnicAttachments mocks base method
   143  func (m *MockOCIComputeClient) ListVnicAttachments(arg0 context.Context, arg1 core.ListVnicAttachmentsRequest) (core.ListVnicAttachmentsResponse, error) {
   144  	ret := m.ctrl.Call(m, "ListVnicAttachments", arg0, arg1)
   145  	ret0, _ := ret[0].(core.ListVnicAttachmentsResponse)
   146  	ret1, _ := ret[1].(error)
   147  	return ret0, ret1
   148  }
   149  
   150  // ListVnicAttachments indicates an expected call of ListVnicAttachments
   151  func (mr *MockOCIComputeClientMockRecorder) ListVnicAttachments(arg0, arg1 interface{}) *gomock.Call {
   152  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVnicAttachments", reflect.TypeOf((*MockOCIComputeClient)(nil).ListVnicAttachments), arg0, arg1)
   153  }
   154  
   155  // ListVolumeAttachments mocks base method
   156  func (m *MockOCIComputeClient) ListVolumeAttachments(arg0 context.Context, arg1 core.ListVolumeAttachmentsRequest) (core.ListVolumeAttachmentsResponse, error) {
   157  	ret := m.ctrl.Call(m, "ListVolumeAttachments", arg0, arg1)
   158  	ret0, _ := ret[0].(core.ListVolumeAttachmentsResponse)
   159  	ret1, _ := ret[1].(error)
   160  	return ret0, ret1
   161  }
   162  
   163  // ListVolumeAttachments indicates an expected call of ListVolumeAttachments
   164  func (mr *MockOCIComputeClientMockRecorder) ListVolumeAttachments(arg0, arg1 interface{}) *gomock.Call {
   165  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVolumeAttachments", reflect.TypeOf((*MockOCIComputeClient)(nil).ListVolumeAttachments), arg0, arg1)
   166  }
   167  
   168  // TerminateInstance mocks base method
   169  func (m *MockOCIComputeClient) TerminateInstance(arg0 context.Context, arg1 core.TerminateInstanceRequest) (core.TerminateInstanceResponse, error) {
   170  	ret := m.ctrl.Call(m, "TerminateInstance", arg0, arg1)
   171  	ret0, _ := ret[0].(core.TerminateInstanceResponse)
   172  	ret1, _ := ret[1].(error)
   173  	return ret0, ret1
   174  }
   175  
   176  // TerminateInstance indicates an expected call of TerminateInstance
   177  func (mr *MockOCIComputeClientMockRecorder) TerminateInstance(arg0, arg1 interface{}) *gomock.Call {
   178  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TerminateInstance", reflect.TypeOf((*MockOCIComputeClient)(nil).TerminateInstance), arg0, arg1)
   179  }