Documentation ¶
Overview ¶
Package mock_client is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetAccountID() (string, error)
- func (m *MockClient) GetCustomImageByName(imageName, resourceGroupID string) (string, error)
- func (m *MockClient) GetDedicatedHostByName(dedicatedHostName, resourceGroupID, zoneName string) (string, error)
- func (m *MockClient) GetResourceGroupIDByName(resourceGroupName string) (string, error)
- func (m *MockClient) GetSecurityGroupsByName(securityGroupNames []string, resourceGroupID, vpcID string) ([]vpcv1.SecurityGroupIdentityIntf, error)
- func (m *MockClient) GetSubnetIDbyName(subnetName, resourceGroupID string) (string, error)
- func (m *MockClient) GetVPCIDByName(vpcName, resourceGroupID string) (string, error)
- func (m *MockClient) InstanceCreate(machineName string, machineProviderConfig *v1.IBMCloudMachineProviderSpec, ...) (*vpcv1.Instance, error)
- func (m *MockClient) InstanceDeleteByName(name string, machineProviderConfig *v1.IBMCloudMachineProviderSpec) error
- func (m *MockClient) InstanceExistsByName(name string, machineProviderConfig *v1.IBMCloudMachineProviderSpec) (bool, error)
- func (m *MockClient) InstanceGetByID(instanceID string) (*vpcv1.Instance, error)
- func (m *MockClient) InstanceGetByName(name string, machineProviderConfig *v1.IBMCloudMachineProviderSpec) (*vpcv1.Instance, error)
- func (m *MockClient) InstanceGetProfile(profileName string) (bool, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) GetAccountID() *gomock.Call
- func (mr *MockClientMockRecorder) GetCustomImageByName(imageName, resourceGroupID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetDedicatedHostByName(dedicatedHostName, resourceGroupID, zoneName interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetResourceGroupIDByName(resourceGroupName interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetSecurityGroupsByName(securityGroupNames, resourceGroupID, vpcID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetSubnetIDbyName(subnetName, resourceGroupID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetVPCIDByName(vpcName, resourceGroupID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InstanceCreate(machineName, machineProviderConfig, userData interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InstanceDeleteByName(name, machineProviderConfig interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InstanceExistsByName(name, machineProviderConfig interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InstanceGetByID(instanceID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InstanceGetByName(name, machineProviderConfig interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InstanceGetProfile(profileName interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetAccountID ¶
func (m *MockClient) GetAccountID() (string, error)
GetAccountID mocks base method.
func (*MockClient) GetCustomImageByName ¶
func (m *MockClient) GetCustomImageByName(imageName, resourceGroupID string) (string, error)
GetCustomImageByName mocks base method.
func (*MockClient) GetDedicatedHostByName ¶
func (m *MockClient) GetDedicatedHostByName(dedicatedHostName, resourceGroupID, zoneName string) (string, error)
GetDedicatedHostByName mocks base method.
func (*MockClient) GetResourceGroupIDByName ¶
func (m *MockClient) GetResourceGroupIDByName(resourceGroupName string) (string, error)
GetResourceGroupIDByName mocks base method.
func (*MockClient) GetSecurityGroupsByName ¶
func (m *MockClient) GetSecurityGroupsByName(securityGroupNames []string, resourceGroupID, vpcID string) ([]vpcv1.SecurityGroupIdentityIntf, error)
GetSecurityGroupsByName mocks base method.
func (*MockClient) GetSubnetIDbyName ¶
func (m *MockClient) GetSubnetIDbyName(subnetName, resourceGroupID string) (string, error)
GetSubnetIDbyName mocks base method.
func (*MockClient) GetVPCIDByName ¶
func (m *MockClient) GetVPCIDByName(vpcName, resourceGroupID string) (string, error)
GetVPCIDByName mocks base method.
func (*MockClient) InstanceCreate ¶
func (m *MockClient) InstanceCreate(machineName string, machineProviderConfig *v1.IBMCloudMachineProviderSpec, userData string) (*vpcv1.Instance, error)
InstanceCreate mocks base method.
func (*MockClient) InstanceDeleteByName ¶
func (m *MockClient) InstanceDeleteByName(name string, machineProviderConfig *v1.IBMCloudMachineProviderSpec) error
InstanceDeleteByName mocks base method.
func (*MockClient) InstanceExistsByName ¶
func (m *MockClient) InstanceExistsByName(name string, machineProviderConfig *v1.IBMCloudMachineProviderSpec) (bool, error)
InstanceExistsByName mocks base method.
func (*MockClient) InstanceGetByID ¶
func (m *MockClient) InstanceGetByID(instanceID string) (*vpcv1.Instance, error)
InstanceGetByID mocks base method.
func (*MockClient) InstanceGetByName ¶
func (m *MockClient) InstanceGetByName(name string, machineProviderConfig *v1.IBMCloudMachineProviderSpec) (*vpcv1.Instance, error)
InstanceGetByName mocks base method.
func (*MockClient) InstanceGetProfile ¶
func (m *MockClient) InstanceGetProfile(profileName string) (bool, error)
InstanceGetProfile mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) GetAccountID ¶
func (mr *MockClientMockRecorder) GetAccountID() *gomock.Call
GetAccountID indicates an expected call of GetAccountID.
func (*MockClientMockRecorder) GetCustomImageByName ¶
func (mr *MockClientMockRecorder) GetCustomImageByName(imageName, resourceGroupID interface{}) *gomock.Call
GetCustomImageByName indicates an expected call of GetCustomImageByName.
func (*MockClientMockRecorder) GetDedicatedHostByName ¶
func (mr *MockClientMockRecorder) GetDedicatedHostByName(dedicatedHostName, resourceGroupID, zoneName interface{}) *gomock.Call
GetDedicatedHostByName indicates an expected call of GetDedicatedHostByName.
func (*MockClientMockRecorder) GetResourceGroupIDByName ¶
func (mr *MockClientMockRecorder) GetResourceGroupIDByName(resourceGroupName interface{}) *gomock.Call
GetResourceGroupIDByName indicates an expected call of GetResourceGroupIDByName.
func (*MockClientMockRecorder) GetSecurityGroupsByName ¶
func (mr *MockClientMockRecorder) GetSecurityGroupsByName(securityGroupNames, resourceGroupID, vpcID interface{}) *gomock.Call
GetSecurityGroupsByName indicates an expected call of GetSecurityGroupsByName.
func (*MockClientMockRecorder) GetSubnetIDbyName ¶
func (mr *MockClientMockRecorder) GetSubnetIDbyName(subnetName, resourceGroupID interface{}) *gomock.Call
GetSubnetIDbyName indicates an expected call of GetSubnetIDbyName.
func (*MockClientMockRecorder) GetVPCIDByName ¶
func (mr *MockClientMockRecorder) GetVPCIDByName(vpcName, resourceGroupID interface{}) *gomock.Call
GetVPCIDByName indicates an expected call of GetVPCIDByName.
func (*MockClientMockRecorder) InstanceCreate ¶
func (mr *MockClientMockRecorder) InstanceCreate(machineName, machineProviderConfig, userData interface{}) *gomock.Call
InstanceCreate indicates an expected call of InstanceCreate.
func (*MockClientMockRecorder) InstanceDeleteByName ¶
func (mr *MockClientMockRecorder) InstanceDeleteByName(name, machineProviderConfig interface{}) *gomock.Call
InstanceDeleteByName indicates an expected call of InstanceDeleteByName.
func (*MockClientMockRecorder) InstanceExistsByName ¶
func (mr *MockClientMockRecorder) InstanceExistsByName(name, machineProviderConfig interface{}) *gomock.Call
InstanceExistsByName indicates an expected call of InstanceExistsByName.
func (*MockClientMockRecorder) InstanceGetByID ¶
func (mr *MockClientMockRecorder) InstanceGetByID(instanceID interface{}) *gomock.Call
InstanceGetByID indicates an expected call of InstanceGetByID.
func (*MockClientMockRecorder) InstanceGetByName ¶
func (mr *MockClientMockRecorder) InstanceGetByName(name, machineProviderConfig interface{}) *gomock.Call
InstanceGetByName indicates an expected call of InstanceGetByName.
func (*MockClientMockRecorder) InstanceGetProfile ¶
func (mr *MockClientMockRecorder) InstanceGetProfile(profileName interface{}) *gomock.Call
InstanceGetProfile indicates an expected call of InstanceGetProfile.