Documentation ¶
Overview ¶
Package mockvmsets implements the mock client for VMSet.
Index ¶
- type MockVMSet
- func (m *MockVMSet) AttachDisk(isManagedDisk bool, diskName, diskURI string, nodeName types.NodeName, ...) error
- func (m *MockVMSet) DetachDisk(diskName, diskURI string, nodeName types.NodeName) error
- func (m *MockVMSet) EXPECT() *MockVMSetMockRecorder
- func (m *MockVMSet) EnsureBackendPoolDeleted(service *v1.Service, backendPoolID, vmSetName string, ...) error
- func (m *MockVMSet) EnsureHostInPool(service *v1.Service, nodeName types.NodeName, backendPoolID, vmSetName string, ...) (string, string, string, *compute.VirtualMachineScaleSetVM, error)
- func (m *MockVMSet) EnsureHostsInPool(service *v1.Service, nodes []*v1.Node, backendPoolID, vmSetName string, ...) error
- func (m *MockVMSet) GetDataDisks(nodeName types.NodeName, crt cache.AzureCacheReadType) ([]compute.DataDisk, error)
- func (m *MockVMSet) GetIPByNodeName(name string) (string, string, error)
- func (m *MockVMSet) GetInstanceIDByNodeName(name string) (string, error)
- func (m *MockVMSet) GetInstanceTypeByNodeName(name string) (string, error)
- func (m *MockVMSet) GetNodeNameByIPConfigurationID(ipConfigurationID string) (string, string, error)
- func (m *MockVMSet) GetNodeNameByProviderID(providerID string) (types.NodeName, error)
- func (m *MockVMSet) GetPowerStatusByNodeName(name string) (string, error)
- func (m *MockVMSet) GetPrimaryInterface(nodeName string) (network.Interface, error)
- func (m *MockVMSet) GetPrimaryVMSetName() string
- func (m *MockVMSet) GetPrivateIPsByNodeName(name string) ([]string, error)
- func (m *MockVMSet) GetProvisioningStateByNodeName(name string) (string, error)
- func (m *MockVMSet) GetVMSetNames(service *v1.Service, nodes []*v1.Node) (*[]string, error)
- func (m *MockVMSet) GetZoneByNodeName(name string) (cloudprovider.Zone, error)
- type MockVMSetMockRecorder
- func (mr *MockVMSetMockRecorder) AttachDisk(isManagedDisk, diskName, diskURI, nodeName, lun, cachingMode, ... interface{}) *gomock.Call
- func (mr *MockVMSetMockRecorder) DetachDisk(diskName, diskURI, nodeName interface{}) *gomock.Call
- func (mr *MockVMSetMockRecorder) EnsureBackendPoolDeleted(...) *gomock.Call
- func (mr *MockVMSetMockRecorder) EnsureHostInPool(service, nodeName, backendPoolID, vmSetName, isInternal interface{}) *gomock.Call
- func (mr *MockVMSetMockRecorder) EnsureHostsInPool(service, nodes, backendPoolID, vmSetName, isInternal interface{}) *gomock.Call
- func (mr *MockVMSetMockRecorder) GetDataDisks(nodeName, crt interface{}) *gomock.Call
- func (mr *MockVMSetMockRecorder) GetIPByNodeName(name interface{}) *gomock.Call
- func (mr *MockVMSetMockRecorder) GetInstanceIDByNodeName(name interface{}) *gomock.Call
- func (mr *MockVMSetMockRecorder) GetInstanceTypeByNodeName(name interface{}) *gomock.Call
- func (mr *MockVMSetMockRecorder) GetNodeNameByIPConfigurationID(ipConfigurationID interface{}) *gomock.Call
- func (mr *MockVMSetMockRecorder) GetNodeNameByProviderID(providerID interface{}) *gomock.Call
- func (mr *MockVMSetMockRecorder) GetPowerStatusByNodeName(name interface{}) *gomock.Call
- func (mr *MockVMSetMockRecorder) GetPrimaryInterface(nodeName interface{}) *gomock.Call
- func (mr *MockVMSetMockRecorder) GetPrimaryVMSetName() *gomock.Call
- func (mr *MockVMSetMockRecorder) GetPrivateIPsByNodeName(name interface{}) *gomock.Call
- func (mr *MockVMSetMockRecorder) GetProvisioningStateByNodeName(name interface{}) *gomock.Call
- func (mr *MockVMSetMockRecorder) GetVMSetNames(service, nodes interface{}) *gomock.Call
- func (mr *MockVMSetMockRecorder) GetZoneByNodeName(name interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockVMSet ¶
type MockVMSet struct {
// contains filtered or unexported fields
}
MockVMSet is a mock of VMSet interface.
func NewMockVMSet ¶
func NewMockVMSet(ctrl *gomock.Controller) *MockVMSet
NewMockVMSet creates a new mock instance.
func (*MockVMSet) AttachDisk ¶
func (*MockVMSet) DetachDisk ¶
DetachDisk mocks base method.
func (*MockVMSet) EXPECT ¶
func (m *MockVMSet) EXPECT() *MockVMSetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVMSet) EnsureBackendPoolDeleted ¶
func (m *MockVMSet) EnsureBackendPoolDeleted(service *v1.Service, backendPoolID, vmSetName string, backendAddressPools *[]network.BackendAddressPool, deleteFromVMSet bool) error
EnsureBackendPoolDeleted mocks base method
func (*MockVMSet) EnsureHostInPool ¶
func (m *MockVMSet) EnsureHostInPool(service *v1.Service, nodeName types.NodeName, backendPoolID, vmSetName string, isInternal bool) (string, string, string, *compute.VirtualMachineScaleSetVM, error)
EnsureHostInPool mocks base method.
func (*MockVMSet) EnsureHostsInPool ¶
func (m *MockVMSet) EnsureHostsInPool(service *v1.Service, nodes []*v1.Node, backendPoolID, vmSetName string, isInternal bool) error
EnsureHostsInPool mocks base method.
func (*MockVMSet) GetDataDisks ¶
func (m *MockVMSet) GetDataDisks(nodeName types.NodeName, crt cache.AzureCacheReadType) ([]compute.DataDisk, error)
GetDataDisks mocks base method.
func (*MockVMSet) GetIPByNodeName ¶
GetIPByNodeName mocks base method.
func (*MockVMSet) GetInstanceIDByNodeName ¶
GetInstanceIDByNodeName mocks base method.
func (*MockVMSet) GetInstanceTypeByNodeName ¶
GetInstanceTypeByNodeName mocks base method.
func (*MockVMSet) GetNodeNameByIPConfigurationID ¶ added in v0.20.0
func (m *MockVMSet) GetNodeNameByIPConfigurationID(ipConfigurationID string) (string, string, error)
GetNodeNameByIPConfigurationID mocks base method.
func (*MockVMSet) GetNodeNameByProviderID ¶
GetNodeNameByProviderID mocks base method.
func (*MockVMSet) GetPowerStatusByNodeName ¶
GetPowerStatusByNodeName mocks base method.
func (*MockVMSet) GetPrimaryInterface ¶
GetPrimaryInterface mocks base method.
func (*MockVMSet) GetPrimaryVMSetName ¶
GetPrimaryVMSetName mocks base method.
func (*MockVMSet) GetPrivateIPsByNodeName ¶
GetPrivateIPsByNodeName mocks base method.
func (*MockVMSet) GetProvisioningStateByNodeName ¶ added in v0.19.15
GetProvisioningStateByNodeName mocks base method.
func (*MockVMSet) GetVMSetNames ¶
GetVMSetNames mocks base method.
func (*MockVMSet) GetZoneByNodeName ¶
func (m *MockVMSet) GetZoneByNodeName(name string) (cloudprovider.Zone, error)
GetZoneByNodeName mocks base method.
type MockVMSetMockRecorder ¶
type MockVMSetMockRecorder struct {
// contains filtered or unexported fields
}
MockVMSetMockRecorder is the mock recorder for MockVMSet.
func (*MockVMSetMockRecorder) AttachDisk ¶
func (mr *MockVMSetMockRecorder) AttachDisk(isManagedDisk, diskName, diskURI, nodeName, lun, cachingMode, diskEncryptionSetID, writeAcceleratorEnabled interface{}) *gomock.Call
AttachDisk indicates an expected call of AttachDisk.
func (*MockVMSetMockRecorder) DetachDisk ¶
func (mr *MockVMSetMockRecorder) DetachDisk(diskName, diskURI, nodeName interface{}) *gomock.Call
DetachDisk indicates an expected call of DetachDisk.
func (*MockVMSetMockRecorder) EnsureBackendPoolDeleted ¶
func (mr *MockVMSetMockRecorder) EnsureBackendPoolDeleted(service, backendPoolID, vmSetName, backendAddressPools, deleteFromVMSet interface{}) *gomock.Call
EnsureBackendPoolDeleted indicates an expected call of EnsureBackendPoolDeleted.
func (*MockVMSetMockRecorder) EnsureHostInPool ¶
func (mr *MockVMSetMockRecorder) EnsureHostInPool(service, nodeName, backendPoolID, vmSetName, isInternal interface{}) *gomock.Call
EnsureHostInPool indicates an expected call of EnsureHostInPool.
func (*MockVMSetMockRecorder) EnsureHostsInPool ¶
func (mr *MockVMSetMockRecorder) EnsureHostsInPool(service, nodes, backendPoolID, vmSetName, isInternal interface{}) *gomock.Call
EnsureHostsInPool indicates an expected call of EnsureHostsInPool.
func (*MockVMSetMockRecorder) GetDataDisks ¶
func (mr *MockVMSetMockRecorder) GetDataDisks(nodeName, crt interface{}) *gomock.Call
GetDataDisks indicates an expected call of GetDataDisks.
func (*MockVMSetMockRecorder) GetIPByNodeName ¶
func (mr *MockVMSetMockRecorder) GetIPByNodeName(name interface{}) *gomock.Call
GetIPByNodeName indicates an expected call of GetIPByNodeName.
func (*MockVMSetMockRecorder) GetInstanceIDByNodeName ¶
func (mr *MockVMSetMockRecorder) GetInstanceIDByNodeName(name interface{}) *gomock.Call
GetInstanceIDByNodeName indicates an expected call of GetInstanceIDByNodeName.
func (*MockVMSetMockRecorder) GetInstanceTypeByNodeName ¶
func (mr *MockVMSetMockRecorder) GetInstanceTypeByNodeName(name interface{}) *gomock.Call
GetInstanceTypeByNodeName indicates an expected call of GetInstanceTypeByNodeName.
func (*MockVMSetMockRecorder) GetNodeNameByIPConfigurationID ¶ added in v0.20.0
func (mr *MockVMSetMockRecorder) GetNodeNameByIPConfigurationID(ipConfigurationID interface{}) *gomock.Call
GetNodeNameByIPConfigurationID indicates an expected call of GetNodeNameByIPConfigurationID.
func (*MockVMSetMockRecorder) GetNodeNameByProviderID ¶
func (mr *MockVMSetMockRecorder) GetNodeNameByProviderID(providerID interface{}) *gomock.Call
GetNodeNameByProviderID indicates an expected call of GetNodeNameByProviderID.
func (*MockVMSetMockRecorder) GetPowerStatusByNodeName ¶
func (mr *MockVMSetMockRecorder) GetPowerStatusByNodeName(name interface{}) *gomock.Call
GetPowerStatusByNodeName indicates an expected call of GetPowerStatusByNodeName.
func (*MockVMSetMockRecorder) GetPrimaryInterface ¶
func (mr *MockVMSetMockRecorder) GetPrimaryInterface(nodeName interface{}) *gomock.Call
GetPrimaryInterface indicates an expected call of GetPrimaryInterface.
func (*MockVMSetMockRecorder) GetPrimaryVMSetName ¶
func (mr *MockVMSetMockRecorder) GetPrimaryVMSetName() *gomock.Call
GetPrimaryVMSetName indicates an expected call of GetPrimaryVMSetName.
func (*MockVMSetMockRecorder) GetPrivateIPsByNodeName ¶
func (mr *MockVMSetMockRecorder) GetPrivateIPsByNodeName(name interface{}) *gomock.Call
GetPrivateIPsByNodeName indicates an expected call of GetPrivateIPsByNodeName.
func (*MockVMSetMockRecorder) GetProvisioningStateByNodeName ¶ added in v0.19.15
func (mr *MockVMSetMockRecorder) GetProvisioningStateByNodeName(name interface{}) *gomock.Call
GetProvisioningStateByNodeName indicates an expected call of GetProvisioningStateByNodeName.
func (*MockVMSetMockRecorder) GetVMSetNames ¶
func (mr *MockVMSetMockRecorder) GetVMSetNames(service, nodes interface{}) *gomock.Call
GetVMSetNames indicates an expected call of GetVMSetNames.
func (*MockVMSetMockRecorder) GetZoneByNodeName ¶
func (mr *MockVMSetMockRecorder) GetZoneByNodeName(name interface{}) *gomock.Call
GetZoneByNodeName indicates an expected call of GetZoneByNodeName.