Documentation ¶
Overview ¶
Copyright The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Code generated by MockGen. DO NOT EDIT. Source: ./powervs.go
Generated by this command:
mockgen -source=./powervs.go -destination=./mock/powervs_generated.go -package=mock
Package mock is a generated GoMock package.
Index ¶
- type MockPowerVS
- func (m *MockPowerVS) CreateCosImage(body *models.CreateCosImageImportJob) (*models.JobReference, error)
- func (m *MockPowerVS) CreateInstance(body *models.PVMInstanceCreate) (*models.PVMInstanceList, 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) GetImage(id string) (*models.Image, error)
- func (m *MockPowerVS) GetInstance(id string) (*models.PVMInstance, error)
- func (m *MockPowerVS) GetJob(id string) (*models.Job, error)
- type MockPowerVSMockRecorder
- func (mr *MockPowerVSMockRecorder) CreateCosImage(body any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) CreateInstance(body 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) GetImage(id any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) GetInstance(id any) *gomock.Call
- func (mr *MockPowerVSMockRecorder) GetJob(id 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) CreateInstance ¶
func (m *MockPowerVS) CreateInstance(body *models.PVMInstanceCreate) (*models.PVMInstanceList, error)
CreateInstance 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) 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.
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) CreateInstance ¶
func (mr *MockPowerVSMockRecorder) CreateInstance(body any) *gomock.Call
CreateInstance indicates an expected call of CreateInstance.
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) 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.