Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockPowerVS
- func (m *MockPowerVS) CreateCosImage(body *models.CreateCosImageImportJob) (*models.JobReference, error)
- func (m *MockPowerVS) CreateDHCPServer(arg0 *models.DHCPServerCreate) (*models.DHCPServer, error)
- func (m *MockPowerVS) CreateInstance(body *models.PVMInstanceCreate) (*models.PVMInstanceList, error)
- func (m *MockPowerVS) DeleteDHCPServer(id string) error
- func (m *MockPowerVS) DeleteImage(id string) error
- func (m *MockPowerVS) DeleteInstance(id string) error
- func (m *MockPowerVS) DeleteJob(id string) error
- func (m *MockPowerVS) EXPECT() *MockPowerVSMockRecorder
- func (m *MockPowerVS) GetAllDHCPServers() (models.DHCPServers, error)
- func (m *MockPowerVS) GetAllImage() (*models.Images, error)
- func (m *MockPowerVS) GetAllInstance() (*models.PVMInstances, error)
- func (m *MockPowerVS) GetAllNetwork() (*models.Networks, error)
- func (m *MockPowerVS) GetCosImages(id string) (*models.Job, error)
- func (m *MockPowerVS) GetDHCPServer(id string) (*models.DHCPServerDetail, error)
- func (m *MockPowerVS) GetDatacenterCapabilities(zone string) (map[string]bool, error)
- func (m *MockPowerVS) GetImage(id string) (*models.Image, error)
- func (m *MockPowerVS) GetInstance(id string) (*models.PVMInstance, error)
- func (m *MockPowerVS) GetJob(id string) (*models.Job, error)
- func (m *MockPowerVS) GetNetworkByID(id string) (*models.Network, error)
- func (m *MockPowerVS) GetNetworkByName(networkName string) (*models.NetworkReference, error)
- func (m *MockPowerVS) WithClients(options powervs.ServiceOptions) *powervs.Service
- type MockPowerVSMockRecorder
- func (mr *MockPowerVSMockRecorder) CreateCosImage(body any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) CreateDHCPServer(arg0 any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) CreateInstance(body any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) DeleteDHCPServer(id any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) DeleteImage(id any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) DeleteInstance(id any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) DeleteJob(id any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) GetAllDHCPServers() *gomock.Call
- func (mr *MockPowerVSMockRecorder) GetAllImage() *gomock.Call
- func (mr *MockPowerVSMockRecorder) GetAllInstance() *gomock.Call
- func (mr *MockPowerVSMockRecorder) GetAllNetwork() *gomock.Call
- func (mr *MockPowerVSMockRecorder) GetCosImages(id any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) GetDHCPServer(id any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) GetDatacenterCapabilities(zone any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) GetImage(id any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) GetInstance(id any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) GetJob(id any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) GetNetworkByID(id any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) GetNetworkByName(networkName any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) WithClients(options any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPowerVS ¶
type MockPowerVS struct {
// contains filtered or unexported fields
}
MockPowerVS is a mock of PowerVS interface.
func NewMockPowerVS ¶
func NewMockPowerVS(ctrl *gomock.Controller) *MockPowerVS
NewMockPowerVS creates a new mock instance.
func (*MockPowerVS) CreateCosImage ¶
func (m *MockPowerVS) CreateCosImage(body *models.CreateCosImageImportJob) (*models.JobReference, error)
CreateCosImage mocks base method.
func (*MockPowerVS) CreateDHCPServer ¶ added in v0.8.0
func (m *MockPowerVS) CreateDHCPServer(arg0 *models.DHCPServerCreate) (*models.DHCPServer, error)
CreateDHCPServer mocks base method.
func (*MockPowerVS) CreateInstance ¶
func (m *MockPowerVS) CreateInstance(body *models.PVMInstanceCreate) (*models.PVMInstanceList, error)
CreateInstance mocks base method.
func (*MockPowerVS) DeleteDHCPServer ¶ added in v0.8.0
func (m *MockPowerVS) DeleteDHCPServer(id string) error
DeleteDHCPServer mocks base method.
func (*MockPowerVS) DeleteImage ¶
func (m *MockPowerVS) DeleteImage(id string) error
DeleteImage mocks base method.
func (*MockPowerVS) DeleteInstance ¶
func (m *MockPowerVS) DeleteInstance(id string) error
DeleteInstance mocks base method.
func (*MockPowerVS) DeleteJob ¶
func (m *MockPowerVS) DeleteJob(id string) error
DeleteJob mocks base method.
func (*MockPowerVS) EXPECT ¶
func (m *MockPowerVS) EXPECT() *MockPowerVSMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPowerVS) GetAllDHCPServers ¶ added in v0.2.4
func (m *MockPowerVS) GetAllDHCPServers() (models.DHCPServers, error)
GetAllDHCPServers mocks base method.
func (*MockPowerVS) GetAllImage ¶
func (m *MockPowerVS) GetAllImage() (*models.Images, error)
GetAllImage mocks base method.
func (*MockPowerVS) GetAllInstance ¶
func (m *MockPowerVS) GetAllInstance() (*models.PVMInstances, error)
GetAllInstance mocks base method.
func (*MockPowerVS) GetAllNetwork ¶
func (m *MockPowerVS) GetAllNetwork() (*models.Networks, error)
GetAllNetwork mocks base method.
func (*MockPowerVS) GetCosImages ¶
func (m *MockPowerVS) GetCosImages(id string) (*models.Job, error)
GetCosImages mocks base method.
func (*MockPowerVS) GetDHCPServer ¶ added in v0.2.4
func (m *MockPowerVS) GetDHCPServer(id string) (*models.DHCPServerDetail, error)
GetDHCPServer mocks base method.
func (*MockPowerVS) GetDatacenterCapabilities ¶ added in v0.8.0
func (m *MockPowerVS) GetDatacenterCapabilities(zone string) (map[string]bool, error)
GetDatacenterCapabilities mocks base method.
func (*MockPowerVS) GetImage ¶
func (m *MockPowerVS) GetImage(id string) (*models.Image, error)
GetImage mocks base method.
func (*MockPowerVS) GetInstance ¶
func (m *MockPowerVS) GetInstance(id string) (*models.PVMInstance, error)
GetInstance mocks base method.
func (*MockPowerVS) GetJob ¶
func (m *MockPowerVS) GetJob(id string) (*models.Job, error)
GetJob mocks base method.
func (*MockPowerVS) GetNetworkByID ¶ added in v0.8.0
func (m *MockPowerVS) GetNetworkByID(id string) (*models.Network, error)
GetNetworkByID mocks base method.
func (*MockPowerVS) GetNetworkByName ¶ added in v0.8.0
func (m *MockPowerVS) GetNetworkByName(networkName string) (*models.NetworkReference, error)
GetNetworkByName mocks base method.
func (*MockPowerVS) WithClients ¶ added in v0.8.0
func (m *MockPowerVS) WithClients(options powervs.ServiceOptions) *powervs.Service
WithClients mocks base method.
type MockPowerVSMockRecorder ¶
type MockPowerVSMockRecorder struct {
// contains filtered or unexported fields
}
MockPowerVSMockRecorder is the mock recorder for MockPowerVS.
func (*MockPowerVSMockRecorder) CreateCosImage ¶
func (mr *MockPowerVSMockRecorder) CreateCosImage(body any) *gomock.Call
CreateCosImage indicates an expected call of CreateCosImage.
func (*MockPowerVSMockRecorder) CreateDHCPServer ¶ added in v0.8.0
func (mr *MockPowerVSMockRecorder) CreateDHCPServer(arg0 any) *gomock.Call
CreateDHCPServer indicates an expected call of CreateDHCPServer.
func (*MockPowerVSMockRecorder) CreateInstance ¶
func (mr *MockPowerVSMockRecorder) CreateInstance(body any) *gomock.Call
CreateInstance indicates an expected call of CreateInstance.
func (*MockPowerVSMockRecorder) DeleteDHCPServer ¶ added in v0.8.0
func (mr *MockPowerVSMockRecorder) DeleteDHCPServer(id any) *gomock.Call
DeleteDHCPServer indicates an expected call of DeleteDHCPServer.
func (*MockPowerVSMockRecorder) DeleteImage ¶
func (mr *MockPowerVSMockRecorder) DeleteImage(id any) *gomock.Call
DeleteImage indicates an expected call of DeleteImage.
func (*MockPowerVSMockRecorder) DeleteInstance ¶
func (mr *MockPowerVSMockRecorder) DeleteInstance(id any) *gomock.Call
DeleteInstance indicates an expected call of DeleteInstance.
func (*MockPowerVSMockRecorder) DeleteJob ¶
func (mr *MockPowerVSMockRecorder) DeleteJob(id any) *gomock.Call
DeleteJob indicates an expected call of DeleteJob.
func (*MockPowerVSMockRecorder) GetAllDHCPServers ¶ added in v0.2.4
func (mr *MockPowerVSMockRecorder) GetAllDHCPServers() *gomock.Call
GetAllDHCPServers indicates an expected call of GetAllDHCPServers.
func (*MockPowerVSMockRecorder) GetAllImage ¶
func (mr *MockPowerVSMockRecorder) GetAllImage() *gomock.Call
GetAllImage indicates an expected call of GetAllImage.
func (*MockPowerVSMockRecorder) GetAllInstance ¶
func (mr *MockPowerVSMockRecorder) GetAllInstance() *gomock.Call
GetAllInstance indicates an expected call of GetAllInstance.
func (*MockPowerVSMockRecorder) GetAllNetwork ¶
func (mr *MockPowerVSMockRecorder) GetAllNetwork() *gomock.Call
GetAllNetwork indicates an expected call of GetAllNetwork.
func (*MockPowerVSMockRecorder) GetCosImages ¶
func (mr *MockPowerVSMockRecorder) GetCosImages(id any) *gomock.Call
GetCosImages indicates an expected call of GetCosImages.
func (*MockPowerVSMockRecorder) GetDHCPServer ¶ added in v0.2.4
func (mr *MockPowerVSMockRecorder) GetDHCPServer(id any) *gomock.Call
GetDHCPServer indicates an expected call of GetDHCPServer.
func (*MockPowerVSMockRecorder) GetDatacenterCapabilities ¶ added in v0.8.0
func (mr *MockPowerVSMockRecorder) GetDatacenterCapabilities(zone any) *gomock.Call
GetDatacenterCapabilities indicates an expected call of GetDatacenterCapabilities.
func (*MockPowerVSMockRecorder) GetImage ¶
func (mr *MockPowerVSMockRecorder) GetImage(id any) *gomock.Call
GetImage indicates an expected call of GetImage.
func (*MockPowerVSMockRecorder) GetInstance ¶
func (mr *MockPowerVSMockRecorder) GetInstance(id any) *gomock.Call
GetInstance indicates an expected call of GetInstance.
func (*MockPowerVSMockRecorder) GetJob ¶
func (mr *MockPowerVSMockRecorder) GetJob(id any) *gomock.Call
GetJob indicates an expected call of GetJob.
func (*MockPowerVSMockRecorder) GetNetworkByID ¶ added in v0.8.0
func (mr *MockPowerVSMockRecorder) GetNetworkByID(id any) *gomock.Call
GetNetworkByID indicates an expected call of GetNetworkByID.
func (*MockPowerVSMockRecorder) GetNetworkByName ¶ added in v0.8.0
func (mr *MockPowerVSMockRecorder) GetNetworkByName(networkName any) *gomock.Call
GetNetworkByName indicates an expected call of GetNetworkByName.
func (*MockPowerVSMockRecorder) WithClients ¶ added in v0.8.0
func (mr *MockPowerVSMockRecorder) WithClients(options any) *gomock.Call
WithClients indicates an expected call of WithClients.