compute

package
v10.1.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

func (*FakeVirtualMachineScaleSetVMsClient) Start

func (v *FakeVirtualMachineScaleSetVMsClient) Start(ctx context.Context, resourceGroupName, VMScaleSetName, instanceID string) error

Start 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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL