github.com/k8snetworkplumbingwg/sriov-network-operator@v1.2.1-0.20240408194816-2d2e5a45d453/pkg/platforms/openstack/mock/mock_openstack.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: openstack.go
     3  
     4  // Package mock_openstack is a generated GoMock package.
     5  package mock_openstack
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  	v1 "github.com/k8snetworkplumbingwg/sriov-network-operator/api/v1"
    12  )
    13  
    14  // MockOpenstackInterface is a mock of OpenstackInterface interface.
    15  type MockOpenstackInterface struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockOpenstackInterfaceMockRecorder
    18  }
    19  
    20  // MockOpenstackInterfaceMockRecorder is the mock recorder for MockOpenstackInterface.
    21  type MockOpenstackInterfaceMockRecorder struct {
    22  	mock *MockOpenstackInterface
    23  }
    24  
    25  // NewMockOpenstackInterface creates a new mock instance.
    26  func NewMockOpenstackInterface(ctrl *gomock.Controller) *MockOpenstackInterface {
    27  	mock := &MockOpenstackInterface{ctrl: ctrl}
    28  	mock.recorder = &MockOpenstackInterfaceMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use.
    33  func (m *MockOpenstackInterface) EXPECT() *MockOpenstackInterfaceMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // CreateOpenstackDevicesInfo mocks base method.
    38  func (m *MockOpenstackInterface) CreateOpenstackDevicesInfo() error {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "CreateOpenstackDevicesInfo")
    41  	ret0, _ := ret[0].(error)
    42  	return ret0
    43  }
    44  
    45  // CreateOpenstackDevicesInfo indicates an expected call of CreateOpenstackDevicesInfo.
    46  func (mr *MockOpenstackInterfaceMockRecorder) CreateOpenstackDevicesInfo() *gomock.Call {
    47  	mr.mock.ctrl.T.Helper()
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOpenstackDevicesInfo", reflect.TypeOf((*MockOpenstackInterface)(nil).CreateOpenstackDevicesInfo))
    49  }
    50  
    51  // CreateOpenstackDevicesInfoFromNodeStatus mocks base method.
    52  func (m *MockOpenstackInterface) CreateOpenstackDevicesInfoFromNodeStatus(arg0 *v1.SriovNetworkNodeState) {
    53  	m.ctrl.T.Helper()
    54  	m.ctrl.Call(m, "CreateOpenstackDevicesInfoFromNodeStatus", arg0)
    55  }
    56  
    57  // CreateOpenstackDevicesInfoFromNodeStatus indicates an expected call of CreateOpenstackDevicesInfoFromNodeStatus.
    58  func (mr *MockOpenstackInterfaceMockRecorder) CreateOpenstackDevicesInfoFromNodeStatus(arg0 interface{}) *gomock.Call {
    59  	mr.mock.ctrl.T.Helper()
    60  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOpenstackDevicesInfoFromNodeStatus", reflect.TypeOf((*MockOpenstackInterface)(nil).CreateOpenstackDevicesInfoFromNodeStatus), arg0)
    61  }
    62  
    63  // DiscoverSriovDevicesVirtual mocks base method.
    64  func (m *MockOpenstackInterface) DiscoverSriovDevicesVirtual() ([]v1.InterfaceExt, error) {
    65  	m.ctrl.T.Helper()
    66  	ret := m.ctrl.Call(m, "DiscoverSriovDevicesVirtual")
    67  	ret0, _ := ret[0].([]v1.InterfaceExt)
    68  	ret1, _ := ret[1].(error)
    69  	return ret0, ret1
    70  }
    71  
    72  // DiscoverSriovDevicesVirtual indicates an expected call of DiscoverSriovDevicesVirtual.
    73  func (mr *MockOpenstackInterfaceMockRecorder) DiscoverSriovDevicesVirtual() *gomock.Call {
    74  	mr.mock.ctrl.T.Helper()
    75  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscoverSriovDevicesVirtual", reflect.TypeOf((*MockOpenstackInterface)(nil).DiscoverSriovDevicesVirtual))
    76  }