Documentation ¶
Index ¶
- type ComputeRP
- type FakeVirtualMachineScaleSetVMsClient
- func (v *FakeVirtualMachineScaleSetVMsClient) Deallocate(ctx context.Context, resourceGroupName string, VMScaleSetName string, ...) error
- func (v *FakeVirtualMachineScaleSetVMsClient) Delete(ctx context.Context, resourceGroupName string, VMScaleSetName string, ...) error
- func (v *FakeVirtualMachineScaleSetVMsClient) List(ctx context.Context, ...) ([]compute.VirtualMachineScaleSetVM, error)
- func (v *FakeVirtualMachineScaleSetVMsClient) Reimage(ctx context.Context, resourceGroupName, VMScaleSetName, instanceID string, ...) error
- func (v *FakeVirtualMachineScaleSetVMsClient) Restart(ctx context.Context, resourceGroupName, VMScaleSetName, instanceID string) error
- func (v *FakeVirtualMachineScaleSetVMsClient) RunCommand(ctx context.Context, resourceGroupName string, VMScaleSetName string, ...) error
- func (v *FakeVirtualMachineScaleSetVMsClient) Start(ctx context.Context, resourceGroupName, VMScaleSetName, instanceID string) error
- type FakeVirtualMachineScaleSetsClient
- func (s *FakeVirtualMachineScaleSetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName, VMScaleSetName string, ...) error
- func (s *FakeVirtualMachineScaleSetsClient) Delete(ctx context.Context, resourceGroupName, VMScaleSetName string) error
- func (s *FakeVirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGroup, VMScaleSetName string) (compute.VirtualMachineScaleSet, error)
- func (s *FakeVirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, resourceGroupName string, VMScaleSetName string) (result compute.VirtualMachineScaleSetInstanceView, err error)
- func (s *FakeVirtualMachineScaleSetsClient) List(ctx context.Context, resourceGroup string) ([]compute.VirtualMachineScaleSet, error)
- func (s *FakeVirtualMachineScaleSetsClient) Update(ctx context.Context, resourceGroupName, VMScaleSetName string, ...) error
- func (s *FakeVirtualMachineScaleSetsClient) UpdateInstances(ctx context.Context, resourceGroupName, VMScaleSetName string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputeRP ¶
type ComputeRP struct { Log *logrus.Entry Calls []string Vms map[string][]compute.VirtualMachineScaleSetVM Ssc []compute.VirtualMachineScaleSet }
type FakeVirtualMachineScaleSetVMsClient ¶
type FakeVirtualMachineScaleSetVMsClient struct {
// contains filtered or unexported fields
}
func NewFakeVirtualMachineScaleSetVMsClient ¶
func NewFakeVirtualMachineScaleSetVMsClient(rp *ComputeRP) *FakeVirtualMachineScaleSetVMsClient
NewFakeVirtualMachineScaleSetVMsClient creates a new Fake instance
func (*FakeVirtualMachineScaleSetVMsClient) Deallocate ¶
func (v *FakeVirtualMachineScaleSetVMsClient) Deallocate(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) error
Deallocate Fakes base method
func (*FakeVirtualMachineScaleSetVMsClient) Delete ¶
func (v *FakeVirtualMachineScaleSetVMsClient) Delete(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) error
Delete Fakes base method
func (*FakeVirtualMachineScaleSetVMsClient) List ¶
func (v *FakeVirtualMachineScaleSetVMsClient) List(ctx context.Context, resourceGroupName, VMScaleSetName, filter, selectParameter, expand string) ([]compute.VirtualMachineScaleSetVM, error)
List Fakes base method
func (*FakeVirtualMachineScaleSetVMsClient) Reimage ¶
func (v *FakeVirtualMachineScaleSetVMsClient) Reimage(ctx context.Context, resourceGroupName, VMScaleSetName, instanceID string, VMScaleSetVMReimageInput *compute.VirtualMachineScaleSetVMReimageParameters) error
Reimage Fakes base method
func (*FakeVirtualMachineScaleSetVMsClient) Restart ¶
func (v *FakeVirtualMachineScaleSetVMsClient) Restart(ctx context.Context, resourceGroupName, VMScaleSetName, instanceID string) error
Restart Fakes base method
func (*FakeVirtualMachineScaleSetVMsClient) RunCommand ¶
func (v *FakeVirtualMachineScaleSetVMsClient) RunCommand(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, parameters compute.RunCommandInput) error
RunCommand Fakes base method
type FakeVirtualMachineScaleSetsClient ¶
type FakeVirtualMachineScaleSetsClient struct {
// contains filtered or unexported fields
}
func NewFakeVirtualMachineScaleSetsClient ¶
func NewFakeVirtualMachineScaleSetsClient(rp *ComputeRP) *FakeVirtualMachineScaleSetsClient
NewFakeVirtualMachineScaleSetsClient creates a new Fake instance
func (*FakeVirtualMachineScaleSetsClient) CreateOrUpdate ¶
func (s *FakeVirtualMachineScaleSetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName, VMScaleSetName string, parameters compute.VirtualMachineScaleSet) error
CreateOrUpdate Fakes base method
func (*FakeVirtualMachineScaleSetsClient) Delete ¶
func (s *FakeVirtualMachineScaleSetsClient) Delete(ctx context.Context, resourceGroupName, VMScaleSetName string) error
Delete Fakes base method
func (*FakeVirtualMachineScaleSetsClient) Get ¶
func (s *FakeVirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGroup, VMScaleSetName string) (compute.VirtualMachineScaleSet, error)
Get Fakes base method
func (*FakeVirtualMachineScaleSetsClient) GetInstanceView ¶
func (s *FakeVirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, resourceGroupName string, VMScaleSetName string) (result compute.VirtualMachineScaleSetInstanceView, err error)
GetInstanceView return instance status
func (*FakeVirtualMachineScaleSetsClient) List ¶
func (s *FakeVirtualMachineScaleSetsClient) List(ctx context.Context, resourceGroup string) ([]compute.VirtualMachineScaleSet, error)
List Fakes base method
func (*FakeVirtualMachineScaleSetsClient) Update ¶
func (s *FakeVirtualMachineScaleSetsClient) Update(ctx context.Context, resourceGroupName, VMScaleSetName string, parameters compute.VirtualMachineScaleSetUpdate) error
Update Fakes base method
func (*FakeVirtualMachineScaleSetsClient) UpdateInstances ¶
func (s *FakeVirtualMachineScaleSetsClient) UpdateInstances(ctx context.Context, resourceGroupName, VMScaleSetName string, VMInstanceIDs compute.VirtualMachineScaleSetVMInstanceRequiredIDs) error
UpdateInstances Fakes base method
Click to show internal directories.
Click to hide internal directories.